You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when an assertion occurs using the "assert_that" functionality of hamcrest, the assertion text is not output, instead the object repr is shown.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
It should be fairly easy to reproduce, the assertion in my then step that's hitting this is
assert_that(err_mess.text, equal_to("Enter a valid email address"))
where err_mess.text is a string which is different to the give string. So you could use the following to write into the log what I'm seeing:
assert_that("Some text", equal_to("Enter a valid email address"))
What is the expected behavior?
The log should have contained output similar to below which is shown on the console if I don't use the allure_behave file output logging:
Assertion Failed:
Expected: 'Enter a valid email address'
but: was 'Enter a valid email address\nPassword must be 12 characters or more'
e7f618c6-6bd4-462b-9190-28ceb1fca9bf-result.zip
I'm submitting a ...
What is the current behavior?
I'm coming from https://stackoverflow.com/questions/45676000/allure-incorrectly-displays-assertionerror as I'm also seeing the issue. I'm attaching one of my results files with this issue contained in case it's of help.
Currently when an assertion occurs using the "assert_that" functionality of hamcrest, the assertion text is not output, instead the object repr is shown.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
It should be fairly easy to reproduce, the assertion in my then step that's hitting this is
where err_mess.text is a string which is different to the give string. So you could use the following to write into the log what I'm seeing:
What is the expected behavior?
The log should have contained output similar to below which is shown on the console if I don't use the allure_behave file output logging:
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: