statuschecker
statuschecker copied to clipboard
Allow test case status and log status to be different
Small fix to allow different expected statuses for the test case outcome and individual LOG messages, which can be different when:
- Running keywords such as
Run Keyword And Expect Error. Test case may PASS while the log level is FAIL. - Checking the log for a passing step on a failing test case. Test case is FAIL, but the log level is INFO (or some other level).
Fixes issue #4
Note: At this point, this fix is not 100% functional.
The existing test cases pass (there seem to be no breaking changes), but the new functionality is either not working or the test cases are not working (due to the Status keyword in all tests).
The (new) test cases below should be working but are failing:
Test case PASS log INFOTest case FAIL log FAILTest case PASS log FAILTest case FAIL log INFO
@pekkaklarck Can you take a look?
On a quick look it seems to me you haven't specified expected messages in the documentation for the failing tests.
Duh.. you were right. Fixed test cases and things should be good now. SeleniumLibrary PR #1244 depends on this fix for Travis CI to pass.
Note: Wasn't sure whether or not to mark version as 1.4. Not sure why it was devel.