Exemple #1
0
        private static void OnDumpsAdded(System.Collections.Specialized.NotifyCollectionChangedEventArgs e, ConcurrentQueue<string> messageQueue, ScrutinyTestClient client)
        {
            if (e.NewItems == null)
                return;

            foreach (string dump in e.NewItems)
            {
                OnDumpAdded(messageQueue, client, dump);
            }
        }
Exemple #2
0
 private static void OnDumpAdded(ConcurrentQueue<string> messageQueue, ScrutinyTestClient client, string dump)
 {
     messageQueue.Enqueue($"<p class='info'><span class='browser'>{client.Browser}</span> <span class='description'>{dump}</span></p>\n");
 }
Exemple #3
0
        private static void OnResultAdded(ConcurrentQueue<string> messageQueue, ScrutinyTestClient client, TestResult item)
        {
            if (item.success)
                return; //Suppressing all success messages

            var message = new StringBuilder();

            message.AppendLine($"<p class='error'><span class='browser'>{client.Browser}</span> <span class='description'>{item.description}</span></p>");

            foreach (var logRow in item.log)
            {
                message.AppendLine($"<pre class='log'>{logRow}</pre>");
            }

            messageQueue.Enqueue(message.ToString());
        }
Exemple #4
0
 protected override Client CreateClient()
 {
     var client = new ScrutinyTestClient();
     return client;
 }