add zero point to ScheduleModel of test plan

This commit is contained in:
hmm 2014-09-09 17:07:34 +08:00
parent ed8161f13d
commit fcead6e026
1 changed files with 2 additions and 0 deletions

View File

@ -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);