Working with Samples

With this proxy sample you learn how to write a simple proxy, map proxies to controls (handled internally), deploy proxies, and verify that the proxies work.
To test the sample, complete these procedures:
  1. Open the application file mypage.htm located at <IBM Rational Functional Tester install>\SDP\FunctionalTester\Flex\flexcustomcontrolapp.zip after unzipping it.
  2. Add the sample application path to the trusted directory C:\WINDOWS\system32\Macromed\Flash\FlashPlayerTrust\ by creating a file without an extension. For example, create a file named Flex in the trusted directory and add the file path of the sample application C:\Program Files\IBM\SDP\FunctionalTester\Flex\flexcustomcontrolapp\mypage.htm to it.
  3. Copy the contents of the ClassInfo tag in C:\Program Files\IBM\SDP\FunctionalTester\Flex\flexcustomcontrolapp\FlexCustom.xml file into <IBM Rational Functional Tester install>\bin\FlexEnv.xml file.
  4. Invoke the sample Flex application and try recording on it.

Deploy the binary files

Deploy the FlexCustomControl.jar and FlexCustomControl.rftcust files to the customization directory. For example, C:\Documents and Settings\All Users\Application Data\IBM\RFT\customization. Close Rational Functional Tester, all Java enabled applications and browsers so that the new customization class is loaded. Restart Rational Functional Tester to test the sample application under test.

Verify the proxy deployment

You can test the controls that are provided as part of the FlexCustomControlApp application under test by verifying the proxy class name before and after deployment.


Feedback