51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2001|回复: 3
打印 上一主题 下一主题

[原创] 谁发个CS软件测试案例来看看,我的测试数据。

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2007-8-20 10:40:19 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
谁发个例如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;
}
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2007-8-23 19:04:51 | 只看该作者
在data.ws里。
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2007-8-30 09:58:33 | 只看该作者
iiii
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2011-9-5 17:08:53 | 只看该作者
学习了
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-10-6 22:22 , Processed in 0.093048 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表