请教用loadrunner测试c/s架构的应该如何开始录制
1个回答
2016-05-28
展开全部
顶一定,我选用的是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.
这是录制的内容:
#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.
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询