Пример #1
0
 /// <summary>
 /// Called by OpenTAP when the source TestStep publishes results. This is happening in a background thread.
 /// </summary>
 public void OnResultPublished(TestStepRun stepRun, ResultTable result)
 {
     if (stepRun.TestStepId == SourceTestStep?.Id)
     {
         ResultColumn column = result.Columns.FirstOrDefault(col => col.Name == ResultColumnName);
         if (column != null)
         {
             lock (Result)
             {
                 Result.Enqueue(column.GetValue <T>(0));
                 ItemsInQueue.Set();
             }
         }
     }
 }