| || |
QTP slows down application using SWT and SWING
We are currently using QTP 9.5 to automize a Java application (Eclipse Rich Client) that is developed in-house. QTP works fine as long as the application uses SWT widgets only. However, when SWT and SWING widgets are used together, the load times for those parts of the application become unacceptable (2000% longer than without QTP installed.
This makes the automated as well as the manual test of the application impossible.
We believe we were able to corner the problem: QTP sets the following environment variables to load a Java agent:
_JAVA_OPTIONS = -Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes;C:\ PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine. jar
_classload_hook = jvmhook
IBM_JAVA_OPTIONS = -Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes;C:\ PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine. jar
JAVA_TOOL_OPTIONS = -agentlib:jvmhook
If these environment variables are not present, the problems disappear, but then we cannot use QTP for automating any more.
We need a solution to the load times with QTP and Swing applications.
Thanks for any help! Kind regards, Jens
Re: QTP slows down application using SWT and SWING
Did you have your issue resolve? I am facing the same issue for long time and QTP support is not able to answer the solution.