Hot answers tagged

2

I started learning automation down the exact same route. My suggestion is to download a Java IDE and work with Groovy and Java together. Remember Java will, for the most part, work as groovy. So learning Java will help you with Groovy (And slightly vise versa). Will this lead to a career in automation? Probably not, but it's a good grasping point. Learn ...


2

The easiest way of debugging If Controller is enabling logging for it, you can do it in 2 ways: From JMeter GUI having the If Controller selected choose Help -> Enable Debug Or by adding the next line to log4j2.xml file (lives under "bin" folder of your JMeter installation) <Logger name="org.apache.jmeter.control.IfController" level="debug" /> ...


2

It cant find your driver. You need to download the driver from here: https://www.soapui.org/jdbc/reference/jdbc-drivers.html and then save the .jar file to your c:\Program Files\SmartBear\Soapui5.x\lib folder. Then you should be ok.


2

vars is a shorthand for JMeterVariables and vars.get() function gives you a String So the options are in: Use the string as it is: String user_number = vars.get("USER_COUNT") Or convert it to an Integer: int user_number = vars.get("USER_COUNT") as int


2

Since vars.get("USER_COUNT") returns a String you cannot store that into a int variable that's the reason exception is thrown You should convert the string to int using below way int user_number = Integer.parseInt(vars.get("USER_COUNT")) log.info('Total use is '+user_number) Hope this will be helpful.


1

If I'm not mistaking, that looks like a Katalon script. Katalon Studio basically uses scripts written in Groovy with a wrapper around selenium code. There were some talks about enabling Python scripting with Katalon as discussed on Katalon forum but as far as I know there was no progress there.


1

If you look at the source code getAvaivableWidnwos is basically an alias to getWindowHandles, which returns a Set, not a String so I am not sure if you can use it as you do. So either get the first element of the set or use plain old selenium API. So instead of String parentWindowHandler = browser.getAvailableWindows(); try String parentWindowHandler = ...


1

Assuming you have this Nov. 2015 stored as a JMeter Variable called oldDate you can do something like: vars.put('newDate', Date.parse('MMM. yyyy', vars.get('oldDate')).format('MM/d/yyyy')) If everything goes well you will be able to refer the converted date as ${newDate} where required Demo: See Creating and Testing Dates in JMeter - Learn How for more ...


1

SoapUI allows you define start-up and tear-down scripts for both test suites and tests withing a suite. If you select either a a test suite or test in the GUI, you'll see tabs near the bottom of the screen. Select either Setup Script or TearDown Script and type your Groovy script in there.


1

Re-written based on updated question: Create a singleton pattern with the DB connection information and then call all the SOAPUI tests passing in the data connection parameters as utilized. This allows each test to get the database connection as currently defined, but it only returns the first connection opened to all tests calling for it. It's hard to ...


1

Groovy runs on the standard Java runtime. What this means is that you can use groovy as a stepping stone into java and selenium webdriver. If I were you I would use Groovy Scripts to extend your SoapUI suites as a starting point. I found this walkthrough really useful when I was starting out And because loops have some quirks in SoapUI I'd suggest you ...


Only top voted, non community-wiki answers of a minimum length are eligible