Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to schedule a QTP script
#1
Solved: 11 Years, 4 Months, 4 Weeks ago
i have a QTP script and i want to schedule the script to run at specified time
Reply
#2
Solved: 11 Years, 4 Months, 4 Weeks ago
You can do it in QC or by using QTP AOM and scheduling through windows scheduler
Reply
#3
Solved: 11 Years, 4 Months, 4 Weeks ago
can you explain the process how to do that?
Reply
#4
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi Balreddy,

Please follow the below process given:
1.Create a .vbs file to launch QTP with required settings.
2.Create a sample QTP testscript and save it as Test1 at the location above. Copy the code into notepad and name the file as testing.vbs
3. Now we will automate the opening of vbs file through windows scheduler. Go to Start  Control Panel  Schedule Tasks  Click Add Schedule Tasks  Click Next on the Screen
Schedule Task wizard screen appears.
4.Click Browse and select the .vbs file you just created.
5.Choose the required option(Eg: One Time Only) & click Next
6. Give required schedule time, Date & click on “Next”
7. Give your Domain\UserName, Password credentials & Click Next
Note: PC should be active/ON, even PC is locked also no issues.It will work.

That’s it!!! Now we have successfully scheduled a test script.

Test Scripts Scheduling in Quality Center:

The Execution Flow tab (in QCTest Lab) enables you to watch the execution process as it happens and to control the way your tests are executed. You can specify under what conditions you want a test to be executed (execution conditions) and when (time dependency).

Note: After you schedule your tests, you must run them.

To schedule a test run:
Log into Quality Center
1. In the Execution Flow tab, double-click a test. Alternatively, right-click a Test and choose Test Run Schedule. The Run Schedule dialog box opens and displays the Execution Conditions tab.
2. To add a condition, click New. The New Execution Condition dialog box opens.
3. In the Test box, select the test on which you want the current test to be dependent.
Select Finished (default) to instruct the Test Lab module to execute the current test only after the specified test has finished executing.

Select Passed to instruct the Test Lab module to execute the current test only if the specified test has finished executing and has passed.
4. In the Comments box, add any relevant information regarding the condition.
5. Click OK. The condition is added to the list.

Tip: You can also add a condition directly in the Execution Flow. Click a test icon (not the test name) and drag the arrow to another test. By default, the condition is set to Finished. To change the condition, double-click the condition arrow and select Passed.

6. Click the Time Dependency tab to specify when you want the test to be executed.
7. Select Run at Specified Time, and select a Date and/or Time.

Tip: You can schedule the test run date and time by clicking the Add Time Dependency to Flow button, and linking it to a test. Double-click the icon to set the time in the Time Dependency dialog box.

8. Click OK to close the Run Schedule dialog box. In the Execution Flow, the diagram displays the tests and the conditions.
Reply
#5
Solved: 11 Years, 4 Months, 4 Weeks ago
I wrote an article on it some time back. Check out How to schedule a QTP script?
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#6
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi Sreekanth,

I am not sure how this 2 files testing.vbs and test1 files are interconnected.Can you exaplin clearly.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to schedule regular UFT runs MasterChief 1 3,479 12-04-2014, 09:57 AM
Last Post: vinod123
  DB Output Checking is not run during Schedule Script Run charmieaka 1 3,211 04-23-2010, 07:00 PM
Last Post: Saket
  QTP script schedule rabbaii 3 5,441 04-20-2010, 11:21 AM
Last Post: Saket
  How to execute the qtp script when this script is added to schedule tasks? venkatbatchu 3 5,588 10-08-2009, 03:19 PM
Last Post: venkatbatchu
  How to schedule Batch Runs in QTP? Sujatha Errapothu 1 5,817 02-29-2008, 11:53 PM
Last Post: Sonia

Forum Jump:


Users browsing this thread: 2 Guest(s)