Unable to run statlight on TeamCity - BrowserHostCommunicationTimeoutServerEvent

Mar 24, 2011 at 6:28 PM
Edited Mar 24, 2011 at 6:39 PM

 

I have statlight running well on local machines, but when I try to run in a build server env, I get timeouts. Any ideas?
[14:19:52]: [Exec] .\Libs\StatLight\StatLight.exe -x Bin\Debug\XXX.UnitTests.xap -o=xunit --teamcity -b --debug
[14:19:52]: [Exec] StatLight - Version 1.3.3981
[14:19:52]: [Exec] Copyright (C) 2009 Jason Jarrett
[14:19:52]: [Exec] All Rights Reserved.
[14:19:52]: [Exec] DiskXapHostFileLoader cannot find file - D:\TeamCity\buildAgent\work\21ce5eed61789a9e\LocusClient\Libs\StatLight\StatLight.Client.For.December2008.xap
[14:19:54]: [Exec] DiskXapHostFileLoader cannot find file - D:\TeamCity\buildAgent\work\21ce5eed61789a9e\LocusClient\Libs\StatLight\StatLight.Client.For.March2009.xap
[14:19:54]: [Exec] DiskXapHostFileLoader cannot find file - D:\TeamCity\buildAgent\work\21ce5eed61789a9e\LocusClient\Libs\StatLight\StatLight.Client.For.July2009.xap
[14:19:54]: [Exec] DiskXapHostFileLoader cannot find file - D:\TeamCity\buildAgent\work\21ce5eed61789a9e\LocusClient\Libs\StatLight\StatLight.Client.For.October2009.xap
[14:19:54]: [Exec] DiskXapHostFileLoader cannot find file - D:\TeamCity\buildAgent\work\21ce5eed61789a9e\LocusClient\Libs\StatLight\StatLight.Client.For.November2009.xap
[14:19:54]: [Exec] DiskXapHostFileLoader cannot find file - D:\TeamCity\buildAgent\work\21ce5eed61789a9e\LocusClient\Libs\StatLight\StatLight.Client.For.March2010.xap
[14:19:54]: [Exec] DiskXapHostFileLoader cannot find file - D:\TeamCity\buildAgent\work\21ce5eed61789a9e\LocusClient\Libs\StatLight\StatLight.Client.For.UnitDrivenDecember2009.xap
[14:19:54]: [Exec] ****************** Input options as configured ******************
[14:19:54]: [Exec] ContinuousIntegrationMode : False
[14:19:54]: [Exec] ForceBrowserStart : False
[14:19:54]: [Exec] IsRequestingDebug : True
[14:19:54]: [Exec] MethodsToTest : IEnumerable<string>
[14:19:54]: [Exec] {
[14:19:54]: [Exec] }
[14:19:54]: [Exec] MicrosoftTestingFrameworkVersion :
[14:19:54]: [Exec] NumberOfBrowserHosts : 1
[14:19:54]: [Exec] OutputForTeamCity : True
[14:19:54]: [Exec] QueryString :
[14:19:54]: [Exec] ShowHelp : False
[14:19:54]: [Exec] ShowTestingBrowserHost : True
[14:19:54]: [Exec] StartWebServerOnly : False
[14:19:54]: [Exec] TagFilters :
[14:19:54]: [Exec] UnitTestProviderType : XUnit
[14:19:54]: [Exec] UseRemoteTestPage : False
[14:19:54]: [Exec] WebBrowserType : SelfHosted
[14:19:54]: [Exec] XapPath : IEnumerable<string>
[14:19:54]: [Exec] {
[14:19:54]: [Exec] 'Bin\Debug\XXX.UnitTests.xap'
[14:19:54]: [Exec] }
[14:19:54]: [Exec] XmlReportOutputPath :
[14:19:54]: [Exec] *****************************************************************
[14:19:54]: [Exec] RunnerType = TeamCity
[14:19:54]: [Exec] Incoming MSTest file's hash = 357A677957F309AE85C3E5AEEDA43A32BCA23AD3
[14:19:54]: [Exec] XapItems.FilesContainedWithinXap = AppManifest.xaml
[14:19:54]: [Exec] XapItems.FilesContainedWithinXap = YY.XXX.DataAccess.dll
[14:19:54]: [Exec] XapItems.FilesContainedWithinXap = Locus.UnitTests.dll
[14:19:54]: [Exec] XapItems.FilesContainedWithinXap = Microsoft.Silverlight.Testing.dll
[14:19:54]: [Exec] XapItems.FilesContainedWithinXap = Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll
[14:19:54]: [Exec] XapItems.FilesContainedWithinXap = Nirvana Silverlight.dll
[14:19:54]: [Exec] XapItems.FilesContainedWithinXap = System.CoreEx.dll
[14:19:54]: [Exec] XapItems.FilesContainedWithinXap = System.Observable.dll
[14:19:54]: [Exec] XapItems.FilesContainedWithinXap = System.Reactive.dll
[14:19:54]: [Exec] XapItems.FilesContainedWithinXap = System.Xml.Linq.dll
[14:19:54]: [Exec] XapItems.FilesContainedWithinXap = xunit-silverlight4.dll
[14:19:54]: [Exec] XapItems.FilesContainedWithinXap = xunit.extensions-silverlight4.dll
[14:19:54]: [Exec] XapItems.FilesContainedWithinXap = xunitcontrib.runner.silverlight.toolkit-sl4.dll
[14:19:54]: [Exec] Loading XapHost file [MSTestMay2010]
[14:19:54]: [Exec] Loading XapHost [D:\TeamCity\buildAgent\work\21ce5eed61789a9e\LocusClient\Libs\StatLight\StatLight.Client.For.May2010.xap]
[14:19:54]: [Exec] Bin\Debug\Locus.UnitTests.xap
[14:24:55]: [Bin\Debug\Locus.UnitTests.xap] BrowserHostCommunicationTimeoutServerEvent
[14:24:55]: [BrowserHostCommunicationTimeoutServerEvent] No communication from the web browser has been detected. We've waited longer than the configured time of 00:05:00
[14:24:55]: [BrowserHostCommunicationTimeoutServerEvent] No communication from the web browser has been detected. We've waited longer than the configured time of 00:05:00
[14:24:55]: [Bin\Debug\XXX.UnitTests.xap] ...
Coordinator
Mar 24, 2011 at 7:40 PM

