Contributions
Creating Assertions on RESTful url parameters
All, We have a test step which is a RESTful request. the request looks something like this GET https://somehost.somedomain.com/MarketD ... ata?req=Q&symbols=IBM%2CMSFT&qryOpts= (NOTE, you can reqeust a comma seperatated list of stock quotes. in the example above, it is IBM,MSFT) The result that we get back is XML with quote data: <rjmktdata> <quote rj_symbol="IBM" rj_typSpcl="Common Stock" .../> <quote rj_symbol="MSFT" rj_typSpcl="Common Stock" .../> </rjmktdata> What we would like to do is ASSERT that we have as many quotes in the incoming response as we do in the outgoing request. If this was a SOAP reqeust, then it would be fairly straight forward to write the ASSERTION as xpath comparing the count of the ticker symbols in the request with the count of the response. Does anyone know how do do this with a RESTful reqeust (ie count the URL parameters and compare them to the count of the elements in the response.)11 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.8KViews0likes1Commentproblem with multiple distinct endpoints in a Test Suite
I am trying to record a test suite in soapUI with three Test Cases. I want each of the test cases to go against a different IP address (because there are multiple servers in the farm.) the problem that I am running into is that when I change the endpoint for one of the test cases, it is changing the endpoint for the other test cases. I need for each test case to have a distinct endpoint (ie IP address).587Views0likes0Comments