51Testing软件测试论坛
标题:
如何获得web_submit_form中ITEMDATA下数据的条数
[打印本页]
作者:
achang21
时间:
2008-6-29 16:59
标题:
如何获得web_submit_form中ITEMDATA下数据的条数
web_submit_form代码如下:
web_submit_form("itinerary.pl",
"Snapshot=t4.inf",
ITEMDATA,
"Name=1", "Value=on", ENDITEM,
"Name=2", "Value=<OFF>", ENDITEM,
"Name=3", "Value=<OFF>", ENDITEM,
"Name=4", "Value=<OFF>", ENDITEM,
"Name=5", "Value=<OFF>", ENDITEM,
"Name=6", "Value=<OFF>", ENDITEM,
"Name=7", "Value=<OFF>", ENDITEM,
"Name=8", "Value=<OFF>", ENDITEM,
"Name=9", "Value=<OFF>", ENDITEM,
"Name=10", "Value=<OFF>", ENDITEM,
"Name=11", "Value=<OFF>", ENDITEM,
"Name=12", "Value=<OFF>", ENDITEM,
"Name=13", "Value=<OFF>", ENDITEM,
"Name=14", "Value=<OFF>", ENDITEM,
"Name=15", "Value=<OFF>", ENDITEM,
"Name=removeFlights.x", "Value=143", ENDITEM,
"Name=removeFlights.y", "Value=14", ENDITEM,
LAST);
现在ITEMDATA下面有
15
条,我想动态的获得ITEMDATA中数据的条数,然后在确定那一条value=<on>,请问大家这一块怎么实现?希望得到大家的帮助,我先谢谢各位了!
作者:
云层
时间:
2008-6-30 13:03
=。=直接看html的表单怎么做的或者参数怎么给的,对一下就知道了
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2