title: How to Pass object/parameters to Testng
body: <p>I want to pass parameters to testng class.
  I have a tc object with variables tc1.featureFileName, tc1.fieldValueMap</p>
  
  <p>I have parsed the name to c2, but i don't know how to pass the
  tc1.fieldValueMap which contains hashmap of input variables to testng.</p>
  
  <pre><code>        Class c2 = Class.forName("com.Scenarios."+tc1.featureFileName);
  
          TestListenerAdapter tla = new TestListenerAdapter();
          TestNG testng = new TestNG();
          testng.setTestClasses(new Class[] {c2});
          testng.addListener(tla);
          testng.run();
  </code></pre>