Open happy1610 opened 4 years ago
@wakaleo please help, thanks so much
I can't reproduce this behaviour - do you have a stack trace?
I can't reproduce this behaviour - do you have a stack trace?
I'm working on my company project hic, the fail screen likes this
NoSuchElementException - your test is failing to find an element. This isn't related to the screenshot mechanism.
NoSuchElementException - your test is failing to find an element. This isn't related to the screenshot mechanism.
first look seems like this, I review the scripts, it's stable. And I do many times to re-run test with having screenshot mechanism => always fail test with NoSuchElementException But when I remove screenshot mechanism, test always pass with correct flow T.T hix
Screenshots can slow down test execution and reveal timing issues in the tests that wouldn’t usually be apparent.
Screenshots can slow down test execution and reveal timing issues in the tests that wouldn’t usually be apparent.
I also try to add wait time but not work, seem this issue is serious, so what should we do now? hichic. now, I workaround by remove screenshot mechanism.
You will need to fix the timing issues in your tests. You can disable screenshots but that is not really a solution to your problem
timing issues
timing issues => you mean wait time for element showing?
Waiting for the element to be accessible yes, but there is more to timing than just wait times
Waiting for the element to be accessible yes, but there is more to timing than just wait times
thank you @wakaleo
Here's a thought @happy1610 - I wonder whether your test relies on the very slightly slower performance of the test when running in 'screenshot everything' mode? If so, then you could:
Dear all, I met this strange case T_T Test always pass, mean that all elements are shown as expected when NOT USING serenity.take.screenshots = FOR_FAILURES/AFTER_EACH_STEP... in serenity.conf
When HAVE serenity.take.screenshots = ..., that case always fail cause element not showing. I also try to debug, and see that scripts're stable So I guess root cause from value serenity.take.screenshots Does any one met this issue before? and what do you do?
Thanks so much