0

I am confused about selenium webdriver and junit that are they same? please explain difference between them.

1

2 Answers 2

4

Selenium WebDriver is a tool using which we can automate any web application. It can open a browser, launch a URL, write on a text box, click buttons, etc. In short, it can simulate user actions.

But in order to test something, we need to have a tool that can provide us methods to pass-fail a test case based on the different validations, organise the test cases, create test reports, etc. That's where a testing framework like JUnit or TestNG comes into the picture.

So, for "Automation Testing" Selenium will help in the 'automation' part and Junit will help in the 'Testing' part.

4

Selenium is a tool that remote-controls a browser, You can use it to simulate a user interacting with a web site. for more info go through Selenium

JUnit is a unit testing framework for writing Java unit tests.for more info go through Junit

Not the answer you're looking for? Browse other questions tagged or ask your own question.