Let's discuss all the annotations in detail:
- @AfterSuite: All the methods called in this teardown will execute after everything else has completed in the suite. This is a good place to clean up the AUT, delete users, and accounts created during test runs, uninstall mobile applications, and close the browser or mobile device. If a report listener is being used, the report could be constructed in this method after all the TestNG results are collected.
- @AfterTest: All the methods called in this teardown will run after all the test packages or classes defined in the <test> tag section of the XML file have completed. If running <test> sections in parallel, users can use this ...