@Override public boolean shouldExecuteThisTest(int testCount) { if (batchCount > 0) { return (testCaseCount.get() % batchCount == getActualBatchNumber()); } else { return true; } }
public void registerTestCase(String testCaseName) { registerTestCaseIfNew(testCaseName); }
/** * The batch manager is initiated using system properties. * These properties are "thucydides.batch.size" (or "thucydides.batch.count") and "thucydides.batch.number". */ @Inject public SystemVariableBasedBatchManager(EnvironmentVariables environmentVariables) { this.batchCount = getBatchCountFrom(environmentVariables); this.batchNumber = THUCYDIDES_BATCH_NUMBER.integerFrom(environmentVariables, 0); }
/** * The batch manager is initiated using system properties. * These properties are "thucydides.batch.size" (or "thucydides.batch.count") and "thucydides.batch.number". */ @Inject public SystemVariableBasedBatchManager(EnvironmentVariables environmentVariables) { this.batchCount = getBatchCountFrom(environmentVariables); this.batchNumber = THUCYDIDES_BATCH_NUMBER.integerFrom(environmentVariables, 0); }
public void registerTestCase(String testCaseName) { registerTestCaseIfNew(testCaseName); }
@Override public boolean shouldExecuteThisTest(int testCount) { if (batchCount > 0) { return (testCaseCount.get() % batchCount == getActualBatchNumber()); } else { return true; } }
/** * The batch manager is initiated using system properties. * These properties are "thucydides.batch.size" (or "thucydides.batch.count") and "thucydides.batch.number". */ @Inject public SystemVariableBasedBatchManager(EnvironmentVariables environmentVariables) { this.batchCount = getBatchCountFrom(environmentVariables); this.batchNumber = environmentVariables.getPropertyAsInteger(THUCYDIDES_BATCH_NUMBER.getPropertyName(), 0); }
public void registerTestCase(String testCaseName) { registerTestCaseIfNew(testCaseName); }
@Override public boolean shouldExecuteThisTest(int testCount) { if (batchCount > 0) { return (testCaseCount.get() % batchCount == getActualBatchNumber()); } else { return true; } }
public void registerTestCase(Class<?> klass) { String testCaseName = klass.getName(); registerTestCaseIfNew(testCaseName); }
public void registerTestCase(Class<?> klass) { String testCaseName = klass.getName(); registerTestCaseIfNew(testCaseName); }
public void registerTestCase(Class<?> klass) { String testCaseName = klass.getName(); registerTestCaseIfNew(testCaseName); }