how to schedule a QTP script - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: how to schedule a QTP script (/Thread-how-to-schedule-a-QTP-script) |
how to schedule a QTP script - balreddy - 07-10-2009 i have a QTP script and i want to schedule the script to run at specified time RE: how to schedule a QTP script - niranjan - 07-10-2009 You can do it in QC or by using QTP AOM and scheduling through windows scheduler RE: how to schedule a QTP script - balreddy - 07-16-2009 can you explain the process how to do that? RE: how to schedule a QTP script - sreekanth chilam - 07-16-2009 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 QCTest 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. RE: how to schedule a QTP script - Ankur - 07-16-2009 I wrote an article on it some time back. Check out How to schedule a QTP script? RE: how to schedule a QTP script - rabbaii - 04-09-2010 Hi Sreekanth, I am not sure how this 2 files testing.vbs and test1 files are interconnected.Can you exaplin clearly. |