Question: what is difference between before method and before test?
Answer: @BeforeMethod - BeforeMethod executes before each and every test method. All methods which uses @Test annotation. ... @BeforeTest will execute only one time before any test methods. Methods will run before executing any @Test annotated test method that is part of the <test> tag in testNG.