public override bool Run(ServerTestCase testcase, int iteration)
{
Iteration = iteration;
// do secondary test.
switch (testcase.Name)
{
case "PublishingInterval":
{
if (!DoPublishingIntervalTest())
{
Log("WARNING: Re-doing PublishingInterval test to check if random timing glitches were the cause of failure.");
return DoPublishingIntervalTest();
}
return true;
}
case "CreateItems":
{
// need fetch nodes used for the test if not already available.
if (AvailableNodes.Count == 0)
{
if (!GetNodesInHierarchy())
{
return false;
}
}
return DoCreateItemsTest();
}
default:
{
if (!DoKeepAliveTest())
{
Log("WARNING: Re-doing KeepAlive test to check if random timing glitches were the cause of failure.");
return DoKeepAliveTest();
}
return true;
}
}
}
#endregion