Variables

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. Variables are available through GLOBALS constant using the following methods:

  • GLOBALS.participant.global_id (int): ID of participant that is executing the test. This ID is unique inside whole test.
  • GLOBALS.participant.id (int): ID of participant that is executing the test. This ID is unique inside a group.
  • GLOBALS.participant.name (str): name of the participant as defined in the participant configuration.
  • GLOBALS.group.id (int): ID of the group of given participant which is executing the test. This ID is unique within the test run.
  • GLOBALS.group.name (str): name of the group as defined in the group configuration.
  • GLOBALS.run.id (int): ID of this test run.
  • GLOBALS.run.participant.id (int): ID of the given run participant. The ID is globally unique and therefore will never match across all test runs.
  • GLOBALS.test.name (str): name of current test.
  • GLOBALS.test.participant_timeout (int): participant timeout in seconds of test.
  • GLOBALS.test.start_interval (int): start interval in seconds of test.
  • GLOBALS.test.total_participants (int): total participant count in test.
  • GLOBALS.audio_feed (str): audio feed of given participant.
  • GLOBALS.browser (str): browser version used by given participant.
  • GLOBALS.compute_unit (str): compute unit of given participant.
  • GLOBALS.location (str): location of given participant.
  • GLOBALS.media_type (str): media type of given participant.
  • GLOBALS.network (str): network conditions of given participant.
  • GLOBALS.video_feed (str): video feed of given participant.