I am using QAF framework BDD2 for regression automation. I know how to setup setup() and teardown() webdriver in testNG but I am not sure do we have capability to set up the same QAF BDD2 setup() and teardown(). Kindly help with some examples.
I will provide a usecase which helps to understand exactly I am looking for:
- whenever I wanted to run the test suite, I want to create a custom downloads folder in c:/users/XXX. Where this folder contains all my test downloads.
- At setup() I want to implement createCustomFolder() method to create the custom folder before the test suite begins
- At the end of all tests in test suite. I want to implement teardown() methods where it contains delete files() deletes the files inside the custom folder and delete custom folder() delete the folder.