public class K3poRule
extends org.junit.rules.Verifier
| Constructor and Description |
|---|
K3poRule()
Allocates a new K3poRule.
|
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description) |
void |
awaitBarrier(String barrierName)
Wait for barrier to fire.
|
void |
finish()
Blocking call to await for the K3po threads to stop executing.
|
void |
notifyBarrier(String barrierName)
Notify barrier to fire.
|
K3poRule |
scriptProperty(String property)
Overrides a script property.
|
K3poRule |
setControlURI(URI controlURI)
Sets the URI on which to communicate to the k3po driver.
|
K3poRule |
setScriptRoot(String scriptRoot)
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(String scriptRoot)
scriptRoot - is a directory/package name of where to resolve scripts from.public K3poRule setControlURI(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 interface org.junit.rules.TestRuleapply in class org.junit.rules.Verifierpublic void start()
public void finish()
throws Exception
Exception - if an error has occurred in the execution of the tests.public void awaitBarrier(String barrierName) throws InterruptedException
barrierName - is the name of the barrier to awaitInterruptedException - if await is interruptedpublic K3poRule scriptProperty(String property)
property - of scriptpublic void notifyBarrier(String barrierName) throws InterruptedException
barrierName - is the name for the barrier to notifyInterruptedException - if notify is interrupted (note: waits for confirm that is notified)Copyright © 2014 Kaazing, Inc. All Rights Reserved.