Questions tagged [groovy]

Groovy is an object-oriented programming language for the Java platform. It is a dynamic language with features similar to those of Python, Ruby, Perl and Smalltalk. It can be used as a scripting language for the Java platform.

Filter by
Sorted by
Tagged with
0 votes
1 answer
13 views

Web3J library is not supporting in groovy script. I have to send transaction through groovy script and check test load in JMETER

I have imported all web3J library and using tried using java_version 16,17 and 20. Every time I am facing issue. When I compiled that script in VSCode. I am facing the same issue. Can someone please ...
Nitish's user avatar
  • 1
1 vote
2 answers
95 views

Cannot passing value from non-gui mode if it match the IF Controller condition in JMeter

I've below setup, i've tried to pass the value from non-gui mode but it doesn't work. Config Element/User Defined Variable: portNum:8080 Config Element/HTTP Request Defaults: Port Number: ${__P(...
Akmal's user avatar
  • 11
0 votes
2 answers
209 views

Is there a way to put an entire part of a request in a SoapUI variable?

I'm using SoapUI to test REST webservices and I'm stuck on an issue. I have a json object, called coverages, which consists of one or more other objects, it looks something like this (example with 2 ...
Jan G.'s user avatar
  • 1
-1 votes
1 answer
79 views

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

Currently, we have time to update the architecture in our test automation framework, and we are searching for the best solution to our needs. We have this module architecture: tests-core core-api ...
cheparsky's user avatar
  • 125
1 vote
1 answer
282 views

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

I am using the below code to generate accessToken. import com.eviware.soapui.impl.rest.actions.oauth.OltuOAuth2ClientFacade; import com.eviware.soapui.support.editor.inspectors.auth.TokenType; ...
STE's user avatar
  • 749
0 votes
2 answers
3k views

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

I've defined a variable in JMeter. But when I try to access the variable from Groovy script it gives 53 instead of 5, if I put 10 it throws an exception javax.script.ScriptException: org.codehaus....
Shahrear Bin Amin's user avatar
0 votes
2 answers
434 views

Jmeter | Groovy functions aren't working

I am currently following the 'Blazemeter Jmeter Pro' certification training and while working on an exercise, I noticed that for some reason, the groovy functions aren't working for me. Let me show ...
Goodguy Charlie's user avatar
0 votes
1 answer
538 views

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

In my new project, I am supposed to bring the current test cases, all written in Groovy, to a Python base. We are talking about several thousand test cases that have accumulated over the last years. ...
Mornon's user avatar
  • 1,105
0 votes
0 answers
832 views

Selenium Webdriver not working with ng-click='logout()' (used at least 6 different xPaths)

I have the following code: <span class="login-link control" ng-switch="loggedIn()"> <!-- ngSwitchWhen: true --> <a class="site-control ng-binding ng-scope" ng-...
ameuzela's user avatar
1 vote
1 answer
4k views

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

I have a written a Geb script for automation and I need to handle the Popup. but when switching the child window to parent window am getting a No Such Window Exception Below is my code: def ...
Jagannatha Mv's user avatar
0 votes
1 answer
2k views

How can we use Jmeter variable in groovy script

I have extracted an element using Expath extractor and it is returning below: Nov. 2015 However I only need the date that is 11/1/2015.
Nitish's user avatar
  • 1
0 votes
1 answer
187 views

Answering a multiple choice questions with round robin fashion using selenium

I have a scenario like, answering a multiple choice question. I need to answer the 1st question with 1st option, 2nd question with the 2nd option and so on.. in round robin fashion. Any suggestion, ...
Jagannatha Mv's user avatar
0 votes
1 answer
241 views

Can I keep the Groovy power assert and still have a custom message printed?

I use Katalon Studio for my test automation. It comes with an in-built script editor (Groovy). So, I can use Groovy's power assert that gives me a nice and detailed output message when the assert ...
Mate Mrše's user avatar
  • 4,119
1 vote
3 answers
2k views

SoapUI Execute Script before any tests are run

I'd like to execute a script to setup tests. It should be run once but only once if I start a single test manually or a testsuite or the whole project. (Whenever the execution starts.) I also need to ...
Marc Trittibach's user avatar
0 votes
1 answer
7k views

Condition Inside IF controller Not giving proper Result in JMeter

Here I'm facing one problem with if controller.using JSR223 Assertion to Extract the Response in Jmeter like this it is in One Thread Group def threadName = Thread.currentThread().getName() ...
SQA's user avatar
  • 119
1 vote
0 answers
126 views

Multiply in Groovy SoapUI [closed]

I would like to multiply the below response by 100, then compare it with the request. How do I multiply using Groovy? This is for SoapUI. def response = context.expand( '${abcd#Response#$[16][\'...
Abhi's user avatar
  • 11
0 votes
2 answers
2k views

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

In my Soapui project I am connecting Db2 for validation Groovy step. This seems to be working. When I run pop.xml with required dependency, its giving the following error: java.sql.SQLException: No ...
Babusr01's user avatar
1 vote
2 answers
600 views

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

I've been using SoapUI to test WS the next way (common structure of TestCase): Groovy script to generate data (for request compilation & response checking) SOAP Request with assertions Groovy ...
Ivan Gerasimenko's user avatar
1 vote
2 answers
986 views

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

I am working as Manual Tester with 5+ years of experience. I have good experience about SOAPUI. Performed Functional Testing using SOAP. However the automation can be done using Groovy Script. So, I ...
Roy's user avatar
  • 11