Hi All,
I want to know how can we schedule QTP scripts.
Am using 9.5 version and in our office they want to
schedule individual scripts of QTP so that it can run
unattended during night time, Please help me how to do that.
2. what is the use of silent test run in qtp
can I schedule the scripts in Silent runner, Please explain.
3.I retrieved data from the database using output value ->
Database output value. the result of the query for eg is 5
rows, iam able to output the first row by selecting the
cols and adding it to output, but am not able to do it for
the rest of the rows.
please tell me how to do it.

Sorry for posting so many qns, am not able to find answ to
any of the above in any websites, hoping that someone would
really help me with these here, please help me.
awaiting for ur immediate revert.

Priya

Answer Posted / nanda

use the automation object model...

Set qtApp = CreateObject("QuickTest.Application") ' Create
the Application object

qtApp.Launch

qtApp.Visible = True ' Make the QuickTest application
visible


qtApp.TDConnection.Connect "<Quality Center
Path>", "<Domain>", "<Project>", "<UserName>", "<Password>",
False ' Connect to Quality Center

' Prepare the RunResultsOptions object

Set qtRunResultsOptions = CreateObject
("QuickTest.RunResultsOptions") ' Create the Run Results
Options object

qtRunResultsOptions.ResultsLocation = "Root\Version 6.0
\Phase 3\Automated Tests\4.1 Chart Managed in Java\4.1
StructuredTextEditor\4.1 StructuredTextEditor" ' Set a
temporary results location in test lab.
'qtApp.TDTestSet = "Root\QTP Demo\4.1 Chart Managed in
Java\4.1 StructuredTextEditor\4.1 StructuredTextEditor_TP"
Dim Test_path

Test_path = "[QualityCenter] Subject\Automated
Tests\Application\Release 6.0.0\Login\A_User_Login_Existing"
Test_path1 = "[QualityCenter] Subject\Automated
Tests\Application\Release 6.0.0\Login\A_User_Logout"

'Dim qtApp
Dim qtTest
'Set qtApp = CreateObject("QuickTest.Application")
'qtApp.Launch
'qtApp.Visible = True
qtApp.Options.Run.RunMode = "Normal"
qtApp.Options.Run.ViewResults = False
qtApp.Open Test_path, True
Set qtTest = qtApp.Test
'qtTest.Run


qtTest.Run qtRunResultsOptions ' Run the test

qtApp.Open Test_path, True
qtTest.Run qtRunResultsOptions ' Run the test

'qtTest.Close
'qtApp.quit
Set qtTest = Nothing


i think the above script will use for u. here i have
given the test path and results path according to my
quality center. please change those according ur needs.

and put above script in vbs file and schedule the vbs
file by using windows tasks scheduler.

if u r confused , send a mail to below id. i will send
with detail steps with screenshots .

my ID is: nanda.dreddy@gmail.com

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to record application running on the Virtual machine?

642


Explain features of the latest version of qtp/ uft 12.1?

606


What is difference between Recording time object identification and Run time (Execution) time.

1007


what are the limitations of smart identification in qtp 9.0

1926


Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?

604






hi i am working with vbwindow on qtp.first i am openning qtp whenever open qtp my application not open that time generated error like "Runtime error 0" and fatal error:automation error how to solve this problem pls tell me

1876


In qtp, how you can exit for loop?

527


Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter

2202


Explain the use of action split in qtp?

567


wht type of User defined functions or Java Releated functions Do we write in VB scripting

1378


Hi, Can we open a test in qtp10 which is saved in qtp 9.2?

1431


How to use debug tools?

2198


Is it possible to change the property value at runtime? How it is possible?

575


In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.

1443


How to analyzing the checpoint results?

520