TA的每日心情 | 开心 2014-11-11 09:38 |
---|
签到天数: 2 天 连续签到: 2 天 [LV.1]测试小兵
|
我要测试一个类似QQ和MSN的局域网通讯软件
Openfire(服务器) 和 Spark(客户端)都是用JAVA 开发的
用sniffer抓包,发现之间通讯使用的是TCP协议
用LoadRunner的Sockets协议录制Spark
Spark 登陆后LoadRunner出现错误
自动退出
用Sockets 和Http两个协议录制时
有代码产生,但回放不成功
也没有错误提示
——————Action内容————————
Action()
{
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=172.16.14.100:5222", 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_receive("socket0", "buf7", LrsLastArg);
lrs_send("socket0", "buf8", LrsLastArg);
lrs_receive("socket0", "buf9", LrsLastArg);
lrs_send("socket0", "buf10", LrsLastArg);
lrs_receive("socket0", "buf11", LrsLastArg);
lrs_send("socket0", "buf12", LrsLastArg);
lrs_receive("socket0", "buf13", LrsLastArg);
lrs_send("socket0", "buf14", LrsLastArg);
lrs_receive("socket0", "buf15", LrsLastArg);
lrs_send("socket0", "buf16", LrsLastArg);
lrs_receive("socket0", "buf17", LrsLastArg);
lrs_send("socket0", "buf18", LrsLastArg);
lrs_receive("socket0", "buf19", LrsLastArg);
lrs_send("socket0", "buf20", LrsLastArg);
lrs_receive("socket0", "buf21", LrsLastArg);
lrs_send("socket0", "buf22", LrsLastArg);
lrs_receive("socket0", "buf23", LrsLastArg);
lrs_send("socket0", "buf24", LrsLastArg);
lrs_receive("socket0", "buf25", LrsLastArg);
lrs_send("socket0", "buf26", LrsLastArg);
lrs_receive("socket0", "buf27", LrsLastArg);
lrs_send("socket0", "buf28", LrsLastArg);
lrs_receive("socket0", "buf29", LrsLastArg);
lrs_send("socket0", "buf30", LrsLastArg);
lrs_receive("socket0", "buf31", LrsLastArg);
lrs_send("socket0", "buf32", LrsLastArg);
lrs_receive("socket0", "buf33", LrsLastArg);
lrs_send("socket0", "buf34", LrsLastArg);
lrs_receive("socket0", "buf35", LrsLastArg);
lrs_send("socket0", "buf36", LrsLastArg);
lrs_receive("socket0", "buf37", LrsLastArg);
lrs_send("socket0", "buf38", LrsLastArg);
lrs_receive("socket0", "buf39", LrsLastArg);
lrs_send("socket0", "buf40", LrsLastArg);
lrs_receive("socket0", "buf41", LrsLastArg);
lrs_send("socket0", "buf42", LrsLastArg);
lrs_receive("socket0", "buf43", LrsLastArg);
lrs_send("socket0", "buf44", LrsLastArg);
lrs_receive("socket0", "buf45", LrsLastArg);
lrs_send("socket0", "buf46", LrsLastArg);
lrs_receive("socket0", "buf47", LrsLastArg);
lrs_send("socket0", "buf48", LrsLastArg);
lrs_receive("socket0", "buf49", LrsLastArg);
lrs_send("socket0", "buf50", LrsLastArg);
lrs_receive("socket0", "buf51", LrsLastArg);
lrs_send("socket0", "buf52", LrsLastArg);
lrs_receive("socket0", "buf53", LrsLastArg);
lrs_send("socket0", "buf54", LrsLastArg);
lrs_receive("socket0", "buf55", LrsLastArg);
lrs_send("socket0", "buf56", LrsLastArg);
lrs_receive("socket0", "buf57", LrsLastArg);
lrs_send("socket0", "buf58", LrsLastArg);
lrs_receive("socket0", "buf59", LrsLastArg);
lrs_send("socket0", "buf60", LrsLastArg);
lrs_receive("socket0", "buf61", LrsLastArg);
lrs_close_socket("socket0");
return 0;
———data.vs内容—————
;WSRData 2 1
send buf0 118
"<stream:stream to=\"172.16.14.100\" xmlns=\"jabber:client\" xmlns:stream=\""
"http://etherx.jabber.org/streams\" version=\"1.0\">"
recv buf1 672
"<?xml version='1.0' encoding='UTF-8'?><stream:stream xmlns:stream=\"http:/"
"/etherx.jabber.org/streams\" xmlns=\"jabber:client\" from=\"172.16.14.100\""
" id=\"21b3ac33\" xml:lang=\"en\" version=\"1.0\"><stream:features><starttl"
"s xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"></starttls><mechanisms xmlns=\""
"urn:ietf:params:xml:ns:xmpp-sasl\"><mechanism>DIGEST-MD5</mechanism><mecha"
"nism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism><mechanism>CRAM-MD5<"
"/mechanism></mechanisms><compression xmlns=\"http://jabber.org/features/co"
"mpress\"><method>zlib</method></compression><auth xmlns=\"http://jabber.or"
"g/features/iq-auth\"/><register xmlns=\"http://jabber.org/features/iq-regi"
"ster\"/></stream:features>"
send buf2 51
"<starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"/>"
recv buf3 50
"<proceed xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"/>"
send buf4 100
"\x80"
"b"
"\x01\x03\x01\x00"
"9"
"\x00\x00\x00"
" "
"\x00\x00\x04\x01\x00\x80\x00\x00\x05\x00\x00"
"/"
"\x00\x00"
"3"
"\x00\x00"
"2"
"\x00\x00"
"\n"
"\a"
"\x00\xc0\x00\x00\x16\x00\x00\x13\x00\x00"
"\t"
"\x06\x00"
"@"
"\x00\x00\x15\x00\x00\x12\x00\x00\x03\x02\x00\x80\x00\x00"
"\b"
"\x00\x00\x14\x00\x00\x11"
"G}臻祴"
"\x13"
"薍]け嬟譌vl竦H曃"
"\xd3\x1f"
"4("
"\x10"
recv buf5 570
"\x16\x03\x01\x02"
"5"
"\x02\x00\x00"
"F"
"\x03\x01"
"G}臻"
"\x0e"
"w 敁砉谛觇"
"\xf5\x12"
"\"n橇"
"\x15"
"玛el/\n"
"滝"
"\x16"
"M G}臻犂u粀"
"\xaf"
"\"贂"
"\x12"
"饱Wl轸珢"
"\xb3"
"'\r猒%D^檔"
"\x00\x04\x00"
"\v"
"\x00\x01\xe3\x00\x01\xe0\x00\x01\xdd"
"0"
"\x82\x01\xd9"
"0"
"\x82\x01"
"B"
"\xa0\x03\x02\x01\x02\x02"
"\b|尖"
"\x99"
"'"
"\xea"
"0\r"
"\x06"
"\t*咹嗺\r"
"\x01\x01\x04\x05\x00"
"0"
"\x18"
"1"
"\x16"
"0"
"\x14\x06\x03"
"U"
"\x04\x03"
"\f\r172.16.14.1000"
"\x1e\x17"
"\r080102092800Z"
"\x17"
"\r121206092800Z0"
"\x18"
"1"
"\x16"
"0"
"\x14\x06\x03"
"U"
"\x04\x03"
"\f\r172.16.14.1000仧0\r"
"\x06"
"\t*咹嗺\r"
"\x01\x01\x01\x05\x00\x03"
"亶"
"\x00"
"0亯"
"\x02"
"亖"
"\x00\xb2\x0e"
"じ97#"
"\x84"
":"
"\x1c"
"碞Dcm"
"\x14"
"\tng"
"\x89"
";躸d赏"
"\xbb"
".Rj迤f6.o艞閪"
"\x06\x19"
"\a旽"
"\xa4"
"\r拲z灰"
"\xaf"
"<a薩[柇R\r犺恐b溶7n"
"\x9e\x1c\xed"
"\v韦\\"
"\x85"
"?"
"\x92"
"(!挍柫'\t^繐徾詝課"
"\xac"
"(YE幛噣Y"
"\x05"
"`&="
"\x1a"
"G"
"\x1c"
"羪孤棱"
"\xab"
"(醿"
"\x02\x03\x01\x00\x01\xa3"
",0*0("
"\x06\x03"
"U"
"\x1d\x11\x04"
"!0"
"\x1f\xa0\x1d\x06"
"\b+"
"\x06\x01\x05\x05"
"\a\b"
"\x05\xa0\x11"
"\f"
"\x0f"
"*.172.16.14.1000\r"
"\x06"
"\t*咹嗺\r"
"\x01\x01\x04\x05\x00\x03"
"亖"
"\x00\x1c"
"'"
"\xa5\x12"
"]c"
"\xf2"
"\n"
"癣豿蓋U"
"\x91\x10"
"lz6l"
"\xb6"
"\f\\"
"\xc3\xff"
"Y恣灯,伃婫涋蟖獚喝y伂q抆"
"\x1b"
"8U綹u劰h誰特"
"\x8b"
" 9c&v"
"\x0f"
"e玙"
"\x1b"
"茆Q"
"\xd5"
"<裋朸"
"\x80"
"闂擊"
"\x1f"
"B"
"\xca"
"1景鼴竭V.v"
"\x05"
"\v"
"\x96\x18"
"麜M位嶼NgH"
"\x9e"
"$;"
"\x88"
"?A绀BU"
"\x0e\x00\x00\x00"
…… |
|