Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



Hi All, I want to know how can we schedule QTP scripts. Am using 9.5 version and in our office the..

Answer / 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

Hi All, I want to know how can we schedule QTP scripts. Am using 9.5 version and in our office the..

Answer / sudarshan hegde

Hiii ..

to get the all other rows use the following code

while objResultset.EOF <> true
' display the value of the first column
msgbox objResultset(0).value
' to move the pointer to next row
objResultset.Movenext
wend


hope this helps

Is This Answer Correct ?    1 Yes 1 No

Hi All, I want to know how can we schedule QTP scripts. Am using 9.5 version and in our office the..

Answer / daizy

Hi,
1) You can schedule scripts in QualityCenter. In your
company if either QC or TD is used, upload your scripts to
QC and set the timings for execution. It will be executed
at the scheduled time.

2) No idea about silent runner

Is This Answer Correct ?    2 Yes 4 No

Hi All, I want to know how can we schedule QTP scripts. Am using 9.5 version and in our office the..

Answer / varun

There is a tool called TestBatcher.exe in which there is the
functionality for scheduling the test script which u have
automated throug QTP.. i m not able attached that tool but
if u give ur email-id i can attached with that mail making
the testbatcher.exe as testbatcher.doc

Is This Answer Correct ?    0 Yes 2 No

Hi All, I want to know how can we schedule QTP scripts. Am using 9.5 version and in our office the..

Answer / raviqe

Hi Varun,

Can you please share testbatcher.exe as testbatcher.doc and
send a copy to rkkuruganthy@gmail.com

Thanks
Ravi

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

Explain the qtp test phases.

0 Answers  


I have a web table,in that web table in 3rd row 4th coloumn i have a link how to click it with descriptive programming? I have a webedit without entering any value how to calculate the size of that field? I have a DB table , how to find the 5th highest salary? write query.

2 Answers   3i Infotech,


Explain about the Test Fusion Report of QTP?

1 Answers   Crea,


whenever a scenario is recorded ever, it creates a object repository automatically (‘per action’ /local ). we do not need to make them individually…then why we need a shared object repository. How it will be practically utilized ?? your input will be highly appreciated..

5 Answers  


what is the difference between action and function

11 Answers   AppLabs, BirlaSoft, Infosys,


how to retrieve the xml file data through qtp. can anybody send script for this..

3 Answers   Synechron,


when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks

0 Answers  


what is the Command used to start the QTp from Run.(start-> Run)

7 Answers   GE,


I'm having a problem to get the status(pass or fail) during runtime for every iteration ran, and must get the results stored to an excel sheet if possible.

1 Answers   FAI,


Hi, My problem is as follows. I recorded a script that created Object repository of each action i recorded. But later I added one more step (which was to enter data in a textfield) into the script through expert view. But as no repository for this newly added step exists in the test, my script fails. So please help me to sort this problem that how can I create object repository of a new step in an existing test. Thanks everyone

1 Answers  


What is the difference between browser sync and page sync in QTP?

2 Answers  


in order to start automation testing what we should require (entry level to automation testing)

2 Answers  


Categories