Contributions
Property Transfer to another Test Case
I have followed the instructions for transferring session id value from one test case to another http://www.loadui.org/Load-Testing-soapUI-Tests/session-transferring.html, however, this is not working for me. Example: I have 2 test cases, one to Login which returns a Session Id, and a second that logs off a user. I want to transfer to the property of the first test case to the second case. When following the steps in the tutorial, the value of ${#TestCase#SessionId} is empty, as if it is not accessible by the 2nd test case. However, if I use a Test Suite property this works. But I'm afraid using this scope would mean subsequent calls to the login method would override the Session Id property. Non Working Test Case property transfer988Views0likes0CommentsXQuery Match Assertion multiple elements
I have a test step that returns the following response. What I what to do is create a XQuery Match validation that validates each <applicationId> element contains the same value as I pass in the request. Basically the functionality of a for each loop to compare each element. How do I do this? <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:findUserConceptByAppResponse xmlns:ns2="http://remote.fp.com/"> <return> <applicationId>25</applicationId> <id>2548</id> </return> <return> <applicationId>25</applicationId> <id>2549</id> </return> <return> <applicationId>25</applicationId> <id>2550</id> </return> <return> <applicationId>25</applicationId> <id>2551</id> </return> <return> <applicationId>25</applicationId> <id>2552</id> </return> <return> <applicationId>25</applicationId> <id>2553</id> </return> <return> <applicationId>25</applicationId> <id>2554</id> </return> <return> <applicationId>25</applicationId> <id>2555</id> </return> <return> <applicationId>25</applicationId> <id>2569</id> </return> </ns2:findUserConceptByApplicationIdResponse> </soap:Body> </soap:Envelope> This validates correctly for the first instance of the <applicationId> element but I want all of them to match. declare namespace soap='http://schemas.xmlsoap.org/soap/envelope/'; declare namespace ns2='http://remote.tums.fp.com/'; matches(//ns2:findUserConceptByAppResponse[1]/return[1]/applicationId[1]/text(), '${#TestSuite#ApplicationId}')1.5KViews0likes1Comment