From 37abca2229dd9468d7c61cb1a4298c63158c6e63 Mon Sep 17 00:00:00 2001 From: hmm Date: Thu, 4 Sep 2014 17:43:29 +0800 Subject: [PATCH] response host ip to web when recording script resolve stop recording button add highlight in new script and new testplan webpage --- .../bench4q/master/api/ScriptController.java | 2 +- .../OperateScriptServerResponseModel.java | 20 +++++++++---------- Bench4Q-Web/src/main/webapp/createScript.jsp | 2 +- Bench4Q-Web/src/main/webapp/script.jsp | 2 +- .../script/RecordScript/RecordScriptServer.js | 19 ++++++------------ .../script/RecordScript/RecordScriptUI.js | 9 ++++++--- .../script/RecordScript/ScriptListManage.js | 2 -- .../webapp/script/TestPlan/TestPlanModels.js | 13 ++++++++++-- Bench4Q-Web/src/main/webapp/test.jsp | 1 + 9 files changed, 37 insertions(+), 33 deletions(-) diff --git a/Bench4Q-Master/src/main/java/org/bench4q/master/api/ScriptController.java b/Bench4Q-Master/src/main/java/org/bench4q/master/api/ScriptController.java index 871058f1..d96b4499 100644 --- a/Bench4Q-Master/src/main/java/org/bench4q/master/api/ScriptController.java +++ b/Bench4Q-Master/src/main/java/org/bench4q/master/api/ScriptController.java @@ -368,7 +368,7 @@ public class ScriptController extends BaseController { OperateScriptServerResponseModel responseModel = new OperateScriptServerResponseModel(); responseModel.setSuccess(isSuccess); responseModel.setFailCauseString(failCauseString); - responseModel.setHostName(hostName); + responseModel.setHostNameString(hostName); responseModel.setPort(port); responseModel.setFileName(fileName); if (scriptModels == null || scriptModels.size() == 0) { diff --git a/Bench4Q-Share/src/main/java/org/bench4q/share/models/master/OperateScriptServerResponseModel.java b/Bench4Q-Share/src/main/java/org/bench4q/share/models/master/OperateScriptServerResponseModel.java index d151d486..c740bcdf 100644 --- a/Bench4Q-Share/src/main/java/org/bench4q/share/models/master/OperateScriptServerResponseModel.java +++ b/Bench4Q-Share/src/main/java/org/bench4q/share/models/master/OperateScriptServerResponseModel.java @@ -37,16 +37,7 @@ public class OperateScriptServerResponseModel { public void setFailCauseString(String failCauseString) { this.failCauseString = failCauseString; } - - @XmlElement - public String getHostNameString() { - return hostNameString; - } - - public void setHostName(String hostNameString) { - this.hostNameString = hostNameString; - } - + @XmlElement public int getPort() { return port; @@ -65,6 +56,15 @@ public class OperateScriptServerResponseModel { this.fileName = fileName; } + @XmlElement + public String getHostNameString() { + return hostNameString; + } + + public void setHostNameString(String hostNameString) { + this.hostNameString = hostNameString; + } + @XmlElement public List getScriptModels() { return scriptModels; diff --git a/Bench4Q-Web/src/main/webapp/createScript.jsp b/Bench4Q-Web/src/main/webapp/createScript.jsp index 996d5298..13d69a4f 100644 --- a/Bench4Q-Web/src/main/webapp/createScript.jsp +++ b/Bench4Q-Web/src/main/webapp/createScript.jsp @@ -226,11 +226,11 @@ body { - + diff --git a/Bench4Q-Web/src/main/webapp/script.jsp b/Bench4Q-Web/src/main/webapp/script.jsp index 79ce3003..8ded5155 100644 --- a/Bench4Q-Web/src/main/webapp/script.jsp +++ b/Bench4Q-Web/src/main/webapp/script.jsp @@ -145,7 +145,7 @@ body {