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

  1. Open the CustomTreeSample.java file that is available in the imported TreeApp project folder.
  2. Open the Functional Test perspective.
  3. Run the CustomTreeSample.java script. The sample tree application is displayed.
  4. To test the tree controls, record a functional test script and click the tree controls of the sample application.
  5. 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

  1. Open the Java perspective.
  2. 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.
  1. Restart HCL OneTest UI
  2. Open the CustomTreeSample application as mentioned in the earlier section.
  3. Record a functional test script to test the tree controls of the sample application.
  4. 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.