tagRepository.deleteAll();
tagRepository.flush();
}
public PerfTest newPerfTest(String testName, Status status, Date scheduledTime) {
PerfTest test = new PerfTest();
test.setTestName(testName);
test.setThreshold("D");
test.setDuration(4000L);
test.setAgentCount(1);
test.setVuserPerAgent(4);
test.setScheduledTime(scheduledTime);
test.setIgnoreSampleCount(0);
test.setTargetHosts("127.0.0.1");
test.setScriptName("test1.py");
test.setProcesses(2);
test.setThreads(2);
test.setRampUpStep(1);
test.setRampUpInitSleepTime(0);
test.setRampUpIncrementInterval(1000);
test.setStatus(status);
test.setCreatedUser(getTestUser());
test.setRegion(config.getRegion());
test.setSamplingInterval(1);
return test;
}