-
Notifications
You must be signed in to change notification settings - Fork 29
/
performance_data.twig
19 lines (19 loc) · 1.31 KB
/
performance_data.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{# This template renders the performance data for the current test suite. #}
|suite__state={{getOutputState(testsuite.state).errorCode}};;;;
$whitespace$suite__warning={{ testsuite.warningTime }}s;;;;$whitespace$suite__critical={{ testsuite.criticalTime }}s;;;;$whitespace$suite_{{ testsuite.id }}={{getOutputDuration(testsuite)}};{{ testsuite.warningTime }};{{ testsuite.criticalTime }};;
{% for testCaseId, testCase in testsuite.testCasesAsSortedSet %}
{% set testCaseIndex = format("%03d", loop.index) %}
$whitespace$c_{{ testCaseIndex }}__state={{getOutputState(testCase.state).errorCode}};;;;
$whitespace$c_{{ testCaseIndex }}__warning={{ testCase.warningTime }}s;;;;
$whitespace$c_{{ testCaseIndex }}__critical={{ testCase.criticalTime }}s;;;;
$whitespace$c_{{ testCaseIndex }}_{{ testCase.id }}={{getOutputDuration(testCase)}};{{ testCase.warningTime }};{{ testCase.criticalTime }};;
{% for testStep in testCase.steps %}
{% set testStepIndex = format("%03d", loop.index) %}
$whitespace$s_{{ testCaseIndex }}_{{ testStepIndex }}_{{testStep.name}}={{getOutputDuration(testStep)}};
{% set testStepWarningTime = testStep.warningTime %}
{% if (testStepWarningTime > 0) %}
{{testStepWarningTime}}
{% else %}
{% endif %};;;
{% endfor %}
{% endfor %}