51Testing软件测试论坛

标题: 求且lr关联不到数据 [打印本页]

作者: zbjie    时间: 2012-11-12 15:57
标题: 求且lr关联不到数据
脚本格式如下

action()
{web_reg_save_param_ex(
    "ParamName=newParam",
    "LB/IC={",
    "RB/IC=}",
    "Ordinal=all",
    "SaveLen=-1",
    "DFEs=UrlEncoding",
    SEARCHFILTERS,
        "Scope=body",
LAST);
web_submit_data("default.aspx_2",
                "Action=http://i.XXXXXX/_forms/default.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252F&Source=%2F",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://i.XXXXXX/_forms/default.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252F&Source=%2F",
                "Snapshot=t3.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=__LASTFOCUS", "Value=", ENDITEM,
                "Name=__EVENTTARGET", "Value=", ENDITEM,
                "Name=__EVENTARGUMENT", "Value=", ENDITEM,
                "Name=__VIEWSTATE",
"Name=ctl00$PlaceHolderMain$signInControl$UserName", "Value=shaoqsxt", ENDITEM,
                "Name=ctl00$PlaceHolderMain$signInControl$password", "Value=888888", ENDITEM,
                "Name=ctl00$PlaceHolderMain$signInControl$bottom1", "Value=", ENDITEM,
                "Name=__spText1", "Value=", ENDITEM,
                "Name=__spText2", "Value=", ENDITEM,
                EXTRARES,
...
Url=../_layouts/hntobacco/ExchangeService/GetScheduleList.aspx?name=icss&pwd=icss833", "Referer=http://i.XXXXXX/default_gl.aspx", ENDITEM,
LAST
}

需要关联的数据是在EXTRARES后面的请求中,返回的数据格式是json格式,这类数据怎么关联。小弟需要的是json数据中的其中一段。
作者: zbjie    时间: 2012-11-12 17:59
研究了一下午,解决了。




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