NOTE: This page contains information for SoapUI Pro that has been replaced with Ready! API.
To try the new functionality, feel free to download a Ready! API trial.
Today we'll cover Point and Click testing in Groovy script. Sometimes you have to resort to scripting in your testing scenarios; for example, if you want to control the flow of Test Case steps with a Groovy script. So let’s say you use dynamic endpoint functionality to specify whether you are pointing to Development, Testing, or Production environments, and based on the environment you want to go to a specific sign in step.
In this case we need to get the value of a custom, project-level property “ServiceEndpoint”:
You can then create your Groovy script. In the text field right-click, select “Get Data”, browse to the project property and select it.
As this action will create the variable, you will be prompted to provide the variable name:
Once you click OK SoapUI Pro will create the variable declaration:
Now you can continue coding your scenario based on the value of that preference:
So as you can see Point and Click functionality in SoapUI Pro lets you:
- Quickly pass data between different test steps and property values
- Easily create XPATH queries to point to exact values
- Speed up your coding in implementing Groovy