TreeProxy

This TreeProxy sample explains how to extend recording behavior of a control with SubItems, and support the playback for the extended recording behavior. The sample works with the application-under-test (AUT) sample. To view the samples, you must import the tree proxy, tree application and the tree custom control for which the proxy is being written into your workspace.

Time required: 15 minutes

Prerequisite: You must open the help from HCL DevOps Test UI (Test UI) to import the samples into your workspace.

Importing samples

  1. To import the sample into the Eclipse workspace, click Get the sample. You must import all the samples that are provided here into your workspace.
  2. Open the Java perspective to view the imported samples.
    The proxy sample contains these files:
    • Proxy source files
      • TreeProxy\src\sdk\sample\jfc\ExtendedJTreeProxy.java
      • TreeProxy\src\TreeProxy.rftcust
    • Eclipse project files
      • TreeProxy\.project
    • Proxy binary files
      • TreeProxy\TreeProxy.jar
      • TreeProxy\TreeProxy.rftcust
    The application-under-test sample contains these files:
    • Eclipse project files
      • TreeApp\.project
    • Application-under-test files
      • TreeApp\src\sdk\sample\jfc\CustomTreeSample.java.
      • TreeApp\bin\sdk\sample\jfc\CustomTreeSample.class
    The tree custom control contains these files:
    • ExtendedTreeControl\src\sdk\sample\jfc\ExtendedJTree.java
  3. Test the tree proxy sample.