UpdateTask() public method

public UpdateTask ( ITestTask task ) : bool
task ITestTask
return bool
Example #1
0
        void CloseCurrentTaskIfAny()
        {
            Trace.TraceInformation("closeCurrentTaskIfAny().1");

            var task = ClientSettings.Instance.CurrentTask;

            Trace.TraceInformation("closeCurrentTaskIfAny().2");

            if (null == task)
            {
                return;
            }

            Trace.TraceInformation("closeCurrentTaskIfAny().3");

            var taskUpdater = new TaskUpdater();

            Trace.TraceInformation("closeCurrentTaskIfAny().4");

            Trace.TraceInformation("closeCurrentTaskIfAny().5");

            task.TaskStatus = TestTaskStatuses.CompletedSuccessfully;

            task.CheckTestStatus();

            Trace.TraceInformation("closeCurrentTaskIfAny().6");

            taskUpdater.UpdateTask(task);

            Trace.TraceInformation("closeCurrentTaskIfAny().7");
        }
Example #2
0
 void CloseCurrentTaskIfAny()
 {
     
     Trace.TraceInformation("closeCurrentTaskIfAny().1");
     
     var task = ClientSettings.Instance.CurrentTask;
     
     Trace.TraceInformation("closeCurrentTaskIfAny().2");
     
     if (null == task) return;
     
     Trace.TraceInformation("closeCurrentTaskIfAny().3");
     
     var taskUpdater = new TaskUpdater(new RestRequestCreator());
     
     Trace.TraceInformation("closeCurrentTaskIfAny().4");
     
     // 20150112
     // task.TaskFinished = true;
     
     Trace.TraceInformation("closeCurrentTaskIfAny().5");
     
     task.TaskStatus = TestTaskStatuses.CompletedSuccessfully;
     
     Trace.TraceInformation("closeCurrentTaskIfAny().6");
     
     taskUpdater.UpdateTask(task);
     
     Trace.TraceInformation("closeCurrentTaskIfAny().7");
 }
Example #3
0
        void CloseCurrentTaskIfAny()
        {
            
            Trace.TraceInformation("closeCurrentTaskIfAny().1");
            
            var task = ClientSettings.Instance.CurrentTask;
            
            Trace.TraceInformation("closeCurrentTaskIfAny().2");
            
            if (null == task) return;
            
            Trace.TraceInformation("closeCurrentTaskIfAny().3");
            
            var taskUpdater = new TaskUpdater();
            
            Trace.TraceInformation("closeCurrentTaskIfAny().4");
            
            Trace.TraceInformation("closeCurrentTaskIfAny().5");
            
            task.TaskStatus = TestTaskStatuses.CompletedSuccessfully;

            task.CheckTestStatus();

            Trace.TraceInformation("closeCurrentTaskIfAny().6");
            
            taskUpdater.UpdateTask(task);
            
            Trace.TraceInformation("closeCurrentTaskIfAny().7");
        }