Beispiel #1
0
 private static void HandleProgressEvent(object sender, TestProgressEventArgs args)
 {
     StringBuilder builder = new StringBuilder();
     builder.AppendLine("Simulation progress: ");
     builder.AppendLine("Time elapsed: " + args.TimeElapsed.ToString() + " seconds.");
     builder.AppendLine("Total number of user: "******"Average number of concurrent users: " + args.AverageConcurrentUsers.ToString());
     builder.AppendLine("Average response time: " + args.AverageResponseTime);
     builder.AppendLine("Total hits: " + args.Hits.ToString());
     builder.AppendLine("Total errors: " + args.Errors.ToString());
     builder.AppendLine("Total timeouts: " + args.Timeouts.ToString());
     Console.WriteLine(builder.ToString());
 }
Beispiel #2
0
 // Invoke the Changed event; called whenever list changes
 protected virtual void OnTestProgressed(TestProgressEventArgs e)
 {
     if (TestProgressed != null)
         TestProgressed(this, e);
 }