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.

mallik9292 Train Asked on October 28, 2014 in Selenium WebDriver.
Add Comment
5 Answers

Hi Mallik9292,

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:

Lakshay Sharma

Professor Answered on October 28, 2014.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.