Forum Discussion

russleikis's avatar
russleikis
Contributor
14 years ago

TC project files are read-only in TFS 2010 Builds, SCC errors

We are reintegrating existing TC8 test suites into TFS Team Build 2010.  The suites are failing immediately because one or more project files are read-only.



I've tried everything I can think of, but Team Build leaves the read-only flag on any sources it gets.  My understanding is that normally TC would handle this by using the SCC Integration, but in the log below it is unable to.



I'm about ready to punt and create a workflow action to clear the
read-only flag on all the build sources.  This is a high priority task
for me, I'd appreciate a quick response.  Let me know if I will need to open a ticket instead.



What project files could be the problem?  My first guess is that it might be
TestedApps.tcTAs as our suites require modification of the SimpleParams
depending on which product tier is being tested.  We also use
ProjectSuite.Variables.  These guesses are based on what files need to
be checked out when running in the TC IDE.



Note: There are four tc8Test items attempting to run in this build.  They are targeting the suites in the sources directory of the team build workspace.



Output from silent.log:

9/19/2011 19:45:51:330   Tried to open the information dialog. Message: The SCC Support Manager can work neither in non-batch, nor in silent mode. The batch mode has been set automatically..

9/19/2011 19:45:51:330   Tried to open the error dialog. Message: The operation cannot be completed, since the selected source control does not support the SccBeginBatch/SccEndBatch function..

9/19/2011 19:45:52:806   Tried to open the Save Read-Only Storage dialog. The default value is wpcCancel.

9/19/2011 19:45:53:439   Tried to open the error dialog. Message: Run failed. Error: the project was modified and cannot be saved..

9/19/2011 19:45:53:900   Tried to open the Save dialog. The default value: YES.

9/19/2011 19:45:53:955   Tried to open the Save Read-Only Storage dialog. The default value is wpcCancel.

9/19/2011 19:45:54:182   Tried to open the YES/NO dialog. Message: Do you want to close the Project Suite without saving changes?. The default value: YES.

9/19/2011 19:46:17:526   Tried to open the information dialog. Message: The SCC Support Manager can work neither in non-batch, nor in silent mode. The batch mode has been set automatically..

9/19/2011 19:46:17:526   Tried to open the error dialog. Message: The operation cannot be completed, since the selected source control does not support the SccBeginBatch/SccEndBatch function..

9/19/2011 19:46:18:800   Tried to open the Save Read-Only Storage dialog. The default value is wpcCancel.

9/19/2011 19:46:19:167   Tried to open the error dialog. Message: Run failed. Error: the project was modified and cannot be saved..

9/19/2011 19:46:19:738   Tried to open the Save dialog. The default value: YES.

9/19/2011 19:46:19:792   Tried to open the Save Read-Only Storage dialog. The default value is wpcCancel.

9/19/2011 19:46:19:948   Tried to open the YES/NO dialog. Message: Do you want to close the Project Suite without saving changes?. The default value: YES.

9/19/2011 19:46:41:379   Tried to open the information dialog. Message: The SCC Support Manager can work neither in non-batch, nor in silent mode. The batch mode has been set automatically..

9/19/2011 19:46:41:379   Tried to open the error dialog. Message: The operation cannot be completed, since the selected source control does not support the SccBeginBatch/SccEndBatch function..

9/19/2011 19:46:42:840   Tried to open the Save Read-Only Storage dialog. The default value is wpcCancel.

9/19/2011 19:46:43:215   Tried to open the error dialog. Message: Run failed. Error: the project was modified and cannot be saved..

9/19/2011 19:46:43:723   Tried to open the Save dialog. The default value: YES.

9/19/2011 19:46:43:762   Tried to open the Save Read-Only Storage dialog. The default value is wpcCancel.

9/19/2011 19:46:43:934   Tried to open the YES/NO dialog. Message: Do you want to close the Project Suite without saving changes?. The default value: YES.

9/19/2011 19:47:05:880   Tried to open the information dialog. Message: The SCC Support Manager can work neither in non-batch, nor in silent mode. The batch mode has been set automatically..

9/19/2011 19:47:05:880   Tried to open the error dialog. Message: The operation cannot be completed, since the selected source control does not support the SccBeginBatch/SccEndBatch function..

9/19/2011 19:47:07:107   Tried to open the Save Read-Only Storage dialog. The default value is wpcCancel.

9/19/2011 19:47:07:623   Tried to open the error dialog. Message: Run failed. Error: the project was modified and cannot be saved..

9/19/2011 19:47:08:021   Tried to open the Save dialog. The default value: YES.

9/19/2011 19:47:08:060   Tried to open the Save Read-Only Storage dialog. The default value is wpcCancel.

9/19/2011 19:47:08:271   Tried to open the YES/NO dialog. Message: Do you want to close the Project Suite without saving changes?. The default value: YES.
  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    My guess from my experience is that the primary files you'll be experiencing this problem with are the MDS and PJS files as those are the ones that change the most frequently when it comes to running the tests.
  • That is what I figured as well.



    However, I'm inclined to say that TC is not working as described in this article: http://smartbear.com/support/viewarticle/11000 , where if the SSC provider does not support batch mode then the project files should be unbound.



    I never had a problem with this in the 2008 MSSCCI, but I don't know if it supported batch mode either.  Apparently the 2010 MSSCCI does not, but why would the project files be read-only.



    Is this a red herring?  Should I be implementing a custom build action to remove the read-only flag on the project sources?  That seems to be the quickest way to overcome it, but I think that TC should be handling this on its own.



    Anything I can do to verify my project configuration or build environment?
  • I've implemented a custom build activity and its a good workaround.  It is a little complex because I need some test files within the workspace to actually be read-only, however I can work that into the activity.



    At this point this is a lower priority, but I'd really like to get it working natively through TestComplete if possible.
  • cmatusz's avatar
    cmatusz
    New Contributor
    Hi, was there ever any resolution to this issue on the SmartBear side?  I'm having the exact same issue and error in Silent.log.  We're using Visual Studio 2010 and TFS, TestComplete 9.20, and a .tc9Test file.  We're also using TFS MSSCCI Provider 2010.  Thanks!