Using Data Sinks in Load Tests

Applies to ReadyAPI 3.56, last modified on November 21, 2024

If you run a load test with a shared data sink, you can use the shared data sink in a load test to add data from that data sink to load test reports, as you did it at the previous step.

To do that, first, you need to set a data sink to be shared:

  1. Double-click a data sink in the Navigator panel.

  2. Click .

    In the Data Sink Options dialog, select the Shared check box. Click OK to apply the changes.

    ReadyAPI: The Data Sink Options dialog

    Click the image to enlarge it.

Your data sink is shared now.

To make your future report easier to read, add the VirtualUsers property with the ThreadIndex value to the data sink.

ReadyAPI: The data sink with the ThreadIndex property

Now you can prepare your report template:

  1. Select Project > Reporting from the main menu.

  2. On the Subreports tab, open the CityDataResult subreport. If you do not have it, see Creating a Printable Report to learn how to create subreport templates.

  3. Add the VirtualUsers property to the CityDataResults subreport:

    JRXML

    <textField isStretchWithOverflow="true">
                  <reportElement x="465" y="1" width="70" height="20"/>
                  <textElement textAlignment="Left" verticalAlignment="Top"/>
                  <textFieldExpression class="java.lang.String">$F{ThreadIndex}</textFieldExpression>
              </textField>
  4. Create a custom version of the Load test printable report. To do that, select the report, then click .

  5. Add the CityDataResult subreport template to your custom load test printable report template.

  6. Click OK to apply the changes.

Now you can run a load test. On the load test page, configure your test to run only once in each thread (5 threads). This will command ReadyAPI to perform only 5 runs.

Create a report for the data sink you exported.

See Also

Creating a Printable Report
Using a Subreport Data Sink

Highlight search results