TA的每日心情 | 无聊 2014-12-23 09:46 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
大家好 我是个LR初学者,在测rtsp的时候遇到一些问题,也上网查了很多资料,但是好像都没有用。想请大家帮帮忙,帮我看看到底是哪里出了错。还希望大家说的详细点,小妹在这里先谢过了~
我选的是winsocket,然后录制用Windows Media player 打开一段用Windows Media Service发布的rtsp的流媒体。
不管运行多少个vu都会100% fail,出现同样数量的error:Action.c(12): Error : Timeout expired while trying to connect. Error code : 9017
我在Controller里选择的是load all vu simultaneously、run until completion,并选中initialized all vu before run
之后直接start scenario 结果就会全部fail。
请大家帮帮忙吧,不胜感激!
下面是我录制的脚本
/*********************************************************************
* Created by Mercury Interactive Windows Sockets Recorder
*
* Created on: Thu Jun 04 13:55:26
*********************************************************************/
#include "lrs.h"
Action()
{
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=xue5vifulmlrgpm.domain:554", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_send("socket0", "buf2", LrsLastArg);
lrs_receive("socket0", "buf3", LrsLastArg);
lrs_create_socket("socket1", "UDP", "LocalHost=1667", "RemoteHost=xue5vifulmlrgpm.domain:5005", LrsLastArg);
lrs_create_socket("socket2", "UDP", "LocalHost=0", LrsLastArg);
lrs_send("socket0", "buf4", LrsLastArg);
lrs_receive("socket2", "buf5", LrsLastArg);
lrs_create_socket("socket3", "TCP", "LocalHost=0", "RemoteHost=207.46.250.101:80", LrsLastArg);
lrs_send("socket3", "buf6", LrsLastArg);
lrs_send("socket0", "buf7", LrsLastArg);
lrs_receive("socket0", "buf8", LrsLastArg);
lrs_send("socket0", "buf9", LrsLastArg);
lrs_receive("socket0", "buf10", LrsLastArg);
lrs_send("socket0", "buf11", LrsLastArg);
lrs_receive("socket0", "buf12", LrsLastArg);
lrs_send("socket0", "buf13", LrsLastArg);
lrs_receive("socket0", "buf14", LrsLastArg);
lrs_receive("socket3", "buf15", LrsLastArg);
lrs_close_socket("socket3");
lrs_receive("socket0", "buf16", LrsLastArg);
lrs_create_socket("socket4", "TCP", "LocalHost=0", "RemoteHost=207.46.250.101:80", LrsLastArg);
lrs_receive("socket0", "buf17", LrsLastArg);
lrs_create_socket("socket5", "TCP", "LocalHost=0", "RemoteHost=210.51.19.247:80", LrsLastArg);
lrs_create_socket("socket6", "TCP", "LocalHost=0", "RemoteHost=bt-199-035.bta.net.cn:80", LrsLastArg);
lrs_create_socket("socket7", "TCP", "LocalHost=0", "RemoteHost=60.28.162.239:80", LrsLastArg);
lrs_receive("socket0", "buf18", LrsLastArg);
lrs_send("socket5", "buf19", LrsLastArg);
lrs_receive("socket0", "buf20", LrsLastArg);
lrs_send("socket4", "buf21", LrsLastArg);
lrs_send("socket6", "buf22", LrsLastArg);
lrs_receive("socket0", "buf23", LrsLastArg);
lrs_receive("socket5", "buf24", LrsLastArg);
lrs_receive("socket0", "buf25", LrsLastArg);
lrs_receive("socket6", "buf26", LrsLastArg);
lrs_close_socket("socket6");
lrs_receive("socket4", "buf27", LrsLastArg);
lrs_close_socket("socket4");
lrs_receive("socket0", "buf28", LrsLastArg);
lrs_send("socket7", "buf29", LrsLastArg);
lrs_receive("socket0", "buf30", LrsLastArg);
lrs_receive("socket7", "buf31", LrsLastArg);
lrs_receive("socket0", "buf32", LrsLastArg);
return 0;
} |
|