Answer Posted / kotike
As per my knowledge we can invoke application in four ways
through qtp
1. Systemutil.Run "Notepad.exe" (i.e path of the
application)
2. Invokeapplication "Notepad.exe"
'this invokeapplication is used for backward compatability
3.set oShell=CreateObject("Wscript.Shell")
oShell.Run "Notedpad.exe"
set oShell=Nothing
4. In qtp go to-->Automation-->Record and Run setting-->
select web or window and check the checkbox of application
opened by qtp. Below specify the path of the application
and click on ok. When where you click on record button qtp
will launch application automatically.
Regards,
mahi.kotike@gmail.com.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Explain types of descriptive programming?
I am getting an error "failed to open the XML checkpoint result viewer" in result window,after clicking on "View XML checkpoint results".Someone suggest me settings,if any...
I need to obtain the parent of an object programatically, so if I have: winButton("aButton") I need to obtain the parent part: window("Window1").Dialog("Dialog1") so I can programatically create a string of the full name of the object to call it with an execute statement in QTP I would like to use something like: part[1] = "window(""Window1"")" part[2] = "dialog(""Dialog1"")" so I can do: exeLine = part[1]&"."&part[2]&"."&"winButton(""aButton"")" Execute exeLine Apart from keeping a record of the window/dialog hierarchy is there a parent or path function/ command Thanks Adrian
in my application,validation message has in japanise language.how to validate this message is appears properly or not
What are the features supported by UFT?
How to give a call to another action from one action?
How u will do versioning in QTP?
There is an excel file of 1 to 100 sheets how you will iterate through it?
Sql questions to find second max salary and how to use joins
How to use actions in qtp ?
How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.
Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.
How can i get the image text that changes dynamically? Here i have used "GetROProperty", but it's not working. I used like Ex:Browser("webmail").Page("inbox").image ("captchaimage).getroproperty("innertext/text/value")
What is ‘object spy’ and what is the function of object spy in qtp?
before launching qtp, we need to close all the open browsers u dont know what are all the browsers either it might be ie,mozilla etc and u dont know how many brosers are open.... u need to close all these before launching qtp.. can anyone plz temme d solution...