RE: Implement global variable for Testcase number to execute from excel.
I am using Selenium webdriver with Testng for automation with data driven module where i am reading the testcases data from excel. I have hard coded the row numbers for each test case . If i want to add any cases in the middle again i have to change the numbering of all the cases. So how can i solve this issue.
You need to use Java Constants for that which is subtitute of Environment variable or Global Variable. Take a look over the below link, this is exactly what you have asked for:
PS: Do not forget to close your question: