|
是loadrunner自带的sample
地址:http://127.0.0.1:1080/mercuryWebTours/
协议:web/winsocket dual protocol
回放时总是报错,报错信息:
Action.c(21): Error : callConnect - Connection refused. Error code : 10061.
Action.c(21): Replaced port:1080 with port:57678 due to correlation
Action.c(21): Error : Timeout expired while trying to connect. Error code : 9017.
录制出的脚本如下:
/*********************************************************************
* Created by Mercury Interactive multi-protocol Windows Sockets Web Recorder
*
* Created on: Thu Feb 21 09:30:16
*********************************************************************/
#include "lrs.h"
#include "as_web.h"
Action()
{
lrs_create_socket("socket0", "UDP", "LocalHost=0", "RemoteHost=localhost:56630", LrsLastArg);
lrs_create_socket("socket1", "TCP", "LocalHost=0", "RemoteHost=localhost:1080", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_send("socket1", "buf2", LrsLastArg);
lrs_receive("socket1", "buf3", LrsLastArg);
lrs_send("socket1", "buf4", LrsLastArg);
lrs_receive("socket1", "buf5", LrsLastArg);
lrs_send("socket1", "buf6", LrsLastArg);
lrs_send("socket0", "buf7", LrsLastArg);
lrs_receive("socket0", "buf8", LrsLastArg);
lrs_create_socket("socket2", "TCP", "LocalHost=0", "RemoteHost=localhost:1080", LrsLastArg);
lrs_send("socket0", "buf9", LrsLastArg);
lrs_receive("socket0", "buf10", LrsLastArg);
lrs_send("socket2", "buf11", LrsLastArg);
lrs_receive("socket2", "buf12", LrsLastArg);
lrs_receive("socket1", "buf13", LrsLastArg);
lrs_send("socket2", "buf14", LrsLastArg);
lrs_send("socket0", "buf15", LrsLastArg);
lrs_receive("socket0", "buf16", LrsLastArg);
lrs_send("socket1", "buf17", LrsLastArg);
lrs_send("socket0", "buf18", LrsLastArg);
lrs_receive("socket0", "buf19", LrsLastArg);
lrs_receive("socket1", "buf20", LrsLastArg);
lrs_send("socket1", "buf21", LrsLastArg);
lrs_send("socket0", "buf22", LrsLastArg);
lrs_receive("socket0", "buf23", LrsLastArg);
lrs_receive("socket1", "buf24", LrsLastArg);
lrs_receive("socket2", "buf25", LrsLastArg);
lrs_send("socket1", "buf26", LrsLastArg);
lrs_receive("socket1", "buf27", LrsLastArg);
lrs_send("socket2", "buf28", LrsLastArg);
lrs_send("socket0", "buf29", LrsLastArg);
lrs_receive("socket0", "buf30", LrsLastArg);
lrs_receive("socket2", "buf31", LrsLastArg);
lrs_send("socket1", "buf32", LrsLastArg);
lrs_send("socket0", "buf33", LrsLastArg);
lrs_receive("socket0", "buf34", LrsLastArg);
lrs_send("socket2", "buf35", LrsLastArg);
lrs_send("socket0", "buf36", LrsLastArg);
lrs_receive("socket0", "buf37", LrsLastArg);
lrs_receive("socket1", "buf38", LrsLastArg);
lrs_send("socket1", "buf39", LrsLastArg);
lrs_receive("socket2", "buf40", LrsLastArg);
lrs_receive("socket1", "buf41", LrsLastArg);
lrs_receive("socket2", "buf42", LrsLastArg);
lrs_send("socket1", "buf43", LrsLastArg);
lrs_send("socket2", "buf44", LrsLastArg);
lrs_receive("socket1", "buf45", LrsLastArg);
lrs_receive("socket2", "buf46", LrsLastArg);
lrs_send("socket1", "buf47", LrsLastArg);
lrs_send("socket2", "buf48", LrsLastArg);
lrs_receive("socket1", "buf49", LrsLastArg);
lrs_receive("socket2", "buf50", LrsLastArg);
lrs_receive("socket1", "buf51", LrsLastArg);
lrs_send("socket2", "buf52", LrsLastArg);
lrs_send("socket0", "buf53", LrsLastArg);
lrs_receive("socket0", "buf54", LrsLastArg);
lrs_receive("socket2", "buf55", LrsLastArg);
lrs_send("socket1", "buf56", LrsLastArg);
lrs_send("socket0", "buf57", LrsLastArg);
lrs_receive("socket0", "buf58", LrsLastArg);
lrs_send("socket2", "buf59", LrsLastArg);
lrs_send("socket0", "buf60", LrsLastArg);
lrs_receive("socket0", "buf61", LrsLastArg);
lrs_receive("socket2", "buf62", LrsLastArg);
lrs_send("socket2", "buf63", LrsLastArg);
lrs_send("socket0", "buf64", LrsLastArg);
lrs_receive("socket0", "buf65", LrsLastArg);
lrs_receive("socket2", "buf66", LrsLastArg);
lrs_receive("socket1", "buf67", LrsLastArg);
lrs_send("socket2", "buf68", LrsLastArg);
lrs_receive("socket2", "buf69", LrsLastArg);
return 0;
} |
|