五-月-花 发表于 2008-2-21 10:42:13

loadrunner关于web/winsocket录制一个web页面关联的问题

是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;
}

五-月-花 发表于 2008-2-21 12:19:40

:L 无人问津,来个大仙指导指导撒

ilikelife 发表于 2009-6-17 18:20:12

这个没有高手解决吗?

:Q :(

云层 发表于 2009-6-17 21:41:26

本来就是Html的网站干嘛要用windows sockets来录呢?HTML直接自动关联就行了

ilikelife 发表于 2009-6-18 09:35:52

回复 4# 的帖子

我的是c/s结构的,必须winsocket协议

http协议,录制不了脚本

但是选择winsocket协议,录制脚本,录制的脚本如1楼所示。

请高手帮忙

ilikelife 发表于 2009-6-18 10:41:35

:Q :Q :Q

没有高手帮着解决一下吗

ilikelife 发表于 2009-6-18 11:37:12

求救

难道没有人碰到过类似问题吗?
页: [1]
查看完整版本: loadrunner关于web/winsocket录制一个web页面关联的问题