Interface UsageScenario<T>

    • Method Detail

      • name

        String name()
        Returns:
        the name of this scenario
      • defaultWeight

        int defaultWeight()
        Returns:
        the default weight for this scenario, 1 by default
      • maximumTime

        int maximumTime()
        The maximum time in milliseconds this scenario can run before issuing a warning.
        Returns:
        the warning time
      • run

        void run​(T application)
        Runs this scenario with the given application
        Parameters:
        application - the application to use
      • totalRunCount

        int totalRunCount()
        Returns:
        the total number of times this scenario has been run
      • exceptions

        List<Exception> exceptions()
        Returns:
        any exceptions that have occurred during a run
      • resetRunCount

        void resetRunCount()
        Resets the run counters
      • clearExceptions

        void clearExceptions()
        Clears the exceptions that have been collected so far
      • successfulRunCount

        int successfulRunCount()
        Returns:
        the number of times this scenario has been successfully run
      • unsuccessfulRunCount

        int unsuccessfulRunCount()
        Returns:
        the number of times this scenario has been unsuccessfully run