| || |
How to collect the list of exceptions in scenario?
Is there any way to collect the list of errors or exceptions occurring in case of scenario testcases.
I mean to say that i have one scenario testcase which verifes 10 checkpoints in sequence. For each & every checkpoint i have an "if" condition which determines whether the checkpoint is cleared or not (i mean if it succeeds it will print the success msg or if it failed it will throw LogError and proceeds with the further steps).
My aim is, at the end of the testcase i need to collect the Pass/Fail status of all the chkpoints in a List or an array. Is there any in-built features available to handle this or any other work arounds.
Except calls are not helpful for this case.
Thanks in advance,
Re: How to collect the list of exceptions in scena
I don't know of any built-in feature to do this. You can create your own function to do this though, and each time you want to do a validation checkpoint, call your own function passing your actual and expected values. Inside the function do the comparison and keep track of whatever it is you want to keep track of. That way, you encapsulate all of that logic in one place.