Number of test cases - We do keep on adding new test cases to automated test suite as needed. There is no way of limiting this number at the beginning of project and during the project lifetime. When this number is small it may not create any issue. But if out test assets grows heavily with time, we need to find a alternative way to reduce the maintenance cost. Solutions could be,
- Before adding any new test script, do consider the benefit of adding this test script in terms defect finding ability and cost of maintenance.
- Do schedule periodic cleanup of automation asset. This will help in removing duplicate, redundant scripts.
Interdependence - Keep your test scripts independent of each other until and unless necessary. Independent test scripts are easy to execute and debug if failure occurs. Maintaining interdependent test scripts is very difficult if not supported with adequate documentation.
Naming conventions - As the number of automation test designer increases, there will be no consistency across test scripts designed. This may lead to less reuse and more duplication.Solutions could be adopting some naming conventions right at the start. This will help in finding existing scripts and files.
Test complexity - Same as complex code, complex test scripts are also hard to maintain in long run. Test cases should be written such a way that if tomorrow changes needs to be done, any new person can update it with minimum effort. If any test script is very complex to understand everyone will prefer to write a new script instead of updating the existing one.
Documentation - Each and every test script should be provided with supported documentation like purpose, how to use, setup details, dependencies etc. Good documentation helps significantly in automation maintenance in long run.