Hi Guys,
I'm learning about testing by following the example in this link
https://www.outsystems.com/blog/posts/bdd-testing/
I did “Exercise 1” exactly like the example, and everything worked correctly.
However, when I put a deliberate error, the result indicates that all tests failed, instead of indicating that only one test failed. See the pictures.
Could anyone tell me what could have happened with the FinalResult block, which is not indicating the correct number of cases that failed?
Thanks
Hi Jóse,
How many scenario blocks do you have on your screen before the FinalResult block?
Please also check the widget tree, for correct placement of the FinalResult block which must be at the end of all scenario blocks at the same level in the widget tree.
Your screen print suggest there is only 1 scenario for which one of the tests failed. If at least one test fails the scenario fails.
Regards,
Daniel
Hi Daniel,
Your point of view is correct, and at that moment I didn't notice it.
I had only one scenario, so when it failed, then all scenarios failed (1 = all)
After that, I created other scenarios, and only 1 of them failed, then the system showed correctly, only 1.
Now I'm sure that when João Proença put the image in the technical document, he should have already created other scenarios in the environment.
Thanks for your reply.
Best regards