51Testing软件测试论坛
标题:
请问如何获取录制的脚本中URL中的某个字段的值?
[打印本页]
作者:
erichhuang
时间:
2009-4-7 11:09
标题:
请问如何获取录制的脚本中URL中的某个字段的值?
这是脚本中的2段,现在想求助的是,如何获取第一段URL中的activeid的值(红色字部分),然后把这个值填充到第二段的activeid中(蓝色部分)
web_url("page_autopage_pop.asp_2",
"URL=http://localhost/test/page/page_autopage_pop.asp?bitsChild=true&pageid=1610712&
activeid=720
",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost/test/page/page_parentchildelevator.asp?",
"Snapshot=t129.inf",
"Mode=HTML",
EXTRARES,
"Url=../images/tab_r1.gif", "Referer=http://localhost/ttpass/page/page_parentchildelevator.asp?", ENDITEM,
LAST);
web_submit_data("page_autopage_pop.asp_3",
"Action=http://localhost/test/page/page_autopage_pop.asp?bitsChild=true&pageid=1610712&
activeid=720
",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost/test/page/page_autopage_pop.asp?",
"Snapshot=t130.inf",
"Mode=HTML",
ITEMDATA,
"Name=bitsMTact1", "Value=addnew", ENDITEM,
"Name=bitsMTstr1", "Value=", ENDITEM,
LAST);
作者:
erichhuang
时间:
2009-4-7 11:40
自己顶下,在线等~~~
作者:
云层
时间:
2009-4-7 12:36
关联
作者:
erichhuang
时间:
2009-4-7 14:51
ok,已用手工关联搞定~谢谢
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2