title: How to change method name at runtime in Java?
body: <p>I have following test method which takes parameters from excel sheet. Let say I have 5 test cases, so this method will execute 5 times. But when I execute first test case (TC01) the Test() method name should change at runtime according test scrips like Test_TC01(),Test_TC02() etc.   </p>
  
  <pre><code>@Test
  public void Test() throws Exception {
  
      ExcelUtils.setExcelFile(System.getProperty("user.dir") + "\\src\\data_engine\\DataEngine.xlsx");
      DOMConfigurator.configure("log4j.xml");
      String Path_OR = System.getProperty("user.dir") + "\\src\\config\\OR.properties";
      FileInputStream fs = new FileInputStream(Path_OR);
      OR = new Properties(System.getProperties());
      OR.load(fs);
  
      DriverScriptTest startEngine = new DriverScriptTest();
  
      startEngine.execute_TestCase();
  
  }
  </code></pre>
  
  <p>Please share your comments</p>