Create a shared queue
To enable interaction with a shared queue, it is necessary to use:
- the Variable Modifier logical action, described in Variable modifier
- the VariableManager JavaScript API, described in Class VariableManager
Open the variable editing window from the Edit > Variables menu, and click New Variable.
Select Shared queue as the variable type.
The variable parameters are:
- Queue size: The maximum number of values the shared queue can contain.
- Read timeout (in ms): The maximum wait time for a value (in milliseconds) if the queue is empty. This wait time only applies if no values are available in the queue. If this wait time is exceeded, the value ${sharedQueueName} is returned.
- Use a swap file: A swap file may be used to pre-populate the queue at the start of the test or to save it at the end. To do this, check the Use a swap file box.
- CSV file location: Location of the swap file. This file must be in .csv format with no headers and one column.
- Column separator: The column separator used in the CSV file.
- Three swap file use policies are available:
- Read mode: Check the Populate queue from the file at the start of the test box.
- Write mode: Check the Save queue to the file at the end of the test box.
- Read and write mode: Check both boxes.
Home