Contributions
How to Create REST Request from response of pervious request
Hi I have a URL that show REST Services. The run Flow of it should be followed by <link> tag on response of each request. for example, when run the URL in SOAPUI Pro through a REST Request, I get this as response: <form xsi:noNamespaceSchemaLocation="viewFormat-1.2.xsd" locale="fa" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <texts textCount="1"> <text>WelCome</text> </texts> <link>http://192.168.21.17:82/telephonebank/main.do;jsessionid=88F28186C2290B44669A8875C1511988?execution=e1s1&_eventId=prompted</link> </form> the next request should be: "http://192.168.21.17:82/telephonebank/main.do;jsessionid=88F28186C2290B44669A8875C1511988?execution=e1s1&_eventId=prompted" and so on. I have a Framework for automatic testing SOAP Web Services but i am new with REST Services. please help me "how do I create new next request from value of Link and how i make a framework for testing Automatic"675Views0likes1CommentRe: Problem with multiple return in XQuery Match Assertion
I have the same problem, please help me the XML response of service is like below: <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:transferSummaryResponse xmlns:ns2="http://service.y.modern.t.com/"> <return> <currency>IRR</currency> <transactions> <count>1</count> <totalAmount>10</totalAmount> <transactionStatus>READY_FOR_PROCESS</transactionStatus> </transactions> <transactions> <count>1</count> <totalAmount>20</totalAmount> <transactionStatus>SUSPENDED</transactionStatus> </transactions> </return> </ns2:reportAchTransferSummaryResponse> </S:Body> </S:Envelope> I use Xquery Match for assertion . and XQuery Expression has value declare namespace soap='http://schemas.xmlsoap.org/soap/envelope/'; declare namespace ns2='http://service.y.modern.t.com/'; <Row> { for $z in //ns2:TransferSummaryResponse/return/transactions return data($z/ns2:totalAmount/text()) } </Row> and code in the Expected Result <Row>10 20</Row> but i get the below error and assertion failed: XQuery Match Assertion failed for path [declare namespace soap='http://schemas.xmlsoap.org/soap/envelope/'; declare namespace ns2='http://service.y.modern.t.com/'; { for $z in //ns2:TransferSummaryResponse/return/transactions return data($z/ns2:totalAmount/text()) } ] : Exception:org.custommonkey.xmlunit.Diff [different] Expected presence of child nodes to be 'true' but was 'false' - comparing at /Row[1] to at /Row[1] can anyone help me? please help me thank you1.5KViews0likes0Comments