Structure
Test Scenarios and Cases Hierarchy
What you might need:
Ensure the report structure matches the format used in pytest.
Interpret grouped tests through the generated reports.
How do we show:
Class based Tests are considered Test Suite, which are test entities that have tests grouped under them
Functional Tests are considered Test Cases, which are test entities that have multiple assertions and their results are considered important for deciding the overall status of the test run.
In Excel, we add links (parent) columns to redirect to the parent suite in both the Test Scenarios and Test Cases sheet.
Group multiple tests in a class
Sample Results in DB:
Query Used: select title, standing, suiteType, suiteID, parent, round(duration, 2) from suitebase order by started;
test_one
PASSED
SETUP
f767163f-7fc1-44cf-8ca7-81fde70a35f1
ab13b169-860e-4b03-9585-3a586efeeef3
1.53
test_sample.py
FAILED
SUITE
c5624e09-5878-4047-8175-16855c664d55
7
TestClass
FAILED
SUITE
7ade1117-5b9f-49c3-9db7-654f5cf3056a
c5624e09-5878-4047-8175-16855c664d55
7
test_one
PASSED
TEST
ab13b169-860e-4b03-9585-3a586efeeef3
7ade1117-5b9f-49c3-9db7-654f5cf3056a
0.65
test_one
PASSED
TEARDOWN
5f57d407-9aff-4a7b-911a-24da37976c5e
ab13b169-860e-4b03-9585-3a586efeeef3
1.1
test_two
PASSED
SETUP
aab287cd-80a8-428c-82ab-1f60c06e7a91
fc89df70-11a6-443d-93bf-9bf10a8a6312
1.19
test_two
FAILED
TEST
fc89df70-11a6-443d-93bf-9bf10a8a6312
7ade1117-5b9f-49c3-9db7-654f5cf3056a
0.51
test_two
PASSED
TEARDOWN
72ef3063-748c-430c-b51a-1a1c8e99b2fe
fc89df70-11a6-443d-93bf-9bf10a8a6312
1.23
Parent of:
Test Suite - This could be another Test Suite
Test Case - Could be Setup or Teardown
Setup/Teardown - No Parent (not ideal case)
TODO
Last updated