Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
0answers
10 views

Jython or Groovy script: Check if a cookie has already been closed

Currently I have the following problem. I use a test framework (QfS) which offers the possibility to execute scripts via Groovy or Jython. Description: I've automated the history that I can close ...
0
votes
0answers
35 views

Beanshell valid code (setTestLogicalAction), in groovy error “groovy.lang.MissingMethodException:”

As I understand, JMeter recommends to use groovy, it's faster and more flexible, etc. I'm trying to add code to groovy JSR223, changing deprecated ctx.setRestartNextLoop(true); to ...
0
votes
0answers
23 views

How to pass parameters from groovy script in pom.xml to .properties file?

I have this groovy plugin to replace my project.basedir with \\ to /. This work fine in my console. <plugin> <groupId>org.codehaus.groovy.maven</groupId> <artifactId>...
1
vote
1answer
298 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
387 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
82 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
49 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
325 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
2k 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
97 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
845 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
301 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
858 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 ...