JFormattedTextFieldProxy

This JFormattedTextFieldProxy sample explains how create a new proxy class add new control properties and control data. The sample works with the application-under-test (AUT) sample.

Time required: 15 minutes

Prerequisite: You must open the help from HCL OneTest 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 the following files:
    • Proxy source files
      • JFormattedTextFieldProxy\src\sdk\samples\jfc\JFormattedTextFieldProxy.java
      • JFormattedTextFieldProxy\JFormattedTextFieldProxy.rftcust
    • Eclipse project files
      • JFormattedTextFieldProxy\.project
    • Proxy binaries
      • JFormattedTextFieldProxy\JFormattedTextFieldProxy.jar
      • JFormattedTextFieldProxy\JFormattedTextFieldProxy.rftcust

    The AUT sample contains the following files:

    • Eclipse project files
      • JFormattedTextFieldApp\.project
    • Application-under-test files
      • JFormattedTextFieldApp\JFormattedTextFieldApp.java
      • JFormattedTextFieldApp\JFormattedTextFieldApp.class
  3. Test the JFormattedTextField proxy sample.