Completed
Last Updated: 19 Apr 2016 09:44 by VVP
ADMIN
Elena
Created on: 18 Apr 2016 14:41
Type: Feature Request
1
TotalNumberOfNotRunSteps is always returning 0
Using the IExecution Extension the TotalNumberOfNotRunSteps method is always returning 0 no matter how many steps are actually not executed and if they are automation or coded steps. 

See below the exact method. 

OnAfterTestCompleted (TestResult result)
        {
            result.TotalNumberOfNotRunSteps;
        } 
2 comments
VVP
Posted on: 19 Apr 2016 09:44
Hi Daniel,
Are you saying if we call the result.TotalNumberOfNotRunSteps; in OnAfterTestCompleted() method, then it will correctly display the number of skipped tests?
If yes then that is what i am doing and i am getting count =0

If my understanding is wrong, can you please elaborate.
ADMIN
Daniel Djambov
Posted on: 19 Apr 2016 08:27
Telerik: actually this works as expected, because the OnAfterTestCompleted() method is called after all steps and test is completed and if the number of not run steps is called within the test it will always return its initial value. If you call if and log it in the OnAfterTestCompleted() method, then it will report the proper number of steps.