Search found 2 matches

by Dirk
Thu Feb 25, 2016 12:17 pm
Forum: Bug Reports
Topic: NullReferenceException at TestCase.Status
Replies: 3
Views: 1910

Re: NullReferenceException at TestCase.Status

The source code is the following: IList<TestCase> cases = TestSuite.Current.SelectedRunConfig.GetActiveTestCases(); if(cases != null){ int failed = 0; for(int i = 0; i < cases.Count; ++i){ if(cases[i] != null){ if(cases[i].Status == ActivityStatus.Failed){ ++failed; } } } } I have encapsulated this ...
by Dirk
Wed Feb 24, 2016 11:37 am
Forum: Bug Reports
Topic: NullReferenceException at TestCase.Status
Replies: 3
Views: 1910

NullReferenceException at TestCase.Status

Hello Support Team, I am receiving a NullReferenceException while retrieving the status of all activated test cases. At the end of my test run I want to list all my activated test cases that have failed. So at the teardown step I retrieve a list of the cases with TestSuite.Current.SelectedRunConfig....