Modifying the Sample Application to Run From Another Location

If the UFT Java Add-in Extensibility SDK is installed under a folder other than C:/Program Files/Micro Focus/Unified Functional Testing, you must modify the sample application before performing this lesson.

To modify the sample application:

  1. After you copy the ImageControls source files into Eclipse, browse to the package ImageControls\src\com.sample in Eclipse and open the SampleApp.java file.

  2. Locate the code containing the image file paths:

  3. C:/Program Files/Micro Focus/Unified Functional Testing/samples/ImageControls/images/mercury.gif
    C:/Program Files/Micro Focus/Unified Functional Testing/samples/ImageControls/images/JavaExt1.gif
    
  4. Replace C:/Program Files/Micro Focus/Unified Functional Testing in these paths with the actual installation folder to enable the sample application to function properly.