在Load runner 12.01中使用java over HTTP协议时的编译错误

时间:2015-05-13 06:33:45

标签: loadrunner

我在Load Runner 12.01中使用java over HTTP协议录制了我的应用程序,但是当我编译我的脚本时,它会抛出这样的错误

Notify: Found jdk version: 1.6.0.   [MsgId: MMSG-22986]
classpath=D:\LR12.01 Scripts\AirArabia\Scripts\Airarabia\Login_Logout\;c:\program files (x86)\hp\loadrunner\classes\srv;c:\program files (x86)\hp\loadrunner\classes;D:\Fanatic\Softwares\Jmeter\Jmeter2.11\apache-jmeter-2.11\lib\ext\onlyclass.jar;C:\Program Files (x86)\Java\jdk1.6.0_21\lib\;;;;c:\program files (x86)\hp\loadrunner\lib\xstream-1.3.jar;c:\program files (x86)\hp\loadrunner\lib\xpp3-1.1.4c.jar  [MsgId: MMSG-22986]
Compilation process failed. [MsgId: MERR-22997]
<identifier> expected   [MsgId: MERR-22986]
    lr.output_message("abc");   [MsgId: MERR-22986]
                     ^  [MsgId: MERR-22986]
illegal start of type   [MsgId: MERR-22986]
    lr.output_message("abc");   [MsgId: MERR-22986]
                      ^ [MsgId: MERR-22986]
2 errors    [MsgId: MERR-22986]

任何人都可以帮我吗???

1 个答案:

答案 0 :(得分:0)

您无法在Web HTTP脚本中执行Java代码。

您需要选择与java相关的协议并执行。