Logo
2023.9.19

Data Sources

Abstract

DB

For individual parameterization of virtual users, the GeekLoad has special data sources, feeds and cursors.

The data source directly loads data from different formats before running the test.
The availability of data from these sources on agents is provided automatically.

Kinds of sources

.from

The data source is integrated into the project script.
Suitable for small data arrays.

Loading...

.csv

The data source is loaded from a file with comma-separated values.

Loading...

.jdbc

The data source is loaded from the database using the connection string.

Feeds

Feeds return items from the data source in an order that depends on the type of feed. For each source, you can create any number of feeds, including the same type.

All feeds are functions with one parameter - the cursor name.

Loading...

.byUser

Getting a unique value for each virtual user.

Within the same virtual user, the feed will try to use different values, but if they are not enough, then repetitions of values are possible.
If the number of values in the source is less than the number of virtual users, an exception will be thrown.

.byRandom

Getting a random value with a normal distribution from the source. The values can be repeated.

.byLocation

Getting a unique value for each location.

Within the same location, the feed will try to use different values, but if they are not enough, then repetitions of values are possible.
If the number of values in the source is less than the number of locations, an exception will be thrown.

.sequential

Sequential receipt of the next value within each agent. After the last value is given, the selection starts from the beginning.

Cursors

In scenarios executed by virtual users, sources and feeds are not available, instead use cursors that get data from feeds.

The use of the cursor is implemented as a function call with the cursor name without parameters.

Loading...

© House of Geeks 2024
Telegram