TA的每日心情 | 擦汗 2016-5-4 10:34 |
---|
签到天数: 68 天 连续签到: 1 天 [LV.6]测试旅长
|
回复 7# 守夜天使
我丛HP论坛粘贴了一个回复你看下:Title: QuickTest Professional (QTP) configuration crashes (or prevent start/launch of) Java applications (or Oracle)
Document ID: KM543247
Product: QuickTest Professional,Functional Testing
Version: Updated: 2012-Jun-01
Summary: Is it possible to limit when the agent for QuickTest Professional is loaded into a Java application? Sometimes users finds that QTP will cause Java based applications to behave unexpectedly, or sometimes even to crash
Problem
When both QTP and a Java application is installed on the same machine, some users may find that their Java application may not function correctly or may often crash unexpectedly. This occurs with QTP running but no neccessarily recording.
Cause
Collisions with the changes to the Java environment made by QTP's Java or Oracle addin have prevented the applications from launching correctly.
Fix
This will ensure that the Java support is only loaded when QTP and the Java / Oracle addin are loaded
Close QTP and any Java or Oracle related applications.
Note: steps 2 to 6 are for Web related applications of the Java/Oracle type (mostly Applets)
Navigate to the Java control panel.
Start -> Control panel -> Java control panel
Under the Java Advanced tab navigate to "<APPLET > tab support" (for Java 1.5.x) or "Default Java plugin for browsers" (for Java 1.6.x).
Note: For Vista or later operating systems, it appears this option may be disabled)
Please uncheck the checkbox "Internet Explorer"
Click "Ok" and continue until Java Control Panel is closed
Navigate to the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\JavaAgent\LoadDependsOnPackage - 32bit Operating System
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mercury Interactive\JavaAgent\LoadDependsOnPackage - 64bit Operating System
Modify the value from “0” to "1". The default value is 0 which indicates that the agent is always loaded into an application. If this value is then changed to 1, it will instruct the agents to only be injected when QTP and the Java addin are loaded.
For changes to take effect, please restart the machine |
|