Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ebbd1e

Browse files
committed
updated docs
1 parent 0d03adf commit 9ebbd1e

1 file changed

Lines changed: 25 additions & 22 deletions

File tree

docs/userguide/exception-reporting.md

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Test execution can fail for different reasons. The failures on different excepti
1313
* A test package that is raising an exception in `%beforetest` - the `%test` is reported as failed with exception, `%test` is not executed. The `%aftertest`, `%aftereach` and `%afterall` blocks are getting executed to allow cleanup of whatever was done in `%before...` blocks
1414
* A test package that is raising an exception in `%test` - the `%test` is reported as failed with exception. The execution of other blocks continues normally
1515
* A test package that is raising an exception in `%aftertest` - the `%test` is reported as failed with exception. The execution of other blocks continues normally
16-
* A test package that is raising an exception in `%aftereach` - all blocks of the package are executed, as ehe `%aftereach` is a closing block for an individual test. Exception in `%aftereach` is not affecting test results. For every failed execution of `%aftereach` a warning with exception stacktrace is displayed in the summary
16+
* A test package that is raising an exception in `%aftereach` - each `%test` is reported as failed with exception.
1717
* A test package that is raising an exception in `%afterall` - all blocks of the package are executed, as the `%afterall` is the last step of package execution. Exception in `%afterall` is not affecting test results. A warning with exception stacktrace is displayed in the summary
1818

1919

@@ -77,29 +77,32 @@ Finished in ,045523 seconds
7777
Example of reporting with exception thrown in `%aftereach`:
7878
```
7979
Remove rooms by name
80-
Removes a room without content in it
81-
Does not remove room when it has content
82-
Raises exception when null room name given
83-
84-
Warnings:
85-
86-
1) test_remove_rooms_by_name - Aftereach procedure failed:
87-
ORA-20001: Test exception
88-
ORA-06512: at "UT3.TEST_REMOVE_ROOMS_BY_NAME", line 31
89-
ORA-06512: at line 6
90-
91-
2) test_remove_rooms_by_name - Aftereach procedure failed:
92-
ORA-20001: Test exception
93-
ORA-06512: at "UT3.TEST_REMOVE_ROOMS_BY_NAME", line 31
94-
ORA-06512: at line 6
80+
Removes a room without content in it (FAILED - 1)
81+
Does not remove room when it has content (FAILED - 2)
82+
Raises exception when null room name given (FAILED - 3)
9583
96-
3) test_remove_rooms_by_name - Aftereach procedure failed:
97-
ORA-20001: Test exception
98-
ORA-06512: at "UT3.TEST_REMOVE_ROOMS_BY_NAME", line 31
99-
ORA-06512: at line 6
84+
Failures:
10085
101-
Finished in ,05071 seconds
102-
3 tests, 0 failed, 0 errored, 0 ignored. 3 warning(s)
86+
1) remove_empty_room
87+
88+
error: ORA-20001: Test exception
89+
ORA-06512: at "UT3.TEST_REMOVE_ROOMS_BY_NAME", line 31
90+
ORA-06512: at line 6
91+
92+
2) room_with_content
93+
94+
error: ORA-20001: Test exception
95+
ORA-06512: at "UT3.TEST_REMOVE_ROOMS_BY_NAME", line 31
96+
ORA-06512: at line 6
97+
98+
3) null_room_name
99+
100+
error: ORA-20001: Test exception
101+
ORA-06512: at "UT3.TEST_REMOVE_ROOMS_BY_NAME", line 31
102+
ORA-06512: at line 6
103+
104+
Finished in ,034863 seconds
105+
3 tests, 0 failed, 3 errored, 0 ignored.
103106
```
104107

105108
Example of reporting with exception thrown in `%afterall`:

0 commit comments

Comments
 (0)