RE: What is the best approach to develop a test script in selenium webdriver?

I am a beginner in Selenium and I have started preparing test scripts in selenium webdriver. My concern is What would be the best approach/framework to automate tests. I have written in 3 ways:
1. Prepared test scripts seperately.  ex. Login, Dealer, Dealer Group,User etc.
2. Reusable script ex. data driven framework using excel
3. TestNG framework, using xml
I am confused, please help me… 🙂

Aruna Train Asked on March 2, 2015 in Selenium WebDriver.
Add Comment
4 Answers

Hi Vaidy,

Thank you so much. I will continue using TestNG framework.
Here I have one more question:
When I use XML, @Beforemethod is running frequently, I mean i have classname1.method1 and classname2.method2 my test is executing @before while running  classname1.method1 and executing again while running classname2.method2
How should I overcome this?

Regards,
Aruna

Train Answered on March 3, 2015.
Add Comment

Your Answer

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