|
用loadrunner 9.5录制了一个rdp 测试样例,需要把远程桌面登录的用户名和密码设为可输入的变量,同时发起10个连接,不知如何修改测试代码?请大家帮帮忙
Action()
{
rdp_connect_server("Host=172.31.0.16",
"UserName=变量",
"EncryptedPassword=变量",
"Domain=DELL142501",
RDP_LAST);
rdp_set_lock("StepDescription=Lock Key Set 1",
"LockKeyValue=VK_NUMLOCK",
RDP_LAST);
/* This script contains keyboard steps without automatic synchronization.
Consider adding a synchronization step before the relevant keyboard steps.*/
rdp_type("StepDescription=Typed Text 1",
"Snapshot=snapshot_1.inf",
"TypedKeys=xmspktech",
RDP_LAST);
lr_think_time(16);
rdp_key("StepDescription=Key Press 1",
"Snapshot=snapshot_2.inf",
"KeyValue=VK_RETURN",
RDP_LAST);
rdp_disconnect_server("StepDescription=Server Disconnect 1",
RDP_LAST);
return 0;
} |
|