51Testing软件测试论坛

标题: 各位路过的大神大虾,人多力量大,求帮助,关联详细设置、、、 [打印本页]

作者: 512benum1    时间: 2014-12-9 16:47
标题: 各位路过的大神大虾,人多力量大,求帮助,关联详细设置、、、
我录制了两份脚本,都哪里需要做关联,求赐教
作者: 512benum1    时间: 2014-12-9 17:06

web_add_cookie("_webim_cookie_2000000026000000034=%7B%22o%22%3Afalse%2C%22s%22%3A%22available%22%7D; DOMAIN=www.meixuego.com");
2000000026000000034应该做关联
放在哪里呢?上面是以下函数:Action()
{

        web_reg_find("Text=欢迎光临",
                LAST);

        web_url("indexm",
                "URL=http://www.meixuego.com/iplat/indexm?nextpage=bp/index",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=static/images/ba.png", "Referer=http://www.meixuego.com/iplat/indexm?nextpage=bp/index", ENDITEM,
                "Url=static/images/bgmid.png", "Referer=http://www.meixuego.com/iplat/indexm?nextpage=bp/index", ENDITEM,
                "Url=static/images/bgfoot.png", "Referer=http://www.meixuego.com/iplat/indexm?nextpage=bp/index", ENDITEM,
                "Url=static/images/dian.png", "Referer=http://www.meixuego.com/iplat/indexm?nextpage=bp/index", ENDITEM,
                "Url=static/images/bgtop.png", "Referer=http://www.meixuego.com/iplat/indexm?nextpage=bp/index", ENDITEM,
                "Url=static/images/sg.png", "Referer=http://www.meixuego.com/iplat/indexm?nextpage=bp/index", ENDITEM,
                "Url=static/images/dbtn.png", "Referer=http://www.meixuego.com/iplat/indexm?nextpage=bp/index", ENDITEM,
                LAST);

        lr_think_time(4);

        web_url("login",
                "URL=http://cycore.meixuego.com:9080/sso/login?service=http%3A%2F%2Fwww.meixuego.com%2Fiplat%2Fssoservice&callback=jQuery19107243451154825111_1418115671607&_=1418115671608",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://www.meixuego.com/iplat/indexm?nextpage=bp/index",
                "Snapshot=t2.inf",
                "Mode=HTML",
                LAST);

        web_url("login_2",
                "URL=http://cycore.meixuego.com:9080/sso/login?service=http%3A%2F%2Fwww.meixuego.com%2Fiplat%2Fssoservice&callback=jQuery19107243451154825111_1418115671607&username=201410166&password=123456&sourceappname=iflyportal%2Ciflyportal&key=login_name&_eventId=submit&lt=LT-33561-eynC4Yyu7w0wnul7ySWHXnRDadtIPW&execution=e1s1&_=1418115671609",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://www.meixuego.com/iplat/indexm?nextpage=bp/index",
                "Snapshot=t3.inf",
                "Mode=HTML",
                LAST);

        web_submit_data("ssoservice",
                "Action=http://www.meixuego.com/iplat/ssoservice",
                "Method=POST",
                "Referer=http://www.meixuego.com/iplat/indexm?nextpage=bp/index",
                "Snapshot=t4.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=action", "Value=login", ENDITEM,
                "Name=username", "Value=201410166", ENDITEM,
                "Name=password", "Value=123456", ENDITEM,
                "Name=ticket", "Value=ST-9240-mA4dBQPjXTaeGEAhKQ2N-sso.cycore.cn", ENDITEM,
                "Name=tgt_cache", "Value=TGT-3424-t2vqoTfyg9fIXldo4ndN5RGW1ucffSoTMqlIgc0IJxYf1ebOQe-sso.cycore.cn", ENDITEM,
                LAST);

        web_add_cookie("sel_nav=sy; DOMAIN=www.meixuego.com");

        web_reg_find("Text=FiF云学习平台",




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