Ranorex 6.2.1
Windows 10 1607
TestCaseNode.Current.Status is not being reset when a new iteration starts. If you have Error Behavior set to "Continue with Iteration", and the previous iteration failed, then all subsequent iterations will also be shown as failing.
Either we need a way to get the current iteration's (not test case's) status, or the status of the test case needs to be reset when a new iteration starts (the expected result).
I've attached a demo solution. The second module in the test case just prints "TestCaseNode.Current.Status" to the log. The first iteration passes, the second fails, the third passes, but the third iteration's "TestCaseNode.Current.Status" still shows "Failed" even though the iteration itself passed.
TestCaseNode.Current.Status not reset on each iteration
TestCaseNode.Current.Status not reset on each iteration
- Attachments
-
- TestCaseNodeBugDemo.zip
- (14.01 KiB) Downloaded 51 times
Shortcuts usually aren't...
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: TestCaseNode.Current.Status not reset on each iteration
Hi krstcs,
The observed behavior is actually intended since the test case self has a “failed” status when one iteration failed.
If you want to get the status of your current iteration you can use the following line
Markus (S)
The observed behavior is actually intended since the test case self has a “failed” status when one iteration failed.
If you want to get the status of your current iteration you can use the following line
Ranorex.Core.Reporting.TestReport.CurrentTestIterationActivity.StatusRegards,
Markus (S)
Re: TestCaseNode.Current.Status not reset on each iteration
Thank you, Markus! Works like a charm.
Shortcuts usually aren't...