script library using Groovy - SOAPUI

断了今生、忘了曾经 提交于 2019-12-11 09:52:36

问题


Hi there,

I’m starting to work with SOAPUI and Groovy.

I found the reusable code problem. I mean, I would like to avoid having a lot of copies of the same script in different projects. As I want to make a "global library", how could I do it?

I saw the following method, http://www.spamer.me.uk/wiki/doku.php/soapui_reusable_script_library?rev=1350558275 but I have some doubts. Would it be the only way to do it?

Thank you very much for your help and sorry for the inconvenience.


回答1:


You need create a JAR with your code and put it to bin/ext in your soapui directory (for example C:/Program%20Files/SmartBear/soapUI-Pro-3.0-beta-2/bin/ext/sqljdbc.jar ) so it will be added to soapui classpath



来源:https://stackoverflow.com/questions/18075187/script-library-using-groovy-soapui

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