0

My YAML Files looks like the following :

  • config:

    • testset: "add user"
  • test:

    • name: "incorrect pw with status code"
    • url: "/user/add"
    • method: "POST"
    • body: "I HAVE ATTACHED THE WHOLE XML BODY REQUEST"
    • headers: {'Content-Type: text/xml'}
    • expected_status: [200]
    • validators:
      • compare: {ns4:StatusDetail, expected: "User successfully added!"}

Apart from only checking the "expected_status" , i want to validate it with the XML Response Body parameters.

In the response i have the following XML tags :

<ns4:StatusCode>****</ns4:StatusCode><ns4:StatusDetail>*****</ns4:StatusDetail>

I want to validate my response with the "StatusDetail" tag

I am not too sure how to use the following parameters since i am using a SOAP XML Request
- extract_binds:
- validators:
    - compare: 
RuqiJam
  • 3
  • 2

0 Answers0