title: Testng how to pass parameter to the listener
body: <p>I would like to know a way to pass a parameter inside a listener eater from my suite.xml or by the code itself</p>
  
  <p>I need this in parallel test to know exactly on which device I'm running a test in order to make some reports</p>
  
  <p>this is an example of what I have / wish to achieve </p>
  
  <p>the suite file</p>
  
  <pre><code>&lt;suite name="SearchButton" parallel="tests" thread-count="5"&gt;
      &lt;test name="SamsungS6"&gt;
          &lt;parameter name="deviceUDID"  value="04157df40862d02f"/&gt;
          &lt;classes&gt;
              &lt;class name="MyTestScenario"/&gt;
          &lt;/classes&gt;
      &lt;/test&gt;
  &lt;/suite&gt;
  </code></pre>
  
  <p>or </p>
  
  <pre><code>@Test
  public void researchText (){
      String DeviceUDID = "1234";
  }
  </code></pre>
  
  <p>I want to be able to find device UDID in my listener</p>
  
  <pre><code>public void onTestSkipped(ITestResult result) {
      System.out.println("My deviceUDID ");
  }
  </code></pre>
  
  <p>I tried to find it with </p>
  
  <pre><code>System.getProperty("deviceUDID") // or
  result.getAttribute() // or
  result.getParameters()
  </code></pre>
  
  <p>without success</p>
  
  <p>Any idea on how to do it ?</p>