我正在尝试使用 Tsung 通过 SOAP 调用测试 Web 服务的性能。我已经编写了本示例中描述的脚本:http: //lists.process-one.net/pipermail/tsung-users/2010-November/001584.html
<request>
<http url="/Service.asmx" version="1.0" contents_from_file="/home/local/user/.tsung/c.xml" content_type="application/soap+xml; charset=UTF-8" method="POST">
<soap action="Retrieve"/>
</http>
</request>
我检查了 contents_from_file="" 和 contents="" 的工作方式相似,因此不会导致问题。
问题是我没有收到来自服务器的任何答复。转储文件如下所示:
NewClient:1421147358.215102:1
load:1
Send:1421147358.22721:<0.94.0>:POST /Service.asmx HTTP/1.0
Host: webservice.com
User-Agent: tsung
SOAPAction: "Retrieve"
Content-Type: application/soap+xml; charset=UTF-8
Content-Length: 1991
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<!-- headers -->
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<!-- body -->
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
然后 - 什么都没有。tsung_controller@.log 中没有错误
之前的 qa 工程师已经在 Parasoft 负载测试工具中创建了相同的请求,并且可以正常工作。我正在尝试用 Tsung 重现它。
我究竟做错了什么?有人可以帮我解决这个问题吗?