I'm studying the Testng Datadriven Framework module and I have completed it partially till now. Attached is my code.
After executing the "PortfolioSuite.xml" file, my @AfterTest method is not getting called (I have a failure in my first Test out of two). Because of this, my Extent Report is not getting generated (as my report.flush() code is in @AfterTest method).
If I mention alwaysRun=true for the @AfterTest, code runs smooth.
However, in the video, you have't used alwaysRun=true for the @AfterTest, and still your @AfterTest method is executed.
Why is this behavior different?
A reminder to look into this please.
InstructorAshish 3 days ago
Please use testng 7