Recording and Replaying the Sample Application

  1. Create a new Java RMI project.
  2. Modify the existing Internet Explorer recording profile. See Modifying the Internet Explorer Profile.
  3. Specify the script generation details in Settings > Active Profile > Record > Script > Java.
  4. Go to Settings > Active Profile > Record > Java, and add the JAR file ProductManager.jar from the Silk Performer samples directory, <public user documents>\Silk Performer 19.5\SampleApps\RMILdap\Web\ProductManager.jar, to the classpath.
  5. Start the RMI and LDAP servers. To start the servers, open the Product Manager sample HTML page, <public user documents>\Silk Performer 19.5\SampleApps\RMILdap\readme.htm, and follow the instructions in the Starting up servers section.
  6. Click Model Script in the workflow bar.
  7. Type the location of the RMI sample-application HTML page in the Command line text box. The default path of the HTML page is <public user documents>\Silk Performer 19.5\SampleApps\RMILdap\Web\ProductManager - DemoVersion.htm.
  8. Click OK to launch the applet. The applet loads and the recorder starts to record the JNDI and RMI activities of the applet. You can now perform searches for products, change products, add new products, and so on.
  9. Click OK when you have performed all the desired actions. The Save As dialog box opens.
  10. Specify a valid Java identifier for the script name and click Save to save the recorded script.
  11. Click Yes twice to close the recorder and to confirm the closing.
  12. Comment out or delete the recorded API calls JavaSetOption(JAVA_CLASSPATH, ... and JavaSetOption(JAVA_CMDLINE_OPTIONS, ....
You can now replay the recorded script. Click Try Script on the workflow bar for a try run of the script.