问题
Suppose I write a groovy function. Is it possible to store it to some teststep or another place in soapui project and include it with import in other groovy test steps?
回答1:
SoapUI offers three options:
- You can use the script library, where you store all your scripts in a separate directory and just call the classes.
- You can use the run testcase step, where you store your script as a test which you can call from any other test.
- You can compile your script into a jar, place it in $SOAPUI_HOME/bin/ext, and then call the classes inside your jar.
Note that the first two options are -Pro only features!
来源:https://stackoverflow.com/questions/27372757/how-reuse-groovy-scripts-in-soapui-project