Hi Team,
I am using "executionContext.ExecutingTestAsStep" to differentiate between main test and executingtestasstep .
In one of the below scenario its giving wrong value for "executionContext.ExecutingTestAsStep",
eg:
Test case started
step1
step2
Test As a step1
step3
Test As step2
step4
---
Test case ends
Test As a step1 starts
step1
Test As a step1a
step2
step3
Test As a step1 ends
Test As a step1a starts
test as a step1aa
step1
step2
Test As a step1a ends
In the above structured test case when test "test as astep1aa" ends ,its going inside the below loop,
if (!executionContext.ExecutingTestAsStep && !executionContext.RunFromHereStepExecuted)
{}
which should not happened as its ExecutingTestAsStep=true .
Do I missing anything?
Thanks,