loadrunner Lr_类函数之lr_decrypt()

来源:互联网 发布:web of science数据库 编辑:程序博客网 时间:2024/06/15 05:07

lr_decrypt()

解密编码的字符串
char * lr_decrypt(const char * EncodedString);

参数说明:
EncodedString:您要解密的编码字符串。

lr_decrypt
函数解密编码的字符串。在记录期间生成此函数以对密码进行编码。 VuGen记录实际密码,但在lr_decrypt函数中显示密码的编码版本。

运行脚本时,测试运行组件会解密密码。每次记录时,即使使用相同的密码,VuGen也会对密码进行不同的加密。

可以从脚本中记录的值创建lr_decrypt调用。选择引号之间的整个字符串,不包括引号本身。右键单击所选字符串,然后选择加密字符串选项。原始字符串由lr_decrypt调用替换,其中EncodedString参数是编码后的原始字符串。

要从记录值获取加密值以供以后使用,请复制记录的值。Then run Start >Programs > LoadRunner > Tools > Password Encoder. Paste the value intothe Password field, and click Generate. The encrypted string appears in theEncoded string box. Click the Copy button, then paste the encryped string intoa parameter for later use, or assign the value to a string variable.(然后运行开始>程序>LoadRunner>工具>密码编码器。将该值粘贴到密码字段中,然后单击生成。加密字符串显示在“编码字符串”框中。单击复制按钮,然后将加密的字符串粘贴到参数以供将来使用,或将值分配给字符串变量)。

VuGen
使用32位加密。

示例:lr_decrypt
在以下示例中,lr_decrypt对密码编辑字段中的编码字符串进行解密。
connect_server
(“199.203.78.170”,“9000/ * version =110 * /,“module = e\\ appsnca \\ fnd \\ 7.5 \\ forms \\ us \\ fndscsgn userid =applsyspub / pub @ vision fndnam = apps“);
lr_think_time
7;
set_window
(“Oracle Applications”);
edit_set
(“FNDSCSGN.SIGNON.USERNAME.0”,“OPERATIONS”);
edit_set
(“FNDSCSGN.SIGNON.PASSWORD.0”,lr_decrypt(“38620da61ca1093e7aa7ec”));
button_press
(“FNDSCSGN.SIGNON.CONNECT_BUTTON”);


原创粉丝点击