|
一个.net的C/S应用程序,使用winsocket协议录制,在登陆界面,想将用户名和密码从一个数据库文件参数化。但是在录制的脚本如下:
#include "lrs.h"
vuser_init()
{
lrs_startup(257);
lr_think_time(7);
lr_think_time(29);
lrs_create_socket("socket0", "TCP", "RemoteHost=PRINTER:1433", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_send("socket0", "buf2", LrsLastArg);
lrs_receive("socket0", "buf3", LrsLastArg);
lrs_send("socket0", "buf4", LrsLastArg);
lrs_receive("socket0", "buf5", LrsLastArg);
lrs_send("socket0", "buf6", LrsLastArg);
lrs_receive("socket0", "buf7", LrsLastArg);
lrs_create_socket("socket1", "TCP", "RemoteHost=PRINTER:1433", LrsLastArg);
lrs_send("socket1", "buf8", LrsLastArg);
lrs_receive("socket1", "buf9", LrsLastArg);
lrs_send("socket1", "buf10", LrsLastArg);
lrs_receive("socket1", "buf11", LrsLastArg);
lrs_send("socket1", "buf12", LrsLastArg);
lrs_receive("socket1", "buf13", LrsLastArg);
lrs_send("socket1", "buf14", LrsLastArg);
lrs_receive("socket1", "buf15", LrsLastArg);
lrs_send("socket0", "buf16", LrsLastArg);
lrs_receive("socket0", "buf17", LrsLastArg);
lrs_send("socket0", "buf18", LrsLastArg);
lrs_receive("socket0", "buf19", LrsLastArg);
return 0;
}
不知道哪里是用户名和密码.
另,使用web service协议,录制后为什么没有脚本出现。只有recording log? |
|