diff --git a/Bench4Q-Web/src/main/webapp/result.jsp b/Bench4Q-Web/src/main/webapp/result.jsp
index ccf44279..124b0f8d 100644
--- a/Bench4Q-Web/src/main/webapp/result.jsp
+++ b/Bench4Q-Web/src/main/webapp/result.jsp
@@ -103,6 +103,7 @@ body {
Script |
Successful |
Total |
+ detail |
diff --git a/Bench4Q-Web/src/main/webapp/script/testResult/behaviorResult.js b/Bench4Q-Web/src/main/webapp/script/testResult/behaviorResult.js
index c56eb32f..335bc7ac 100644
--- a/Bench4Q-Web/src/main/webapp/script/testResult/behaviorResult.js
+++ b/Bench4Q-Web/src/main/webapp/script/testResult/behaviorResult.js
@@ -2,6 +2,7 @@ function Behavior() {
this.addButton = "";
this.deleteButton = "";
this.table = $("#url").DataTable();
+ this.table.column(5).visible(false);
this.loadBehaviorResults = function(testPlanId, scripts) {
var table = $("#url").DataTable();
var map = new HashMap();
@@ -56,21 +57,19 @@ function Behavior() {
for ( var j = 0; j < behaviors.length; j++) {
var data = behaviors[j];
- var rowNode=table.row.add([this.addButton,data.behaviorUrl,names[k],data.totalCount,data.successfulCount]);
- rowNode.data(behaviors[i].detailStatusCodeResultModels);
+ var rowNode = table.row.add([ this.addButton, data.behaviorUrl,
+ names[k], data.totalCount, data.successfulCount ,data.detailStatusCodeResultModels]);
}
table.draw();
}
this.addEvent();
}
- this.createDetailTable = function(behaviorData) {
+ this.createDetailTable = function(url,detailDatas) {
var theader = [ "url", "statusCode", "count", "contentLength",
"minResponseTime", "maxResponseTime",
"totalResponseTimeThisTime" ];
var table = $("");
- var url = behaviorData.url;
- var detailDatas = behaviorData.detailStatusCodeResultModels;
table.addClass("innerTable");
var thead = $("");
var tr = $("
");
@@ -104,11 +103,11 @@ function Behavior() {
this.addEvent = function() {
var behavior = this;
$(".show-detail").click(function() {
-
- var tr = $(this).closest('tr');
- var row = behavior.table.row(tr);
- row.child(behavior.createDetailTable(row.data())).show();
-
+
+ var tr = $(this).closest('tr');
+ var row = behavior.table.row(tr);
+ row.child(behavior.createDetailTable(row.data()[0],row.data()[5])).show();
+
});
$(".delete-detail").click(function() {
var tr = $(this).closest('tr');