Class Phase

    • Method Detail

      • initialNumberOfUsers

        public final Integer initialNumberOfUsers()

        Specifies how many concurrent users to start with. The value should be between 1 and 3.

        Returns:
        Specifies how many concurrent users to start with. The value should be between 1 and 3.
      • spawnRate

        public final Integer spawnRate()

        Specified how many new users to spawn in a minute.

        Returns:
        Specified how many new users to spawn in a minute.
      • durationInSeconds

        public final Integer durationInSeconds()

        Specifies how long a traffic phase should be. For custom load tests, the value should be between 120 and 3600. This value should not exceed JobDurationInSeconds.

        Returns:
        Specifies how long a traffic phase should be. For custom load tests, the value should be between 120 and 3600. This value should not exceed JobDurationInSeconds.
      • serializableBuilderClass

        public static Class<? extends Phase.Builder> serializableBuilderClass()
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)