I want to retrieve the class name in the runtime, I have a method name declared inside the class, with the help of method name how can i retrieve the class name in java??
Exmaple:
public class DesktopTest extends BaseTest {
@Test
@Parameters("Browser")
public void navigateToWebPage(String browser) {
System.out.print("Testing Done");
}
I have method name "navigateToWebPage"
which will be passed from maven commands, how to get the class name with this info
Help will be much appreciated
It's a method name, but what do you think?
or another
2023.08.19
Sorry to Late Anyway, you can refer this
}