Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to continue run my QTP scripts after computer reboot?
#1
Solved: 11 Years, 4 Months, 3 Weeks ago
Deal all,
Is there any way to continue run my scripts after computer reboot? assume
i have a test scenario that contains 3 actions, the second actions need reboot my computer, after reboot, how to make QTP remember which actions it should pick up and continue running?

thanks for help!
Reply
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi,
Try to update some flags in runtime data sheet or any config file & read from it after reboot
Reply
#3
Solved: 11 Years, 4 Months, 3 Weeks ago
Thanks for reply, after the computer reboot, I thought the flag in runtime sheet will not saved, so this will not work.Sad
save the flag in external file can help, but if the action(which will process reboot computer) was called by many other actions, how
do i set the flags? set different flag for each actions?
For example, scenario1 contains action1, action2(which will reboot my computer) and action3; scenario2 contains action4, action2 and action5, when scenario1 done , the vbs suppose to run scenario2, but the computer reboot when it run action2,scenario1, in this situation , i can re call the vbs again but how i set the flags to make it ignore action1 and action2 of scenario? and when the action2 of scenario was executed, how to make the vbs to ignore the whole scenario1 and part of scenario2?

if i set one flag to each actions, it seems can do, but i have almost 100 actions now and it will grow soon, maintenance the flag file will be my nightmare.

thanks!
Reply
#4
Solved: 11 Years, 4 Months, 3 Weeks ago
I think you should maintain a excel sheet which your script reads to run actions based on the flags (ON/OFF) set for those actions. Now what you can do here is that before your script reboots your computer you can set OFF the flag in the sheet for action 2 and save the sheet. next time when the script runs it would see action as OFF and it would not run. You can set flags to OFF for those actions which are already run so that QTP does not repeat them. let the excel sheet drive your testing
Reply
#5
Solved: 11 Years, 4 Months, 3 Weeks ago

The simplist way is to have, at the beginning of each scenario a choice of where to go next based on reading in a configuration file.

As QTP runs, afer the reboot, it reads the config file (just some text lines) and launches the correct scenario and then the Scenario decides where to continue from through the choice it also reads from the config file.

Just before you reboot create the config file and put in it the scenario to run and the place to run from along with any persistant variable info you want to carry over.

I find multiple actions a pain so use library files and functions instead. The different scenarios are different paths through the many functions.

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  "Continue to this website (not recommended)." Error we are getting kotaramamohana 7 28,782 07-21-2016, 09:55 PM
Last Post: Ranjith Nair
Rolleyes The test run cannot continue due to an unrecoverable error neerndg123 3 8,722 09-17-2015, 08:27 PM
Last Post: ananthakumarbe
  Is it possible to run the QTP scripts on machine with out QTP is installed? kalyan_srirangam 2 3,551 10-21-2013, 07:19 PM
Last Post: kalyan_srirangam
  how to run QTP scripts from command line prompt? pra6201 1 18,404 01-03-2012, 08:46 PM
Last Post: ravi.gajul
  Dialog box error while QTP scripts run from VM Desktop rahuldps 2 4,921 11-14-2011, 01:47 PM
Last Post: ravi.gajul

Forum Jump:


Users browsing this thread: 1 Guest(s)