diff --git a/ApiAutomationTest/app/static/js/module/module.js b/ApiAutomationTest/app/static/js/module/module.js
index 3c3e96e..82e8f52 100644
--- a/ApiAutomationTest/app/static/js/module/module.js
+++ b/ApiAutomationTest/app/static/js/module/module.js
@@ -300,9 +300,11 @@ function startProjectTest() {
// $btn_stop_project_test.attr('disabled', '');
}else{
message("项目测试启动失败: " + data.error_msg, "error");
+ projectDispatcherStoppedFinished();
}
}
});
+ projectDispatcherStarting();
}
// 终止当前模块测试
@@ -350,7 +352,13 @@ function getProjectDispatcherInfo() {
});
}
-// 项目调度不同状态-运行中 已停止/已完成 正在停止 缺省状态
+// 项目调度不同状态-正在启动 运行中 已停止/已完成 正在停止 缺省状态
+function projectDispatcherStarting() {
+ $btn_start_project_test.text('正在启动');
+ $btn_start_project_test.attr('disabled', true);
+ $btn_start_project_test.append("")
+ $btn_stop_project_test.removeAttr('disabled');
+}
function projectDispatcherRunning() {
$btn_start_project_test.text('正在执行');
$btn_start_project_test.attr('disabled', true);
diff --git a/ApiAutomationTest/app/static/js/scene/scene.js b/ApiAutomationTest/app/static/js/scene/scene.js
index df78ef5..3a2fd9f 100644
--- a/ApiAutomationTest/app/static/js/scene/scene.js
+++ b/ApiAutomationTest/app/static/js/scene/scene.js
@@ -223,9 +223,11 @@ function startModuleTest() {
// $btn_stop_module_test.attr('disabled', '');
}else{
message("模块测试启动失败: " + data.error_msg, "error");
+ moduleDispatcherStoppedFinished();
}
}
});
+ moduleDispatcherStarting();
}
// 终止当前模块测试
@@ -1563,7 +1565,13 @@ function getModuleDispatcherInfo() {
});
}
-// 模块调度不同状态-运行中 已停止/已完成 正在停止 缺省状态
+// 模块调度不同状态-正在启动 运行中 已停止/已完成 正在停止 缺省状态
+function moduleDispatcherStarting() {
+ $btn_start_module_test.text('正在启动');
+ $btn_start_module_test.attr('disabled', true);
+ $btn_start_module_test.append("")
+ $btn_stop_module_test.removeAttr('disabled');
+}
function moduleDispatcherRunning() {
$btn_start_module_test.text('正在执行');
$btn_start_module_test.attr('disabled', true);