Search found 2 matches
- Thu Feb 25, 2016 12:17 pm
- Forum: Bug Reports
- Topic: NullReferenceException at TestCase.Status
- Replies: 3
- Views: 1912
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 ...
- Wed Feb 24, 2016 11:37 am
- Forum: Bug Reports
- Topic: NullReferenceException at TestCase.Status
- Replies: 3
- Views: 1912
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....