Forum Discussion

nassir_nathoo's avatar
nassir_nathoo
Occasional Contributor
16 years ago

validate response received

Hi all,
i am sending the request in my test case and i get a response which is the list of transaction performed for the member.
the easiest way i want is to compare the entire XML response in one assertion.
I am new in this part. can you advise how please?
Please note i am using non-Pro version. Iread from another post that Ole said to assert the envelop.
I need an example please: Here is my XML response:
----------------------------------------------------------------------

 
     
       
            20
            47
           
       

       
           
              1006
              Member id is null
             
           

       

     

 


----------------------------------------------------------------------------------------------
i would like to validate the entire XML response.
Thanks
Nassir

4 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    Add an "XPath Match" assertion to your request and configure its XPath statement to select the root element (ie the SOAP Envelope) and set the expected content to the entire message.

    Good Luck!

    regards,

    /Ole
    eviware.com
  • nassir_nathoo's avatar
    nassir_nathoo
    Occasional Contributor
    Hi Ole,
    Thanks very much. I was trying this when i read another post you had. But i am not sure about the sytax.
    Can you help and tell me what the statement looks like based on my response. here is the request:



     
       
         
            20
            47
           
         

          claim/Payment
          All
          dental