remove a bug for ms to s
remove a bug for ms to s :from milisecond to second
This commit is contained in:
parent
5390aa5c05
commit
0f29deb274
|
@ -205,9 +205,8 @@ public class TestPlanScript implements RunningScriptInterface {
|
|||
return false;
|
||||
}
|
||||
Timer timer = new Timer();
|
||||
ExecutionOverTask executionOverTask = new ExecutionOverTask(this);
|
||||
timer.schedule(executionOverTask, (testScriptConfig.getExecuteRange())
|
||||
* SECOND_MILISECOND_UNIT_CONVERSION);
|
||||
timer.schedule(new ExecutionOverTask(this),
|
||||
(testScriptConfig.getExecuteRange()));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -44,7 +44,6 @@ import org.bench4q.share.models.master.RunningScriptModel;
|
|||
import org.bench4q.share.models.master.TestPlanModel;
|
||||
import org.bench4q.share.models.master.statistics.ScriptResultModel;
|
||||
import org.bench4q.share.models.monitor.MonitorMain;
|
||||
import org.python.antlr.PythonParser.return_stmt_return;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
@ -159,7 +158,7 @@ public class TestPlanFactory {
|
|||
// filter the script
|
||||
Script script = this.getScriptService().getScript(scriptId);
|
||||
testPlanScript.setFilteredScriptCnt(createAScriptWithFilter(
|
||||
scriptFilterOptionsModel,script.getScriptContent()));
|
||||
scriptFilterOptionsModel, script.getScriptContent()));
|
||||
testPlanScript.setScript(script);
|
||||
testPlanScript.setPlanedConfig(createAPlanedConfigWithoutId(config));
|
||||
testPlanScript.setTestPlan(testPlanDB);
|
||||
|
@ -167,8 +166,9 @@ public class TestPlanFactory {
|
|||
}
|
||||
|
||||
private String createAScriptWithFilter(
|
||||
ScriptFilterOptionsModel scriptFilterOptionsModel, String scriptContent) {
|
||||
if(scriptFilterOptionsModel == null){
|
||||
ScriptFilterOptionsModel scriptFilterOptionsModel,
|
||||
String scriptContent) {
|
||||
if (scriptFilterOptionsModel == null) {
|
||||
return scriptContent;
|
||||
}
|
||||
RunScenarioModel runScenarioModel = (RunScenarioModel) MarshalHelper
|
||||
|
|
|
@ -63,7 +63,7 @@ public class Test_TestPlan extends TestBase_MakeUpTestPlan {
|
|||
|
||||
assertTrue(this.getTestPlanRepository().updateEntity(testPlanInDomain));
|
||||
TestPlan testPlanAfterRun = this.getTestPlanRepository()
|
||||
.getTestPlanInDomainBy(getTestPlanRunIdUuid());
|
||||
.getRunningTestPlanBy(getTestPlanRunIdUuid());
|
||||
testPlanAfterRun = this.getTestPlanFactory().convertToDomain(
|
||||
testPlanAfterRun);
|
||||
Set<TestPlanScript> testPlanScripts = testPlanAfterRun
|
||||
|
|
Loading…
Reference in New Issue