CraigB
5 years agoContributor
Refresh files
Hi
I can't find the command to refresh files. How do I force TestComplete to refresh all files so that changes are reflected in the script files it's using to run tests if I change something w...
CraigB wrote:
"Either way... TestComplete cannot use new script code while the automation is running. It's not a dynamic project like a web page that updating script and hitting "refresh" will cause new code to be used right away."
And again, that's not what I'm trying to do at all.
After execution is complete, does closing the project and reopening it (don't close and reopen the whole tool) refresh the code properly?
Yes, but that's more of a waste of time than having to make an unnecessary change and save the file again so that TestComplete asks if I want to refresh them. Less than making unnecessary commits to source control and pulls from source control (though that has the virtue of probably taking enough time to let the current test execution complete even though it does pollute source control until I take the time to squash all the commits).
TestComplete already monitors the files when tests are not running. What I find suprising is that it doesn't check when a test run completes, or even while a test run is in progress. Either of those would allow it to offer a refresh after test execution completes without additional steps by the user. It won't matter much when changes become rarer, but right now the changes are happening quickly as tests are created, updated and fixed. The frustration of not having general auto refresh or a way of forcing a refresh within TestComplete (since a command in TestComplete would presumably allow me to set up a shortcut or use an existing one) adds up quickly when there are lots of changes being made.
Again, as mentioned by LinoTadros , the way you are editing automation for TestComplete (using a different editor than the TC IDE) is not EXACTLY a standard methodology for most users... not saying it's not allowed or valid, just not standard. So there are probably "holes" in how TestComplete does things since it is built on the basic assumption that you're editing within the TC IDE.
If you think a feature set is missing, there is a forum here that allows you to make suggestions which can then be "voted up" by the community. Make a request there and see where it goes. As it stands, I don't think anything exists for your specific need at this time.
I've already put in the feature request, but I fully expect that to come to nothing. If a feature like that isn't there, considering other basic features that are missing, I have no doubt that there's no intention of ever putting it in. And I can't bring myself to use the TC editor because it's just not designed for editing code. Or anything, really.
Thanks for your time.