Junit Test annotation shows error even after adding it to my build pathCan you please help asap | Selenium Forum
M
Meenu Sivakumar Posted on 06/02/2019

Junit @Test annotation shows error even after adding it to my build path.Can you please help asap...

 


A
Ashish Thakur Replied on 06/02/2019

Please move your cursor over the error text and choose the TestNG library option


M
Meenu Sivakumar Replied on 06/02/2019

I did try adding the TestNG library but it still gave me the same error..@Test annotation is disallowed for this location...please help!


A
Ashish Thakur Replied on 08/02/2019

I'm so sorry. You need to Add JUnit Library.

 

There are two libraries, out of TestNG and JUnit, you need to choose JUnit.

 

I hope this solves the issue.