Skip to content

Scenario execution

Yauhen Shayunou edited this page Oct 21, 2020 · 1 revision

Scenario execution is triggered by Run() method. Default behavior of this method is the following:

  • Scenario is executed one
  • Collections of artifacts are not cleaned Default behavior can be change by specifying of default parameters:
void Run(int attemptsCount = 1, int millisecondsTimeout = 1000, bool cleanActorsOnRetry = true)

Retries can be described by the following pseudo-code:

for (var i = 0; i < attemptsCount; i++)
{
   try
   {
      ... execute scenario ...
      break;
   }
   catch (ExpectationException)
   {  
      Thread.Sleep(millisecondsTimeout);
   }
}

Artifact collection is cleaned by default to avoid issues related to actions based on results of other actions executed in the same scenario.

Clone this wiki locally