TestNG TestListener - How to reach testmethod parameter in TestListener beforeInvocation method
The parameters in xml file are set inside the `<include>` tag, something like this:

    <suite name="Suite">
      <listeners>
        <listener class-name="..MyTestListener"/>
      </listeners>
      <classes>
        <class name="Foo">
          <methods>
            <include name="myTest">
              <parameter name="parameter1"  value="parameterValue"/>
            </include>
    ..

Of course I can reach the test parameter in beforeInvocation method if the parameter tag is outside of the include tag, example: `method.getTestMethod().getXmlTest().getParameter("parameter1")`. But in this case parameter is necessary to be bound to the test method, and I get null as getParameter method return value.

Thanks, Stristi
TestNG TestListener - How to reach testmethod parameter in TestListener beforeInvocation method
===

The parameters in xml file are set inside the `<include>` tag, something like this:

    <suite name="Suite">
      <listeners>
        <listener class-name="..MyTestListener"/>
      </listeners>
      <classes>
        <class name="Foo">
          <methods>
            <include name="myTest">
              <parameter name="parameter1"  value="parameterValue"/>
            </include>
    ..

Of course I can reach the test parameter in beforeInvocation method if the parameter tag is outside of the include tag, example: `method.getTestMethod().getXmlTest().getParameter("parameter1")`. But in this case parameter is necessary to be bound to the test method, and I get null as getParameter method return value.

Thanks, Stristi