|
loadrunner c/s结构,等待大家一起研究呀
顶一定,我选用的是newsingle protocol script 的category下选择了client/server然后选择了windows sockets进行录制,登录。登录成攻了,但一回放就有问题。
这是录制的内容:
#include "lrs.h"
vuser_init()
{
lrs_startup(257);
lrs_create_socket("socket0", "UDP", "LocalHost=256", LrsLastArg);
lrs_send("socket0", "buf0", "TargetSocket=255.255.255.255:27977", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_close_socket("socket0");
lrs_create_socket("socket1", "TCP", "RemoteHost=JZL:27976", LrsLastArg);
lrs_send("socket1", "buf2", LrsLastArg);
lrs_receive("socket1", "buf3", LrsLastArg);
这是出错的脚本:
Virtual User Script started
Starting action vuser_init.
vuser_init.c(12): lrs_startup(257)
vuser_init.c(14): lrs_create_socket(socket0, UDP, ...)
vuser_init.c(16): lrs_send(socket0, buf0)
vuser_init.c(16): Error : socket0 - Permission denied. Error code : 10013.
Abort was called from an action. |
|