GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Tech FAQs  >  QTP

 Print  |  
Question:  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 Hazle
Quality Assurance




May 05, 2006 05:22:00 #1
 Brahma Sagar Gunda   Member Since: May 2006    Total Comments: 3 

RE: I am testing a Java executable application and and...
 

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

     

 

Back To Question