Loadrunner TruClient Ajax脚本中的密码加密

时间:2014-08-05 15:02:37

标签: loadrunner truclient

我使用Loadrunner Truclient Ajax协议录制了一个脚本。它生成了类似的代码。

Script_View_Action()
{
truclient_step("Navigate to 'test-adept2'", "snapshot=Action_21.inf");
{
    truclient_step("Navigate to 'test-adept2'", "snapshot=Action_21.1.inf");
    truclient_step("Enter credentials in authentication dialog", "snapshot=Action_21.2.inf");
}

等等......我在Argument选项卡中提供了凭证。

enter image description here

但是,我无法弄清楚,如何在参数中提供加密密码。由于此代码中没有显式代码,我可以使用lr_encrypt()/ lr_decrypt函数。

1 个答案:

答案 0 :(得分:0)

由于TruClient脚本是用JavaScript开发的,因此您需要执行与lr_encrypt和lr_decrypt等效的JavaScript。

在TruClient插件的Password参数中使用 LR.decrypt(<my encrypted password>);(有关详细信息,请参阅产品帮助)。 您没有写出您正在使用的版本,因此我请您告诉您如何告诉TruClient在参数值中使用JavaScript而不是纯文本(同样,帮助将在这里使用)。

相关问题