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 Aruna,

The best approach is using TestNG framework. Here, you can split the scripts into blocks and you can easily identify where the errors are occuring. So, use TestNG framework.


Doctor Answered on March 3, 2015.
Add Comment

Your Answer

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