Configuring SilkBean Support on the Target (UNIX) Machine

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

This section contains instructions for configuring the target UNIX machine when the test application is running in Java 2 environments, which means JDK/JRE versions greater than or equal to 1.2.

  1. Make sure that JDK 1.2 or later is installed on the UNIX machine and that the path to its "bin" directory is included in the PATH variable.
  2. Copy the following files from your Silk Test Classic installation on the Windows machine onto the UNIX machine:
    • Copy SilkTest_Java3.jar to the JVM’s lib/ext directory.
    • Copy access3bean.prop to the JVM's lib directory and rename it to accessibility.properties.
  3. Start the SilkBean using the following command:
    java segue.server.SilkBean debug <port number> &
    • Include the optional debug parameter if you want to run the SilkBean server in debug mode.
    • The port number defaults to 2966, if it is not specified.
    • The ampersand (&) at the end of the line should only be used on an UNIX target machine. It specifies that the SilkBean should run in the background.
  4. Start the test application manually or from the script.
Note: There are two SilkBean-specific options for the Java command line that is used to start the AUT. The options are specified using the '-D' switch.
ST_CONN_TIMEOUT
The maximum time (in seconds) allowed for connection between the SilkBean and the application. If unspecified, the default value of 30 seconds is used.
qap.port
The port through which to connect SilkBean. The default is 2966. This number must match the port number specified in the SilkBean command line. java segue.server.SilkBean <port number> &.

Example

For example, to start the Java application myapp.jar with port number 2970 and a connection timeout of 60 seconds, use:
java -Dqap.port=2970 -DST_CONN_TIMEOUT=60 myapp.jar