Iteration pass even step in iteration fail
I created simple script for demo purpose (Open URL - Login - Logout), 3 iteration (1st with correct credential, 2nd with wrong credential, 3rd with correct credential).
After Login I use checkpoint if I can see link "Log Out". Because in the demo I know that this is going to fail in second iteration I handled this check by condition to prevent failure of whole script
If Browser("X").Page("X").Link("Log Out").exist(5) = True Then Else Reporter.ReportEvent micFail,"Login Failed", "Login Failed" ExitTestIteration End If
When I run this script in ALM (on host) it return
- Run Fail status - this is correct - second iteration has a failed step
- Step Fail status - this is correct - only step to check "Log Out" in second iteration is failed
- Iteration Passed status - all iteration are Passed even step in 2nd iteration is failed.
I would like to ask for any help how to send Iteration failed as a end of iteration
I created a case to MF support and I got explanation.
Iteration pass because it follows more like syntax error. It means that it did not check if iteration step failed but it check if iteration proceed to end.