Use setUp and tearDown in test suites
mainWhen executing tests contained within a table (a test suite), you can use lifecycle methods to manage test state:
setUp(): Called immediately before each individual test execution. IfsetUp()fails or encounters an error, the test itself will not be executed, and the failure/error will be reported in the suite.tearDown(): Called immediately after each individual test execution. This runs even if the test failed or ifsetUp()encountered an error. Any failure or error duringtearDown()will be reported in the suite.