Setting Preferences for Application Testing

This section describes how to set preferences for the supplied test function.

The following topics are covered:


Showing the Preferences for Application Testing

The preferences for Application Testing are set in the Preferences dialog box of Eclipse.

Start of instruction setTo show the preferences for Application Testing

  1. From the Window menu, choose Preferences.

  2. In the tree of the resulting dialog box, expand the Software AG node and then select the Testing node.

    The Testing page is displayed.

    The preferences for Application Testing page.

Set Logging Preferences for Unit Tests

Start of instruction setTo set logging preferences

  1. Display the Testing page as described above.

  2. Select Log unit tests.

    Unit test log files will be created automatically each time a unit test is executed. The log files are stored in the Testing-History folder within the NaturalONE project in which the unit test was executed and include a .tstlog file extension.

    Note
    If this option is not selected, the log files will not be created.

  3. Select OK to save the preferences.

Set Server Synchronization Preferences

When testing a subprogram, a message may be displayed indicating that a local resource has not been uploaded to the server and synchronized with the server resource. You can set preferences for this option.

Start of instruction setTo set server synchronization preferences

  1. Display the Testing page as described above.

  2. Select one of the options listed in Upload resource(s) when they are not in sync with server.

    These options are:

    Option Description
    Always Resource(s) are always uploaded to the server when not in sync.
    Never Resource(s) are never uploaded to the server when not in sync.
    Prompt A window is displayed to select an option.
  3. Select OK to save the preferences.

Definition of Subprogram Server Connections

When you select the Testing > Subprogram Server Connections node in the left-side tree, you can manage your Natural Subprogram Server connections.

The Subprogram Server Connections pane in the Preferences dialog box.

Select the Add button to define a new Subprogram Server connection. The following information must be defined for a Subprogram Server connection:

  • Host name: The host name of the Subprogram Server.

  • Port number: The port number of the Subprogram Server.

  • Connection name: The name of the Subprogram Server in the list of available connections. By default, it is set to <hostname>-<portNumber>. You can enter a more specific connection name if required.

  • User ID: The user ID for the Subprogram Server connection.

  • Password: Optional. If Natural Security is active on the Subprogram Server, specify the required password in this text box.

  • Use SSL/TLS: Optional. Must be enabled when connecting to an SSL/TLS-secured Subprogram Server.

  • Use OIDC Authentication: Optional. When enabled, authentication is performed using OpenID Connect (OIDC). The token is obtained through the OpenID Connect security preferences (see OpenID Connect in Setting the Preferences), and the default browser opens to complete the OIDC authentication flow.

  • Test Connection: Use this button to verify that the Subprogram Server can be connected successfully.

Select the Edit button to open the selected Subprogram Server connection and change its settings.

Select the Remove button to delete the selected Subprogram Server connection.