51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 2165|回复: 1
打印 上一主题 下一主题

各位路过的大神大虾,人多力量大,求帮助,关联详细设置、、、

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2014-12-9 16:47:53 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我录制了两份脚本,都哪里需要做关联,求赐教
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2014-12-9 17:06:37 | 只看该作者

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云学习平台",
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-5-8 11:27 , Processed in 0.063893 second(s), 22 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表