CheckBoxProxy

This CheckBoxProxy sample explains how to create a new proxy class and new TestObjects and then map them to the javax.swing.JCheckBox control. The sample works with the application-under-test (AUT) sample.

Time required: 15 minutes

Prerequisite: You must open the help from Rational® Functional Tester 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
      • CheckBoxProxy\src\sdk\sample\jfc\ExtendedCheckBoxProxy.java
      • CheckBoxProxy\CheckBoxProxy.rftcust
    • TestObjects source files
      • ExtendedToggleGUITestObject\src\sdk\sample\ExtendedToggleGUITestObject.java (Java TestObject)
      • ExtendedToggleGUITestObject\SDK\Sample\ExtendedToggleGUITestObje ct.cs (.NET TestObject. See .NET CheckBox ProxySDK sample)
      • ExtendedToggleGUITestObject\ExtendedToggleGUITestObject.rftcust (Customization file for both Java and .NET TestObjects)
    • Eclipse project files
      • CheckBoxProxy\.project
      • ExtendedToggleGUITestObject\.project
    • Binary files
      • CheckBoxProxy\CheckBoxProxy.jar (Proxy Jar)
      • CheckBoxProxy\CheckBoxProxy.rftcust (Proxy Customization file)
      • ExtendedToggleGUITestObject\ExtendedToggleGUITestObject.jar (Java TestObject Jar)
      • ExtendedToggleGUITestObject\ExtendedToggleGUITestObject.dll (.NET TestObject assembly)
      • ExtendedToggleGUITestObject\ExtendedToggleGUITestObject.rftcust (Customization file for both Java and .NET TestObject)
    • The AUT sample contains the following files:
      • Eclipse project files
        • CheckBoxApp\.project
      • Application-under-test files
        • CheckBoxApp\src\JCheckBoxApp.java
        • CheckBoxApp\bin\JCheckBoxApp.class
  3. Test the check box proxy sample.