I used the below code to open QTP through VBscript?But i can
unable to Invoke QTP...PLZ help me with the correct code to
invoke QTP through VBS with description of the code aswell.

Dim qtApp 'As QuickTest.Application
'Declare the Application object variable
Dim qtTest 'As QuickTest.Test
'Declare a Test object variable
Dim qtResultsOpt 'Declare a Run Results Options object
variable
Set qtApp = CreateObject("QuickTest.Application")
'Create the Application object
qtApp.Launch 'Start QuickTest
qtApp.Visible = False 'Make the QuickTest application
visible
qtApp.Open "C:\form", True
'Open the test in read-only mode
'set run settings for the test
Set qtTest = qtApp.Test
qtTest.Run 'Run the test
'WScript.StdOut.Write "Status is: " &
qtTest.LastRunResults.Status
'Check the results of the test run
qtTest.Close 'Close the test
qtApp.quit 'Close QuickTest Pro
Set qtResultsOpt = Nothing 'Release the Run Results Options
object
Set qtTest = Nothing 'Release the Test object
Set qtApp = Nothing 'Release the Application object



No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More QTP Interview Questions

GET WHETHER THE GIVE NUMBER VALID OR NOT IN BETWEEN THE GIVEN RANGE?IN VB SCRIPT(QTP)

2 Answers   CSC,


Are You using any frame work? What is that? Explain about that.

4 Answers   Wipro,


difference Between Call Run action and copy of action?

3 Answers   Quest,


What are the features and benefits of quick test pro (qtp 8.0)?

0 Answers  


what are the functions availabla in QTP? what are the data types in QTP?

2 Answers   Spry Technologies,






When I start recording any web application (either Mozilla or IE) QTP recognizes window instead of browser and also it does not show all the hierarchy tree of that particular web page. 1. Window("Mozilla Firefox").Check CheckPoint("Mozilla Firefox") 2. As everybody knows it should be browser("Mozilla Firefox").Check CheckPoint("Mozilla Firefox") I am using the windows vista, do you think it may be a problem of my settings in QTP or problem of my installation. Your kind responses will be appreciated. Thanks in advance. Satya

12 Answers  


Explain how to use QTP to check broken links on a page?

0 Answers  


On the website, the protocol has been changed https: to https what you will do? Tell me your approach?

0 Answers  


How 2check the color of the text in the textfield . say suppose the text entered in the textfield object is appearing in red. so i want to check whether the text is in red color or not. It could be great help for me if any one solve's my issue. plz...help

5 Answers   Sinertel,


in one page we have 100 links i have to click the 99th link how can i click the 99th link.

4 Answers   GK Technologies, IBM,


Suppose I have three hyperlinks with same properties. How to solve this and what are the ways to solve this. we can solve this by using index property but what are the other ways we have have to solve this problem. Login (href: btnlogin.aspx) Login (href: Sourcelogin.aspx) Login (href: homelogin.aspx)

0 Answers  


In Manual testing , can u prpare bug report in TD?

1 Answers   TCS,


Categories