Hot answers tagged

2 votes
Accepted

Condition Inside IF controller Not giving proper Result in JMeter

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 ...
  • 12.7k
2 votes

java.sql.SQLException: No suitable driver found for jdbc:db2://URL/Database - pom.xml

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\...
  • 121
2 votes

vars.get('var_name') in groovy outputs wrong value in JMeter

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 ...
  • 12.7k
2 votes
Accepted

vars.get('var_name') in groovy outputs wrong value in JMeter

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 ...
2 votes

Groovy Script in SOAP UI: What is the scope of groovy script in Testing and beneficial for Future growth?

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 ...
  • 3,222
1 vote
Accepted

What is the best architecture for a test automation framework with multiple products?

If we want to manipulate two products in one framework and still use Guice we can use @Provide methods. Examples are here and here
  • 125
1 vote

ReadyAPI-Request an access token in headless mode fails for oauth 2 token retrieval in CI/CD pipeline

It looks like there's a package missing which is required to run Chromium or JX Browser in order to execute your script successfully. The missing library is libX11.so.6. You can install this in Debian ...
1 vote

Jmeter | Groovy functions aren't working

Don't ever inline JMeter Functions or Variables into Groovy scripts, if you want to access the variable value use vars shorthand instead, it stands for JMeterVariables class instance and provides read/...
  • 12.7k
1 vote

Python + Selenium: Is there a way convert Groovy based test cases into Python?

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 ...
  • 4,079
1 vote
Accepted

Caused by: org.openqa.selenium.NoSuchWindowException: no such window is displayed in Geb

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 ...
1 vote

How can we use Jmeter variable in groovy script

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 ...
  • 12.7k
1 vote

SoapUI Execute Script before any tests are run

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 ...
1 vote

How to minimize number of connections to DB in SoapUI load tests?

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 ...
  • 1,663
1 vote

Groovy Script in SOAP UI: What is the scope of groovy script in Testing and beneficial for Future growth?

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 ...
  • 2,023

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