How to open any application during Scripting?
Answer Posted / ramyab.mca@gmail.com
Hai...
SystemUtil, object used to open and close applications and
processes during a run session. A SystemUtil.Run statement
is automatically added to your test when you run an
application from the Start menu or the Run dialog box while
recording a test
E.g : SystemUtil.Run "Notepad.exe"
SystemUtil.CloseDescendentProcesses (Closes all the
processes opened by QTP)
K,Byeee...
Thanks & Regards
B.Ramyasri
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What are the ordinal identifiers in web page?
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
What is parameter in qtp?
What is system testing and what are the different types of tests you perform in system testing?
How we can import data from database?
What is test object model in quicktest professional?
What are the recording modes in wave event?
How to give a call to another action from one action?
Does quicktest professional is unicode compatible?
If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?
What is keyword view in qtp?
What is the difference in testing a client-server application and a web application?
Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?
How to export quicktest professional results to an .xls file?
Hybrid framework supports Descriptive programming. Is it true?