51Testing软件测试论坛

标题: 脚本中如何获取某个值 [打印本页]

作者: johnnysam    时间: 2010-7-14 11:26
标题: 脚本中如何获取某个值
web_submit_data("login.aspx",
                "Action=http://passport-office.urgamer.com/login.aspx",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://passport-office.urgamer.com/",
                "Snapshot=t4.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState2}", ENDITEM,
                "Name=__EVENTVALIDATION", "Value=/wEWBQKasMToDAKUj8fhDAK1qbSRCwKu9tTtBQKC3IeGDKqj+JHf1gpPbhZUHtjDs5GkJFec", ENDITEM,
                "Name=txtAccount", "Value=shenqiong", ENDITEM,
                "Name=txtPassword", "Value=shen1990", ENDITEM,
                "Name=txtValidate", "Value=7094", ENDITEM,
                "Name=btnLogin.x", "Value=51", ENDITEM,
                "Name=btnLogin.y", "Value=20", ENDITEM,
                EXTRARES,
                "Url=/App_Themes/images/left_08.jpg", "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx", ENDITEM,
                "Url=/App_Themes/images/left_11.jpg", "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx", ENDITEM,
                "Url=/App_Themes/images/left_09.jpg", "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx", ENDITEM,
                "Url=/App_Themes/images/left_12.jpg", "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx", ENDITEM,
                "Url=/App_Themes/images/news_10.jpg", "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx", ENDITEM,
                "Url=/App_Themes/images/login_15.jpg", "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx", ENDITEM,
                "Url=/App_Themes/images/login_14.jpg", "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx", ENDITEM,
                "Url=/App_Themes/images/icon/but_01.jpg", "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx", ENDITEM,
                "Url=/Captcha.aspx?no=1382337499", "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx", ENDITEM,
                "Url=/App_Themes/images/icon/leftMenu29_02.jpg", "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx", ENDITEM,
                LAST);

如何获取 txtAccount和txtPassword的值  用lr_log_message  输出
作者: 云层    时间: 2010-7-14 12:39
这是你输入的,只能参数化不能获得
作者: msnshow    时间: 2010-7-14 13:23
从你的数据库中查询




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