public final class ScriptLink extends Object
Automates verification of script link integrity reducing time spent troubleshooting when dependencies fail.
Modifier and Type | Field and Description |
---|---|
private Controller |
controller
Controller instance for composition base.
|
private ResultBuilder |
model
Model -- result builder to compose result of test.
|
Modifier | Constructor and Description |
---|---|
private |
ScriptLink(Controller.Builder controllerParam)
Private constructor for use by
nuevo(us.johnmeyer.sitetest.core.Controller.Builder) . |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Entry method for command line access - runs one test.
|
static ScriptLink |
nuevo(Controller.Builder controllerBuilderParam)
Returns a new ScriptLink test instance based on target URL.
|
Result |
run()
Runs the site exist test; failure info in SiteException.
|
String |
toString()
Returns state information.
|
private final Controller controller
private final ResultBuilder model
private ScriptLink(Controller.Builder controllerParam)
nuevo(us.johnmeyer.sitetest.core.Controller.Builder)
.controllerParam
- test information and helperspublic static void main(String[] args) throws Exception
args
- command line argument: URL of site to qualifyException
- for any issue, including
BrowserstackAutomateKeyException if Browserstack Automate key has
bad syntax.public static ScriptLink nuevo(Controller.Builder controllerBuilderParam) throws IllegalArgumentException
controllerBuilderParam
- readied controller builderIllegalArgumentException
- if controller argument is nullpublic String toString()
public Result run()
Copyright © 2018. All rights reserved.