Choose the Traffic> Generate Parameterized Messages option in one of the available creation wizards. See Adding a New .tst File to an Existing Project and Adding a New Test Suite for additional details.
- Specify the following information in the Traffic wizard and click Next:
- Specify the location of the traffic file.
- Change the character encoding if needed.
- (Optional) Specify the service definition file. Providing a service definition helps SOAtest create better message groupings.
If you want to populate the wizard with a previous group of settings saved in a template, enter the location of that template. See Using Configuration Templates to Reuse and Share Wizard Settings - SOAtest for details about creating and using templates in SOAtest.
In the Parasoft Data Repository Settings page, specify which data repository should store the data used to parameterize the test clients or message responders and click Next.
In the Server field, specify which server you want to connect to (either the embedded server or a remote server). If you choose a remote server, the Port, User, and Password fields will be automatically populated and can be adjusted as needed. If you choose Embedded Server, the Port, User, and Password fields will be grayed out.
- In the Repository name field, select or enter the name of the repository you want to use. If you enter the name of a new repository, that repository will be created.
When defining a repository connection, you can check the connection by clicking Validate.
Click Next and configure the message format and grouping strategy:
Verify that Request message format is set to the correct format. If not, select the appropriate format. SOAtest will attempt to identify the message format of the request and response based on the first message in the traffic file. All requests in a single traffic file are expected to have one format, and all responses in that same file are expected to have one format. The request format may be different than the request format. If the message format is not detected, Plain Text will be selected. Conversion options are available for some formats, such as EDI or custom formats. Click the Conversion Options button and make the desired changes.
Choose one of the message grouping options:
Based on operation/type: Group messages based on the operation or message type. This is useful for service traffic that contains messages that are distinctly identifiable either by operation or by the format's message type (i.e., the name of the element under the SOAP Body, the name of the root element in plain XML messages, or the message type of a specified message format). A responder is generated for each operation/type discovered within the traffic file.
- Based on similar requests: Group messages based on request message structure. This tells Virtualize to analyze the request message structures and group the request/response into responders so that each responder will contain responses that correlate with requests that have a similar structure. Messages are considered "similar" when they have an identical DOM tree model, even if they have different values. This option is used to optimize and simplify the rules for correlating requests to responses within each Message Responder.
Based on similar responses: Group messages based on response message structure. This tells Virtualize to analyze the response message structures and group the request/response pairs into responders so that each responder will contain responses that have a similar structure. Messages are considered "similar" when they have an identical DOM tree model, even if they have different values.
None: No grouping. A responder is generated for each response message in the traffic file. Use this option if you want every request/response pair in separate Message Responders.
- If you specified a service definition or template file, you can enable the Constrain option in the Message Group Creation Options section. If this option is enabled, only the message groups defined in either the template or service definition file will be grouped. All other messages will be ignored. If this option is disabled, SOAtest will group all messages that appear in the traffic file. If a service definition and template file are provided and this option is enabled, groupings will be constrained according to the template file prior to being constrained by the service definition. As a result, a message will be ignored if it is defined in the service definition but not in the template file. The Constrain option is enabled by default.
- Click Next and review the information about the operations and messages in the Message Grouping Review screen.
- The columns included are based on the grouping strategy applied.
- Each table row represents the criteria for defining a group. One group will be generated for each table row. One responder will be generated for each group.
The correlation criteria will be processed in the order in which they appear in the table (from top to bottom). URL paths and parameters will be parameterized against a field from the record type. The fields will have an automatically-generated name and will be visible in the Data Reuse page (later in the wizard).
Add, modify, reorder, and remove grouping criteria using the available controls. See Customizing Grouping Criteria 1SOAtestfor details on configuring grouping criteria in SOAtest. If you change the criteria, be sure to click Regroup before proceeding.
If you want to specify a WSDL/schema, enable the option in the Configure column and click Next to specify the appropriate values.
The service definition options will appear based on the type of traffic. For example, if the traffic is JSON, you will have the option to specify an OpenAPI/Swagger, RAML, or WADL file. For XML traffic, you will be able to specify WSDL or Schema.
Info title Should you specify a WSDL or Schema?
Advantages of specifying the WSDL or schema include:
The generated Form Input model will be based on that WSDL/Schema, which provides type richness when you are editing and maintaining the resulting Form Input.
Change Advisor (described in Change Management) is available to help you keep your assets in sync with evolving services and changing environment conditions.
If you notice that the generated Form Input and its data parameterizations do not match the original messages, this is a sign that the messages do not fully match the WSDL/Schema or that mapping the raw messages failed. If you are experiencing such issues, you should omit the WSDL/Schema to ensure that the generated Form Input model fully matches the traffic messages.
- Click Finish to complete the wizard or Next to configure how the data reuse settings for the imported traffic.
- The defined record identity is used to determine which data is new and which new records match existing records. If it has not already been specified for this data set, the identity can be added/modified from the data tree in this page.
- The tree indicates identity fields with green arrow icons. Existing data sets are noted with annotations.
You can control how new data from the traffic file will extend and/or update existing repository data sets.
Replace: Erase existing data then add the new data
Append: Adds new records without first erasing the existing data.
You can also control whether matching data (data that matches existing record types, as determined by the identity) reuses existing record types or updates an existing record. The Reuse option enables you to reuse/share the existing records that match. The Update option enables you to update the existing records’ corresponding fields with data from the traffic and add new records for new record types. Additional details about specifying identities and choosing among the available data reuse/updating options in SOAtest is available at Configuring Data Reuse and Updating SOAtest. For Virtualize, see Configuring Data Reuse and Updating 1Virtualize.
- Click Next and specify any additional configurations in the Final Options screen:
- You can configure the wizard to create messages in Form or Literal mode. These modes present a Form Input view (see Form Input) or a Literal view (see Literal View Options_SOA).
You can enable the Export configuration data into a reusable template option and specify a file name and location to save the settings you used in this wizard as a template. (MQ and JMS only) Specify your connection settings in the next SOAtest wizard page. These settings will be applied to the tools created from this traffic. For details, see Configuring MQ Optionsand Configuring JMS Options. See Using Configuration Templates to Reuse and Share Wizard Settings in SOAtest for details about creating and using templates.
- Click Finish.
The following topics provide additional details that will help you complete the wizard: