diff options
author | Qiu Tingting <qiutt@fujitsu.com> | 2022-05-26 13:06:34 +0800 |
---|---|---|
committer | Qiu Tingting <qiutt@fujitsu.com> | 2022-05-26 13:06:34 +0800 |
commit | cb256cee0fe43430b461dcee392267dc65514e41 (patch) | |
tree | e8182b2c548f60cab6c4d614e92d67ad318a7c74 /template | |
parent | bd0eb0ec729a228a317d2966e0f71770ca4dd36f (diff) |
agl-test-framework: add AGLBaseTest class
Add AGLBaseTest class for existing test suites which has own test scripts.
It package the default operations, like as log processing and file saving.
In test suite, please create a child class based onAGLBaseTest.
Then it is easy to init, run tests, check results and make a repoter.
Bug-AGL: SPEC-4345
Signed-off-by: Qiu Tingting <qiutt@fujitsu.com>
Change-Id: I9dbc01db59df16eb5718b19b3223ad95da0afb11
Diffstat (limited to 'template')
-rw-r--r-- | template/summary_result_tpl.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/template/summary_result_tpl.html b/template/summary_result_tpl.html new file mode 100644 index 0000000..6b8f9fe --- /dev/null +++ b/template/summary_result_tpl.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>{{ data.test_name }} test report</title> + </head> + <body> + <h1> {{ data.test_name }} test report </h1> + <li> Status : {{ data.test_status }} </li> + <li> Total : {{ data.collected }} Pass : {{ data.passed }} Fail : {{ data.failed }} Skip : {{ data.skipped }} </li> + <li> Details : </li> + <table border="1" cellspacing="2"> +{{ data.case_status_html }} + </table> + <p></p> + <li>Detail log : {{ data.test_name }}/log.zip</li> + </body> +</html> + |