Let's discuss each annotation in detail:
- @BeforeSuite: All the methods called in this setup will get executed before anything else runs in the suite. For instance, if you want to invoke the browser or a mobile device, you could call the create driver method in @BeforeSuite, and it would launch the application, maximize it, and load the URL (browser) before running the test class methods. This is also a good place to retrieve parameters using the @Parameters annotation from a Jenkins build process, system property via JVM arguments, and system environment variables. They can then be processed here for use throughout the suite. Remember, TestNG defines a suite as all ...