51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1962|回复: 2
打印 上一主题 下一主题

[原创] 单选项radio如何处理?

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2011-11-2 22:08:38 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
如果页面有10条记录,每条记录
我只想要选择其中一条进行处理(第一条是动态变化的)

录制了两变了(分别选择第一条记录和第二条记录),发现录制完成后,脚本几乎没什么不一样的地方。下面是我选择第二笔记录时候的录制情况:

web_submit_data("searchcancle2.jsf_2",
"Action=http://ip/trade/searchcancle2.jsf",
"Method=POST",
"RecContentType=text/html",
"Referer=http://ip/trade/searchcancle2.jsf",
"Snapshot=t6.inf",
"Mode=HTML",
ITEMDATA,
"Name=_eosFlowKey", "Value=3d1c40eb-792a-448b-9837-3857ffa76f5b.view0", ENDITEM,
"Name=_eosFlowDataContext", "Value=rO0ABXNyABFqYXZhLnV0aWwuSGFzaE1hcAUH2sHDFmDRAwACRgAKbG9hZEZhY3RvckkACXRocmVzaG9sZHhwP0AAAAAAAAx3CAAAABAAAAAAeA==", ENDITEM,
"Name=_eosFlowID", "Value=cn.ccb.cisfm.trade.pageflow.searchcancle.flow", ENDITEM,
"Name=_eosLastRequestURL", "Value=cn.ccb.cisfm.trade.pageflow.searchcancle.flow", ENDITEM,
"Name=_eosFlowAction", "Value=cancel", ENDITEM,
"Name=theform:repResults", "Value=", ENDITEM,
"Name=theform:invAcc", "Value=", ENDITEM,
"Name=theformrderNo", "Value=", ENDITEM,
"Name=theform:cancelBtn", "Value=撤   单", ENDITEM,
"Name=theform:itemsTable:page_begin", "Value=0", ENDITEM,
"Name=theform:itemsTable:page_count", "Value=918", ENDITEM,
"Name=theform:itemsTable:page_iscount", "Value=true", ENDITEM,
"Name=theform:itemsTable:page_length", "Value=10", ENDITEM,
"Name=theform:itemsTable:page_currentPage", "Value=1", ENDITEM,
"Name=theform:itemsTable_0:_id22", "Value=W", ENDITEM,
"Name=theform:itemsTable_0:_id46", "Value=Nov 1, 2011", ENDITEM,
"Name=radio", "Value=on", ENDITEM,
"Name=theform:itemsTable_1:_id22", "Value=O", ENDITEM,
"Name=theform:itemsTable_1:_id46", "Value=Nov 1, 2011", ENDITEM,
"Name=theform:itemsTable_2:_id22", "Value=O", ENDITEM,
"Name=theform:itemsTable_2:_id46", "Value=Nov 1, 2011", ENDITEM,
"Name=theform:itemsTable_3:_id22", "Value=O", ENDITEM,
"Name=theform:itemsTable_3:_id46", "Value=Nov 1, 2011", ENDITEM,
"Name=theform:itemsTable_4:_id22", "Value=O", ENDITEM,
"Name=theform:itemsTable_4:_id46", "Value=Nov 1, 2011", ENDITEM,
"Name=theform:itemsTable_5:_id22", "Value=O", ENDITEM,
"Name=theform:itemsTable_5:_id46", "Value=Nov 1, 2011", ENDITEM,
"Name=theform:itemsTable_6:_id22", "Value=O", ENDITEM,
"Name=theform:itemsTable_6:_id46", "Value=Nov 1, 2011", ENDITEM,
"Name=theform:itemsTable_7:_id22", "Value=O", ENDITEM,
"Name=theform:itemsTable_7:_id46", "Value=Nov 1, 2011", ENDITEM,
"Name=theform:itemsTable_8:_id22", "Value=O", ENDITEM,
"Name=theform:itemsTable_8:_id46", "Value=Nov 1, 2011", ENDITEM,
"Name=theform:itemsTable_9:_id22", "Value=O", ENDITEM,
"Name=theform:itemsTable_9:_id46", "Value=Nov 1, 2011", ENDITEM,
"Name=theform:isSelFlag", "Value=2663", ENDITEM,
"Name=theform_SUBMIT", "Value=1", ENDITEM,
"Name=autoScroll", "Value=", ENDITEM,
"Name=theform:_link_hidden_", "Value=", ENDITEM,
EXTRARES,
"Url=../supres/images/btn-bg.gif", ENDITEM,
"Url=../supres/images/sor_header.jpg", ENDITEM,
"Url=../supres/images/bottom.gif", ENDITEM,
LAST);
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2011-11-3 16:12:57 | 只看该作者
试一下参数化
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2011-11-4 16:40:33 | 只看该作者
肯定会有不同的 你用LR自带的对比工具 看一下把
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-6 13:36 , Processed in 0.072021 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表