title: Reading TestNG annotation parameter value from Properties file
body: <p>I am using TestNG. I need to read the value of <code>"invocationCount"</code> from the <code>Properties</code> file.
  I tried below, but getting compilation errors. Can someone please help me on this?</p>
  
  <pre><code>public static final int TC=Integer.parseInt(p.getProperty("threadcount"));
  
  @Test(threadPoolSize=10,invocationCount=TC)
  public void someMethod { }
  </code></pre>
  
  <p><em><strong>Compilation error:</em></strong> The value for annotation attribute Test.invocationCount must be a constant expression</p>