Testing tree proxy sample
With this proxy sample you learn how to write a simple proxy, map proxies to controls (handled internally), deploy proxies, and verify that the proxies work.
Test the tree application sample to view the default value of the tree control
- Open the CustomTreeSample.java file that is available in the imported TreeApp project folder.
- Open the Functional Test perspective.
- Run the CustomTreeSample.java script. The sample tree application is displayed.
- To test the tree controls, record a functional test script and click the tree controls of the sample application.
- Open the test object map. Notice that the Proxy Class
Name (#proxy) property under Administrative
properties for CustomTree is
.java.jfc.JTreeProxy
. This is the default value for this control.
Deploy the binary files
- Open the Java perspective.
- From the TreeProxy project, copy the TreeProxy.jar and the TreeProxy.rftcust to the customization directory. The default location for the customization directory is C:\ProgramData\IBM\RFT\customization. C:\ProgramData\HCL\HFT\customization.
Verify the proxy deployment
After deploying
the proxy, you can now verify the value of the control.
- Restart Rational® Functional Tester
- Open the CustomTreeSample application as mentioned in the earlier section.
- Record a functional test script to test the tree controls of the sample application.
- Open the test object map. Notice that the Proxy Class
Name (#proxy) property under Administrative
properties for CustomTree is
sdk.sample.jfc.ExtendedJTreeProxy
. This is the newly developed proxy for the CustomTree control.