From 06a1d745f2f34392d73c85566eee30ea66ba83e8 Mon Sep 17 00:00:00 2001 From: luqiong <605601787@qq.com> Date: Wed, 3 Sep 2014 16:52:26 +0800 Subject: [PATCH] reorganize recordScript code --- .../webapp/WEB-INF/classes/i18n_en.properties | 2 +- .../webapp/WEB-INF/classes/i18n_zh.properties | 2 +- .../src/main/webapp/i18n/i18n.properties | 2 +- .../main/webapp/i18n/i18n_zh-CN.properties | 4 +- .../src/main/webapp/i18n/i18n_zh.properties | 0 Bench4Q-Web/src/main/webapp/images/cross.png | Bin 0 -> 655 bytes Bench4Q-Web/src/main/webapp/script.jsp | 32 ++-- .../RecordScriptServer.js} | 172 +++++++----------- .../script/RecordScript/RecordScriptUI.js | 49 +++++ .../script/RecordScript/ScriptListManage.js | 64 +++++++ 10 files changed, 201 insertions(+), 126 deletions(-) delete mode 100644 Bench4Q-Web/src/main/webapp/i18n/i18n_zh.properties create mode 100644 Bench4Q-Web/src/main/webapp/images/cross.png rename Bench4Q-Web/src/main/webapp/script/{script.js => RecordScript/RecordScriptServer.js} (55%) create mode 100644 Bench4Q-Web/src/main/webapp/script/RecordScript/RecordScriptUI.js create mode 100644 Bench4Q-Web/src/main/webapp/script/RecordScript/ScriptListManage.js diff --git a/Bench4Q-Web/src/main/webapp/WEB-INF/classes/i18n_en.properties b/Bench4Q-Web/src/main/webapp/WEB-INF/classes/i18n_en.properties index 4a63f9ef..dad8f3b1 100644 --- a/Bench4Q-Web/src/main/webapp/WEB-INF/classes/i18n_en.properties +++ b/Bench4Q-Web/src/main/webapp/WEB-INF/classes/i18n_en.properties @@ -39,7 +39,7 @@ agentManage_jsp_addAgent=Add Agent portManage_jsp_addPort=Add Port configuredmessage=Here settings can be configured startserver=Start Server -stopserver=Stop Server +stoprecording=Stop Recording savefile=Save File editscript=Edit Script savechanges=Save diff --git a/Bench4Q-Web/src/main/webapp/WEB-INF/classes/i18n_zh.properties b/Bench4Q-Web/src/main/webapp/WEB-INF/classes/i18n_zh.properties index 6bb6eb72..c201880c 100644 --- a/Bench4Q-Web/src/main/webapp/WEB-INF/classes/i18n_zh.properties +++ b/Bench4Q-Web/src/main/webapp/WEB-INF/classes/i18n_zh.properties @@ -39,7 +39,7 @@ agentManage_jsp_addAgent=\u6DFB\u52A0\u4EE3\u7406 portManage_jsp_addPort=\u6DFB\u52A0\u7AEF\u53E3 configuredmessage=\u5728\u8FD9\u91CC\u53EF\u4EE5\u914D\u7F6E startserver=\u542F\u52A8\u670D\u52A1\u5668 -stopserver=\u505C\u6B62\u670D\u52A1\u5668 +stoprecording=\u505C\u6B62\u5f55\u5236 savefile=\u4FDD\u5B58\u6587\u4EF6 editscript=\u7F16\u8F91\u811A\u672C savechanges=\u4FDD\u5B58 diff --git a/Bench4Q-Web/src/main/webapp/i18n/i18n.properties b/Bench4Q-Web/src/main/webapp/i18n/i18n.properties index dcbd9f9f..ff593055 100644 --- a/Bench4Q-Web/src/main/webapp/i18n/i18n.properties +++ b/Bench4Q-Web/src/main/webapp/i18n/i18n.properties @@ -47,4 +47,4 @@ saveScriptFail=Fail to save script. plugin_jsp_addPage=Add Page stopTestPlan_fail=Stop running test plan fail RecordingScript=Recording Script -stopRecord=click stop server to stop recording script \ No newline at end of file +stoprecord=click stop script recording to stop recording script \ No newline at end of file diff --git a/Bench4Q-Web/src/main/webapp/i18n/i18n_zh-CN.properties b/Bench4Q-Web/src/main/webapp/i18n/i18n_zh-CN.properties index 085485cf..3b513f41 100644 --- a/Bench4Q-Web/src/main/webapp/i18n/i18n_zh-CN.properties +++ b/Bench4Q-Web/src/main/webapp/i18n/i18n_zh-CN.properties @@ -37,10 +37,10 @@ recordScript=\u5F55\u5236\u811A\u672C startServerFail=\u542F\u52A8\u670D\u52A1\u5668\u5931\u8D25: setProxy=\u8BF7\u8BBE\u7F6E\u4EE3\u7406: recordScript=\u5F55\u5236\u811A\u672C -stopRecord=\u505C\u6B62\u811A\u672C\u5F55\u5236\uFF0C\u8BF7\u8F93\u5165\u811A\u672C\u540D\u79F0\uFF0C\u4FDD\u5B58\u811A\u672C +stopRecord=\u505C\u6B62\u811A\u672C\u5F55\u5236\uFF0C\u8BF7\u5148\u66f4\u6539\u6d4f\u89c8\u5668\u4ee3\u7406\u8bbe\u7f6e\uff0c\u518d\u8F93\u5165\u811A\u672C\u540D\u79F0\uFF0C\u4FDD\u5B58\u811A\u672C saveScriptSuccess=\u4FDD\u5B58\u6210\u529F\u3002 saveScriptFail=\u4FDD\u5B58\u811A\u672C\u5931\u8D25 plugin_jsp_addPage=\u52A0\u9875 stopTestPlan_fail=\u505C\u6B62\u8FD0\u884C\u6D4B\u8BD5\u8BA1\u5212\u5931\u8D25 RecordingScript=\u6b63\u5728\u5f55\u5236\u811a\u672c -stopRecord=\u70b9\u51fb\u505c\u6b62\u670d\u52a1\u5668\u505c\u6b62\u5f55\u5236\u811a\u672c \ No newline at end of file +stoprecord=\u70b9\u51fb\u505c\u6b62\u5f55\u5236\u505c\u6b62\u5f55\u5236\u811a\u672c \ No newline at end of file diff --git a/Bench4Q-Web/src/main/webapp/i18n/i18n_zh.properties b/Bench4Q-Web/src/main/webapp/i18n/i18n_zh.properties deleted file mode 100644 index e69de29b..00000000 diff --git a/Bench4Q-Web/src/main/webapp/images/cross.png b/Bench4Q-Web/src/main/webapp/images/cross.png new file mode 100644 index 0000000000000000000000000000000000000000..1514d51a3cf1b67e1c5b9ada36f1fd474e2d214a GIT binary patch literal 655 zcmV;A0&x9_P)uEoyT++I zn$b9r%cFfhHe2K68PkBu*@^<$y+7xQ$wJ~;c5aBx$R=xq*41Wo zhwQus_VOgm0hughj}MhOvs#{>Vg09Y8WxjWUJY5YW zJ?&8eG!59Cz=|E%Ns@013KLWOLV)CObIIj_5{>{#k%TEAMs_GbdDV`x-iYsGH z#=Z{USAQA>NY(}X7=3{K8# @@ -109,7 +118,7 @@ body { + onclick="dismiss(mySecondModal)">×