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
-2
votes
1answer
42 views

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

Currently we have time for updating architecture in our test automation framework and we searching for the best solution to our needs. We have this module architecture: tests-core core-api core-web ...
1
vote
1answer
72 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; ...
0
votes
2answers
589 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....
0
votes
2answers
106 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 ...
0
votes
1answer
207 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. ...
0
votes
0answers
554 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-...
1
vote
1answer
3k 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 ...
0
votes
1answer
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.
0
votes
1answer
144 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, ...
0
votes
1answer
116 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 ...
1
vote
3answers
1k 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 ...
0
votes
1answer
5k 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() ...
1
vote
0answers
117 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][\'...
0
votes
2answers
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 ...
1
vote
2answers
479 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 ...
1
vote
2answers
952 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 ...