【发布时间】:2014-01-23 23:08:32
【问题描述】:
我想通过 iMeter Soap/XML-RPC Data 测试一个 SOAP 函数。逻辑很简单,我正在传递一个用户 ID 并想要取回用户配置文件。我想测试 100 个用户,用户 ID 从 1 到 100。我想创建 50 个线程,每个线程通过这 100 个 ID 运行 2 小时。我的问题是如何让 jMeter 调用所有这 100 个用户请求。请求 XML 是这样的。我应该只创建 100 个 id 从 1 到 100 的 xml 请求吗?
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://server.smartleads.alliancetech.com" xmlns:data="http://data.post.server.smartleads.alliancetech.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header/>
<soapenv:Body>
<ser:getRegistration>
<ser:aaGetRegReqObj>
<data:action>0</data:action>
<data:version xsi:nil="true"/>
<data:debug>true</data:debug>
<data:id>55</data:id>
</ser:aaGetRegReqObj>
</ser:getRegistration>
</soapenv:Body>
</soapenv:Envelope>
【问题讨论】:
-
对不起,我的问题弄错了,用户实际上是一个随机数+字符组合,不仅仅是从1到100。我很抱歉我的错误。在这种情况下,我该怎么办?谢谢!
标签: xml soap jmeter performance-testing