Soapui经验文档
一、建立http+xml工程
(1)
(2)
(3)
二、建立soap消息工程
三、loadtest
tps:每秒点击率
Error:错误数量
Threads:并发线程数量
Limit:设置允许时间
可以动态设置参数:
<?xml version="1.0" encoding="UTF-8"?>
<Request>
<traceUniqueID>${rand#result}</traceUniqueID>
<processTime>20151231154746</processTime>
<cId>100000</cId>
<msisdn>${msisdn#result}</msisdn>
<promChannelId>1001</promChannelId>
<bossproductId>49416</bossproductId>
</Request>
比如:traceUniqueID可以获取一个随机数,创建GroovyScript rand
Random rand = new Random()
result ="1001" + rand.nextInt(100000000)
比如手机号码:递增,需要升级一个默认是值然后递增,建立properties
在设置一个groovy script msisn
Random rand = new Random()
defphone=861516145
def countProps= testRunner.testCase.getTestStepByName("Properties")
def index =countProps.getPropertyValue("count")
Long i=newLong(index)+1
countProps.setPropertyValue("count",""+i)
result = i