Prerequisites

It’s helpful to keep the Console view visible as you are creating tests and/or message responders from traffic. This view will display any warnings, errors, and informational messages that are generated while processing the traffic file.

Using the Wizard

  1. Choose the Traffic> Generate Parameterized Messages option in one of the available creation wizards. See the following chapters for additional details: 

    Adding Projects, Virtual Assets, and Responder Suites.

  2. Specify the following information in the Traffic wizard and click Next:
    1. Specify the location of the traffic file.
    2. Change the character encoding if needed
    3. 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 for details about creating and using templates in Virtualize.

  3. 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

  4. Configure the settings in the Message Formatand Grouping Strategy screen:


    1. Verify that Request message format and Response message format are set to the correct format. If not, select the appropriate format.Virtualize 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.

    2. Conversion options are available for some formats, such as EDI or custom formats. Click the Conversion Options button and make the desired changes. 


    3. 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.If you select this option, Virtualize will recommend grouping heuristics to apply, based on its analysis of the traffic file. You can change the pre-selected heuristics. To learn more about the heuristics, see Understanding Heuristics for Grouping by Operation - Type.

      • 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.


  5. Click Next and review the information about the operations and messages in the Message Grouping Review screen. 
    1. The columns included are based on the grouping strategy applied. 
    2. 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. 
    3. The correlation criteria will be processed in the order in which they appear in the table (from top to bottom). 

      For details on how these groupings were created, see Understanding Heuristics for Grouping by Operation - Type.

    1. Add, modify, reorder, and remove grouping criteria using the available controls. 

      See Customizing Grouping Criteria for details on configuring grouping criteria in Virtualize.

      If you change the criteria, be sure to click Regroup before proceeding.

    2. If all the Autoconfig boxes are checked and you want Virtualize to automatically configure Message Responders for the specified groups, you can skip this step.

      If you want to perform any of the following tasks, disable Autoconfig for each message group you want to customize, click Next, then configure the request mapping as described in Customizing Request Matching and Correlations:

      • Customize which parameter values should be used to determine the response messages of the virtual asset 
      • Modify the automated request/response pair matching 
      • Specify a WSDL or Schema

      Auto-configuration is typically available when there are multiple requests within a message group and there are differences in the paths, the parameters, or the body. If the Autoconfig box is grayed out, this means that autoconfiguration is not available for this group; for more details on why a specific group cannot be automatically configured, see the tooltip for that item.



      For more details on any of the items listed at the top of the panel (processed pairs, unprocessed pairs, messages that don’t match groups, etc.), click the associated hyperlinks.



      To review the messages associated with a particular responder—and/or to change the responder and data set name—click the related row in the Count column.



  6. Click Next and configure the settings in the Request Matching screen.

    1. Click the Request/Response pairs tab and verify that the correct correlations have been made. You can click and drag the points connecting the requests and responses to change the match.
    2.  Click the Request Correlation tab choose a Responder mode from the drop-down menu. 
  7. and configure how the imported traffic should be reused or how it should affect existing data in the Data Reuse screen.
    1. 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. 
    2. The tree indicates identity fields with green arrow icons. Existing data sets are noted with annotations.
    3. You can control how new data from the traffic file will extend and/or update existing repository data sets. 

    4. 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.
       

      Replace: Erase existing data then add the new data.

      Merge: Import new data without modifying existing data.

      Update: Update matching records with new data and create new records as needed.

      Overwrite: Update matching records (with matching keys) with new data, do not create any additional records.


      For Virtualize, see Configuring Data Reuse and Updating.

    5. The Infer constraints from option enables the Virtualize to determine the characteristics of the data stored in the repository. You can infer constraints based on the data or a service definition.
  8. Click Next and specify any additional configurations in the Final Options screen:
    1. 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).   
    2. 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. 

      If you are creating the .pva in the Virtual Assets folder, which results in automated deployment, complete the Deploy Virtual Asset wizard page by specifying the desired name and deployment path for the virtual asset that will be created and click Next. The virtual asset will be deployed at the listed endpoint. For details, see Configuring Individual Virtual Asset Deployment Settings.

    3. Click Finish.

The following items will be created and configured: