|
谁发个例如QQ软件测试的测试例子来看一下呀?
我测的数据时录的脚本
不知道在那儿设置参数了。
/*********************************************************************
* Created by Mercury Interactive Windows Sockets Recorder
*
* Created on: Fri Aug 17 14:52:53
*********************************************************************/
#include "lrs.h"
Action()
{
lrs_receive("socket5", "buf37", LrsLastArg);
lrs_send("socket6", "buf38", LrsLastArg);
lrs_receive("socket6", "buf39", LrsLastArg);
lrs_send("socket7", "buf40", LrsLastArg);
lrs_send("socket6", "buf41", LrsLastArg);
lrs_receive("socket7", "buf42", LrsLastArg);
lrs_receive("socket5", "buf43", LrsLastArg);
lrs_receive("socket6", "buf44", LrsLastArg);
lrs_receive("socket5", "buf45", LrsLastArg);
lrs_send("socket0", "buf46", LrsLastArg);
lrs_receive("socket5", "buf47", LrsLastArg);
lrs_send("socket0", "buf48", LrsLastArg);
lrs_receive("socket5", "buf49", LrsLastArg);
lrs_create_socket("socket8", "TCP", "RemoteHost=202.104.147.XX:XX", LrsLastArg);
lrs_send("socket8", "buf50", LrsLastArg);
lrs_receive("socket8", "buf51", LrsLastArg);
lrs_disable_socket("socket8", DISABLE_SEND_RECV);
lrs_close_socket("socket8");
lrs_create_socket("socket9", "TCP", "RemoteHost=202.104.147.xx:xx", LrsLastArg);
lrs_send("socket9", "buf52", LrsLastArg);
lrs_receive("socket9", "buf53", LrsLastArg);
lrs_receive("socket5", "buf54", LrsLastArg);
lrs_receive("socket9", "buf55", LrsLastArg);
lrs_receive("socket5", "buf56", LrsLastArg);
lrs_send("socket0", "buf57", LrsLastArg);
lrs_receive("socket5", "buf58", LrsLastArg);
lrs_receive("socket9", "buf59", LrsLastArg);
lrs_disable_socket("socket9", DISABLE_SEND_RECV);
lrs_close_socket("socket9");
lrs_create_socket("socket10", "TCP", "RemoteHost=202.104.147.xx:xx", LrsLastArg);
lrs_send("socket10", "buf60", LrsLastArg);
lrs_receive("socket5", "buf61", LrsLastArg);
lrs_receive("socket10", "buf62", LrsLastArg);
lrs_disable_socket("socket10", DISABLE_SEND_RECV);
lrs_close_socket("socket10");
lrs_receive("socket5", "buf63", LrsLastArg);
lrs_send("socket7", "buf64", LrsLastArg);
lrs_receive("socket5", "buf65", LrsLastArg);
lrs_receive("socket7", "buf66", LrsLastArg);
lrs_receive("socket5", "buf67", LrsLastArg);
lrs_receive("socket7", "buf68", LrsLastArg);
lrs_send("socket6", "buf69", LrsLastArg);
lrs_receive("socket6", "buf70", LrsLastArg);
lrs_send("socket6", "buf71", LrsLastArg);
lrs_receive("socket6", "buf72", LrsLastArg);
lrs_receive("socket5", "buf73", LrsLastArg);
lrs_send("socket0", "buf74", LrsLastArg);
lrs_receive("socket5", "buf75", LrsLastArg);
lrs_receive("socket7", "buf76", LrsLastArg);
lrs_receive("socket0", "buf77", LrsLastArg);
lrs_receive("socket5", "buf78", LrsLastArg);
lrs_create_socket("socket11", "TCP", "RemoteHost=202.104.147.xx:xx", LrsLastArg);
lrs_send("socket11", "buf79", LrsLastArg);
lrs_receive("socket11", "buf80", LrsLastArg);
lrs_receive("socket5", "buf81", LrsLastArg);
lrs_receive("socket11", "buf82", LrsLastArg);
lrs_disable_socket("socket11", DISABLE_SEND_RECV);
lrs_close_socket("socket11");
lrs_create_socket("socket12", "TCP", "RemoteHost=202.104.147.xx:xx", LrsLastArg);
lrs_send("socket12", "buf83", LrsLastArg);
lrs_receive("socket12", "buf84", LrsLastArg);
lrs_disable_socket("socket12", DISABLE_SEND_RECV);
lrs_close_socket("socket12");
lrs_receive("socket5", "buf85", LrsLastArg);
lrs_send("socket0", "buf86", LrsLastArg);
lrs_receive("socket5", "buf87", LrsLastArg);
lrs_send("socket0", "buf88", LrsLastArg);
lrs_receive("socket5", "buf89", LrsLastArg);
lrs_receive("socket0", "buf90", LrsLastArg);
lrs_receive("socket5", "buf91", LrsLastArg);
lrs_receive("socket0", "buf92", LrsLastArg);
lrs_receive("socket5", "buf93", LrsLastArg);
lrs_send("socket6", "buf94", LrsLastArg);
lrs_receive("socket6", "buf95", LrsLastArg);
lrs_receive("socket5", "buf96", LrsLastArg);
lrs_send("socket7", "buf97", LrsLastArg);
lrs_receive("socket7", "buf98", LrsLastArg);
lrs_send("socket6", "buf99", LrsLastArg);
lrs_receive("socket6", "buf100", LrsLastArg);
lrs_receive("socket5", "buf101", LrsLastArg);
lrs_send("socket0", "buf102", LrsLastArg);
lrs_receive("socket5", "buf103", LrsLastArg);
lrs_send("socket0", "buf104", LrsLastArg);
lrs_receive("socket5", "buf105", LrsLastArg);
lrs_send("socket7", "buf106", LrsLastArg);
lrs_receive("socket5", "buf107", LrsLastArg);
lrs_receive("socket7", "buf108", LrsLastArg);
lrs_receive("socket5", "buf109", LrsLastArg);
lrs_receive("socket7", "buf110", LrsLastArg);
lrs_send("socket6", "buf111", LrsLastArg);
lrs_receive("socket6", "buf112", LrsLastArg);
lrs_send("socket6", "buf113", LrsLastArg);
lrs_receive("socket6", "buf114", LrsLastArg);
lrs_receive("socket7", "buf115", LrsLastArg);
lrs_receive("socket5", "buf116", LrsLastArg);
lrs_receive("socket0", "buf117", LrsLastArg);
lrs_receive("socket5", "buf118", LrsLastArg);
lrs_receive("socket0", "buf119", LrsLastArg);
lr_end_transaction("结果", LR_AUTO);
lrs_receive("socket5", "buf120", LrsLastArg);
lrs_send("socket0", "buf121", LrsLastArg);
lrs_receive("socket5", "buf122", LrsLastArg);
lrs_close_socket("socket5");
lrs_disable_socket("socket0", DISABLE_SEND);
lrs_close_socket("socket0");
return 0;
} |
|