187 views
in Embedded Wizard Studio by
Hi Team,

How we can include Teardown in a test case? Whenever my test step for image comparison is failing, the test step is not continuing to the next step. How to resolve this? Kindly help.

Thanks,

Thushar

1 Answer

0 votes
by
Hi Thushar,

if a test case fails the further steps inside a test case are not executed. It is implemented this way because most of the time test steps are related to each other and proceeding on failure does not make sense anymore. If your test steps are not related to each other than think about creating dedicated test cases for those.

Teardown() is called inside a test case regardless whether a step has failed or not at the execution end of the test case. This should be used to cleanup and reset possible global GUI states. To use this, cou can override this method in you test case.

Best regards,

Julian
by
Hi Julian,

Thanks for you reply. How to overwrite this method in my test case?

Suppose if AddStep (); is failing and if I need to add Teardown method to this test case, how will I proceed? Could you please help me with an example.

Thanks,

Thushar
by
Hi Thushar,

sorry for the typo, I meant that you need to override the Teardown method. Please checkout:

https://doc.embedded-wizard.de/method-member?v=11.00#10

Regards,

Julian

Embedded Wizard Website | Privacy Policy | Imprint

...