public AtutomationCaseRun BildCaseAtutomation(Case caseItem, List <ulong> configs, ulong?suiteId, ulong?runId) { var caseAtutomation = new AtutomationCaseRun(); caseAtutomation.CaseBase = caseItem; if (suiteId != null) { caseAtutomation.SuiteId = (ulong)suiteId; } caseAtutomation.IncludedIn = TestRailDependencies.GetDependencies(caseItem.ID); if (runId != null) { caseAtutomation.RunId = (ulong)runId; } if (configs != null) { if (configs.Count > 0) { caseAtutomation.Environment = (AutomationModels.Environment)configs[0]; } if (configs.Count > 1) { caseAtutomation.Brand = (AutomationModels.Brand)configs[1]; } if (configs.Count > 2) { caseAtutomation.Browser = (AutomationModels.Browser)configs[2]; } } return(caseAtutomation); }
public static System.IO.Stream GetDependenciesReport() { return(TestRailDependencies.GetDependenciesReport()); }