Ejemplo n.º 1
0
        public override void Body()
        {
            double val = TimersCollection.StopTimer(key);

            if (maxTimeAllowed > 0)
            {
                if (val > maxTimeAllowed)
                {
                    LogFailedByExpectedResult("Operation exceeded requested time", string.Format("Maximum = {0}, Actual = {1}", maxTimeAllowed, val));
                    ActualResult = QAliber.RemotingModel.TestCaseResult.Failed;
                }
                else
                {
                    LogPassedByExpectedResult(string.Format("Operation ended {0}", val), "");
                    ActualResult = QAliber.RemotingModel.TestCaseResult.Passed;
                }
            }
        }
Ejemplo n.º 2
0
 public override void Body()
 {
     TimersCollection.AddTimer(key);
     ActualResult = QAliber.RemotingModel.TestCaseResult.Passed;
 }