Imagine you have a complete test suite with scenarios for browsing, searching, account creation, and ordering, and maybe more test cases. You might come into a situation when it’s necessary to run the scripts of this test suite against a LIVE site.
In that case we must not have any transactional scenario included (such as TRegister, TCheckout, TOrder …) as it would spoil the database with test data, may cause additional costs if external services are involved, or even trigger fulfillment. To avoid these problems you need to exclude some test cases from the run by removing them from the test properties file:
Additionally, It’s recommended to add the @Ignore annotation to the corresponding test class, to cover also accidental execution of these test cases. It’s too easy to run the wrong test case or even the complete tests folder from an IDE.