public class K3poRule
extends org.junit.rules.Verifier
| Constructor | Description |
|---|---|
K3poRule() |
Allocates a new K3poRule.
|
| Modifier and Type | Method | Description |
|---|---|---|
K3poRule |
addScriptRoot(java.lang.String shortName,
java.lang.String packagePath) |
Adds a named ClassPath root of where to look for scripts when resolving them.
|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description) |
|
void |
awaitBarrier(java.lang.String barrierName) |
Wait for barrier to fire.
|
void |
finish() |
Blocking call to await for the K3po threads to stop executing.
|
void |
notifyBarrier(java.lang.String barrierName) |
Notify barrier to fire.
|
K3poRule |
scriptProperty(java.lang.String property) |
Overrides a script property.
|
K3poRule |
setControlURI(java.net.URI controlURI) |
Sets the URI on which to communicate to the k3po driver.
|
K3poRule |
setScriptRoot(java.lang.String packagePath) |
Sets the ClassPath root of where to look for scripts when resolving them.
|
void |
start() |
Starts the connects in the robot scripts.
|
public K3poRule setScriptRoot(java.lang.String packagePath)
packagePath - is a package path used resolve relative script namespublic K3poRule addScriptRoot(java.lang.String shortName, java.lang.String packagePath)
"${shortName}/..." in script names.shortName - the short name used to refer to the package pathpackagePath - a package path used resolve relative script namespublic K3poRule setControlURI(java.net.URI controlURI)
controlURI - the URI on which to connectpublic org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description)
apply in class org.junit.rules.Verifierpublic void start()
public void finish()
throws java.lang.Exception
java.lang.Exception - if an error has occurred in the execution of the tests.public void awaitBarrier(java.lang.String barrierName)
throws java.lang.Exception
barrierName - is the name of the barrier to awaitjava.lang.InterruptedException - if await is interruptedjava.lang.Exceptionpublic K3poRule scriptProperty(java.lang.String property)
property - of scriptpublic void notifyBarrier(java.lang.String barrierName)
throws java.lang.Exception
barrierName - is the name for the barrier to notifyjava.lang.InterruptedException - if notify is interrupted (note: waits for confirm that is notified)java.lang.ExceptionCopyright © 2014 Kaazing, Inc. All Rights Reserved.