Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to schedule a QTP script
#4
Solved: 10 Years, 10 Months, 2 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


Messages In This Thread
how to schedule a QTP script - by balreddy - 07-10-2009, 09:23 AM
RE: how to schedule a QTP script - by niranjan - 07-10-2009, 10:01 AM
RE: how to schedule a QTP script - by balreddy - 07-16-2009, 10:35 AM
RE: how to schedule a QTP script - by sreekanth chilam - 07-16-2009, 12:05 PM
RE: how to schedule a QTP script - by rabbaii - 04-09-2010, 10:48 PM
RE: how to schedule a QTP script - by Ankur - 07-16-2009, 12:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to schedule regular UFT runs MasterChief 1 3,256 12-04-2014, 09:57 AM
Last Post: vinod123
  DB Output Checking is not run during Schedule Script Run charmieaka 1 3,099 04-23-2010, 07:00 PM
Last Post: Saket
  QTP script schedule rabbaii 3 5,181 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,387 10-08-2009, 03:19 PM
Last Post: venkatbatchu
  How to schedule Batch Runs in QTP? Sujatha Errapothu 1 5,672 02-29-2008, 11:53 PM
Last Post: Sonia

Forum Jump:


Users browsing this thread: 1 Guest(s)