51Testing软件测试论坛

标题: loadrunner11录制问题 [打印本页]

作者: xwx718    时间: 2011-7-26 15:19
标题: loadrunner11录制问题
我用loadrunner11测试我们公司用flash开发的游戏的性能测试,我只做简单的登录并发,但是,我录制的脚本里面怎么没有记录用户名和密码呢?请大家帮帮忙解决下以下是我录制的脚本,谢谢大家
Action()
{

        web_url("gameplayer",
                "URL=http://59.188.52.41/gameplayer",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=/gameplayer/Loader.swf", "Referer=http://59.188.52.41/gameplayer/", ENDITEM,
                "Url=/gameplayer/PlayerTerminal_11070601.swf?CLIENTADR=CHINA%20(CN)&CLIENTIP=113.76.80.176&", "Referer=http://59.188.52.41/gameplayer/Loader.swf", ENDITEM,
                LAST);

        web_url("Config.aspx",
                "URL=http://59.188.52.41/gameplayer/Config.aspx",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://59.188.52.41/gameplayer/PlayerTerminal_11070601.swf?CLIENTADR=CHINA (CN)&CLIENTIP=113.76.80.176&",
                "Snapshot=t2.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=http://59.188.52.41:8001/image/photo/110518145719c0e92.jpg", "Referer=http://59.188.52.41/gameplayer/PlayerTerminal_11070601.swf?CLIENTADR=CHINA (CN)&CLIENTIP=113.76.80.176&", ENDITEM,
                "Url=http://59.188.52.41:8001/image/photo/110518145450a25ef.jpg", "Referer=http://59.188.52.41/gameplayer/PlayerTerminal_11070601.swf?CLIENTADR=CHINA (CN)&CLIENTIP=113.76.80.176&", ENDITEM,
                "Url=http://59.188.52.41:8001/image/photo/1105181455074621f.jpg", "Referer=http://59.188.52.41/gameplayer/PlayerTerminal_11070601.swf?CLIENTADR=CHINA (CN)&CLIENTIP=113.76.80.176&", ENDITEM,
                "Url=http://59.188.52.41:8001/image/photo/1105181455452ab25.jpg", "Referer=http://59.188.52.41/gameplayer/PlayerTerminal_11070601.swf?CLIENTADR=CHINA (CN)&CLIENTIP=113.76.80.176&", ENDITEM,
                "Url=http://59.188.52.41:8001/image/photo/1107011509169445f.jpg", "Referer=http://59.188.52.41/gameplayer/PlayerTerminal_11070601.swf?CLIENTADR=CHINA (CN)&CLIENTIP=113.76.80.176&", ENDITEM,
                "Url=http://59.188.52.41:8001/image/photo/1107111442579f17e.jpg", "Referer=http://59.188.52.41/gameplayer/PlayerTerminal_11070601.swf?CLIENTADR=CHINA (CN)&CLIENTIP=113.76.80.176&", ENDITEM,
                "Url=http://59.188.52.41:8001/image/photo/1105181458481344d.jpg", "Referer=http://59.188.52.41/gameplayer/PlayerTerminal_11070601.swf?CLIENTADR=CHINA (CN)&CLIENTIP=113.76.80.176&", ENDITEM,
                "Url=http://59.188.52.41:8001/image/photo/1105181725577da73.jpg", "Referer=http://59.188.52.41/gameplayer/PlayerTerminal_11070601.swf?CLIENTADR=CHINA (CN)&CLIENTIP=113.76.80.176&", ENDITEM,
                "Url=http://59.188.52.41:8001/image/photo/1105181451027ef94.jpg", "Referer=http://59.188.52.41/gameplayer/PlayerTerminal_11070601.swf?CLIENTADR=CHINA (CN)&CLIENTIP=113.76.80.176&", ENDITEM,
                "Url=http://59.188.52.41:8001/image/photo/1105181458349616c.jpg", "Referer=http://59.188.52.41/gameplayer/PlayerTerminal_11070601.swf?CLIENTADR=CHINA (CN)&CLIENTIP=113.76.80.176&", ENDITEM,
                "Url=http://59.188.52.41:8001/image/photo/11042815265392282.JPG", "Referer=http://59.188.52.41/gameplayer/PlayerTerminal_11070601.swf?CLIENTADR=CHINA (CN)&CLIENTIP=113.76.80.176&", ENDITEM,
                "Url=http://59.188.52.41:8001/image/photo/1105181451367750a.jpg", "Referer=http://59.188.52.41/gameplayer/PlayerTerminal_11070601.swf?CLIENTADR=CHINA (CN)&CLIENTIP=113.76.80.176&", ENDITEM,
                "Url=http://59.188.52.41:8001/Image/male.jpg", "Referer=http://59.188.52.41/gameplayer/PlayerTerminal_11070601.swf?CLIENTADR=CHINA (CN)&CLIENTIP=113.76.80.176&", ENDITEM,
                "Url=http://59.188.52.41:8001/image/photo/1105181458003f41f.jpg", "Referer=http://59.188.52.41/gameplayer/PlayerTerminal_11070601.swf?CLIENTADR=CHINA (CN)&CLIENTIP=113.76.80.176&", ENDITEM,
                "Url=http://59.188.52.41:8001/image/photo/11051814543585633.jpg", "Referer=http://59.188.52.41/gameplayer/PlayerTerminal_11070601.swf?CLIENTADR=CHINA (CN)&CLIENTIP=113.76.80.176&", ENDITEM,
                "Url=http://59.188.52.41:8001/image/photo/110428152623aac60.jpg", "Referer=http://59.188.52.41/gameplayer/PlayerTerminal_11070601.swf?CLIENTADR=CHINA (CN)&CLIENTIP=113.76.80.176&", ENDITEM,
                "Url=http://59.188.52.41:8001/image/photo/1105181451567da07.jpg", "Referer=http://59.188.52.41/gameplayer/PlayerTerminal_11070601.swf?CLIENTADR=CHINA (CN)&CLIENTIP=113.76.80.176&", ENDITEM,
                "Url=http://59.188.52.41:8001/image/photo/11051814541613139.jpg", "Referer=http://59.188.52.41/gameplayer/PlayerTerminal_11070601.swf?CLIENTADR=CHINA (CN)&CLIENTIP=113.76.80.176&", ENDITEM,
                LAST);

        lr_think_time(4);

        web_url("gameplayer_2",
                "URL=http://59.188.52.41/gameplayer/",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t3.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=PlayerTerminal_11070601.swf?CLIENTIP=113.76.80.176&CLIENTADR=CHINA%20(CN)&", "Referer=http://59.188.52.41/gameplayer/Loader.swf", ENDITEM,
                LAST);

        web_url("Config.aspx_2",
                "URL=http://59.188.52.41/gameplayer/Config.aspx",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://59.188.52.41/gameplayer/PlayerTerminal_11070601.swf?CLIENTIP=113.76.80.176&CLIENTADR=CHINA (CN)&",
                "Snapshot=t4.inf",
                "Mode=HTML",
                LAST);

        return 0;
}
作者: 倾斜的太阳    时间: 2011-7-26 16:48
选择的什么协议? http? 还是flex协议,在录制flash应该选择flex协议




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2