使用Groovy - SOAPUI的脚本库 [英] script library using Groovy - SOAPUI

查看:134
本文介绍了使用Groovy - SOAPUI的脚本库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我开始使用SOAPUI和Groovy。



我发现可重用的代码问题。我的意思是,我想避免在不同的项目中使用相同脚本的大量副本。
我想制作一个全球图书馆,我该怎么办?



我看到以下方法, http://www.spamer.me.uk/wiki/doku.php/soapui_reusable_script_library?rev=1350558275 但我有些怀疑。这是否是唯一的方法吗?



非常感谢您的帮助,并为此造成的不便深表歉意。


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.

解决方案

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

这篇关于使用Groovy - SOAPUI的脚本库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