Forum Discussion
1) Modularize your code some how... the less repeated code, the easier it is to maintain. If something changes in the AUT, if your code is sufficiently modularized, you only need to edit one or two places rather than in each test case.
2) Work with your developers directly to find ways of creating reliable object identification mapping. One of the biggest headaches, regardless of the tool, is when the component identification properties change and you need to re-do the object identification. If you can have your developer give you reliable ID's and such in your components, you can then use them in your mapping which would make your life a WHOLE lot easier.
3) Data drive your stuff. There are two layers to any test case... the actions to be performed against the application and the data that is used within those actions. Sometimes the actions themselves are the data. So, if you can extract the data layer from the code layer, when you need to maintain your tests, you may find you only need to update data and not the actual code.
These are just 3 items that I've found over the years that can help with test maintenance. Note that, especially with regards to #1, this completely eliminates record/playback as a reliable means of automating tests.
- Marsha_R7 years agoChampion Level 3
1) This goes along with modularizing, really, but don't hard code anything in the tests. A path or some other value will change and you'll forget to update it and the test will crash and you'll have to debug till you can find it.
2) Keep any base reports, data documents, or any other documents you need to refer to in the tests in a folder inside the TestComplete folder. TC knows the Project Path and you can find anything you need to reference that way. Nothing gets left behind on a local drive this way.
3) Use some sort of version control to keep track of your project, even if you are the only one working on it. You want to be able to save your work in a safe place and retrieve it if necessary.
Related Content
- 5 years agoArunachalam
- 5 years agokip
- 13 years agomohanakshi
- 6 months agomacheshmeh
Recent Discussions
- 3 days agovladd1