Forum Discussion

MGS10319's avatar
MGS10319
New Contributor
11 years ago

Assertions Pass in Test Case but Fail in Load Test

Hello. I am trying to create a Load Test from a Test Case, and the assertion that I used successfully in the test case fails in the Load Test. My test case is fairly straight forward. Step 1 is Data Source retrieval from XML. Step 2 makes the Soap call. Step 3 runs the assertions. Step 4 is the data source loop. When running in load test, the error is Xpath Match Failed. Not sure why it is successful in test case but fails in load.

This is the assertion I am using:

Declare
declare namespace com="http://oss.companyname.com/xsd/service/Common/CommonServiceMsg";
//res

Expected Result
<res IsSuccess="true" xmlns:com="http://oss.companyname.com/xsd/service/Common/CommonServiceMsg" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<exception>
<errorCode xsi:nil="true"/>
<errorDescription xsi:nil="true"/>
<errorType xsi:nil="true"/>
<errorShortDescription xsi:nil="true"/>
<errorBusinessDescription xsi:nil="true"/>
<errorStack xsi:nil="true"/>
</exception>
</res>

1 Reply

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    I could not reproduce this problem with SoapUI 4.5.2. I believe this may have something to do with your data source setup. If you open your DataSource TestStep, then click on the "tools" icon near the top-left of the editor window, you will see several options you can enable/disable for your load tests. Please try changing those options and see if that makes any difference...

    Let us know how you go with it.

    Regards,

    Renato Athaydes
    SmartBear Software