コード例 #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));
        }