Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
39 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
67 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
0answers
33 views

Unable to click a next element and throwing a WaitTimeoutException and power assertion error

Below is the Piece of code: def clickAndEndSection() { waitFor { //Cover and endSectionButton are elements cover.displayed == false ...
0
votes
1answer
58 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
0answers
34 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
2answers
125 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
0answers
43 views

How can I stop JsonSlurper from converting objects/maps to arrays?

I have a JSON response item from a web service that looks like this: [ { "field1":"value", "field2":"value2", "field3":"value3", "field4":"value4" }, { ...
0
votes
1answer
1k 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
79 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
631 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 ...
0
votes
2answers
250 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
791 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 ...