Hi Ashish,
in the tutorial "Junit Framework with Selenium-1", we are creating 2 dimensional array for parameterization.
why the collections are made static during delcaration?
I tried removing the static keyword and ran the Junit project, but the Junit test is failing with below error :
"Method 'InitializationError' not found. Opening the test class."
Tried googling but didnt get much of an info.
Request your inputs on the same.
Regards,
Ankit
Instructor
Ashish Thakur Replied on 05/07/2021
its static so that it can be called without creating object
Junit calls it without creating object of the class
Thank you !
This helps.