TeamCity test exceeded execution timeout period

Hello,

 

So i have an issue with a teamCity test execution. I have a test that may take up to 3 hours, but after 30 min it gives me timeout and it stops. The test is failing, yet it is correctly developed. I have tried so many things, yet no success. I am using Visual Studio 2015, and I am using TestStack.White to develop tests, and i run them on another agent using teamcity with MSBuild. 

Until now i have tried to :

- modify failing conditions:" if it runs longer than specified limit in minutes (0 — unlimited)" .. i have tried with 0 and a big positive number

-unchecked "enable hanging builds detection"

- from the project in visual studio, i tried in solution items with and without a .testsettings file, i also modified the test timeouts value (it was by default 30 min) but no success

-i tried to add a timeout attribute in the test file but it gave me:Illegal use of attributes on "blabla" The TimeoutAttribute can be defined only inside a class marked with the TestClass attribute. The thing is i added [TestClass] and [TestMethod], but it is not ok for my case, because with  TestStack.White i have several steps that i want to do in order to have a complete test, and if a add timeout attribute every step in a test will be considered as a test and won't work.

 

I struggle with this since 2 weeks and i have no other option, i don't know what to do and what to modify in order to modify that timeout value. I believe it is something from teamcity. I am using TeamCity Enterprise 10.0.5.

0
1 comment

Hi,

 

Does the test output anything to the stdout in those 30 minutes? What message is posted to finish the build? Could you try following this steps for troubleshooting? https://confluence.jetbrains.com/display/TCD18/Common+Problems#CommonProblems-BuildworkslocallybutfailsormisbehavesinTeamCity

0

Please sign in to leave a comment.