remove bug

This commit is contained in:
fanfuxiaoran 2014-07-03 13:56:29 +08:00
parent 37c76081bb
commit c4038feeef
3 changed files with 10 additions and 14 deletions

View File

@ -2,16 +2,11 @@ package org.bench4q.web.api;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.Date;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;
import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException; import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller; import javax.xml.bind.Marshaller;
import org.bench4q.share.helper.MarshalHelper;
import org.bench4q.share.models.master.statistics.ScriptPagesBriefModel;
import org.bench4q.web.model.ResultInfoModel; import org.bench4q.web.model.ResultInfoModel;
import org.bench4q.web.model.TestResult; import org.bench4q.web.model.TestResult;

View File

@ -9,6 +9,7 @@ var ChartSelector = function(allTree, showTree, chart, addSelectorId,
this.addButton = addButton; this.addButton = addButton;
this.deleteButton = deleteButton; this.deleteButton = deleteButton;
this.createSelector($("#" + addSelectorId), this.excessTree.root); this.createSelector($("#" + addSelectorId), this.excessTree.root);
this.createSelector($("#" + deleteSelectorId), this.showTree.root);
this.chart = chart; this.chart = chart;
this.addEventListener(this); this.addEventListener(this);
}; };
@ -190,8 +191,8 @@ ChartSelector.prototype.addGraph = function() {
}; };
ChartSelector.prototype.initChart = function() { ChartSelector.prototype.initChart = function() {
var model = new Model(); var model = new Model();
model.setSeries(this.getSelectedNames(this.addSelectorId)); model.setSeries(this.getSelectedNames(this.deleteSelectorId));
model.setUrl(this.getSlectedVluesArray(this.addSelectorId), this); model.setUrl(this.getSlectedVluesArray(this.deleteSelectorId), this);
model.axis = (model.series + "_Axis"); model.axis = (model.series + "_Axis");
this.chart.addGraph(model); this.chart.addGraph(model);
}; };

View File

@ -4,11 +4,11 @@ var testStatus;
$(function() { $(function() {
var testPlanId = getvars()['testPlanId']; var testPlanId = getvars()['testPlanId'];
var testPlan = getTestInfo(testPlanId); var testPlan = getTestInfo(testPlanId);
// getTestBrief(); // getTestBrief();
loadPageResult(testPlanId, testPlan.scripts); loadPageResult(testPlanId, testPlan.scripts);
var behavior=new Behavior(); // var behavior = new Behavior();
behavior.loadBehaviorResults(testPlanId, testPlan.scripts); // behavior.loadBehaviorResults(testPlanId, testPlan.scripts);
var tree = getResultTree(testPlanId); var tree = getResultTree(testPlanId);
var chart = new Chart(); var chart = new Chart();
chart.createChart($("#chart")); chart.createChart($("#chart"));
@ -16,9 +16,9 @@ $(function() {
getShowTreePathValues(tree)); getShowTreePathValues(tree));
chartSelector.initChart(); chartSelector.initChart();
graphButtonListener(chartSelector); graphButtonListener(chartSelector);
// var behaviorResult = new BehaviorResult(); // var behaviorResult = new BehaviorResult();
// behaviorResult.getResult(testPlanId, getScriptList(testPlanId)); // behaviorResult.getResult(testPlanId, getScriptList(testPlanId));
// // var pageResult = new PageResult(); // // var pageResult = new PageResult();
// pageResult.getResult(testPlanId, getScriptList(testPlanId)); // pageResult.getResult(testPlanId, getScriptList(testPlanId));
var urlContentTypeDistribution = new UrlContentTypeDistribution( var urlContentTypeDistribution = new UrlContentTypeDistribution(
"url-distribution", testPlanId); "url-distribution", testPlanId);