User2032762197 posted
Hi everyone,
Can I programmatically get all methods reference to a class using C#?
Example scenario:
I have class:
public class SearchScreen
{
}
Inner the test case below, I have a calling to that class:
public void Test_Search()
{
var searchScreen = ScreenFactory.GetScreen<SearchScreen >();
}
What I want:
Input: "SearchScreen"
Output: "Test_Search"
The reason why I have this demand because I want to get all test case methods for a specific screen to limit the list of test cases to execute in order to reduce time. There are a thousand test cases in total.
Could you tell me is it possible or any other idea to perform this?
Thank you so much!
An Nhien