Forum Discussion

ChrisKibble's avatar
ChrisKibble
Occasional Contributor
1 year ago
Solved

Default Project Lost in Source Control

I have a Project Suite with several Projects within it. I've pushed it to GitHub. When cloning the repository file elsewhere, the Default Project is not recognized (it picks another project as the default project).

In troubleshooting I found that TestComplete stores this in the *.pjs.tcLS file, which is excluded in .gitignore. 

Can the default project be saved in the .pjs file somehow so that it follows my project through clones on other PCs?

4 Replies

  • Hassan_Ballan's avatar
    Hassan_Ballan
    Icon for Champion Level 3 rankChampion Level 3

    You should be able to add the file to your GitHub repository https://docs.github.com/en/repositories/working-with-files/managing-files/adding-a-file-to-a-repository, but first you will need to remove its reference from .gitignore that excludes it https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files.

    I would think that you need all of TestComplete project folder files to be added to the repository and only exclude the Log folders and files.

  • ChrisKibble's avatar
    ChrisKibble
    Occasional Contributor

    Thanks Hassan, I can remove it from .gitignore, but it was put there by TestComplete which makes me think it's meant to be kept locally only for some reason. According to this doc, looks like the .tcLS are mean to be local tester settings. This doc says it's purposely excluded from source control.

    • Hassan_Ballan's avatar
      Hassan_Ballan
      Icon for Champion Level 3 rankChampion Level 3

      Yes each user can have his own default, but if you want it to be globally set for everyone I would think you have no choice but to tweak such default to your needs.

      • ChrisKibble's avatar
        ChrisKibble
        Occasional Contributor

        Thanks. I'm still relatively new to the product so I'm not clear on everything making it default means yet, but I'll commit it to the repo if I figure out it's important to share with others on the team. Thanks for the help :).