LR中脚本录制后回放的时候无法将数据下载是怎么回事?
现在这个程序用的是Delphi开发的,现要对他下载数据做压力测试,选用socket协议,录制脚本后回放的时候,无法将数据下载是怎么回事?请教各位高手,在线等!!!我把录制的脚本发上来大家看看。
Action()
{
lr_start_transaction("download");
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:8080", 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_create_socket("socket1", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket1", "buf6", LrsLastArg);
lrs_receive("socket1", "buf7", LrsLastArg);
lrs_close_socket("socket1");
lrs_create_socket("socket2", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket2", "buf8", LrsLastArg);
lrs_receive("socket2", "buf9", LrsLastArg);
lrs_close_socket("socket2");
lrs_create_socket("socket3", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket3", "buf10", LrsLastArg);
lrs_receive("socket3", "buf11", LrsLastArg);
lrs_close_socket("socket3");
lrs_create_socket("socket4", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket4", "buf12", LrsLastArg);
lrs_receive("socket4", "buf13", LrsLastArg);
lrs_close_socket("socket4");
lrs_create_socket("socket5", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket5", "buf14", LrsLastArg);
lrs_receive("socket5", "buf15", LrsLastArg);
lrs_close_socket("socket5");
lrs_create_socket("socket6", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket6", "buf16", LrsLastArg);
lrs_receive("socket6", "buf17", LrsLastArg);
lrs_close_socket("socket6");
lrs_create_socket("socket7", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket7", "buf18", LrsLastArg);
lrs_receive("socket7", "buf19", LrsLastArg);
lrs_close_socket("socket7");
lrs_create_socket("socket8", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket8", "buf20", LrsLastArg);
lrs_receive("socket8", "buf21", LrsLastArg);
lrs_close_socket("socket8");
lrs_create_socket("socket9", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket9", "buf22", LrsLastArg);
lrs_receive("socket9", "buf23", LrsLastArg);
lrs_close_socket("socket9");
lrs_create_socket("socket10", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket10", "buf24", LrsLastArg);
lrs_receive("socket10", "buf25", LrsLastArg);
lrs_close_socket("socket10");
lrs_create_socket("socket11", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket11", "buf26", LrsLastArg);
lrs_receive("socket11", "buf27", LrsLastArg);
lrs_close_socket("socket11");
lrs_create_socket("socket12", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket12", "buf28", LrsLastArg);
lrs_receive("socket12", "buf29", LrsLastArg);
lrs_close_socket("socket12");
lrs_create_socket("socket13", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket13", "buf30", LrsLastArg);
lrs_receive("socket13", "buf31", LrsLastArg);
lrs_close_socket("socket13");
lrs_create_socket("socket14", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket14", "buf32", LrsLastArg);
lrs_receive("socket14", "buf33", LrsLastArg);
lrs_close_socket("socket14");
lrs_create_socket("socket15", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket15", "buf34", LrsLastArg);
lrs_receive("socket15", "buf35", LrsLastArg);
lrs_close_socket("socket15");
lrs_send("socket0", "buf36", LrsLastArg);
lrs_receive("socket0", "buf37", LrsLastArg);
lrs_create_socket("socket16", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket16", "buf38", LrsLastArg);
lrs_receive("socket16", "buf39", LrsLastArg);
lrs_close_socket("socket16"); lrs_create_socket("socket17", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket17", "buf40", LrsLastArg);
lrs_receive("socket17", "buf41", LrsLastArg);
lrs_close_socket("socket17");
lrs_create_socket("socket18", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket18", "buf42", LrsLastArg);
lrs_receive("socket18", "buf43", LrsLastArg);
lrs_close_socket("socket18");
lrs_create_socket("socket19", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket19", "buf44", LrsLastArg);
lrs_receive("socket19", "buf45", LrsLastArg);
lrs_close_socket("socket19");
lrs_create_socket("socket20", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket20", "buf46", LrsLastArg);
lrs_receive("socket20", "buf47", LrsLastArg);
lrs_close_socket("socket20");
lrs_create_socket("socket21", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket21", "buf48", LrsLastArg);
lrs_receive("socket21", "buf49", LrsLastArg);
lrs_close_socket("socket21");
lrs_create_socket("socket22", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket22", "buf50", LrsLastArg);
lrs_receive("socket22", "buf51", LrsLastArg);
lrs_close_socket("socket22");
lrs_create_socket("socket23", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket23", "buf52", LrsLastArg);
lrs_receive("socket23", "buf53", LrsLastArg);
lrs_close_socket("socket23");
lrs_create_socket("socket24", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket24", "buf54", LrsLastArg);
lrs_receive("socket24", "buf55", LrsLastArg);
lrs_close_socket("socket24");
lrs_create_socket("socket25", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket25", "buf56", LrsLastArg);
lrs_receive("socket25", "buf57", LrsLastArg);
lrs_close_socket("socket25");
lrs_create_socket("socket26", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket26", "buf58", LrsLastArg);
lrs_receive("socket26", "buf59", LrsLastArg);
lrs_close_socket("socket26");
lrs_create_socket("socket27", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket27", "buf60", LrsLastArg);
lrs_receive("socket27", "buf61", LrsLastArg);
lrs_close_socket("socket27");
lrs_create_socket("socket28", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket28", "buf62", LrsLastArg);
lrs_receive("socket28", "buf63", LrsLastArg);
lrs_close_socket("socket28");
lrs_create_socket("socket29", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket29", "buf64", LrsLastArg);
lrs_receive("socket29", "buf65", LrsLastArg);
lrs_close_socket("socket29");
lrs_create_socket("socket30", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket30", "buf66", LrsLastArg);
lrs_receive("socket30", "buf67", LrsLastArg);
lrs_close_socket("socket30");
lrs_create_socket("socket31", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket31", "buf68", LrsLastArg);
lrs_receive("socket31", "buf69", LrsLastArg);
lrs_close_socket("socket31");
lrs_create_socket("socket32", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket32", "buf70", LrsLastArg);
lrs_receive("socket32", "buf71", LrsLastArg);
lrs_close_socket("socket32");
lrs_create_socket("socket33", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_close_socket("socket0");
lrs_send("socket33", "buf72", LrsLastArg);
lrs_receive("socket33", "buf73", LrsLastArg);
lrs_close_socket("socket33");
lrs_create_socket("socket34", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket34", "buf74", LrsLastArg);
lrs_receive("socket34", "buf75", LrsLastArg);
lrs_close_socket("socket34");
lrs_create_socket("socket35", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket35", "buf76", LrsLastArg);
lrs_receive("socket35", "buf77", LrsLastArg);
lrs_close_socket("socket35");
lrs_create_socket("socket36", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket36", "buf78", LrsLastArg);
lrs_receive("socket36", "buf79", LrsLastArg);
lrs_close_socket("socket36");
lrs_create_socket("socket37", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket37", "buf80", LrsLastArg);
lrs_receive("socket37", "buf81", LrsLastArg);
lrs_close_socket("socket37");
lrs_create_socket("socket38", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket38", "buf82", LrsLastArg);
lrs_receive("socket38", "buf83", LrsLastArg);
lrs_close_socket("socket38");
lrs_create_socket("socket39", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket39", "buf84", LrsLastArg);
lrs_receive("socket39", "buf85", LrsLastArg);
lrs_close_socket("socket39");
lrs_create_socket("socket40", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket40", "buf86", LrsLastArg);
lrs_receive("socket40", "buf87", LrsLastArg);
lrs_close_socket("socket40");
lrs_create_socket("socket41", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket41", "buf88", LrsLastArg);
lrs_receive("socket41", "buf89", LrsLastArg);
lrs_close_socket("socket41");
lrs_create_socket("socket42", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket42", "buf90", LrsLastArg);
lrs_receive("socket42", "buf91", LrsLastArg);
lrs_close_socket("socket42");
lrs_create_socket("socket43", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:8080", LrsLastArg);
lrs_send("socket43", "buf92", LrsLastArg);
lrs_receive("socket43", "buf93", LrsLastArg);
lrs_send("socket43", "buf94", LrsLastArg);
lrs_receive("socket43", "buf95", LrsLastArg);
lr_think_time(4);
lrs_send("socket43", "buf96", LrsLastArg);
lrs_receive("socket43", "buf97", LrsLastArg);
lrs_create_socket("socket44", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket44", "buf98", LrsLastArg);
lrs_receive("socket44", "buf99", LrsLastArg);
lrs_close_socket("socket44");
lrs_create_socket("socket45", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket45", "buf100", LrsLastArg);
lrs_receive("socket45", "buf101", LrsLastArg);
lrs_close_socket("socket45");
lrs_create_socket("socket46", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket46", "buf102", LrsLastArg);
lrs_receive("socket46", "buf103", LrsLastArg);
lrs_close_socket("socket46");
lrs_create_socket("socket47", "TCP", "LocalHost=0", "RemoteHost=HYMAKE-3AF9F8DB:80", LrsLastArg);
lrs_send("socket47", "buf104", LrsLastArg);
lrs_receive("socket47", "buf105", LrsLastArg);
lrs_close_socket("socket47");
lr_end_transaction("download",LR_AUTO);
return 0;
}
页:
[1]