public class ResponseTimeAlgorithm extends Object
| Constructor and Description |
|---|
ResponseTimeAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
static com.applitools.eyes.MatchWindowDataWithScreenshot |
cloneTimedMWDWSWithPrimary(com.applitools.eyes.MatchWindowDataWithScreenshot currentMwdws,
boolean updatePrimary)
Clones the given
MatchWindowDataWithScreenshot instance, while
setting the primary to the required value. |
static String |
createTagForDeadline(int deadline,
long elapsedTime)
Creates a string describing the elapsed time relative to a deadline.
|
static int |
findEarliestMatchIndex(Logger logger,
com.applitools.eyes.ServerConnector serverConnector,
com.applitools.eyes.RunningSession runningSession,
List<com.applitools.eyes.MatchWindowDataWithScreenshot> collectedData,
com.applitools.eyes.MatchWindowDataWithScreenshot theMatch,
com.applitools.eyes.MatchWindowDataWithScreenshot lastNonMatch)
Find the EARLIEST match within the collected data.
|
static ResponseTimeInitialMatchSearchResult |
responseTimeInitialMatchSearch(Logger logger,
com.applitools.eyes.ServerConnector serverConnector,
com.applitools.eyes.RunningSession runningSession,
AppOutputProvider appOutputProvider,
com.applitools.eyes.RegionProvider regionProvider,
long startTime,
int deadline,
int timeout,
long matchInterval,
List<com.applitools.eyes.MatchWindowDataWithScreenshot> collectedData)
Performs an initial search for a match.
|
public static String createTagForDeadline(int deadline, long elapsedTime)
deadline - The deadline to be used as reference. (Seconds)elapsedTime - The elapsed time to describe. (Second)public static com.applitools.eyes.MatchWindowDataWithScreenshot cloneTimedMWDWSWithPrimary(com.applitools.eyes.MatchWindowDataWithScreenshot currentMwdws,
boolean updatePrimary)
MatchWindowDataWithScreenshot instance, while
setting the primary to the required value.currentMwdws - The instance to clone.updatePrimary - The primary value to set.public static ResponseTimeInitialMatchSearchResult responseTimeInitialMatchSearch(Logger logger, com.applitools.eyes.ServerConnector serverConnector, com.applitools.eyes.RunningSession runningSession, AppOutputProvider appOutputProvider, com.applitools.eyes.RegionProvider regionProvider, long startTime, int deadline, int timeout, long matchInterval, List<com.applitools.eyes.MatchWindowDataWithScreenshot> collectedData)
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.collectedData - A container in which we will store all the captured
screenshots.public static int findEarliestMatchIndex(Logger logger, com.applitools.eyes.ServerConnector serverConnector, com.applitools.eyes.RunningSession runningSession, List<com.applitools.eyes.MatchWindowDataWithScreenshot> collectedData, com.applitools.eyes.MatchWindowDataWithScreenshot theMatch, com.applitools.eyes.MatchWindowDataWithScreenshot lastNonMatch)
logger - The logger to use.serverConnector - The server connector to use for the matching.runningSession - The current session in which we perform the
matching.collectedData - The list of captured screenshots in which to
search for a match.theMatch - The match data of the currently known successful match,
or null if no match is known.lastNonMatch - The match data of the last known failed match, or
null if no such failed match is known.Copyright © 2015. All rights reserved.