Forum Discussion

mishutkin's avatar
mishutkin
Occasional Contributor
14 years ago

Running a script on Windows 7 requires a checkout

I created a new TestComplete project and wrote a script in it on a Windows Vista machine. I use TFS as my version control. When I get that same project from TFS on a Windows 7 machine and attempt to run the script, I am told that the project file is read-only and the script cannot be run because of that. I would like a Windows 7 user not to have to check the project out for editing to run scripts.

What can be done so that scripts can be run on Windows 7 without a checkout?

6 Replies

  • Hi,



    This is not related to the OS version you're using.

    The project gets modified after each test. TC adds logs in your project and updates values of project variables if any of them are modified. So, you have to check your project out to run it.
  • mishutkin's avatar
    mishutkin
    Occasional Contributor
    Thank you for your reply, Jared!



    You are correct about TC adding logs to a project and updating values of project variables. But only Windows 7 users see this 'checkout required' error message. Vista users don't. The two operating systems are doing something different. It's as if Vista checks the project out automatically and runs a test while Windows 7 puts an error message up and requires the user to take action before it can proceed to a test...
  • Hi,



    This can be related to SCC settings (Tools | Options... | Source Control'. Which options are enabled on your Vista machine and which are enabled on the Windows 7 one?



    If Vista seems to check the project out automatically, it looks like automatic check-out is enabled there.
  • mishutkin's avatar
    mishutkin
    Occasional Contributor
    Ok, you are right: the error is not dependent on the operating system. I got it to happen on a Vista machine as well.

    Checking "Check out on open" under Source Control options kinda solves the problem by checking the project out and thus making its files writable.
  • mishutkin's avatar
    mishutkin
    Occasional Contributor
    A checkout is not desirable, however, if the user does not intend to make any changes to the project. Is there a way to run a script at project start up to make a few project files writable without checking the entire project out? Thanks.
  • Hi,



    To do this, you need to check out the needed files manually by clicking 'File | Source Control | Check Out' and selecting the needed files in the Files dialog which appears.