|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.ut2004.test.UT2004Test cz.cuni.amis.pogamut.ut2004.bot.UT2004BotTest
public abstract class UT2004BotTest
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.ut2004.test.UT2004Test |
---|
CTF_MAPS, DM_MAPS, log, testId, ucc, unrealHome, useInternalUcc |
Constructor Summary | |
---|---|
UT2004BotTest()
|
Method Summary | |
---|---|
protected String |
getGameType()
|
protected String |
getMapName()
|
protected void |
startTest(Class<? extends UT2004BotTestController> controllerClass)
Starts the test. |
protected void |
startTest(Class<? extends UT2004BotTestController> controllerClass,
double latchWaitMinutes)
Starts the test. |
protected void |
startTest(Class<? extends UT2004BotTestController> controllerClass,
double latchWaitMinutes,
int agentsCount)
Starts the test. |
protected void |
startTest(Class<? extends UT2004BotTestController> controllerClass,
double latchWaitMinutes,
UT2004BotParameters... params)
Starts the test. |
void |
startUCC(UCCWrapperConf uccConf)
Starts UCC server according to params obtained from getGameType() and
getMapName() . |
Methods inherited from class cz.cuni.amis.pogamut.ut2004.test.UT2004Test |
---|
afterTest, awaitAgentDown, awaitAgentUp, beforeTest, endUcc, startAllUTBots, startUTBot, startUTBot, startUTObserver, startUTServer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UT2004BotTest()
Method Detail |
---|
public void startUCC(UCCWrapperConf uccConf) throws UCCStartException
getGameType()
and
getMapName()
.
startUCC
in class UT2004Test
cz.cuni.amis.pogamut.ut2004.server.exceptions.UCCStartException
UCCStartException
protected String getGameType()
protected String getMapName()
protected void startTest(Class<? extends UT2004BotTestController> controllerClass)
Test bot will be controlled by 'controllerClass'.
The test will timeout after 1 minutes.
controllerClass
- protected void startTest(Class<? extends UT2004BotTestController> controllerClass, double latchWaitMinutes)
Test bot will be controlled by 'controllerClass'.
The test will timeout after 'latchWaitMinutes'.
controllerClass
- latchWaitMinutes
- protected void startTest(Class<? extends UT2004BotTestController> 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 UT2004BotTestController> 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 |