Junit is not working | Selenium Forum
M
Posted on 09/11/2015
Hi,
1. i've downloaded junit-4.12.jar file
2. Then right click on the project->Java Build Path->Add External Jars->Found jar file and added it to the project
Didn't work

Then:
1. I went to Add Library and added JUnit library to the project
Didn't work

i even reinstall Eclipse -- Same result
when i hover over on [@Test] i'm getting error (see attached)
in attached screen shot you can see that junit jar file and library are attached to the project.
So why it's not working? What i'm doing wrong?

Thanks

M
Replied on 10/11/2015

first of all import junit in your class file.

and secondly write the function below @Test and that error will disappear.