Forum Discussion
rraghvani
Champion Level 3
2 years agoYou can do code refactoring, but it requires careful thinking. Unfortunately, TestComplete is not Visual Studio, so it won't provide you with function/method statistics of usage.
You'll have to do search/find for functions and see if it's being used anywhere in code. This can be easily done in Notepad++ e.g. searching in all JavaScript files.
I've written my automation from scratch, and I've refactored it a few times. It's been designed in a way, where other testers can write scripts based on existing format/structure etc, and I also perform code review, to ensure they are following the format/structure.