Silk Test Classic Does not Record Click() Actions Against Custom Controls in Java Applets

This functionality is supported only if you are using the Classic Agent.

Security restrictions may prevent Silk Test Classic from recording Click() actions against custom controls in Java applets. This may happen if the applet is from an untrusted source.

Verify that you have the correct security permissions set up for your AUT. The following steps show how you can verify the settings for the test applet, installed in the <Silk Test installation directory>/javaex/jfc11 directory:

  1. Locate the plug-in used to run the Applet. If you have multiple plug-ins installed, you may find the used plug-in with the java console running(use the plug-in setting Show Console). To display the system properties with java.home pointing to the directory of used plug-in, type "s" while the console is active. This is usually located in the program files/java/jre_name directory. If you have multiple plug-ins installed, you may find the used plug-in with the java console running. Use the plug-in setting Show Console. To display the system properties with java.home pointing to the directory of used plug-in, type s while the console is active.
  2. Locate the lib/security directory located under the plug-in directory.
  3. Open the java.policy file. Verify that the following fragment is in the file, or add it to the file, if it is not. This assumes that you have installed Silk Test Classic into the default installation directory, C:\program files\Silk\silktest; if you installed Silk Test Classic into a different directory, you must change the fragment accordingly.
    grant codeBase "file:C:/program files/silk/silktest/javaex/jfc11/*"
    {
      permission java.security.AllPermission;
    };
Note: The file protocol is used here because the applet is located on the host machine. If the applet was downloaded from a URL instead, then you must substitute the appropriate http://url_name instead.