public static string AddTest(testDefinition test) { TestResult tr = new TestResult { labels = new List <Label>() }; if (string.IsNullOrWhiteSpace(test.id)) { test.id = Guid.NewGuid().ToString("N"); } tr.uuid = test.id; tr.name = test.name; tr.description = test.description; if (!string.IsNullOrWhiteSpace(test.epicName)) { tr.labels.Add(Label.Epic(test.epicName)); } if (!string.IsNullOrWhiteSpace(test.featureName)) { tr.labels.Add(Label.Feature(test.featureName)); } if (!string.IsNullOrWhiteSpace(test.storyName)) { tr.labels.Add(Label.Story(test.storyName)); } if (tr.labels.Count > 0) { tr.labels.Add(Label.Thread()); } if (test.listLinks != null) { if (test.listLinks.Count > 0) { tr.links = new List <Link>(); for (int i = 0; i < test.listLinks.Count; i++) { if (test.listLinks[i].isIssue) { tr.links.Add(Link.Issue(test.listLinks[i].name, test.listLinks[i].url)); } else { tr.links.Add(Link.Tms(test.listLinks[i].name, test.listLinks[i].url)); } } } } _instance = _instance.StartTestCase(tr); return(tr.uuid); }
/// <summary> /// Initializes a new instance of the <see cref="analyticJob"/> class. /// </summary> public analyticJob() { testInfo = new testDefinition("Spider comparative experiment", "The test performes Key Pages detection running four different Spider algorithms for each item in selected sample scope.", 1); DeliveryUnit = new deliveryUnitBootmarkReport(); DeliveryUnit.setup(); // sampleTags = imbWEMManager.settings.sampleGroup.SplitSmart(",", "primary"); //sampleGroup = imbAnalyticsEngine.imbWEMManager.webProfileGroups.primarySample; // report = new sampleProcessReport(); theme = new styleTheme(colorSet: aceBaseColorSetEnum.imbScience, h1Size: 16, pSize: 14, margin: 4, padding: 4, pageFontName: aceFont.TrebuchetMS, headingFontName: aceFont.TrebuchetMS); spider = new spiderUnit(); }