taibc
7 years agoOccasional Contributor
How to use strategy load test in SOAPUI
Hi all,
I am new in SoapUI, now I need to do a load test. I tried to use 2 strategies: Simple and Fixed-rate as below, but I don't know to analysis them clearly. Could you please explain items for me, what strategy should I choose ?.
My expect test requirement:
- I have a weservice to verify OTP
- I have a excel include 100 correct records, include OTP numbers and users
- I want test in 100 threads, each thread (1 user) run 1 row of excel
Case 1: I use Simple strategy
The error request is 120, but actual it is 60 (because soapui list duplicate error message), for example, both is 61st thread:
2018-12-27 13:27:00,Step Status,Verify - Request 1,"TestStep [Verify - Request 1] result status is FAILED; [[XPath Match] XPathContains assertion failed for path [${Verify - Request 1#Response#declare namespace ns='http://www.bidv.com/entity/vn/otp/smartotp_gw/verify/1.0'; declare namespace ns1='http://www.bidv.com/common/envelope/commonheader/1.0'; //ns:VerifyRes[1]/ns1:ResponseStatus[1]/ns1:Status[1]}] : RuntimeException:net.sf.saxon.trans.XPathException: XPath syntax error at char 0 in {}: Unexpected token "<eof>" in path expression] [threadIndex=61]" 2018-12-27 13:27:00,Step Status,Verify - Request 1,"TestStep [Verify - Request 1] result status is FAILED; [[XPath Match] XPathContains assertion failed for path [${Verify - Request 1#Response#declare namespace ns='http://www.bidv.com/entity/vn/otp/smartotp_gw/verify/1.0'; declare namespace ns1='http://www.bidv.com/common/envelope/commonheader/1.0'; //ns:VerifyRes[1]/ns1:ResponseStatus[1]/ns1:Status[1]}] : RuntimeException:net.sf.saxon.trans.XPathException: XPath syntax error at char 0 in {}: Unexpected token "<eof>" in path expression] [threadIndex=61]"
Case 2: Fixed-rate strategy, with Rate = 5, no error
Case 2: Fixed-rate strategy, with Rate = 1, there 13 error
Many thanks