Contributions
Can I get the header information from rest request using testRunner.testCase?
At first start a rest request, then get the response of this request. In this response, contains a header information "Location" is "http://******/rest/**/12354". If this rest test step names "Post", the I can get this step in Groovy Script: def aaa = testRunner.testCase.getTestStepByName("Post") So is it possible to get the header information "Location" from the response of "Post"? Thanks for advance!! Tao1.5KViews0likes1Comment- 574Views0likes0Comments
Testing a rest request in json
I am testing a rest api. And the request and response are written in json. So i need to select the item from the response. for example {"example": {"test":"it is a test", "test2":"testing" } } My question is, how can i get the information like "test", because xpath or xquery could not be used for json. Btw, i am using soapui 2.5.1 Thanks in advance!!1.6KViews0likes2Commentsa problem to add an Xpath assertion to a rest request
I am now doing rest test by using soapui. In this case, i post some thing to server. If there is no error by request, the server will send a response in XML back, as following: if there is some wrong, the response will be Place not found for placeId2000 So, i wanna insert such an Xpath assertion, //data[@contentType="null"] that means, if the contentType is "null", then the request/response are right, otherwise, wrong. But this assertion is always wrong, showed as "null/empty response" and i think is a problem by Does anyone has a good idea to ignore or maybe solve that problem. Thanks in advance!!2.2KViews0likes1Comment