add zero point to ScheduleModel of test plan
This commit is contained in:
parent
ed8161f13d
commit
fcead6e026
|
@ -74,6 +74,8 @@ function getScriptId(scriptName) {
|
||||||
function getPointModelList(allocation,requireLoadArrayObj,executeRangeArrayObj){
|
function getPointModelList(allocation,requireLoadArrayObj,executeRangeArrayObj){
|
||||||
var pointModelList = new Array();
|
var pointModelList = new Array();
|
||||||
var preExeRange = 0;
|
var preExeRange = 0;
|
||||||
|
var zeroPointModel = new WebPointModel(0,0);
|
||||||
|
pointModelList.push(zeroPointModel);
|
||||||
for(var i=1;i< requireLoadArrayObj.length;i++){
|
for(var i=1;i< requireLoadArrayObj.length;i++){
|
||||||
var realLoad = parseInt(parseInt(requireLoadArrayObj[i].value)*allocation/100);
|
var realLoad = parseInt(parseInt(requireLoadArrayObj[i].value)*allocation/100);
|
||||||
var pointModel = new WebPointModel(preExeRange+=parseInt(executeRangeArrayObj[i].value),realLoad);
|
var pointModel = new WebPointModel(preExeRange+=parseInt(executeRangeArrayObj[i].value),realLoad);
|
||||||
|
|
Loading…
Reference in New Issue