Skip to main content

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 globalConfig variable via getters.

  • globalConfig.getParticipant().getGlobalId() (Integer): ID of participant that is executing the test. This ID is unique inside whole test.
  • globalConfig.getParticipant().getId() (Integer): ID of participant that is executing the test. This ID is unique inside a group.
  • globalConfig.getParticipant().getName() (String): name of the participant as defined in the participant configuration.
  • globalConfig.getGroup().getId() (Integer): ID of the group of given participant which is executing the test. This ID is unique within the test run.
  • globalConfig.getGroup().getName() (String): name of the group as defined in the group configuration.
  • globalConfig.getRun().getId() (Integer): ID of this test run.
  • globalConfig.getRun().getParticipant().getId() (Integer): ID of the given run participant. The ID is globally unique and therefore will never match across all test runs.
  • globalConfig.getTest().getName() (String): name of current test.
  • globalConfig.getTest().getParticipantTimeout() (Integer): participant timeout in seconds of test.
  • globalConfig.getTest().getStartInterval() (Integer): start interval in seconds of test.
  • globalConfig.getTest().getTotalParticipants() (Integer): total participant count in test.
  • globalConfig.getAudioFeed() (String): audio feed of given participant.
  • globalConfig.getBrowser() (String): browser version used by given participant.
  • globalConfig.getComputeUnit() (String): compute unit of given participant.
  • globalConfig.getLocation() (String): location of given participant.
  • globalConfig.getMediaType() (String): media type of given participant.
  • globalConfig.getNetwork() (String): network conditions of given participant.
  • globalConfig.getVideoFeed() (String): video feed of given participant.

Sample Usage

public void testUIWithLoadero() {
System.out.printf(
"running participant %s with id %d in group %s with %d id in test %s",
globalConfig.getParticipant().getName(),
globalConfig.getParticipant().getId(),
globalConfig.getGroup().getName(),
globalConfig.getGroup().getId(),
globalConfig.getTest().getName()
);
}