How reuse groovy scripts in soapui project?

痴心易碎 提交于 2019-12-12 23:41:18

问题


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:

  1. You can use the script library, where you store all your scripts in a separate directory and just call the classes.
  2. You can use the run testcase step, where you store your script as a test which you can call from any other test.
  3. 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!