Hi,
We have a framework which is developed by one of our developers two years back, he used JUNIT for creating tests for different pages or screens.,
When I wanted to use this frameowork, I noticed that each test (method annotated as @Test ) is closing browser after completing its execution of its code.
For second @Test method, we need to open a fresh browser session. Is this how JUNIT works?
Note : There is code written for closing browser in any of the @Test or @After or @Afterclass methods.
When I tried to debug after the last line of @Test method, it is taking me in to JUNIT classes and finally closing the browser before going to start next @Test method.
And there is no paratmeterization concept in JUNIT test suites. So how can I make test suite which is parameterized and login once and execute multiple @Test methods without closing browser? Please help me.