|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.amis.tests.BaseTest
cz.cuni.amis.pogamut.emohawk.test.EmohawkTest
cz.cuni.amis.pogamut.emohawk.bot.EmohawkBotTest
public abstract class EmohawkBotTest
UT2004Bot test - it allows you to easily specify the game type and map name the bot should run at + specify a timeout for the test.
Just use one of the startTest(Class)
methods
Field Summary |
---|
Fields inherited from class cz.cuni.amis.pogamut.emohawk.test.EmohawkTest |
---|
emohawkHome, log, MAPS, testId, ucc, useInternalUcc |
Fields inherited from class cz.cuni.amis.tests.BaseTest |
---|
NEW_LINE |
Constructor Summary | |
---|---|
EmohawkBotTest()
|
Method Summary | |
---|---|
protected String |
getMapName()
|
protected void |
startTest(Class<? extends EmohawkBotTestController> controllerClass)
Starts the test. |
protected void |
startTest(Class<? extends EmohawkBotTestController> controllerClass,
double latchWaitMinutes)
Starts the test. |
protected void |
startTest(Class<? extends EmohawkBotTestController> controllerClass,
double latchWaitMinutes,
int agentsCount)
Starts the test. |
protected void |
startTest(Class<? extends EmohawkBotTestController> controllerClass,
double latchWaitMinutes,
UT2004BotParameters... params)
Starts the test. |
void |
startUCC(UCCWrapperConfEmohawk uccConf)
Starts UCC server according to params obtained from EmohawkBotTest#getGameType() and
getMapName() . |
Methods inherited from class cz.cuni.amis.pogamut.emohawk.test.EmohawkTest |
---|
afterTest, awaitAgentDown, awaitAgentUp, beforeTest, endUcc, startAllUTBots, startUTBot, startUTBot, startUTObserver, startUTServer |
Methods inherited from class cz.cuni.amis.tests.BaseTest |
---|
assertFail, assertFalse, assertTrue, baseTestBeforeClass, getLogLevel, is32Bit, is64Bit, isLinux, isMac, isWindows, log, process, process, testFailed, testFailed, testOk |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmohawkBotTest()
Method Detail |
---|
public void startUCC(UCCWrapperConfEmohawk uccConf) throws UCCStartException
EmohawkBotTest#getGameType()
and
getMapName()
.
startUCC
in class EmohawkTest
cz.cuni.amis.pogamut.ut2004.server.exceptions.UCCStartException
UCCStartException
protected String getMapName()
protected void startTest(Class<? extends EmohawkBotTestController> controllerClass)
Test bot will be controlled by 'controllerClass'.
The test will timeout after 1 minutes.
controllerClass
- protected void startTest(Class<? extends EmohawkBotTestController> controllerClass, double latchWaitMinutes)
Test bot will be controlled by 'controllerClass'.
The test will timeout after 'latchWaitMinutes'.
controllerClass
- latchWaitMinutes
- protected void startTest(Class<? extends EmohawkBotTestController> controllerClass, double latchWaitMinutes, int agentsCount)
Test bot will be controlled by 'controllerClass'.
The test will timeout after 'latchWaitMinutes'.
The test will lauch 'agentsCount' of bots of 'controllerClass' creating empty UT2004BotParameters
for every one of them.
controllerClass
- latchWaitMinutes
- agentsCount
- protected void startTest(Class<? extends EmohawkBotTestController> controllerClass, double latchWaitMinutes, UT2004BotParameters... params)
Test bot will be controlled by 'controllerClass' and will be configured with 'params.
The test will timeout after 'latchWaitMinutes'. TODO: [Jimmy] in the case of more bots, we should hook listeners to failure flags of bots to end the test case as early as possible
controllerClass
- params
- latchWaitMinutes
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |