Pls confirm order of execution of TestNG annotations | Selenium Forum
M
Posted on 19/04/2016
SuiteA
[

ClassB
{
Test1
{
@BeforeSuite
f1()
{
Syso("before suite");
}

@Beforeclass
f2()
{
Syso("before class");
}

@BeforeTest
f3()
{
Syso("before Test");
}

@BeforeMethod
f4()
{
Syso("before Method");
}

@Test
f5()
{
Syso("Test");
}

}

}


]


[b:3pf9dsgr]
Query1:[/b:3pf9dsgr][b:3pf9dsgr]Pls confirm order of execution[/b:3pf9dsgr]
BeforeSuite-f1()
BeforeClass-f2()
BeforeTest-f3()
BeforeMethod-f4()
Test-f5()

M
Replied on 20/04/2016

try to run it.