|
D:\Program Files\IBM\Rational\SDP\6.0\FunctionalTester\eclipse\plugins\com.rational.test.ft.wswplugin_6.1.0\rational_ft.rftcust
Problem
This technote describes the record and playback issue of HTML tag <span> and also suggests a solution for the problem.
Solution
If you are using the following code to submit a form in the web page:
<span class="button" label="confirm" click="tagForm.doSubmit();"></span>
IBM® Rational® Functional Tester (RFT) cannot recognise this particular control and therefore does not click on the control during playback.
The test script recorded:
table_htmlTable_2().click(atCell(atRow(atIndex(1)), atColumn(atIndex(0))));
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. |
|