public final class VersionSlug extends Object
Modifier and Type | Field and Description |
---|---|
private Controller |
controller
Controller instance for composition base.
|
private String |
expectedVersionId
Version slug to check for.
|
private ResultBuilder |
model
Controller result builder to compose result of test.
|
private static String |
VERSIONSLUG_ADDITIONAL_ARGUMENTS
Additional (third plus) command line argument syntax.
|
private static int |
VERSIONSLUG_PARAMETER_COUNT
Count of parameters.
|
Modifier | Constructor and Description |
---|---|
private |
VersionSlug(Controller testParam,
String versionIdParam)
Private constructor for use by
nuevo(us.johnmeyer.sitetest.core.Controller.Builder, java.lang.String) . |
Modifier and Type | Method and Description |
---|---|
static String |
getThirdParamDescription()
Returns third command line parameter description.
|
static void |
main(String[] argsParam)
Entry method for command line access - runs one test.
|
static VersionSlug |
nuevo(Controller.Builder testBuilderParam,
String versionIdParam)
Creates a new VersionSlug test instance based on a test builder
and the expected version ID.
|
Result |
run()
Runs the version check.
|
void |
setFail(String failReason)
Provide reason for failure.
|
String |
toString()
Returns state information.
|
private static final String VERSIONSLUG_ADDITIONAL_ARGUMENTS
private static final int VERSIONSLUG_PARAMETER_COUNT
private final Controller controller
private final ResultBuilder model
private final String expectedVersionId
private VersionSlug(Controller testParam, String versionIdParam)
nuevo(us.johnmeyer.sitetest.core.Controller.Builder, java.lang.String)
.testParam
- Controller instance to embed compositionally.versionIdParam
- version ID to check for in the slugpublic String toString()
public static String getThirdParamDescription()
public static void main(String[] argsParam) throws BrowserstackAutomateKeyException
argsParam
- command line argument: [url] [build name] [version id]BrowserstackAutomateKeyException
- if Browserstack Automate key has
bad syntax.public static VersionSlug nuevo(Controller.Builder testBuilderParam, String versionIdParam)
testBuilderParam
- builder to use to create testversionIdParam
- version ID to expect in the test target.public Result run()
public void setFail(String failReason)
failReason
- why this test failedCopyright © 2018. All rights reserved.