From 6da38bc71ea8218093bb76a466af209540f8bbde Mon Sep 17 00:00:00 2001 From: Lukas Lanzner Date: Wed, 13 Jul 2022 17:58:02 +0200 Subject: [PATCH 1/3] implement table-sorting in report.html --- locust/templates/report.html | 74 +++++++++++++++++++++++------------- 1 file changed, 47 insertions(+), 27 deletions(-) diff --git a/locust/templates/report.html b/locust/templates/report.html index de9ea927dd..d739eda28c 100644 --- a/locust/templates/report.html +++ b/locust/templates/report.html @@ -54,16 +54,16 @@

Request Statistics

- - - - - - - - - - + + + + + + + + + + @@ -90,16 +90,16 @@

Response Time Statistics

MethodName# Requests# FailsAverage (ms)Min (ms)Max (ms)Average size (bytes)RPSFailures/sMethodName# Requests# FailsAverage (ms)Min (ms)Max (ms)Average size (bytes)RPSFailures/s
- - - - - - - - - - + + + + + + + + + + @@ -127,10 +127,10 @@

Failures Statistics

MethodName50%ile (ms)60%ile (ms)70%ile (ms)80%ile (ms)90%ile (ms)95%ile (ms)99%ile (ms)100%ile (ms)MethodName50%ile (ms)60%ile (ms)70%ile (ms)80%ile (ms)90%ile (ms)95%ile (ms)99%ile (ms)100%ile (ms)
- - + + - + @@ -153,10 +153,10 @@

Exceptions Statistics

MethodNameMethodName ErrorOccurrencesOccurrences
- - + + - + @@ -183,7 +183,7 @@

Charts

Final ratio

- + {# #} @@ -238,5 +238,25 @@

Final ratio

fillTasksFromObj() + + From 51c8344e985634d3cc7d4653a557035d6366ddef Mon Sep 17 00:00:00 2001 From: Lukas Lanzner Date: Thu, 14 Jul 2022 22:40:42 +0200 Subject: [PATCH 2/3] improve report sorting --- locust/templates/report.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locust/templates/report.html b/locust/templates/report.html index d739eda28c..6220eb7b97 100644 --- a/locust/templates/report.html +++ b/locust/templates/report.html @@ -243,7 +243,7 @@

Final ratio

$('.sortable').click(function() { var table = $(this).parents('table').eq(0) var rowArray = table.find('tr:gt(0)').toArray() - var aggregatedRow = $(rowArray).get(-1) + var aggregatedRow = rowArray.pop() var rows = rowArray.sort(comparer($(this).index())) this.asc = !this.asc if (!this.asc){rows = rows.reverse()} From 870994466831f79f4df9bf546db790ebce3cd718 Mon Sep 17 00:00:00 2001 From: Lukas Lanzner Date: Mon, 18 Jul 2022 22:02:09 +0200 Subject: [PATCH 3/3] enabled sorting of error messages as well as stacktraces --- locust/templates/report.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/locust/templates/report.html b/locust/templates/report.html index 6220eb7b97..ac21c42c10 100644 --- a/locust/templates/report.html +++ b/locust/templates/report.html @@ -129,7 +129,7 @@

Failures Statistics

- + @@ -155,7 +155,7 @@

Exceptions Statistics

- +
CountMessageCountMessage TracebackNodesNodes
Method NameErrorError Occurrences
Count MessageTracebackTraceback Nodes