Question: what is the difference between junit and testng in selenium?
Answer: JUnit provides an easier and readable approach to test known as Parameterized test. Both TestNG and JUnit supports parameterized test but differ in the way they define the parameter value. Let see this one by one. The "@RunWith" and "@Parameter" annotations are used to provide parameter value for the unit test.