|
#include "lrs.h"
Action()
{
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=192.168.0.208:8080", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_create_socket("socket1", "TCP", "LocalHost=5060", "Backlog=64", LrsLastArg);
lrs_create_socket("socket2", "TCP", "LocalHost=5060", "Backlog=64", LrsLastArg);
lrs_create_socket("socket3", "TCP", "LocalHost=5060", "Backlog=64", LrsLastArg);
lrs_create_socket("socket4", "TCP", "LocalHost=0", "Backlog=1", LrsLastArg);
lrs_close_socket("socket4");
lrs_create_socket("socket5", "UDP", "LocalHost=5060", LrsLastArg);
lrs_send("socket5", "buf2", "TargetSocket=LINUX:5060", LrsLastArg);
lrs_create_socket("socket6", "TCP", "RemoteHost=LINUX:5060", LrsLastArg);
lrs_close_socket("socket6");
return 0;
}
大家看看我的loadrunner测试C/S的脚本,我测试的是一个相似QQ的客户端软件,选的是windows sockets协议,但不知道在哪里设置参数啊,大家有loadrunner测试C/S的资料吗?上网好像很少找到这类的资料,大家帮帮忙 |
|