Skip to main content

Loadero variables

Loadero offers some variables that can be accessed in the script. These variables hold information relevant to the participant that is executing the test. The method of accessing these variables differs depending on the language.

Variables are available through client.globals directive.

  • client.globals.participant.globalID (Number): ID of participant that is executing the test. This ID is unique inside whole test.
  • (Number): ID of participant that is executing the test. This ID is unique inside group.
  • (String): name of the participant as defined in the participant configuration.
  • (Number): ID of the group of given participant that is executing test. This ID is unique within test run.
  • (String): name of the group as defined in the group configuration.
  • (Number): ID of the given test run.
  • (Number) ID of the given run participant. The ID is globally unique and therefore will never match across all test runs.
  • (String): name of the current test.
  • client.globals.test.participantTimeout (Number): participant timeout in seconds of test.
  • client.globals.test.startInterval (Number): start interval in seconds of test.
  • client.globals.test.totalParticipants (Number): total participant count in test.
  • client.globals.audioFeed (String): audio feed of given participant.
  • client.globals.browser (String): browser version used by given participant.
  • client.globals.computeUnit (String): compute unit of given participant.
  • client.globals.location (String): location of given participant.
  • client.globals.mediaType (String): media type of given participant.
  • (String): network conditions of given participant.
  • client.globals.videoFeed (String): video feed of given participant.

Sample Usage

client => {
`running participant ${} ` +
`with id ${} in group ` +
`${} with ${} id ` +
`in test ${}`