Databinding is a rule for fetching dataset records used for parameterization requests. The dataset stores multiple sequential records. Every time a dynamic request with a parameter bound to the dataset is generated, a single dataset record is consumed. In some tests it is necessary to use different records every time by repeatedly looping through the records in the dataset. However, in other tests, it is required that a record is repeated for either the same VU, or requests or iterations or combinations of thereof. For example, in login requests a VU has to use the same credentials stored in the dataset on all requests and all iterations. At the same time, to realistically load test a data entry scenario, a VU needs to use different dataset records.
StresStimulus supports seven databinding methods shown below. They appear in the variable picker control under the selected dataset field. To display the description of a data binding method, mouse over it.
A description of the databinding methods is provided in the table below. The following examples show which dataset record is used in each method: The sample dataset has 20 records. The test case includes 5 parameterized requests bound to this dataset. Two VUs run the test through two iterations. Both VUs traverse through their respective iterations asynchronously as they emulate independent physical users, so there is no synchronization between requests issued by different users.
1. Request-Bound data-binding method (Req-Bound).
Every parameter requested by any VU in any iteration gets a subsequent dataset row.
2. VU-Bound data-binding method (VU-Bound).
Every VU gets a subsequent dataset row used for all its parameters requested in all iterations.
3. Iteration-Bound data-binding method (Iter-Bound).
Every iteration gets a subsequent dataset row used by all VUs in all requested parameters.
4. Iteration-Request-Bound data-binding method (Iter-Req-Bound).
Every subsequently requested parameter in every iteration gets the subsequent dataset row shared by all VUs.
5. VU-Iteration data-binding method (VU-Iter-Bound).
Every VU on every iteration gets a unique value. The value is the same for all requests within the iteration.
6. Parameter- Bound data-binding method (Param-Bound).
Every requested parameter gets a subsequent dataset row shared by all VUs in all iterations.
7. Random data-binding method (Random).
Every request parameter gets an arbitrary dataset row.
Note: If the number of records in a dataset is insufficient, then the records will be reused according to the round-robin algorithm.
- No labels