51Testing软件测试论坛
标题:
帮忙分析一段代码
[打印本页]
作者:
zhaoch
时间:
2006-4-14 10:59
标题:
帮忙分析一段代码
知道可能是应该参数化,但不知该自怎么改了,,请帮帮忙,应该怎么改改呢?非常感谢!
Action()
{
/* Registering parameter(s) from source task id 71
// {Siebel_Analytic_ViewState10} = "dDw0MDc4MDIzMTk7dDw7bDxpPDE+Oz47bDx0PDtsPGk8Mz47aTw1PjtpPDc+O2k8OT47PjtsPHQ8QDA8cDxwPGw8UGFnZUNvdW50O18hSXRlbUNvdW50O18hRGF0YVNvdXJjZUl0ZW1Db3VudDtEYXRhS2V5czs+O2w8aTwxPjtpPDE+O2k8MT47bDw1OjMzNzEyOz47Pj47Pjs7Ozs7Ozs7Ozs+O2w8aTwwPjs+O2w8dDw7bDxpPDE+Oz47bDx0PDtsPGk8MD47aTwxPjtpPDI+O2k8M
Sample Text
z47PjtsPHQ8cDxwPGw8VGV4dDs+O2w8MDE7Pj47Pjs7Pjt0PDtsPGk8MD47PjtsPHQ8cDxwPGw8VGV4dDtOYXZpZ2F0ZVVybDs+O2w85rW35bCUQjJC57O757uf5paw5aKe5Yqf6IO95LuL57uNO05ld3NJbmZvLmFzcHg/Um9vdElkPTU6MzM3MTI7Pj47Pjs7Pjs+Pjt0PHA8cDxsPFRleHQ7PjtsPOi1teaYpee6ojs+Pjs+Ozs+O3Q8cDxwPGw8VGV4dDs+O2w8MjAwNi0wNC0xMjs+Pjs+Ozs+Oz4+Oz4+Oz4+O3Q8cDxwPGw8VGV4dDs+O2w8MS8xOz4+Oz47Oz47dDxwPHA8bDxUZXh0Oz47bDwxOz4+Oz47Oz47dDxwPHA8bDxSZWNvcmRjb3VudDs+O2w8aTwxPjs+Pjs+Ozs+Oz4+Oz4+O2w8YnRuQXBwZW5kOz4+i1KoIvC0/6nXe0QvK63kDNrnRsw="
// */
web_set_max_html_param_len("80000");
web_reg_save_param("Siebel_Analytic_ViewState10",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
lr_think_time(9);
web_url("NewsList.aspx",
"URL=http://187.186.0.72/ComputerFitApp/GUI/News/NewsList.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=http://187.186.0.72/ComputerFitApp/GUI/Left.aspx",
"Snapshot=t13.inf",
"Mode=HTTP",
LAST);
web_url("steel_new.gif",
"URL=http://187.186.0.72/ComputerFitApp/GUI/images/buttons/steel_new.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://187.186.0.72/ComputerFitApp/GUI/News/NewsList.aspx",
LAST);
/* Registering parameter(s) from source task id 74
// {Siebel_Analytic_ViewState12} = "dDw0Mjc2NTA1NjQ7dDw7bDxpPDE+Oz47bDx0PDtsPGk8NT47aTw5Pjs+O2w8dDx0PDt0PGk8MT47QDzlhazlkYo7PjtAPDY6MjA7Pj47Pjs7Pjt0PHA8bDxWYWx1ZTs+O2w8XGU7Pj47Oz47Pj47Pj47bDxidG5PSzs+PueU3VK+ATtvbxqq6OeyCWALl3cp"
// */
web_reg_save_param("Siebel_Analytic_ViewState12",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_submit_data("NewsList.aspx_2",
"Action=http://187.186.0.72/ComputerFitApp/GUI/News/NewsList.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://187.186.0.72/ComputerFitApp/GUI/News/NewsList.aspx",
"Snapshot=t14.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__EVENTTARGET", "Value=Siebel_Analytic_ViewState12", ENDITEM,
"Name=__EVENTARGUMENT", "Value=Siebel_Analytic_ViewState12", ENDITEM,
//"Name=__VIEWSTATE", "Value=Siebel_Analytic_ViewState10", ENDITEM,
"Name=pageControl_input", "Value=1", ENDITEM,
"Name=btnAppend.x", "Value=26", ENDITEM,
"Name=btnAppend.y", "Value=9", ENDITEM,
LAST);
[
本帖最后由 zhaoch 于 2006-4-14 11:03 编辑
]
作者:
ilovejolly
时间:
2006-4-14 14:06
如果连自己要做什么都搞不清楚,那还有什么好问的呢
作者:
sunshine_luo
时间:
2006-4-14 14:09
web_submit_data("NewsList.aspx_2",
"Action=http://187.186.0.72/ComputerFitApp/GUI/News/NewsList.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://187.186.0.72/ComputerFitApp/GUI/News/NewsList.aspx",
"Snapshot=t14.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__EVENTTARGET", "Value={Siebel_Analytic_ViewState12}", ENDITEM,
"Name=__EVENTARGUMENT", "Value={Siebel_Analytic_ViewState12}", ENDITEM,
//"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState10}", ENDITEM,
"Name=pageControl_input", "Value=1", ENDITEM,
"Name=btnAppend.x", "Value=26", ENDITEM,
"Name=btnAppend.y", "Value=9", ENDITEM,
LAST);
作者:
zhaoch
时间:
2006-4-14 14:54
标题:
谢谢您sunshine_luo
sunshine_luo 谢谢您
作者:
zhaoch
时间:
2006-4-14 14:56
标题:
ilovejolly
也谢谢您ilovejolly!
作者:
fish_yy
时间:
2006-4-14 15:19
呵呵,好有礼貌的妹妹啊:)
作者:
savage
时间:
2006-4-14 15:36
呵呵,斑竹很有耐心啊!~``````````````
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2