Script file not linked in Script.tcScript after adding new script – requires manual save
Hello,
I’m having an issue where newly added script files are not automatically reflected in the Script.tcScript file in my TestComplete project.
When I add a new script (e.g. MyTest.js) to the Script folder using the TestComplete interface, it is not immediately written to the Script.tcScript file. As a result, Git doesn’t detect any change, and the project structure is incomplete for others pulling the repo.
I noticed the change is only saved under these conditions:
- When I manually click on the “Scripts” node in the Project Explorer and then press Save (or F5),
- Or when I close the project, which prompts to save changes.
If I forget to do this, the Script.tcScript file remains unchanged, even though the script appears in TestComplete.
Could you please confirm:
- Is this expected behavior?
- Is there a way to force TestComplete to save the updated Script.tcScript automatically when a new script is added?
- How can we ensure consistency in source control without having to remember to manually save the project file?
Thanks in advance for your help!
Best regards,
David
Unfortunately, that is the expected behaviour of TestComplete! Always remember to press "Save All Changes" button, as "Save the Selected Element" just saves that particular file. This will ensure that the Project Suite has been saved with the appropriate changes.