This topic explains how to customize grouping criteria from the Message Grouping Review page in the Generate Parameterized Messages from Traffic wizard. To customize grouping criteria: Open the Grouping Criteria dialog (for example, by clicking Add or Duplicate, or by double-clicking an existing grouping criteria entry). If desired, customize the name of the responder/test client and/or data set that will be generated. In the Grouping Criteria tab, modify the grouping criteria as desired. Each grouping criteria entry can specify grouping by any combination of the following: HTTP Methods, URL Paths, URL Parameters, and/or Request Body. Virtualize: Specifies HTTP methods that will determine whether or not the message is processed. SOAtest: Groups messages by HTTP methods. Customization of HTTP methods grouping criteria is automatically disabled to prevent the creation of groups with mixed methods (for example, both POST and GET). Virtualize: Specifies URL paths that will determine whether or not the message is processed. SOAtest: Groups messages by URL paths. Virtualize: Specifies URL parameters that will determine whether or not the message is processed. You can configure the correlation to match all messages that include specific parameters (no matter what value they are set to), or only match messages where specific parameters are set to specific values. You can also indicate whether a correlation should be applied if the request has the exact URL parameters present, no more and no less. SOAtest: Groups messages by URL parameters that will determine whether or not the message is processed. You can configure the criteria to include all messages that include specific parameters (no matter what value they are set to), or only include messages where specific parameters are set to specific values. You can also indicate whether a message should be included if the request has the exact URL parameters present, no more and no less. Virtualize: Specifies XPaths within the message that will determine whether or not the message is processed. SOAtest: Groups messages using XPaths. To see the details of the detected messages, open the Message Details tab and select the related message block. HTTP methods grouping criteria apply to assets that will be accessed over HTTP/HTTPS. To configure the HTTP methods correlation: URL path grouping criteria apply to assets that will be accessed over HTTP/HTTPS. To configure the URL path correlation or grouping: Specify the path and endpoint you want to use for correlation or grouping. For example, assume that an endpoint or virtual asset is deployed under the following path: The following path is also specified in the responder correlation: The following URLs will match this correlation criteria: The following URLs will NOT match: Ant-style wildcards can be used, where * matches one or more characters and ** matches one or more directories. Using this format: service/Repository org/web/service/foo/bar/Entries /org/web/service org/parasoft/virtualize/tools/service org/parasoft/virtualize/stuff org/parasoft/EM/Entries org/parasoft/virtualize/soatest/tools/EM/Entries /v1/orders GET /v1/orders URL parameter grouping criteria apply to assets that will be accessed over HTTP/HTTPS. To configure the URL parameters correlation or grouping: For an asset deployed under the path The following URLs will NOT match: To configure a message correlation or grouping based on XPath function from the request body: Provide an XPath expression manually. Use this option if a tree representation is not available or if the tree does not fully display interesting elements or attributes for extraction and evaluation. The XPath expressions supported for correlation/grouping purposes is based on the standard XPath 1.0 standard by W3C. Note that several categories of requests are shown in the left panel:
Sections include:Customizing Grouping: Overview
Grouping Strategy Description HTTP Methods Grouping Configuration URL Paths Grouping Configuration URL Parameters Grouping Configuration Request Body Grouping Configuration HTTP Methods Grouping Configuration
For example, if GET, POST, and PUT are checked, the responder will match HTTP requests with the method GET, POST, or PUT. HTTP requests with CONNECT, DELETE, HEAD, and so on will not match. URL Paths Grouping Configuration
http://myserver:9080/MyAsset/MyPath
/segment1/segment2/**
http://myserver:9080/MyAsset/MyPath/segment1/segment2
http://myserver:9080/MyAsset/MyPath/segment1/segment2/
http://myserver:9080/MyAsset/MyPath/segment1/segment2/segment3?param1=value1&m2=value2
http://myserver:9080/MyAsset/MyPath/segment1/
http://myserver:9080/MyAsset/MyPath/segment3/segment1/segment2
/**/abc
matches /abc
or /this/that/abc
/abc/**
matches /abc
or /abc/this/that/theother
/ab**
DOES NOT match /abc/d
(it is interpreted as if you used a single asterisk /ab*
); it does match /absolutely
/**bc
DOES NOT match /0/abc
(it is interpreted as if you used a single asterisk /*bc
); it does match /abc
Example 1: **/service/*
Matches Does Not Match
org/web/service/Entries
org/something/else/tools/stiff/service/EntriesExample 2: org/parasoft/virtualize/**
Matches Does Not Match org/parasoft/somethingelse Example 3: org/parasoft/**/EM/*
Matches Does Not Match org/parasoft/EM/foo/bar/Entries Example 4: Same method for similar paths
/v1/orders/*Matches Does Not Match
GET /v1/orders/111-111-111GET /v1/orders/111-111-111/1 URL Parameters Grouping Configuration
Virtualize Example
http://myserver:9080/MyAsset/MyPath,
the following URL Parameters are specified in a responder:Parameter Name Value param1 value1 param2 value2 Request Body Grouping Configuration
Overview
Content Tools