During playback, it cannot recognize the table_htmlTable_2_2().
To solve the problem, please refer to the following:
1. Open rational_ft.rftcust in the plugin install dir (should be: c:\program files\ibm\rational\sdp\6.0\functionaltester\eclipse\plugins\com.rational.test.ft.wswplugin_6.1.0)
2. Find the HTML proxy mapping for button:
...
<Obj L=".Proxy">
<ClassName>com.rational.test.ft.domain.html.PushbuttonProxy</ClassName>
<Replaces/>
<UsedBy>Html.INPUT.button</UsedBy>
<UsedBy>Html.INPUT.submit</UsedBy>
<UsedBy>Html.INPUT.reset</UsedBy>
<UsedBy>Html.INPUT.image</UsedBy>
<UsedBy>Html.BUTTON</UsedBy>
<UsedBy>Html.LABEL</UsedBy>
</Obj>
...
3. Add the mapping (UsedBy) for SPAN after the "BUTTON" entry and before the closing OBJ tag: <UsedBy>Html.SPAN</UsedBy>
4. Now it looks like:
<Obj L=".Proxy">
<ClassName>com.rational.test.ft.domain.html.PushbuttonProxy</ClassName>
<Replaces/>
<UsedBy>Html.INPUT.button</UsedBy>
<UsedBy>Html.INPUT.submit</UsedBy>
<UsedBy>Html.INPUT.reset</UsedBy>
<UsedBy>Html.INPUT.image</UsedBy>
<UsedBy>Html.BUTTON</UsedBy>
<UsedBy>Html.LABEL</UsedBy>
<UsedBy>Html.SPAN</UsedBy>
</Obj>
5. Make sure nothing RFT related is running (including enabled applications) because these settings are loaded in global memory so they won't apply until a full restart of RFT.作者: lovetest6 时间: 2007-11-20 15:44
这样DIV/SPAN等标记就能认识了。个人觉得其实也没什么意义。除非你的开发很bt作者: unlimit5 时间: 2007-11-29 14:46
不知道能行么? 不过我做的测试都能识别你说的
table_htmlTable_2().click(atCell(atRow(atIndex(1)), atColumn(atIndex(0))));