Creating a system test

The System Testing Wizard helps you create a new System Testing test node in your project.

Basically, a System Testing node contains a .pts test script as well as a set of Virtual Testers for message-based testing.

Note   System Testing for C does not support paths or filenames which contain spaces. When naming files or directories, make sure that these do not contain any spaces.

To create a System Testing node:

  1. Enter the name of the new System Testing test node.

  2. On the Test Script Selection (1/7) page, select the source files that are used to build your application among the source files that are currently in your workspace.

Select whether you want to create a new .pts test script file, or if you want to reuse an existing test script. In both cases you will need to enter a name for the .pts test script.

Next, use the Add and Remove buttons to build a list of interface files. The Interface Files List must contain .h header files that define the message structures used by your application.

Click Next to continue.

  1. On the Include Directories List (2/7) page, specify the directories that contain include files that can be required by the interface files and the messaging API.

Use the Add and Remove buttons to build a list of include directories. These are the directories that contain files that are included by your application's source code. If necessary, you can use the Up and Down buttons to indicate the order in which they are searched.

Click Next to continue. If you chose to use an existing .pts test script, this brings you straight to step 5.

  1. If you chose to create a new .pts test script, on the Generate New Test Script (3/7) page, specify the message type to be used by the test.

Click Next to continue.

  1. On the Generate New Test Script (4/7) page, change the configuration settings of the test node or click Next.

  2. On the Virtual Tester Driver Creation (5/7) page, you can create a set of virtual testers. Use the New button to create and name a new virtual tester. You can create and duplicate several virtual testers. You can also skip this page and decide to create your virtual testers later on.

When a virtual tester is selected, the General tab allows you to specify an instance and target deployment port for the virtual tester.

The Scenario tab lets you select one or several scenarios as defined in the .pts test script. During execution, the Virtual Tester plays the selected scenarios.

The Family tab lets you select one or several families as defined in the .pts test script. During execution, the Virtual Tester plays the selected families.

If necessary, click the Configure Settings button to change the configuration settings for the selected virtual tester.

The API source files list displays the generated messaging API source files. Use the Add or Remove buttons to modify this list if your messaging API requires more files.

Click Next to continue.

  1. On the Deploy Configuration (6/7) page, you specify how to deploy the virtual testers onto host and target computers. Use the Add, Remove buttons to modify the list. Each line represents one or several parallel executions of a virtual tester assigned to an instance, target host, and other parameters.

Note    If the IP address line in the Host Configuration settings is blank, then the Virtual Tester Deployment Table retrieves the IP address of the local machine when generating the deployment script.

Click the Advanced Options button to add the following columns to the Virtual Tester Deployment Table, and to add the Rendezvous... button.

If necessary, click the Rendezvous Configuration button to set up any rendezvous members.

Click Next to continue.

  1. Review the options in the Test Generation Summary (7/7) page and use the Back button if necessary to make any changes.

  1. Click the Finish button to launch the generation of the System Testing node with the corresponding virtual testers.

The wizard creates a test node with the associated test scripts. The test node appears in the Project Explorer.

If you chose to create a new .pts test script, you can now complete the generated System Testing test script in the Text Editor and then configure and deploy your virtual testers.

Refer to the System Testing language reference for information about the System Testing script language.

Related Topics

Activity Wizards Configuring Virtual TestersDeploying Virtual Testers | Setting Up Rendezvous Members | INSTANCESCENARIOFAMILYSystem Testing settings | System Testing supervisor