add warning when server error
This commit is contained in:
parent
6759fd36d8
commit
7fd8fcc076
|
@ -151,11 +151,11 @@ body {
|
||||||
<script src="lib/chrisma/js/theme.js"></script>
|
<script src="lib/chrisma/js/theme.js"></script>
|
||||||
<script src="lib/jqueryi18n/jquery.i18n.properties-1.0.9.js"></script>
|
<script src="lib/jqueryi18n/jquery.i18n.properties-1.0.9.js"></script>
|
||||||
<script src="http://malsup.github.com/jquery.form.js"></script>
|
<script src="http://malsup.github.com/jquery.form.js"></script>
|
||||||
|
<script src="script/Share/information.js"></script>
|
||||||
<script src="script/base.js"></script>
|
<script src="script/base.js"></script>
|
||||||
<script src="script/bench4q.table.js"></script>
|
<script src="script/bench4q.table.js"></script>
|
||||||
<script src="script/admin/agentManage.js"></script>
|
<script src="script/admin/agentManage.js"></script>
|
||||||
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
||||||
<script src="script/scriptManager/uiFactory.js"></script>
|
|
||||||
</fmt:bundle>
|
</fmt:bundle>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -231,6 +231,7 @@ body {
|
||||||
<script src="lib/other/jquery.msgbox.min.js"></script>
|
<script src="lib/other/jquery.msgbox.min.js"></script>
|
||||||
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
||||||
<script src="script/base.js"></script>
|
<script src="script/base.js"></script>
|
||||||
|
<script src="script/Share/information.js"></script>
|
||||||
<script src="script/scriptManager/scriptModels.js"></script>
|
<script src="script/scriptManager/scriptModels.js"></script>
|
||||||
<script src="script/scriptManager/editorFactory.js"></script>
|
<script src="script/scriptManager/editorFactory.js"></script>
|
||||||
<script src="script/scriptManager/containerFactory.js"></script>
|
<script src="script/scriptManager/containerFactory.js"></script>
|
||||||
|
|
|
@ -226,6 +226,7 @@
|
||||||
<script src="lib/other/jquery.msgbox.min.js"></script>
|
<script src="lib/other/jquery.msgbox.min.js"></script>
|
||||||
<script src="lib/HashMap/HashMap.js"></script>
|
<script src="lib/HashMap/HashMap.js"></script>
|
||||||
<script src="script/Share/getUrlVars.js"></script>
|
<script src="script/Share/getUrlVars.js"></script>
|
||||||
|
<script src="script/Share/information.js"></script>
|
||||||
<script src="script/scriptManager/editorFactory.js"></script>
|
<script src="script/scriptManager/editorFactory.js"></script>
|
||||||
<script src="script/scriptManager/dataFormat.js"></script>
|
<script src="script/scriptManager/dataFormat.js"></script>
|
||||||
<script src="script/scriptManager/containerFactory.js"></script>
|
<script src="script/scriptManager/containerFactory.js"></script>
|
||||||
|
|
|
@ -138,10 +138,10 @@ body {
|
||||||
<script src="script/scriptTable.js"></script>
|
<script src="script/scriptTable.js"></script>
|
||||||
<script src="script/bench4q.table.js"></script>
|
<script src="script/bench4q.table.js"></script>
|
||||||
<script src="script/Share/TestStatusMap.js"></script>
|
<script src="script/Share/TestStatusMap.js"></script>
|
||||||
|
<script src="script/Share/information.js"></script>
|
||||||
<script src="script/testPlanListManage.js"></script>
|
<script src="script/testPlanListManage.js"></script>
|
||||||
<script src="script/home.js"></script>
|
<script src="script/home.js"></script>
|
||||||
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
||||||
<script src="script/scriptManager/uiFactory.js"></script>
|
|
||||||
</fmt:bundle>
|
</fmt:bundle>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -48,3 +48,4 @@ plugin_jsp_addPage=Add Page
|
||||||
stopTestPlan_fail=Stop running test plan fail
|
stopTestPlan_fail=Stop running test plan fail
|
||||||
startRecordingMessage=Please click start recording
|
startRecordingMessage=Please click start recording
|
||||||
stopRecordingMessage=Please click stop recording
|
stopRecordingMessage=Please click stop recording
|
||||||
|
failed-connect-server=failed to connect server
|
|
@ -44,3 +44,4 @@ plugin_jsp_addPage=\u52A0\u9875
|
||||||
stopTestPlan_fail=\u505C\u6B62\u8FD0\u884C\u6D4B\u8BD5\u8BA1\u5212\u5931\u8D25
|
stopTestPlan_fail=\u505C\u6B62\u8FD0\u884C\u6D4B\u8BD5\u8BA1\u5212\u5931\u8D25
|
||||||
startRecordingMessage=\u8bf7\u70b9\u51fb\u5f00\u59cb\u5f55\u5236
|
startRecordingMessage=\u8bf7\u70b9\u51fb\u5f00\u59cb\u5f55\u5236
|
||||||
stopRecordingMessage=\u8bf7\u70b9\u51fb\u505c\u6b62\u5f55\u5236
|
stopRecordingMessage=\u8bf7\u70b9\u51fb\u505c\u6b62\u5f55\u5236
|
||||||
|
failed-connect-server=\u8FDE\u63A5\u670D\u52A1\u5668\u5931\u8D25\uFF01
|
|
@ -168,6 +168,7 @@ body {
|
||||||
|
|
||||||
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.0.min.js"></script>
|
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.0.min.js"></script>
|
||||||
<script src="lib/bootstrap/js/bootstrap-carousel.js"></script>
|
<script src="lib/bootstrap/js/bootstrap-carousel.js"></script>
|
||||||
|
<script src="script/Share/information.js"></script>
|
||||||
<script src="script/index.js"></script>
|
<script src="script/index.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -145,6 +145,6 @@
|
||||||
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.0.min.js"></script>
|
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.0.min.js"></script>
|
||||||
<script src="script/login.js"></script>
|
<script src="script/login.js"></script>
|
||||||
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
||||||
<script src="script/scriptManager/uiFactory.js"></script>
|
<script src="script/Share/information.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -108,7 +108,7 @@
|
||||||
<script src="script/bench4q.table.js"></script>
|
<script src="script/bench4q.table.js"></script>
|
||||||
<script src="script/admin/pluginManage.js"></script>
|
<script src="script/admin/pluginManage.js"></script>
|
||||||
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
||||||
<script src="script/scriptManager/uiFactory.js"></script>
|
<script src="script/Share/information.js"></script>
|
||||||
</fmt:bundle>
|
</fmt:bundle>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -108,7 +108,7 @@
|
||||||
<script src="script/base.js"></script>
|
<script src="script/base.js"></script>
|
||||||
<script src="script/admin/portManage.js"></script>
|
<script src="script/admin/portManage.js"></script>
|
||||||
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
||||||
<script src="script/scriptManager/uiFactory.js"></script>
|
<script src="script/Share/information.js"></script>
|
||||||
</fmt:bundle>
|
</fmt:bundle>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -103,7 +103,7 @@
|
||||||
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.0.3.min.js"></script>
|
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.0.3.min.js"></script>
|
||||||
<script src="script/register.js"></script>
|
<script src="script/register.js"></script>
|
||||||
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
||||||
<script src="script/scriptManager/uiFactory.js"></script>
|
<script src="script/Share/information.js"></script>
|
||||||
</fmt:bundle>
|
</fmt:bundle>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -82,7 +82,7 @@ body {
|
||||||
<script src="lib/jqueryi18n/jquery.i18n.properties-1.0.9.js"></script>
|
<script src="lib/jqueryi18n/jquery.i18n.properties-1.0.9.js"></script>
|
||||||
<script src="script/login.js"></script>
|
<script src="script/login.js"></script>
|
||||||
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
||||||
<script src="script/scriptManager/uiFactory.js"></script>
|
<script src="script/Share/information.js"></script>
|
||||||
</fmt:bundle>
|
</fmt:bundle>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -230,7 +230,7 @@ body {
|
||||||
<script src="script/testResult/behaviorResult.js"></script>
|
<script src="script/testResult/behaviorResult.js"></script>
|
||||||
<script src="script/testResult/result.js"></script>
|
<script src="script/testResult/result.js"></script>
|
||||||
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
||||||
<script src="script/scriptManager/uiFactory.js"></script>
|
<script src="script/Share/information.js"></script>
|
||||||
</fmt:bundle>
|
</fmt:bundle>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -239,7 +239,7 @@ body {
|
||||||
<script src="script/RecordScript/RecordScriptUI.js"></script>
|
<script src="script/RecordScript/RecordScriptUI.js"></script>
|
||||||
<script src="script/RecordScript/RecordScriptServer.js"></script>
|
<script src="script/RecordScript/RecordScriptServer.js"></script>
|
||||||
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
||||||
<script src="script/scriptManager/uiFactory.js"></script>
|
<script src="script/Share/information.js"></script>
|
||||||
</fmt:bundle>
|
</fmt:bundle>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -24,7 +24,9 @@ function startServer() {
|
||||||
$.i18n.prop("startServerFail") + data.failedMessage);
|
$.i18n.prop("startServerFail") + data.failedMessage);
|
||||||
information($.i18n.prop("startServerFail") + data.failedMessage);
|
information($.i18n.prop("startServerFail") + data.failedMessage);
|
||||||
}
|
}
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function startRecording() {
|
function startRecording() {
|
||||||
|
@ -47,7 +49,9 @@ function startRecording() {
|
||||||
$('#startRecording').attr('disabled', true);
|
$('#startRecording').attr('disabled', true);
|
||||||
startRecordingSuccess = true;
|
startRecordingSuccess = true;
|
||||||
}
|
}
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
$('#scriptInfo3').text("record script server has not started");
|
$('#scriptInfo3').text("record script server has not started");
|
||||||
}
|
}
|
||||||
|
@ -71,7 +75,9 @@ function stopRecording() {
|
||||||
startRecordingSuccess = false;
|
startRecordingSuccess = false;
|
||||||
}
|
}
|
||||||
$('#stopRecording').attr('disabled', true);
|
$('#stopRecording').attr('disabled', true);
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
$('#scriptInfo3').text("record script server has not started");
|
$('#scriptInfo3').text("record script server has not started");
|
||||||
}
|
}
|
||||||
|
@ -91,7 +97,9 @@ function stopServer() {
|
||||||
startServerSuccess = false;
|
startServerSuccess = false;
|
||||||
}
|
}
|
||||||
$('#startRecording').attr('disabled', false);
|
$('#startRecording').attr('disabled', false);
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
$('#scriptInfo3').text("record script server has not started");
|
$('#scriptInfo3').text("record script server has not started");
|
||||||
}
|
}
|
||||||
|
@ -107,7 +115,9 @@ function testRecordProxy() {
|
||||||
} else {
|
} else {
|
||||||
$("#ProxySettingMessage").attr("class","show");
|
$("#ProxySettingMessage").attr("class","show");
|
||||||
}
|
}
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function saveScript() {
|
function saveScript() {
|
||||||
|
|
|
@ -21,7 +21,9 @@ function loadScript(table) {
|
||||||
information(data.failedMessage);
|
information(data.failedMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
function addEvent(table) {
|
function addEvent(table) {
|
||||||
|
@ -55,7 +57,9 @@ function deleteScript(scriptId, row) {
|
||||||
information(data.failedMessage);
|
information(data.failedMessage);
|
||||||
// error message
|
// error message
|
||||||
}
|
}
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
function editScript(scriptId, scriptName) {
|
function editScript(scriptId, scriptName) {
|
||||||
window.open("editScript.jsp?name=" + scriptName + "&scriptId=" + scriptId);// need
|
window.open("editScript.jsp?name=" + scriptName + "&scriptId=" + scriptId);// need
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
function information(text){
|
||||||
|
noty({text: text,type:'information',layout:'center'});
|
||||||
|
setTimeout("document.body.removeChild(noty_center_layout_container)",2000);
|
||||||
|
}
|
|
@ -16,6 +16,8 @@ function loadScripts(){
|
||||||
var selectNode = document.getElementsByName("select")[0];
|
var selectNode = document.getElementsByName("select")[0];
|
||||||
selectNode.appendChild(optionNode);
|
selectNode.appendChild(optionNode);
|
||||||
}
|
}
|
||||||
|
}).error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,6 +44,8 @@ function loadFilterTypeList(){
|
||||||
$('#filterList').append(table);
|
$('#filterList').append(table);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}).error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,6 +65,8 @@ function getScriptId(scriptName) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else information(data.failedMessage);
|
else information(data.failedMessage);
|
||||||
|
}).error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
});
|
});
|
||||||
return scriptId;
|
return scriptId;
|
||||||
|
|
||||||
|
@ -130,6 +136,7 @@ function start() {
|
||||||
information(data.failedMessage);
|
information(data.failedMessage);
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,6 +49,8 @@ function loadAgents(table) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}).error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
})
|
})
|
||||||
function formatAgentStatus(status) {
|
function formatAgentStatus(status) {
|
||||||
if (status == "InIdle") {
|
if (status == "InIdle") {
|
||||||
|
@ -79,7 +81,9 @@ function deleteAgent(id, hostName, row) {
|
||||||
information(data.failedMessage);
|
information(data.failedMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
function addAgentToDB() {
|
function addAgentToDB() {
|
||||||
|
@ -95,7 +99,9 @@ function addAgentToDB() {
|
||||||
} else {
|
} else {
|
||||||
information(data.failedMessage);
|
information(data.failedMessage);
|
||||||
}
|
}
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
$('#agentList').click(function(e) {
|
$('#agentList').click(function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
|
@ -19,6 +19,8 @@ function loadPluginInfo() {
|
||||||
table.dataTable().fnAddData(
|
table.dataTable().fnAddData(
|
||||||
[ data[i].pluginInfoModel.name, time, deleteButton ]);
|
[ data[i].pluginInfoModel.name, time, deleteButton ]);
|
||||||
}
|
}
|
||||||
|
}).error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,6 +42,8 @@ function deleteAPlugin(plugin){
|
||||||
}
|
}
|
||||||
information("delete success!");
|
information("delete success!");
|
||||||
location.replace(location) ;
|
location.replace(location) ;
|
||||||
|
}).error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,8 @@ function deletePort(row, portId) {
|
||||||
row.remove().draw();
|
row.remove().draw();
|
||||||
} else
|
} else
|
||||||
information(data.failedMessage);
|
information(data.failedMessage);
|
||||||
|
}).error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,6 +35,8 @@ function addPort(params) {
|
||||||
} else {
|
} else {
|
||||||
information(data.failedMessage);
|
information(data.failedMessage);
|
||||||
}
|
}
|
||||||
|
}).error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function loadPorts(table) {
|
function loadPorts(table) {
|
||||||
|
@ -52,6 +56,8 @@ function loadPorts(table) {
|
||||||
information(data.failedMessage);
|
information(data.failedMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}).error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
$("#plus").click(function(e) {
|
$("#plus").click(function(e) {
|
||||||
|
|
|
@ -49,7 +49,9 @@ function login() {
|
||||||
else {
|
else {
|
||||||
information(data.failedMessage);
|
information(data.failedMessage);
|
||||||
}
|
}
|
||||||
},"json");
|
},"json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
function adminLogin() {
|
function adminLogin() {
|
||||||
|
|
||||||
|
@ -68,6 +70,8 @@ function adminLogin() {
|
||||||
else {
|
else {
|
||||||
information(data.failedMessage);
|
information(data.failedMessage);
|
||||||
}
|
}
|
||||||
|
}).error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function register() {
|
function register() {
|
||||||
|
@ -96,7 +100,9 @@ function register() {
|
||||||
// $('#registerMsg').html($.i18n.prop('msgRegister'));
|
// $('#registerMsg').html($.i18n.prop('msgRegister'));
|
||||||
$('#registerMsg').show();
|
$('#registerMsg').show();
|
||||||
}
|
}
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#img").mouseover(function(){document.getElementById("img").setAttribute("src", "img/githubsignon1.jpg");});
|
$("#img").mouseover(function(){document.getElementById("img").setAttribute("src", "img/githubsignon1.jpg");});
|
||||||
|
|
|
@ -43,7 +43,9 @@ function register(scope) {
|
||||||
information(data.failedMessage);
|
information(data.failedMessage);
|
||||||
// $('#registerMsg').html($.i18n.prop('msgRegister'));
|
// $('#registerMsg').html($.i18n.prop('msgRegister'));
|
||||||
}
|
}
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function password_validation(scope) {
|
function password_validation(scope) {
|
||||||
|
|
|
@ -23,7 +23,9 @@ function loadScript(table) {
|
||||||
information(data.failedMessage);
|
information(data.failedMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
function addEvent(table) {
|
function addEvent(table) {
|
||||||
|
@ -57,7 +59,9 @@ function deleteScript(scriptId, row) {
|
||||||
information(data.failedMessage);
|
information(data.failedMessage);
|
||||||
// error message
|
// error message
|
||||||
}
|
}
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
function editScript(scriptId, scriptName) {
|
function editScript(scriptId, scriptName) {
|
||||||
window.open("editScript.jsp?name=" + scriptName + "&scriptId=" + scriptId);// need
|
window.open("editScript.jsp?name=" + scriptName + "&scriptId=" + scriptId);// need
|
||||||
|
|
|
@ -121,6 +121,8 @@ function Behavior(usePlugin, containerId) {
|
||||||
});
|
});
|
||||||
createRadioGroupByAttribute(dataBehaviors, "name",
|
createRadioGroupByAttribute(dataBehaviors, "name",
|
||||||
"name", "name", "method", "pluginMethod")
|
"name", "name", "method", "pluginMethod")
|
||||||
|
}).error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -285,6 +287,8 @@ function Behavior(usePlugin, containerId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}).error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,9 @@ function getScriptObject(scriptId,usePlugin) {
|
||||||
|
|
||||||
usePlugin.initPluginAndPages(scriptObj);
|
usePlugin.initPluginAndPages(scriptObj);
|
||||||
}
|
}
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
|
|
|
@ -93,6 +93,8 @@ function UsePlugin(behaviorListContainerId) {
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}).error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -115,6 +117,8 @@ function UsePlugin(behaviorListContainerId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}).error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,9 @@ function loadScript(table, actionId) {
|
||||||
information(data.failedMessage);
|
information(data.failedMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
function addScriptAction() {
|
function addScriptAction() {
|
||||||
|
|
|
@ -28,7 +28,9 @@ function loadTestPlans(table) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
function addEvent(table){
|
function addEvent(table){
|
||||||
var tbody = table.table().body();
|
var tbody = table.table().body();
|
||||||
|
@ -76,6 +78,8 @@ function deleteTest(testPlanId, row) {
|
||||||
} else {
|
} else {
|
||||||
information($.i18n.prop('fail'));
|
information($.i18n.prop('fail'));
|
||||||
}
|
}
|
||||||
|
}).error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
|
@ -49,7 +49,9 @@ function Behavior() {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
this.insertDataToTable = function(table, map) {
|
this.insertDataToTable = function(table, map) {
|
||||||
|
|
|
@ -100,7 +100,9 @@ Chart.prototype.getGraphDataFirstly=function(model){
|
||||||
chart.addDataToGraph(chart, model, data);
|
chart.addDataToGraph(chart, model, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -126,7 +128,9 @@ Chart.prototype.addGraph = function(model) {
|
||||||
chart.addDataToGraph(chart, model, data);
|
chart.addDataToGraph(chart, model, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
if($("#status").attr("status")=="Complete"){
|
if($("#status").attr("status")=="Complete"){
|
||||||
clearInterval(intervalId);
|
clearInterval(intervalId);
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,11 +28,15 @@ function getResultTree(testPlanId) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
error: function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return tree;
|
return tree;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//function createScriptResultInfoTree(testPlanId, tree) {
|
//function createScriptResultInfoTree(testPlanId, tree) {
|
||||||
// var scriptResultTree = new Tree();
|
// var scriptResultTree = new Tree();
|
||||||
// scriptResultTree.createRoot("Script", "script");
|
// scriptResultTree.createRoot("Script", "script");
|
||||||
|
|
|
@ -44,7 +44,9 @@ function PageResult() {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,9 @@ var UrlContentTypeDistribution = function(containerId, testPlanId) {
|
||||||
|
|
||||||
|
|
||||||
loadItems.urlDistribution=true;
|
loadItems.urlDistribution=true;
|
||||||
},"json");
|
},"json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
|
|
||||||
if (testStatus == "Complete"&&i>=1) {
|
if (testStatus == "Complete"&&i>=1) {
|
||||||
clearInterval(intervalId);
|
clearInterval(intervalId);
|
||||||
|
|
|
@ -39,7 +39,9 @@ $(function() {
|
||||||
information($.i18n("stopTestPlan_fail"));
|
information($.i18n("stopTestPlan_fail"));
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
}).error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
|
@ -61,6 +63,9 @@ function getTestInfo(testPlanId) {
|
||||||
} else {
|
} else {
|
||||||
testPlan = data.testPlan;
|
testPlan = data.testPlan;
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
error: function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return testPlan;
|
return testPlan;
|
||||||
|
|
|
@ -26,7 +26,9 @@ function showTestPlanStatusAsync(testPlanId) {
|
||||||
$('#status').html("<h4>" + testStatus + '</h4>');
|
$('#status').html("<h4>" + testStatus + '</h4>');
|
||||||
}
|
}
|
||||||
|
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
function showTestBriefStatus(testPlanId) {
|
function showTestBriefStatus(testPlanId) {
|
||||||
var urlAddress = testPlanId + "/testBriefStatus";
|
var urlAddress = testPlanId + "/testBriefStatus";
|
||||||
|
@ -46,5 +48,7 @@ function showTestBriefStatus(testPlanId) {
|
||||||
if ($('#status').attr("status") == "Complete") {
|
if ($('#status').attr("status") == "Complete") {
|
||||||
$("#vu").html("<h4>" + 0 + "</h4>");
|
$("#vu").html("<h4>" + 0 + "</h4>");
|
||||||
}
|
}
|
||||||
}, "json");
|
}, "json").error(function(){
|
||||||
|
information($.i18n.prop('failed-connect-server'));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -229,7 +229,7 @@ body {
|
||||||
<script src="http://code.highcharts.com/highcharts.js"></script>
|
<script src="http://code.highcharts.com/highcharts.js"></script>
|
||||||
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
||||||
<script src="script/base.js"></script>
|
<script src="script/base.js"></script>
|
||||||
<script src="script/scriptManager/uiFactory.js"></script>
|
<script src="script/Share/information.js"></script>
|
||||||
<script src="script/Share/loadProperties.js"></script>
|
<script src="script/Share/loadProperties.js"></script>
|
||||||
<script src="script/TestPlan/TestPlanModels.js"></script>
|
<script src="script/TestPlan/TestPlanModels.js"></script>
|
||||||
<script src="script/TestPlan/TestPlanUI.js"></script>
|
<script src="script/TestPlan/TestPlanUI.js"></script>
|
||||||
|
|
|
@ -135,7 +135,7 @@ body {
|
||||||
<script src="script/Share/TestStatusMap.js"></script>
|
<script src="script/Share/TestStatusMap.js"></script>
|
||||||
<script src="script/testPlans.js"></script>
|
<script src="script/testPlans.js"></script>
|
||||||
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
<script src="lib/other/jquery.noty.packaged.min.js"></script>
|
||||||
<script src="script/scriptManager/uiFactory.js"></script>
|
<script src="script/Share/information.js"></script>
|
||||||
</fmt:bundle>
|
</fmt:bundle>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue