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 even across test runs.

  • globalConfig.getTest().getName() (String): name of current test.

  • globalConfig.getNetwork() (String): network conditions of given participant.

  • globalConfig.getBrowser() (String): browser version used by given participant.

  • globalConfig.getMediaType() (String): media type of given participant.

  • globalConfig.getLocation() (String): location of given participant