loadrunner测试客户端和loadrunner测试接口是一样的吗
loadrunner测试客户端和loadrunner测试接口是一样的吗,我看书看视频,都没有找到答案,loadrunner测试接口是什么意思,例如:我想测试qq的登陆页面,进行登录一系列操作,这个在loadrunner中怎么操作LR测试都是基于协议的,不用在乎是客户端还是接口,其实客户端也只是一个载体而已。LR模拟的就是这个载体 loadrunner录制的协议信息,通信协议,不管客户端还是接口,都是按照协议测试 vuser_init()
{
lrs_startup(257);
lr_think_time(8);
lrs_create_socket("socket0", "UDP", "LocalHost=4024",LrsLastArg);
lrs_send("socket0", "buf0", "TargetSocket=111.161.88.110:8000", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_send("socket0", "buf2", "TargetSocket=111.161.88.110:8000", LrsLastArg);
lrs_receive("socket0", "buf3", LrsLastArg);
lrs_close_socket("socket0");
lrs_create_socket("socket1", "UDP", "LocalHost=4024",LrsLastArg);
lrs_send("socket1", "buf4", "TargetSocket=111.161.88.110:8000", LrsLastArg);
lrs_receive("socket1", "buf5", LrsLastArg);
lrs_send("socket1", "buf6", "TargetSocket=111.161.88.110:8000", LrsLastArg);
lrs_send("socket1", "buf7", "TargetSocket=111.161.88.110:8000", LrsLastArg);
lrs_receive("socket1", "buf8", LrsLastArg);
这脚本我都看不懂啊,这个就是我录制出来的东西
页:
[1]