Пример #1
0
        public void DeleteRun(ItemInfoDto runInfo)
        {
            _dataWriterLogger.Debug($"Deleting run with guid = {runInfo.Guid}");
            var runs = AllRunDtos ?? new List <RunDto>();

            runs.RemoveAll(r => r.RunInfo.Guid.Equals(runInfo.Guid));
            _cache.Set(AllRunDtosKey, runs, Offset);
        }
Пример #2
0
        public void UpdateTestOutput(ItemInfoDto testInfo, TestOutputDto testOutput)
        {
            _dataWriterLogger.Debug("Updating test output in Common cache");
            var test = GetTestRun(testInfo);

            if (test != null)
            {
                SaveTestRun(test, testOutput);
            }
        }
Пример #3
0
 public TestRunDto(Guid guid, string name = "", string fullName = "")
 {
     TestInfo = new ItemInfoDto
     {
         Guid   = guid,
         Start  = DateTime.Now,
         Finish = default(DateTime)
     };
     Name           = name;
     FullName       = fullName;
     Description    = "";
     TestStackTrace = "";
     TestMessage    = "";
     Result         = "";
     Output         = "";
     Priority       = "";
     TestType       = "";
     Categories     = new string[] { };
     RunGuid        = Guid.Empty;
     Screenshots    = new List <TestScreenshotDto>();
     Events         = new List <TestEventDto>();
     TestData       = new List <TestDataDto>();
 }
Пример #4
0
 public TestRunDto(string guid = "", string name = "", string fullName = "")
 {
     TestInfo = new ItemInfoDto
     {
         Guid   = guid.Equals("") ? Guid.Empty : Guid.Parse(guid),
         Start  = default(DateTime),
         Finish = default(DateTime)
     };
     Name           = name;
     FullName       = fullName;
     Description    = "";
     TestStackTrace = "";
     TestMessage    = "";
     Result         = "";
     Duration       = 0.0;
     Output         = new SimpleItemInfoDto();
     Priority       = "";
     TestType       = "";
     Categories     = new string[] { };
     RunGuid        = Guid.Empty;
     Screenshots    = new List <SimpleItemInfoDto>();
     Events         = new List <TestEventDto>();
     TestData       = new List <TestDataDto>();
 }
Пример #5
0
 public TestRunDto GetTestRun(ItemInfoDto testInfo)
 {
     _dataReaderLogger.Debug("Getting test run from Common cache");
     return(_cache.Get(testInfo.Guid.ToString()) as TestRunDto);
 }