51Testing软件测试论坛
标题:
怎样判断LR9.5正确录制了flex网站
[打印本页]
作者:
lotus850226
时间:
2009-12-12 16:42
标题:
怎样判断LR9.5正确录制了flex网站
请教一下怎样才算是正确地录制了flex网站?有没有什么标志性的标签或者什么的。摆脱了。
公司正在用flex开发一套系统,要做性能测试,听说LR9.5已经支持flex3.0,就拿来试一下。
因为公司的系统还没有开发完,只好去网上找个flex网站来做练习,可是录制下来的脚本action里面都没有flex_web_就是有关flex类似的标签,但是在recording summary里面说有detect到flex和web(http/HTML)protocals,我也不知道我的录制方法正不正确。。
我说一下我的录制方法:协议选择flex和web(http/HTML),在start recording 的option的protocols把AMF和flex和web(http/HTML)都选上,把flex code generation 的两个选项都选上,就是Encode externalizable object with LoadRunner parser和Encode AMF3 using external parser. 都选上,在Encode AMF3 using external parser.的value栏 连了flex-messaging-common.jar包(最担心的就是这个,一直都不太了解这里要连的是哪个开发包),就是这样。
请教一下怎样才算是正确地录制了flex网站?有没有什么标志性的标签或者什么的。
录制下来的Action脚本:
Action()
{
web_add_cookie("__utma=50987130.60446997.1260596892.1260596892.1260596892.1; DOMAIN=www.brightpointinc.com");
web_add_cookie("__utmz=50987130.1260596892.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); DOMAIN=www.brightpointinc.com");
web_url("googlefinance.html",
"URL=http://www.brightpointinc.com/flexdemos/googlefinance.html",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("AC_OETags.js",
"URL=http://www.brightpointinc.com/flexdemos/AC_OETags.js",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://www.brightpointinc.com/flexdemos/googlefinance.html",
"Snapshot=t2.inf",
LAST);
web_url("history.css",
"URL=http://www.brightpointinc.com/flexdemos/history/history.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://www.brightpointinc.com/flexdemos/googlefinance.html",
"Snapshot=t3.inf",
LAST);
web_url("history.js",
"URL=http://www.brightpointinc.com/flexdemos/history/history.js",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://www.brightpointinc.com/flexdemos/googlefinance.html",
"Snapshot=t4.inf",
LAST);
web_url("urchin.js",
"URL=http://www.google-analytics.com/urchin.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://www.brightpointinc.com/flexdemos/googlefinance.html",
"Snapshot=t5.inf",
LAST);
web_url("counter.js",
"URL=http://www.statcounter.com/counter/counter.js",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://www.brightpointinc.com/flexdemos/googlefinance.html",
"Snapshot=t8.inf",
LAST);
web_concurrent_end(NULL);
web_concurrent_start(NULL);
web_url("__utm.gif",
"URL=http://www.google-analytics.com/__utm.gif?utmwv=1.3&utmn=1471455676&utmcs=utf-8&utmsr=1280x960&utmsc=16-bit&utmul=en-us&utmje=0&utmfl=10.0%20r32&utmhn=www.brightpointinc.com&utmhid=277182152&utmr=-&utmp=/flexdemos/googlefinance.html&utmac=UA-173014-2&utmcc=__utma%3D50987130.60446997.1260596892.1260596892.1260600913.2%3B%2B__utmz%3D50987130.1260596892.1.1.utmccn%3D(direct)%7Cutmcsr%3D(direct)%7Cutmcmd%3D(none)%3B%2B",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://www.brightpointinc.com/flexdemos/googlefinance.html",
"Snapshot=t6.inf",
LAST);
web_add_header("x-flash-version",
"10,0,32,18");
web_url("GoogleFinance.swf",
"URL=http://www.brightpointinc.com/flexdemos/GoogleFinance.swf",
"Resource=1",
"RecContentType=application/x-shockwave-flash",
"Referer=http://www.brightpointinc.com/flexdemos/googlefinance.html",
"Snapshot=t7.inf",
LAST);
web_concurrent_end(NULL);
web_add_cookie("is_unique=sc4418289.1260432417.0-622215.1260596942.0; DOMAIN=c4.statcounter.com");
lr_think_time(6);
web_url("t.php",
"URL=http://c4.statcounter.com/t.php?sc_project=622215&resolution=1280&h=960&camefrom=&u=http%3A//www.brightpointinc.com/flexdemos/googlefinance.html&t=&java=1&security=67b0e8bc&sc_random=0.6437616456543773&sc_snum=1",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://www.brightpointinc.com/flexdemos/googlefinance.html",
"Snapshot=t9.inf",
LAST);
/* Request with GET method to URL "http://www.brightpointinc.com/favicon.ico" failed during recording. Server response : 404*/
web_add_auto_header("x-flash-version", "10,0,32,18");
web_reg_find("Text=Financial Statements for Adobe Systems Incorporated - Google Finance",
LAST);
web_url("company.html",
"URL=http://www.brightpointinc.com/flexdemos/data/company.html",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.brightpointinc.com/flexdemos/GoogleFinance.swf",
"Snapshot=t10.inf",
"Mode=HTTP",
LAST);
web_url("historical.csv",
"URL=http://www.brightpointinc.com/flexdemos/data/historical.csv",
"Resource=1",
"RecContentType=application/octet-stream",
"Referer=http://www.brightpointinc.com/flexdemos/GoogleFinance.swf",
"Snapshot=t11.inf",
LAST);
return 0;
}
作者:
云层
时间:
2009-12-12 17:19
你的这个做法是用http函数做flex模拟,但是其实并不是真的flex录制,所以函数都不一样的
作者:
lotus850226
时间:
2009-12-12 17:25
你的这个做法是用http函数做flex模拟,但是其实并不是真的flex录制,所以函数都不一样的
-----------------------
那请问要怎么做才是真的flex录制啊?
可不可以麻烦说一下具体做法呢
[
本帖最后由 lotus850226 于 2009-12-12 17:29 编辑
]
作者:
lotus850226
时间:
2009-12-14 10:30
上去
作者:
云层
时间:
2009-12-14 10:42
你试试看只用flex协议录制,录制出来应该是flex开头的函数
作者:
zhzh-0-0
时间:
2010-1-22 09:04
你这录制的什么业务,是登录吗?
没看见有amf request时的二进制序列啊
我选的协议和设置跟你一样,录制成功
只不过我的encoding包多用了一个flex_message_core.jar
作者:
巧克力溏溏
时间:
2010-1-25 16:00
有结果了吗
作者:
zhzh-0-0
时间:
2010-1-27 13:45
昨天发现如果recording options中选择支持utf8,录制就不正确,结果类似于lz的脚本,去掉utf8支持就正常了。
-------------------------------------------
但是现在发现在generation logs有
AMF warning: AMF: Fail to parse Externalizable object using server parser
请问哪位知道这是怎么回事???
作者:
叶如舟
时间:
2010-1-27 17:09
浮上来让高手瞄下。。。
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2