Team System Developer Center > Visual Studio Team System Forums > Team Foundation Server - Build Automation > Are there any best practices when using WatiN tests in Continuous Integration with VS2008 and TFS?
Ask a questionAsk a question
 

QuestionAre there any best practices when using WatiN tests in Continuous Integration with VS2008 and TFS?

  • Friday, November 06, 2009 8:05 PMwillowoak Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    We are currently using VS2008 SP1, TFS, and WatiN in our Continuous Integration process.  Our WatiN tests work fine on our dev boxes when hitting either the portal on our dev boxes or the portal on the Continuous Integration server.

    We have setup the TFS service to run on an interactive port on our build server so that WatiN test can also be executed on the build server against the portal on the Continuous Integration server.  We have also made sure that IE settings on the build server are similar to those on our dev boxes.

    We currently experience random failures in the WatiN tests.  Sometimes all tests pass (which is what we want).  Other times 1 or 2 of the test fail and they are not always the same tests that fail.  We thought this may be a timing issue so we added some sleep statements; however, the random errors still have not gone away.  We cannot recreate these random errors on our dev boxes.  They only occur on the build server when executed by the TFS id.

    Does anyone have any suggestions?  If you need more details, let me know.

All Replies

  • Monday, November 09, 2009 9:55 AMRuiz YiModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    What do you mean by TFS id?  Sorry that I did not use WatiN before, so it is better that to as this question in the third-part product forum.

    Best Regards,
    Ruiz
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi
  • Monday, November 09, 2009 1:42 PMwillowoak Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    In regards to the TFS id, I mean the user id used by Team Foundation server used to run our Continuous Integration builds.  We used the following link to setup our interactive port for TFS:  http://msdn.microsoft.com/en-us/library/bb399142.aspx

    If anyone has used TFS and WatiN in Continuous Integration successfully please let me know.  In the meantime, I'll try some other forums.