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(&quot;win32.Desktop&quot;)nFor Each WinObj In Desktop.OpenWindowsn If WinObj.Caption = &quot;<your_app_title>&quot;n Set MyApp = WinObjn appTitle = MyApp.Captionn Exit Forn End IfnNextnMsgBox &quot;Application Title: &quot; &amp; appTitle&quot;```

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you identify the browser and its information using QTP script?

1086


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 ?

2185


HOw to add the recovery file at runtime to the test file .

2295


Hi, how can we check or avoid the memory leakage in QTP9.2?

2168


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.

2220


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

2154


Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?

2188


When to use shared and local object repository?

1162


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

2480


can anyone tell me from where i can download qtp demo or crack version

2081


Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ

2114


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

2076


how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods

2017


How are actions and functions different in QTP?

1153


what is actually contain test report? can anybody post the test report

2095