adspace
i'm using the qtp to test to vb appliction,i wanted to get
the new application's title.i didn't want to use the winAPI
to get it ,i 'd like to know whether a QTP function can do
it.
Eg:
SystemUtil.Run "C:\Program Files\.....","","","" 'run
an application, and misure the application is
activating,then how to get the hwn wihtout using windowns
api
Answer Posted / Abhay Kumar Pandey
In QTP (QuickTest Professional), you can use the following script to get the application's title without using WinAPI. This example assumes that you have an instance of the application.nn```vbnetnDim appTitle As StringnSet Desktop = CreateObject("win32.Desktop")nFor Each WinObj In Desktop.OpenWindowsn If WinObj.Caption = "<your_app_title>"n Set MyApp = WinObjn appTitle = MyApp.Captionn Exit Forn End IfnNextnMsgBox "Application Title: " & appTitle"```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can you identify the browser and its information using QTP script?
1.Write a CRITICAL test cases for calculator ? 2.What is the difference b/w FRS and SRS documents ? 3.What is Component ? 4.What is object ? 5.what is the difference b/w static and dynamic descriptive programming ?
HOw to add the recovery file at runtime to the test file .
Hi, how can we check or avoid the memory leakage in QTP9.2?
What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.
hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com
Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?
When to use shared and local object repository?
Hi Sudhananda, plz send me the QTP framework with any diagram and PPTS . I want to switch to automatio, I done QTP from professional person, but he does not give me his knowledge properly. so pls help me Thaks send me on following address mirajkar.akash@gmail.com
can anyone tell me from where i can download qtp demo or crack version
Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ
I am in .Net development for past 3.5 years and want to enter in to automated testing and learn QTP. For this I need some good tutorial for beginners. I will be really greatful if any one has and they can send it to me on this address- ruchidureja@gmail.com
how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods
How are actions and functions different in QTP?
what is actually contain test report? can anybody post the test report