Application Configuration

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

An application configuration defines how Silk Test Classic connects to the application that you want to test. Silk Test Classic automatically creates an application configuration when you create the base state. However, at times, you might need to modify, remove, or add an additional application configuration. For example, if you are testing an application that modifies a database and you use a database viewer tool to verify the database contents, you must add an additional application configuration for the database viewer tool.

  • For a Windows application, an application configuration includes the following:
    • Executable pattern

      All processes that match this pattern are enabled for testing. For example, the executable pattern for Internet Explorer is *\IEXPLORE.EXE. All processes whose executable is named IEXPLORE.EXE and that are located in any arbitrary directory are enabled.

    • Command line pattern

      The command line pattern is an additional pattern that is used to constrain the process that is enabled for testing by matching parts of the command line arguments (the part after the executable name). An application configuration that contains a command line pattern enables only processes for testing that match both the executable pattern and the command line pattern. If no command-line pattern is defined, all processes with the specified executable pattern are enabled. Using the command line is especially useful for Java applications because most Java programs run by using javaw.exe. This means that when you create an application configuration for a typical Java application, the executable pattern, *\javaw.exe is used, which matches any Java process. Use the command line pattern in such cases to ensure that only the application that you want is enabled for testing. For example, if the command line of the application ends with com.example.MyMainClass you might want to use *com.example.MyMainClass as the command line pattern.

  • For a web application in a desktop browser on the local machine, an application configuration includes only the browser type.
  • For a web application in Apple Safari or in Microsoft Edge on a remote machine, an application configuration includes the following:
    • Browser type.
    • Connection string.
  • For a web application in a mobile browser, an application configuration includes the following:
    • Browser type.
    • Connection string.
  • For a native mobile application, an application configuration includes the following:
    • Connection string.
    • Simple application name. If multiple applications on the mobile device have the same name, the fully qualified name of the application is used.
Note: Do not add more than one browser application configuration when testing a web application with a defined base state.