Micro Focus QTP (UFT) Forums
Ignore a hardcoded error report when testing webservices - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Ignore a hardcoded error report when testing webservices (/Thread-Ignore-a-hardcoded-error-report-when-testing-webservices)



Ignore a hardcoded error report when testing webservices - mnybon - 11-08-2011

I have a problem that i cant quite get my head around here.
I am testing error situations on a webserver, the objective being to make sure the correct error message is returned when a certain condition is in place.

I can get the soap error xml from the response and validate it, but my test still fails because the WebService call itself reports an error when it recieves an error message.

This means that even when my validation is a succes, the test fails overall, because a built-in function in qtp (WebService) reports an error when recieving an error via soap.

How do i get around this? I need to either delete the failed step or change it to passed, or make sure it never fails in the first place.