Forum Discussion

ABCDEFG's avatar
ABCDEFG
Contributor
14 years ago

SOAP Fault Vs Not SOAP Fault

Hi,

Can anybody tells about the difference between SOAP Fault & Not SOAP Fault & SOAP Response?

How it differs each other, Advantages in soapUI testing etc.

^Regards
  • deepesh_jain's avatar
    deepesh_jain
    Frequent Contributor
    If you would have placed NOT SOAP FAULT assertion in the same test case, yes it would have been valid.

    Regards,
    Deepesh Jain
  • Hi,

    The explanation given by Deepesh was very detailed, i guess it should have clarified your doubts.
    However, to add couple of points from my end...

    - There would be no real scenario where you can add both SOAP Fault & Not SOAP Fault assertion at same time. Since these 2 assertion are the compliment/opposite of each other. Hence status of that teststep would always be RED. [Standard says : RED status will take precendece over GREEN status]
    - SOAP response would be RED only in case when you didn't received any response (it can be error or valid response) from server & the response tab is empty. It generally happens with the request time out (server not able to process the request in given time).
    - SOAP Fault will always be RED, when you have a valid response ( which is not expected, expected result was an error )
    - Not SOAP Fault will always be RED, when you have an error response (or fault tags in the response XML), here the expected response was a valid response.

    Regards,
    /Pradeep Bishnoi
    http://learnsoapui.wordpress.com