To create a result set (for example, a JDBC result set) from an HTML table that the response returns, use the Create Resultset from HTML Table Rows filter. You can select the columns and rows of an HTML table, then create a result set from them. You can then use the result set to generate assertions exactly as in a database step.
You can create this filter by selecting it from the filter list and defining the parameters. However, it is easier to create the filter directly from the HTTP/HTML Request step response using one of the filter commands for that step. This approach is used here. The parameters that are produced in the following procedure (the parameters you would calculate to create this filter manually) are shown later in this section.
To create a filter on a table:
The property is now available in the test case.
The property is added to the current step. The following graphic shows the parameters that were calculated for this step. These parameters are required when you create this filter manually.
To show the filter results, we added a step of type Save Property as Last Response and added the property that the filter creates. The result set panel displays the results.
If you are editing a test case, you may need to replay the test case to generate the property from the filter using the Replay test case to a specific point command. To do so, use the Replay test case to a specific point command. The Replay test case to a specific point command is activated by clicking Replay on the toolbar. You can now use the embedded filters and assertions that are available at the bottom of the result set window of this step.
Copyright © 2014 CA Technologies.
All rights reserved.
|
|