| || |
Can you start on a specific test case and finish the suite?
I use Selenium IDE and the one thing I have always wondered is, can you start on a specific test case in your suite and run it to the last test case automatically? Currently, I work with the test case that failed, then rerun the entire suite and that's a waste of time IMO.
Ex: I have 400 test cases in my suite. It fails on test case #300 and a few more after. I want to start on test case #300 , push play and have it the next 99 test cases automatically.
Any ideas if this is even possible? If I need to be more clear, please let me know! Thanks.
TestNG will provide the workflow you are looking for. It's not automatic... I am curious as why your entire suite stops if a test case fails.
TestNG generates a testng-failed.xml (sp?) in the report output. This configuration file contains series of steps that will only run the failed test cases and it's dependencies. The only caveat is if you are using DataProvider, you need to make sure that order of the data is consistent as it only provides the iteration value of the DataProvider. Ant and Maven both provide means of running TestNG via xml configuration file so you just need to point at this file. (Keep in mind that clean target will most likely delete this file so you'll need to copy it elsewhere)