parent
5e869eccfa
commit
bb68839b93
|
@ -213,10 +213,6 @@ stopRecording=Stop Recording
|
|||
custom-mode=Custom Mode
|
||||
target-mode=Target Mode
|
||||
load-mode=Load Mode
|
||||
target-type=Target Type
|
||||
affairs-name=Affairs Name
|
||||
target-value=Target Value
|
||||
cpu-threshold=CPU Threshold
|
||||
stress-control=Stress Control
|
||||
initial-users=Initial Users
|
||||
maximum-users=Maximum Users
|
||||
|
|
|
@ -214,10 +214,6 @@ stopRecording=\u505C\u6B62\u5f55\u5236
|
|||
custom-mode=\u5E38\u89C4\u6A21\u5F0F
|
||||
target-mode=\u76EE\u6807\u6A21\u5F0F
|
||||
load-mode=\u65BD\u538B\u6A21\u5F0F
|
||||
target-type=\u76EE\u6807\u7C7B\u578B
|
||||
affairs-name=\u4E8B\u52A1\u540D
|
||||
target-value=\u76EE\u6807\u503C
|
||||
cpu-threshold=\u9650\u5236\u9608\u503C
|
||||
stress-control=\u538B\u529B\u63A7\u5236
|
||||
initial-users=\u521D\u59CB\u7528\u6237\u6570
|
||||
maximum-users=\u6700\u5927\u7528\u6237\u6570
|
||||
|
|
|
@ -152,13 +152,30 @@ function loadLimitableFields(){
|
|||
var script = new Array();
|
||||
for ( var i = 0; i < data.length; i++)
|
||||
script.push(data[i]);
|
||||
var tbodyNode = document.getElementById("loadConfig2").children[0];
|
||||
for ( var j = 0; j < script.length; j++) {
|
||||
var textNode = document.createTextNode(script[j]);
|
||||
var optionNode = document.createElement("option");
|
||||
optionNode.setAttribute("value", script[j]);
|
||||
optionNode.appendChild(textNode);
|
||||
var selectNode = document.getElementsByName("select-target-type")[0];
|
||||
selectNode.appendChild(optionNode);
|
||||
var tdNode = document.createElement("td");
|
||||
var tdNode2 = document.createElement("td");
|
||||
var inputNode = document.createElement("input");
|
||||
inputNode.setAttribute("name", script[j]);
|
||||
inputNode.setAttribute("class","load-config-input");
|
||||
inputNode.setAttribute("type","text");
|
||||
if(j%2){
|
||||
tdNode.appendChild(textNode);
|
||||
trNode.appendChild(tdNode);
|
||||
tbodyNode.appendChild(trNode);
|
||||
tdNode2.appendChild(inputNode);
|
||||
trNode2.appendChild(tdNode2);
|
||||
tbodyNode.appendChild(trNode2);
|
||||
}else{
|
||||
var trNode = document.createElement("tr");
|
||||
var trNode2 = document.createElement("tr");
|
||||
tdNode.appendChild(textNode);
|
||||
trNode.appendChild(tdNode);
|
||||
tdNode2.appendChild(inputNode);
|
||||
trNode2.appendChild(tdNode2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}).error(function(){
|
||||
|
|
|
@ -181,8 +181,8 @@ function loadSchedulePlot2() {
|
|||
var IncreaseUsers = parseInt($('input[name="increase-users"]').val());
|
||||
var time = 0;
|
||||
for(var i = InitialUsers; i <= MaxUsers; i+=IncreaseUsers){
|
||||
time += TimeInterval;
|
||||
options.series[0].data.push([time,i]);
|
||||
time += TimeInterval;
|
||||
}
|
||||
|
||||
var chart = new Highcharts.Chart(options);
|
||||
|
|
|
@ -150,34 +150,12 @@ body {
|
|||
<div id="test-plan-continuous2" class="form" style="float: left;">
|
||||
<div class="field-inline">
|
||||
<table id="loadConfig2" class="table-margin-top">
|
||||
<tr>
|
||||
<td width="30%"><fmt:message key="target-type" /></td>
|
||||
<td width="40%"><fmt:message key="affairs-name" /></td>
|
||||
<td width="30%"><fmt:message key="target-value" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><select name="select-target-type"></select></td>
|
||||
<td><input name="affairs-name"
|
||||
class="load-config-input" type="text" value="" /></td>
|
||||
<td><input name="target-value"
|
||||
class="load-config-input" type="text" value="100" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30%">cpu <fmt:message key="cpu-threshold" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input name="cpu-threshold"
|
||||
class="load-config-input" type="text" value="100" /> % </td>
|
||||
</tr>
|
||||
</table>
|
||||
<tr><td><hr></td></tr>
|
||||
<table id="loadConfig3" class="table-margin-top">
|
||||
<tr>
|
||||
<th><fmt:message key="stress-control" /></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="50%"><fmt:message key="initial-users" /></td>
|
||||
<td width="50%"><fmt:message key="maximum-users" /></td>
|
||||
<td><fmt:message key="initial-users" /></td>
|
||||
<td><fmt:message key="maximum-users" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input name="initial-users"
|
||||
|
@ -199,6 +177,7 @@ body {
|
|||
class="load-config-input" type="text" value="10"
|
||||
onblur="loadSchedulePlot2();checkLoadConfig()" /></td>
|
||||
</tr>
|
||||
<tr><td><hr></td></tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue