xsw913185701 发表于 2012-3-7 18:50:18

为什么loadrunner用sockets测试手机游戏登陆没有用户名和密码

为什么loadrunner用sockets测试手机游戏登陆没有用户名和密码我测的是手机网游代码如下
vuser_init()
{
    lrs_startup(257);

    lr_start_transaction("输入后");

    lr_think_time(21);

    lrs_create_socket("socket0", "TCP", "RemoteHost=192.168.1.180:7605",LrsLastArg);

    lrs_send("socket0", "buf0", LrsLastArg);

    lrs_receive("socket0", "buf1", LrsLastArg);

    lrs_send("socket0", "buf2", LrsLastArg);

    lrs_receive("socket0", "buf3", LrsLastArg);

    lrs_send("socket0", "buf4", LrsLastArg);

    lrs_receive("socket0", "buf5", LrsLastArg);

    lrs_send("socket0", "buf6", LrsLastArg);

    lrs_close_socket("socket0");

    lrs_create_socket("socket1", "TCP", "RemoteHost=192.168.1.180:10000",LrsLastArg);

    lrs_send("socket1", "buf7", LrsLastArg);

    lrs_receive("socket1", "buf8", LrsLastArg);

    lrs_send("socket1", "buf9", LrsLastArg);

    lrs_receive("socket1", "buf10", LrsLastArg);

    lrs_send("socket1", "buf11", LrsLastArg);

    lrs_receive("socket1", "buf12", LrsLastArg);

    lrs_send("socket1", "buf13", LrsLastArg);

    lrs_receive("socket1", "buf14", LrsLastArg);

    lrs_send("socket1", "buf15", LrsLastArg);

    lrs_receive("socket1", "buf16", LrsLastArg);

    lrs_send("socket1", "buf17", LrsLastArg);

    lrs_receive("socket1", "buf18", LrsLastArg);

    lrs_send("socket1", "buf19", LrsLastArg);

    lr_end_transaction("退出前", LR_AUTO);

    lrs_send("socket1", "buf20", LrsLastArg);

    lrs_close_socket("socket1");

    return 0;
}

xsw913185701 发表于 2012-3-7 18:51:08

游戏也是sockets   是java开放跪求 大神

xsw913185701 发表于 2012-3-7 19:03:22

没人吗

xsw913185701 发表于 2012-3-7 20:41:53

:'(神啊 你在哪想你呢

xsw913185701 发表于 2012-3-8 09:15:47

好吧 没人解答吗

db_qtp 发表于 2014-1-9 14:09:26

同问
页: [1]
查看完整版本: 为什么loadrunner用sockets测试手机游戏登陆没有用户名和密码