private void LoadImportedFiles(string path) { for (int i = 0; i < Children.Count; i++) { Element el = Children[i]; ImportFile imf = el as ImportFile; if (imf != null) { TestList tl = TestList.LoadFromFile(Path.Combine(path, imf.FilePath)); tl.ImportedFile = imf; tl.Parent = this; Children[i] = tl; } TestList il = el as TestList; if (il != null) { il.LoadImportedFiles(path); } } }
private void LoadExternalResults() { if (RunResult != null && RunResult is TestListTestResult && SaveAfterEachRun) { if (!string.IsNullOrEmpty(ExternalRunFile)) { TestList tl = TestList.LoadFromFile(ExternalRunFile); foreach (Element el in tl.Children) { ((TestListTestResult)RunResult).TestLists.Add((TestList)el); } } /*if( !string.IsNullOrEmpty( ExternalTracesFile ) ) * { * TestList tl = TestList.LoadFromFile( ExternalTracesFile ); * * Traces.AddRange( tl.Traces ); * }*/ } }