Micro Focus QTP (UFT) Forums
Application and QTP freezes when recognizing/selecting Java Tab - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Application and QTP freezes when recognizing/selecting Java Tab (/Thread-Application-and-QTP-freezes-when-recognizing-selecting-Java-Tab)



Application and QTP freezes when recognizing/selecting Java Tab - pora - 12-16-2010

I am facing strange problem.
Java application under test freezes as well as QTP 9.2 when QTP tries to select java tab.
JavaWindow("title:="&Window).JavaTab(arrDP(0)).Select Data
where arrDP(0) = "toolkit class:=javax.swing.JTabbedPane"
Data is tab name as displayed.
Window is the java application name

1. This is a new issue and earlier it was working all fine.
2. This issue occurs randomly not always.
3. While debugging , cannot reproduce.
4. Issue occur with 2-3 specific tabs in the application.
5. Add in that I am using are Java & Web.


Any suggestions ?
Biggest problem is both application as well QTP freezes and I am not sure whats causing it .


RE: Application and QTP freezes when recognizing/selecting Java Tab - pora - 12-21-2010

No reply yet...Seems like I am the only one who faced this issue.
But still Senior members please share some knowledge on what might have gone wrong,according to you Smile
AUT is windows based java application.Selecting web add-in, can that cause issue??


RE: Application and QTP freezes when recognizing/selecting Java Tab - megumirab - 01-10-2012

You aren't the only one with this issue. I have the code
JavaWindow("title:=" & strWindowName).JavaTab("attached text:=" & strTabName).Select 4
and when QTP reaches this line, the tab is selected in the application, but QTP freezes for two minutes, to the second each time. This occurs each time I want QTP to navigate to this tab. I have to wait each time for QTP to unfreeze.

The only differences between my situation and the above poster is that the application doesn't freeze, I am using QTP 10.0, and I am able to recreate this issue; it always happens when I try interacting with this tab.


RE: Application and QTP freezes when recognizing/selecting Java Tab - ravi.gajul - 01-10-2012

Check the Java Version used by your application and the one that is configured in your system? Hopefully the issue is caused due to the version mismatch.
The application & QTP must be running on different versions of JVM or java which is installed on your machine. By Default QTP also installs a JVM & configure the Environment variable accordingly.

QTP hangs the application in scenarios like this otherwise AUT should be doing good.


RE: Application and QTP freezes when recognizing/selecting Java Tab - sunnyk8 - 01-10-2012

Hi,

If you know the Java application running back end in the process then take the name of exe of java app and copy (application.exe = yes) into mic.ini file

In mic.ini file you will see ie_hook section, type application.exe = yes in this section

Path of mic.ini (C:\Program Files\HP\QuickTest Professional\bin\mic.ini)

Sunny