07-25-2008, 02:47 PM
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
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
Vamshi
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