Dashboard > MbUnit > ... > MbUnit Home > FixtureTimeOut
  MbUnit Log In View a printable version of the current page.  
  FixtureTimeOut
Added by Jonathan de Halleux, last edited by Jonathan de Halleux on Jul 02, 2005  (view change)
Labels: 
(None)

A MbUnit fixtures have a default time out set to 10 minutes. Time outs are there to ensure that a test does not block the entire test process. For example, a test that pops up a dialog window requiring manual interaction would kill the entire test execution.

To change the time out of a fixture, simply specify the number of minutes in the fixture attribute constructor:

Unable to find source-code formatter for language: cs. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
// A fixture with 10 minute timeout
[TestFixture(TimeOut = 10)]
public class MyFixture
{
   [Test]
   public void AMessageBoxShouldNotBlockTheTestProcess()
   {
       MessageBox.Show("I'm blocking the test automation");
   }
}

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators