Пример #1
0
 protected override void TestDetailsWereAdded(difido_client.Report.Html.Model.TestDetails testDetails)
 {
     if (!enabled)
     {
         return;
     }
     try
     {
         client.AddTestDetails(executionId, testDetails);
     }
     catch
     {
         //log.warning("Failed updating test details to remote server due to " + e.getMessage());
         CheckIfNeedsToDisable();
     }
 }
Пример #2
0
 protected override void TestDetailsWereAdded(difido_client.Report.Html.Model.TestDetails testDetails)
 {
     if (!enabled)
     {
         return;
     }
     try
     {
         client.AddTestDetails(executionId, testDetails);
     }
     catch (Exception e)
     {
         Console.WriteLine(e.Message);
         CheckIfNeedsToDisable();
     }
 }
Пример #3
0
        protected override string FileWasAdded(difido_client.Report.Html.Model.TestDetails testDetails, string file)
        {
            if (!enabled)
            {
                return(null);
            }
            if (file == null || file.Length == 0 || !File.Exists(file))
            {
                return(null);
            }

            try
            {
                client.AddFile(executionId, testDetails.uid, file);
            }
            catch (Exception e)
            {
                Console.WriteLine("Failed sending file " + file + " due to " + e.Message);
            }
            return(Path.GetFileName(file));
        }
Пример #4
0
        protected override string FileWasAdded(difido_client.Report.Html.Model.TestDetails testDetails, string file)
        {
            if (!enabled)
            {
                return(null);
            }
            if (file == null || file.Length == 0 || !File.Exists(file))
            {
                return(null);
            }

            try
            {
                client.AddFile(executionId, testDetails.uid, file);
            }
            catch
            {
                //log.warning("Failed uploading file " + file.getName() + " to remote server due to " + e.getMessage());
            }
            return(Path.GetFileName(file));
        }