Modifying an Application Configuration

An application configuration defines how Silk4J connects to the application that you want to test. Silk4J 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.
  1. Click the drop-down arrow next to the Silk Test toolbar icon Toolbar and choose Edit Application Configurations. The Edit Application Configurations dialog box opens and lists the existing application configurations.
  2. To add an additional application configuration, click Add application configuration.
    Note: Do not add more than one browser application configuration when testing a web application with a defined base state.
    The Select Application dialog box opens. Select the tab and then the application that you want to test and click OK.
  3. To remove an application configuration, click Remove next to the appropriate application configuration.
  4. To edit an application configuration, click Edit next to the appropriate application configuration.
  5. To specify an executable, type the full path to the executable into the Executable field.
    Note: If you are testing a web application, and you want to specify an executable for the browser, select the custom browser type.
    For example, to start Mozilla Firefox, type C:\Program Files (x86)\Mozilla Firefox\firefox.exe.
  6. If you are testing a desktop application, type the name of the executable of the application that you want to test into the Executable Pattern field. The pattern is case insensitive and allows an asterisk (*) as a wild card, which matches any text of any length, and a question mark (?), which matches one character. For example, the executable pattern for Notepad is *\notepad.exe. All processes whose executable is named notepad.exe and that are located in any arbitrary directory are enabled.
  7. If you are testing a desktop application and you want to use a command line pattern in combination with the executable file, type the command line pattern into the Command Line Pattern text box.
  8. To test a web application or a mobile web application, if you have not set an application configuration for the current project, select one of the installed browsers or mobile browsers from the list. You can also click Change to open the Select Application dialog box and then select the browser that you want to use.
  9. If you are testing a web application, type the address of the web application into the Navigate to URL text box.
  10. If you are testing a web application against Mozilla Firefox or Google Chrome, and a proxy is used for the connection with the web, specify the proxy in the Proxy field. Setting the proxy is useful when you are using service virtualization. You can use the following formats.
    Format Description Examples
    <machine_name>:<port> Specifies a proxy for all traffic. localhost:9000


    or http://<machine_name>:<port>
    Specifies a proxy for HTTP URLs.


    or http://localhost:9000


    or https://<machine_name>:<port>
    Specifies a proxy for HTTPS URLs.


    or https://localhost:9000


    or http://<machine_name>:port;https://<another_machine_name>:<another_port>
    Specifies different proxy servers for HTTP URLs and HTTPS URLs.


    or http.//localhost:8000;https://my_HTTPS_host:9000
  11. To detect any visual breakpoints for a web application, click Edit Browser Sizes. For additional information, see Detecting Visual Breakpoints.
  12. Optional: If you want to test a web application on a desktop browser with a predefined browser size, select the browser size from the Browser size list.
    For example, to test a web application on Apple Safari and in a browser window which is as big as the screen of the Apple iPhone 7, select Apple iPhone 7 from the list.
  13. Optional: Select an Orientation for the browser window.
  14. Optional: Click Edit Browser Sizes to specify a new browser size and to select which browser sizes should be shown in the Browser size list.
  15. If you are testing a mobile application or a web application on Apple Safari, type the connection string into the Connection String text box. For additional information, see Connection String for a Mobile Device.
  16. Click OK.