I want to run all my test cases with one start up and tear down process. I have written code for multiple browser testing and as of now I am repeating those codes in every class file under @BeforeMethod to run my test cases present in that class.
But I want to write them once and execute all my test cases with it. Is it possible to do so?
I have tried with different annotations but nothing worked for me. I am probably not writing it in perfect manner. I have also given @Data Providers for inputs.
Is it I am making it complex? Or we can do all those things in one run.