net.thucydides.core.batches
Class SystemVariableBasedBatchManager
java.lang.Object
net.thucydides.core.batches.SystemVariableBasedBatchManager
- All Implemented Interfaces:
- BatchManager
- Direct Known Subclasses:
- TestCountBasedBatchManager
public class SystemVariableBasedBatchManager
- extends Object
- implements BatchManager
Manages running test cases (i.e. test classes) in batches.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
batchCount
protected final int batchCount
batchNumber
protected final int batchNumber
SystemVariableBasedBatchManager
@Inject
public SystemVariableBasedBatchManager(EnvironmentVariables environmentVariables)
- The batch manager is initiated using system properties.
These properties are "thucydides.batch.size" (or "thucydides.batch.count") and "thucydides.batch.number".
getCurrentTestCaseNumber
public int getCurrentTestCaseNumber()
- Specified by:
getCurrentTestCaseNumber in interface BatchManager
registerTestCase
public void registerTestCase(Class<?> klass)
- Specified by:
registerTestCase in interface BatchManager
registerTestCase
public void registerTestCase(String testCaseName)
- Specified by:
registerTestCase in interface BatchManager
shouldExecuteThisTest
public boolean shouldExecuteThisTest(int testCount)
- Specified by:
shouldExecuteThisTest in interface BatchManager
getActualBatchNumber
protected int getActualBatchNumber()
Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.