Alexandru Popescu wrote:
>#:
>
>>The gist of my problem was that I needed a way to run a method at the end of all testing that could shut down some pieces of code. I also needed something that would run irrespective of whether we were only running failed tests or not.
>>
>
>Not very sure i have understood the scenario, but the impression i got is that the @Configuration
>afterTest or even later @Configuration afterSuite methods may help you.
>
>pls let us know if i completely missed your question.
>
>
>
Excellent. I just grabbed the latest version and found the afterSuite
method which was sorely lacking from my version (I was still languishing
at 2.2).
FYI: The online javadoc is out of date -
http://www.testng.org/javadocs/com/beust/testng/annotations/Configuration.html
does not show an afterSuite method which would have probably jogged my
brain into action.
Thanks,
Ben