public final class TargetList extends Object
TargetList.Pages
.Modifier and Type | Class and Description |
---|---|
(package private) static class |
TargetList.Pages
List of URL/pages to test.
|
Modifier and Type | Field and Description |
---|---|
private ArrayList<Exist> |
existTests
Exist test.
|
static String |
PARAM_COUNT_ERROR
Error to show if no parameters passed on command line.
|
private ArrayList<ScriptLink> |
scriptLinkTests
ScriptLink test.
|
private ArrayList<VersionSlug> |
versionSlugTests
VersionSlug test.
|
private WebDriverWrapper |
webDriverWrapper
Selenium WebDriver.
|
Modifier | Constructor and Description |
---|---|
private |
TargetList(WebDriverWrapper webDriverWrapperParam,
String buildName,
String versionIdParam)
Private constructor for use by
nuevo(us.johnmeyer.sitetest.credentials.WebDriverWrapper, java.lang.String, java.lang.String) . |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Entry method for command line access - runs all tests.
|
static TargetList |
nuevo(WebDriverWrapper webDriverWrapperParam,
String buildNameParam,
String versionIdParam)
Returns a new Controller List instance based on build name.
|
void |
run()
Runs the site exist test; failure info in SiteException.
|
String |
toString()
Returns state information.
|
public static final String PARAM_COUNT_ERROR
private WebDriverWrapper webDriverWrapper
private ArrayList<ScriptLink> scriptLinkTests
private ArrayList<VersionSlug> versionSlugTests
private TargetList(WebDriverWrapper webDriverWrapperParam, String buildName, String versionIdParam)
nuevo(us.johnmeyer.sitetest.credentials.WebDriverWrapper, java.lang.String, java.lang.String)
. Creates
each test for each URL.webDriverWrapperParam
- (wrapped) Selenium webdriver to usebuildName
- build name used by Browserstack to organize resultsversionIdParam
- ID against which to check embedded version slugpublic static void main(String[] args) throws BrowserstackAutomateKeyException
args
- command line argument: url, buildname, version IDBrowserstackAutomateKeyException
- if the automate key cannot
be validatedpublic static TargetList nuevo(WebDriverWrapper webDriverWrapperParam, String buildNameParam, String versionIdParam) throws NullPointerException
webDriverWrapperParam
- (wrapped) Selenium webdriver to usebuildNameParam
- build name used by Browserstack to organize
resultsversionIdParam
- version ID we should expect to findNullPointerException
- if an input parameter is null.public String toString()
public void run()
Copyright © 2018. All rights reserved.