Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I want to not fail on handeled run error in web service test
#4
Solved: 11 Years, 4 Months ago
You must forgive my neurons, they have been having a hard time, but if i have got what you said, then i believe, this is what you are looking for,

Code:
On Error Resume Next
WebService("ServicesService_2").login XMLWarehouse("userBean")
testError = WebService("ServicesService_2").GetLastError
if  ( reason = "Incorrect password" )  then
     expectedError = "User name or password is incorrect!"
if InStr(testError, expectedError) <> 0 then
      Reporter.ReportEvent micPass, "Login Test",  "test reason: " &        reason & " passed."
else
  Reporter.ReportEvent micFail, "Login Test",  "test reason: " & reason    & "  failed."
End if
msgbox Err.Number &" "& Err.Description
End if
Let me know if this works?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Messages In This Thread
RE: I want to not fail on handeled run error in web service test - by basanth27 - 03-07-2011, 02:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to send/pass UFT Run Error Dialog as output value to main driver script lravi4u 0 592 11-05-2023, 03:55 PM
Last Post: lravi4u
  Send automatic email notification when test run started helmzshelmz 0 1,079 04-03-2020, 07:54 AM
Last Post: helmzshelmz
  How to identify an error page occurring in server in between the qtp run. aswini 1 1,793 05-04-2017, 03:52 PM
Last Post: Ankur
  Test runned from QualityCenter generated an error "Attempted to divide by zero." robertosalemi 1 2,569 10-14-2016, 08:38 PM
Last Post: robertosalemi
  Exe invoked through UFT is unable to access IIS and SQL Server service bkdevise 0 2,155 08-25-2015, 05:49 PM
Last Post: bkdevise

Forum Jump:


Users browsing this thread: 3 Guest(s)