public class ResponseTimeAlgorithm extends Object
| Constructor and Description |
|---|
ResponseTimeAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
static void |
runNewProgressionSession(Logger logger,
ServerConnector serverConnector,
RunningSession runningSession,
AppOutputProvider appOutputProvider,
RegionProvider regionProvider,
long startTime,
int deadline)
Runs a new progression session (i.e., no existing baseline).
|
static MatchWindowDataWithScreenshot |
runProgressionSessionForExistingBaseline(Logger logger,
ServerConnector serverConnector,
RunningSession runningSession,
AppOutputProvider appOutputProvider,
RegionProvider regionProvider,
long startTime,
int deadline,
int timeout,
long matchInterval)
Runs a progression session, for an existing baseline.
|
public static void runNewProgressionSession(Logger logger, ServerConnector serverConnector, RunningSession runningSession, AppOutputProvider appOutputProvider, RegionProvider regionProvider, long startTime, int deadline)
logger - The logger to use.serverConnector - The server connector to use.runningSession - The current session.appOutputProvider - A provider which enables us to capture a
screenshot.regionProvider - Which part of the screenshot we wish to compare.startTime - The start time for the test. should be the result of
a call to System.currentTimeMillis().deadline - The expected time by which the application
should have been loaded. (Seconds)public static MatchWindowDataWithScreenshot runProgressionSessionForExistingBaseline(Logger logger, ServerConnector serverConnector, RunningSession runningSession, AppOutputProvider appOutputProvider, RegionProvider regionProvider, long startTime, int deadline, int timeout, long matchInterval)
logger - The logger to use.serverConnector - The server connector to use for the matching.runningSession - The current session in which we perform the
matching.appOutputProvider - A provider which enables us to capture a
screenshot.regionProvider - Which part of the screenshot we wish to compare.startTime - The start time for the test. should be the result of
a call to System.currentTimeMillis().deadline - The expected time by which the application
should have been loaded. (Seconds)timeout - The maximum time waiting for the application to load.
(Seconds)matchInterval - The interval between performing matches.null if no match is found.Copyright © 2016. All rights reserved.