
Step 3: As the OK button is clicked, it shows a Groovy Script editor where we can write the script and test it by clicking on the run button, as shown below. Step 2: clicking the Groovy Script, it shows a pop dialog box to specify the groovy script's name for a new step, or we can leave the Groovy Script name as default and then click the OK button. Right-click on the Test Steps, and then go to the Add Step to select the Groovy Script from the available service, as shown below. Step 1: Select the CalculatorSoap TestSuite and then select the Test Case in which we are going to create the Groovy script. Using a groovy script, we can enable or disable the test suites and test cases during the requested groovy script.Ĭreate and Test a Groovy Script in a SoapUI Toolįor creating the groovy script in a SoapUI, we have to follows the given steps, as shown.It can be used to set the script property values at different levels, such as to request test step, test case and test suite levels.It is used to verify the groovy response.The groovy script is used to generate and provide data into the groovy test request.Uses of Groovy Script in SoapUI tool for API or Web service testing. If we want to use Java keywords and functions directly in Groovy script, we can easily use it.

It is a scripting language that contains all Java libraries. Furthermore, it uses the Java library internally with Java-related keywords and functions directly in the Groovy script.
GROOVE SCRIBE TUTORIAL CODE
It can be used as a programming and scripting language that enables java platforms to use the groovy source code compiled into Java Virtual Machine (JVM) Bytecode. It has many static and dynamic features similar to the python, Ruby, Pero and the Small talk language. Apache Groovy is an object-oriented, Java syntax compatible programming language based on the Java platform.
