I am testing a Java executable application and and IE based application.I have a script that I would like to launch the Java executable, enter a record in the database, the switch over to IE and search the database. Currently I am having trouble: 1) The java EXE cannot be launched from the QTP command line. So my run settings are run on any open Java application. This is not preferable and right now DEV cannot figure out why QTP can launch other Java apps and not ours. So when I start the script I already have my java app running. It also brings up IE. However, it then never seems able to switch back tro the Java app and perform it's functions. How do I tell it to go find the open java window? Wayne HazleQuality Assurance

Questions by waynehazle

Showing Answers 1 - 1 of 1 Answers

Hi, The one and simple way to resolve your issue is to use Descriptive Programing, please go through Descriptive programing in the Documentation and you will come to know...I have worked only with Web Environment and I used the statements like ...Browser("name:=Customer Support").Page("Title:=Customer Support Page").Weblist("name:=.......   and if you wanna use an existing(already opened) browser, just do like this...

If (Browser("name:=Customer Support").Exist) Then

   Browser("name:=Customer Support").Activate

   Browser("name:=Customer Support").Close : Rem I used close just like that..

else

  Reporter.ReportEvent micWarning,"Browser(Customer Support)","Not Displayed"

End If

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.