首页 > 其他 > 详细

SOAP UI

时间:2016-03-21 20:03:36      阅读:257      评论:0      收藏:0      [点我收藏+]

We use SoapUI-Pro-5.1.2

1. Basic introduction - Windows

技术分享

2. Use project environment tab to manage the different environment and configure the properties for each env, this will make the testsuite run in different env in jenkins (using pom.xml configuration)

https://www.soapui.org/soapui-projects/environment-handling.html

3. Mongodb JDBC connection string

4. Groovy scripts

// get current step name, this is usually used to generate some meaning data for this step

context.getCurrentStep().getLabel() 

// get current project dir

import com.eviware.soapui.support.GroovyUtils
def groovyUtils = new GroovyUtils( context )
def projectDir = groovyUtils.projectPath
String filename = projectDir+"//RTF _sample1.html"
//print(filename)
def File Rtffile = new File(filename)
def text1= Rtffile. getText()
def text =""
text1.eachLine {
text= text +it;}

5. Upload a file

 

技术分享

6. 

SOAP UI

原文:http://www.cnblogs.com/limei/p/5302976.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!