简体   繁体   English

在与CA LISA集成的HPALM中运行测试脚本时遇到“拾取Java工具选项”错误

[英]Getting “picked up Java tool options” error while running a test script in HPALM integrated with CA LISA

I am trying to integrate HP-ALM with CA-LISA (a service virtualization tool). 我正在尝试将HP-ALM与CA-LISA(服务虚拟化工具)集成在一起。 On trying to run the below test script 在尝试运行以下测试脚本时

function Test_Main(Debug, CurrentTestSet, CurrentTest, CurrentRun)
{
    try
    {
        TDOutput.Clear();
        lisa = new ActiveXObject("MercuryLisaBridge.MercuryTestRunner");
        lisa.Init(TDConnection, TDOutput);
        lisa.Reload(ThisTest);

        if (Debug) lisa.Debug(ThisTest);
        if (!Debug) lisa.Run(CurrentTest, CurrentRun);
    }
    catch(e)
    {
        TDOutput.Print("Run-time error [" + (e.number & 0xFFFF) + "] : " + e.description);
    }
}

I am getting this error 我收到此错误

Run-time error [5376] : Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Picked up _JAVA_OPTIONS: -Xbootclasspath/a:"C:\Program Files (x86)\HP\Unified Functional Testing\bin\java_shared\classes\jasmine.jar"
Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook

错误屏幕截图

_JAVA_OPTIONS and JAVA_TOOL_OPTIONS are environment variables which allows you to provide default values for Java options which will be picked up by every JVM (see details on http://progexc.blogspot.com.cy/2013/12/what-i-discovered-while-trying-to-pass.html and Difference between _JAVA_OPTIONS JAVA_TOOL_OPTIONS and JAVA_OPTS for details). _JAVA_OPTIONS和JAVA_TOOL_OPTIONS是环境变量,可让您提供Java选项的默认值,每个JVM都会使用它们(请参见http://progexc.blogspot.com.cy/2013/12/what-i-discovered- while-trying-to-pass.html_JAVA_OPTIONS JAVA_TOOL_OPTIONS与JAVA_OPTS之间的区别以获取详细信息)。

This variables are set by UFT installer (and probably by some other HP ALM related stuff). 此变量由UFT安装程序设置(也可能由其他与HP ALM相关的设置)设置。

I'm not sure why it causes your script to fail (maybe because they are written in standard error stream - I don't remember), but if you want to elimimate them you need to clear those two environment variables on the machine where script is running. 我不确定为什么它会导致脚本失败(也许是因为它们是用标准错误流编写的-我不记得了),但是如果要消除它们,则需要在脚本所在的计算机上清除这两个环境变量在跑。 I would clear them for a particular process, but leave them untouched globally, because it may affect UFT stuff. 我会为特定的过程清除它们,但请使其在全球范围内保持不变,因为这可能会影响UFT内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM