Examples you can use

This proxy sample explains how to extend a proxy to add more control properties and control data.

Extended Capabilities

Note: Currently there is no separate proxy for javax.swing.JFormattedTextFieldProxy. Properties that are specific to the JFormattedTextFieldProxy control, for example, format string and unformatted value are not available for the getProperties() method. These values are also unavailable for data verification points.

Add more control properties

Along with the default control properties that are provided, you can add more control properties by extending the java.util.Hashtable getProperties() and Object getProperty(String propertyName) proxy methods.

Add more control data

Along with the default control data types that are provided, you can add more control data by extending the java.util.Hashtable getTestDataTypes() and ITestData getTestData(String testDataType) proxy methods.

Deploy the binary files

Copy the JFormattedTextFieldProxy.jar and JFormattedTextFieldProxy.rftcust files to the customization directory and restart Functional Tester to test the sample AUT.

Verify the additional control properties that are added

You can test the javx.swt.JFormattedTextField control, which the JFormattedTextFieldApp AUT provides.

Verify the additional control data that are added


Feedback