'Why am I getting this error? 'Syntax error, insert "enum Identifier" to complete EnumHeader'
import org.testng.annotations.BeforeTest;
import org.testng.annotations.AfterTest;
public class Base {
@BeforeTest (ERROR)
{
}
@AfterTest (ERROR)
{
}
}
[enter image description here][1]
Screenshot of my framework here - [1]: https://i.stack.imgur.com/WdIPN.png
Solution 1:[1]
@BeforeTest
public void before_test()
{
System.out.println("It will be executed first");
}
Missing the method after the test try it like so after each and it should work.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Arundeep Chohan |
