public abstract class UT2004BotTest extends UT2004Test
Just use one of the startTest(Class)
methods
CTF_MAPS, DM_MAPS, log, testId, ucc, unrealHome, useInternalUcc
Constructor and Description |
---|
UT2004BotTest() |
Modifier and Type | Method and Description |
---|---|
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() . |
afterTest, awaitAgentDown, awaitAgentUp, beforeTest, endUcc, startAllUTBots, startUTBot, startUTBot, startUTObserver, startUTServer
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
- Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.