Enable AJAX support for a pre-existing script
The HTML Document control is mapped to GuiTestObject in Rational Functional Tester versions prior to 126.96.36.199. The GuiTestObject does not contain any AJAX-related APIs. To use the AJAX-related APIs, the HTML Document control must be mapped to DocumentTestObject.
- Open the functional test script that needs to be modified for enabling the AJAX support.
- Click Script > Open Test Object Map. Select the Document control from the list and click Administrative tab.
- Replace the Test Object Class Name value from GuiTestObject to DocumentTestObject. Save and close the Test Object Map.
- Click Script > Update Script Helper
By default, the HTML Document control is mapped to DocumentTestObject for enabling AJAX support. You can disable AJAX support and map the HTML Document control to GuiTestObject by setting the rational.test.ft.html.use.documenttestobject = false in the ivory.properties file.