Get TestModuleLeaf status

Class library usage, coding and language questions.
TestPhan
Posts: 4
Joined: Mon Feb 06, 2023 8:55 am

Get TestModuleLeaf status

Post by TestPhan » Thu Feb 09, 2023 12:47 pm

Hello,

My solution requires recordings or code modules (not test case or smart folder) states after test suite (code execution in program.cs), for example i got this code:
foreach(var module in TestCaseNode.AllModules)
                            {
                                if(!module.HasWarnings)
                                {
                                    //Do something here
                                }
                            }
TestModuleLeaf has `HasWarnings` method which checks whether module has warnings which is not useful for my solution. Is it possible to get module failure or success status from TestModuleLeaf? Or is there other way to achieve this?