As we know from official TestNG documentation:
@BeforeClass: The annotated method will be run before the first test method in the current class is invoked.
@BeforeTest: The annotated method will be run before any test method belonging to the classes inside the
<test> tag is run.
Both the above TestNG annotations look similar in functionality. Can anyone explain the unique difference?