Are you doing UI tests? I see that you have the "ShowTestingBrowserHost" flag in use. which is meant to show the UI. This flag should not be necessary if you are not using the Microsoft Silverlight "TestPanel" support. For version 1.3 you may still have to go check this setup on the documentation page. Go look for the text "The server's "agent" process must run with access to the desktop." and make sure you have it configured as such.

If you're not doing UI tests, I'd recommend downloading the latest source from https://github.com/staxmanade/statlight build the build-Full-Release-skip-tests.bat and try using that version. It better supports C.I. scenarios.

Hope this helps.

Mar 25, 2011 at 1:58 PM

I'm still having trouble.

  • I've made sure TeamCity is running as System, with "Interact with destop" enabled.
  • I've downloaded and build the lastest src
  • I've removed the -b option so that ShowTestingBrowserHost             : False

 

What else can I look into, to resolve this?

Coordinator
Mar 25, 2011 at 4:28 PM
Edited Mar 25, 2011 at 4:31 PM

Sorry you're still having troubles.

Have you tried remoting into the server and running it manually? Is Silverlight installed?

I've seen when I forget to install Silverlight on a server that the web page shows the "Get Silverlight" Microsoft image when I run it manually.

Hope this helps.

Mar 28, 2011 at 4:33 PM

How embarrassing. I didn't have silverlight installed. I had the SL SDK and toolkit, but not the core.

Coordinator
Mar 28, 2011 at 5:23 PM

Great to hear you got it resolved. I've been wanting to add something to statlight to detect if it's installed or not and give a better warning - just haven't figured out the best way, and it's pretty low priority at this point.

Happy testing.