Is it a way to get the test method name within TestNG listeners on Configuration phase?
问题 I have a TestNG listener that implements IInvokedMethodListener. On @BeforeMethod I need to setup some test context, here is the example: public class ThucydidesInvokedMethodListener implements IInvokedMethodListener2 { public void beforeInvocation(final IInvokedMethod method, final ITestResult testResult) { boolean areBeforeMethods = method.getTestMethod().getTestClass().getBeforeTestMethods().length > 0; if ((areBeforeMethods && method.getTestMethod().getTestClass().getBeforeTestMethods()[0