Q. What is the purpose of @BeforeSuite in TestNG?

A
To run setup before each test
B
To execute setup before all tests
C
To define a test
D
To generate a report
Solution:

@BeforeSuite runs setup code once before the entire test suite.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!