-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validating message with FAIL level fails if test itself passes #4
Comments
Note: Another way to check that the DOM is not there, would be to add But that fails at Would be good to have a |
Could you try adding |
That didn't work b/c here we have
Which returns Created a fix for this in PR #5 but there's something I can't point my finger in the test cases that verify this functionality.. |
You are right, if there's |
If I've understood this issue correctly, it only manifests itself if the test itself is expected to pass but there are log messages with |
This issue manifested itself when the test case status was different than the log status. I think you got it, per your comment, but IMO, this should be fixed and supported, as opposed to work around the limitation in the tests. The latest commits in the PR should make it work now. |
There's no log level |
Right, my bad on the previous comment.
I'll try to get the PR in SeleniumLibrary working with the workaround. |
I'm trying to update the test case Page Should Contain with
Basically, my code is to make it so that keyword does not log the DOM at INFO and that test case runs at INFO level and should check that the DOM is indeed not logged.
To check that the DOM is not logged, it needs to check line 14 of step 4.1.
So I need to check that that line has status
FAIL
.LOG 4.1:14 FAIL REGEXP: .*
indeed checks that that line has statusFAIL
(LogMessageChecker._check_msg_level(...)
passes), but also uses that information to check that the test case has statusFAIL
(TestStatusChecker._check_status(...)
fails).Looks like
TestStatusChecker._check_status(...)
should not use the values fromLOG
to check for test case status.The text was updated successfully, but these errors were encountered: