The annotation @Test is disallowed for this location | Selenium Forum
M
Posted on 04/10/2015
[attachment=1:1bazpdv2]bug2.jpg[/attachment:1bazpdv2]Hi ,

I am trying to work with the below code in Junit.
But I am getting and error as (The annotation @Test is disallowed for this location).
Please help me fix this bug.
Attached is the screen shot of code and error


Regards
Anandhi

M
Replied on 04/10/2015

@Test
public void xyzTest() {

}

use this.


M
Replied on 05/10/2015

Also attach your java file