Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error Recovery Scenario
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi All

Thank you very much navitha and Navya...

Navitha
the way yoyr handling is correct, But when ever u r action fails the test is alspo gng to fail? I wl explain my problem

Simple example
Code:
Browser("Login").page("Login").webedit("UN").Set Datatable("UN","LoginSheet")
Browser("Login").page("Login").webedit("PWD").Set Datatable("PWD","LoginSheet")
Browser("Login").page("Login").WebButton("OK").click

If Login Fails

(NO popups) the Browser and page names changes to ErrorBrowser and Error pageare and a error message is displayed on the page, SO i called a recovery scenario and added a function

which take a screenshot of the browser and palce the browser in to it's normal stage (Login stage) to run the next itteration.

So when the error recovery scenario triggers it calling the function and it executing the steps,after that insted of picking the next row the test is stoped.


how can I force the QTP to go for the next iteration, and i tried with all post recovery scenarios.

Navya

recovery--> recovery scenario manager --> Trigger event = Test Run Error --> on any error --> function call -->

Functional library is .vbs file , This can be used for writing user defined functions. For error recovery when ever u calls a function u need write the library function in a specific format like as follows


Code:
Function TestRunErrorRecoveryFunction(Object, Method, Arguments, retVal)
            
Browser("name:=.{1,200}").close

Systemutil.Run "http://newtours.demoaut.com/mercurywelcome.php", IE

Datatable.getsheet("TestExample").SetNextRow
End Function



Vamshi
Reply


Messages In This Thread
Error Recovery Scenario - by vamshiram - 07-23-2008, 09:34 PM
RE: Error Recovery Scenario - by navitha123 - 07-23-2008, 10:38 PM
RE: Error Recovery Scenario - by navyasatish - 07-24-2008, 10:57 PM
RE: Error Recovery Scenario - by vamshiram - 07-25-2008, 02:47 PM
RE: Error Recovery Scenario - by navyasatish - 08-01-2008, 02:51 AM
RE: Error Recovery Scenario - by vamshiram - 08-18-2008, 04:26 PM
RE: Error Recovery Scenario - by sucheta - 08-04-2017, 07:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Not Able to Identify Object during Recovery Scenario Phani 2 3,328 01-25-2016, 01:26 PM
Last Post: arunshuklainbox
  Recovery scenario for Certificate Error: Continue to this website SaiJyothsana 3 5,149 07-05-2011, 07:33 PM
Last Post: rajpes
  Move to next iteration of for loop after Recovery scenario zoomintodepth 0 5,089 01-28-2011, 01:13 PM
Last Post: zoomintodepth
  Secure QTP Code and Error Handling Scenario. knarravu 0 4,185 11-02-2010, 12:40 AM
Last Post: knarravu
  Recovery Scenario and Error Statements sunny rao 0 1,901 01-08-2009, 07:43 PM
Last Post: sunny rao

Forum Jump:


Users browsing this thread: 1 Guest(s)