aboutsummaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorduerpei <duep.fnst@fujitsu.com>2022-10-15 10:19:26 +0800
committerQiu Tingting <qiutt@fujitsu.com>2023-01-16 00:21:17 +0000
commite5f6e65bd660308612fa5608323b5e34c844f6e7 (patch)
tree78b6f48d6a0383d7ac2047a1ae7d7ab315173110 /template
parent17a4f7052c4863baa8001ff8867a78e2c81beb39 (diff)
agl-test-framework: rewrite the func that generates html file
Rewrite the function that generates the "summary-report.html" to make the generated "summary-report.html" file more standard. In the new function, pyhton's jinja2 module is used. And a new html template file is added under the "templates" directory. Bug-AGL: SPEC-4345 Signed-off-by: duerpei <duep.fnst@fujitsu.com> Change-Id: I5bcba9f8068120f791cc34754747993d37b65ce8
Diffstat (limited to 'template')
-rw-r--r--template/all_test_suites_tpl.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/template/all_test_suites_tpl.html b/template/all_test_suites_tpl.html
new file mode 100644
index 0000000..5b3e0aa
--- /dev/null
+++ b/template/all_test_suites_tpl.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title> Summary Report </title>
+ </head>
+ <body>
+ <h1> Summary Report </h1>
+ <li> Status : {{ data.summary.status }} </li>
+ <li> Total : {{ data.summary.summary_total }} Pass : {{ data.summary.summary_passed }} Fail : {{ data.summary.summary_failed }} Skip : {{ data.summary.summary_skipped }} </li>
+ <li> Details : </li>
+ <table border="1" cellspacing="2">
+{{ data.test_suite_table_html }}
+ </table>
+ <p></p>
+ <li>Detail log : {{ data.log_zip_name }}.zip</li>
+ </body>
+</html>