Service Message Test Failure not displayed correctly in PortalHi

Hi

We are using TeamCity Service Messages to report on the status of our Silverlight Testing Framework.  The TeamCity portal correctly fails the build if an error occurs.  When I click on the failed test it however only displays the stack trace and not the actual assert message failure.  Here is the actual service message that was was logged:

##teamcity[testFailed name='ClassificationEditViewTests.T13_UpdateExistingClassification1_SavesClassificationAIntoDb' message='Assert.Fail failed. Timeout occured while waiting for BusinessObject to be saved.' details='   at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.HandleFail(String assertionName, String message, Object[|] parameters)|r|n   at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.Fail(String message, Object[|] parameters)|r|n   at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.Fail(String message)|r|n   at Pragma.OnKey.Client.Tests.Integration.OnKeySilverlightTest.<>c__DisplayClassa.<EnqueueConditionalOrTimeout>b__9()|r|n   at Microsoft.Silverlight.Testing.UnitTesting.ConditionalWorkItem.Invoke()|r|n   at Microsoft.Silverlight.Testing.UnitTesting.Harness.CompositeWorkItem.Invoke()']


I would expect to see the "Assert.Fail failed. Timeout occured while waiting for the BusinessObjec to be saved." but I don't see it at all.  What am I doing wrong?


Thanks
2 comments

Here are the Service Messages again, only this time I include the testStarted and testFinished calls as well.

##teamcity[testStarted name='ClassificationEditViewTests.T13_UpdateExistingClassification1_SavesClassificationAIntoDb']
##teamcity[testFailed name='ClassificationEditViewTests.T13_UpdateExistingClassification1_SavesClassificationAIntoDb' message='Assert.Fail failed. Timeout occured while waiting for BusinessObject to be saved.' details='   at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.HandleFail(String assertionName, String message, Object[|] parameters)|r|n   at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.Fail(String message, Object[|] parameters)|r|n   at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.Fail(String message)|r|n   at Pragma.OnKey.Client.Tests.Integration.OnKeySilverlightTest.<>c__DisplayClassa.<EnqueueConditionalOrTimeout>b__9()|r|n   at Microsoft.Silverlight.Testing.UnitTesting.ConditionalWorkItem.Invoke()|r|n   at Microsoft.Silverlight.Testing.UnitTesting.Harness.CompositeWorkItem.Invoke()']
##teamcity[testFinished name='ClassificationEditViewTests.T13_UpdateExistingClassification1_SavesClassificationAIntoDb']
0

Hello Carel,

   Looks this is a TeamCity problem - it doesn't process message attribute correctly and doesn't show this information . Please file a bug request and in the meantime, use details field to provide the message.

  Kind regards,
  KIR

0

Please sign in to leave a comment.