Ejemplo n.º 1
0
        public static void BeforeFeature()
        {
            extent.AddSystemInfo("URL", "test-salesdash.thomaspublishing.com");
            extent.AddSystemInfo("Username", "Ankit Kansal");
            //htmlReporter.LoadConfig(@"E:\Sample\ThomasPublishing\ThomasProject\ThomasProject\ThomasNetProject\ThomasNetProject\extent-config.xml");

            htmlReporter.LoadConfig(@"C:\Users\Anuruddha.Tiwari\source\repos\ThomasNetProject\ThomasNetProject\extent-config.xml");
            SelectBrowser.BrowserandURL(ConfigurationManager.AppSettings.Get("Website"), ConfigurationManager.AppSettings.Get("Browser"));
            //ExcelRead.xlPath = ConfigurationManager.AppSettings.Get("FilePath");
            ScreenshotPage.Path = ConfigurationManager.AppSettings.Get("PathofScreenshot");
            Loghelper.appender  = ConfigurationManager.AppSettings.Get("Appender");
            extent.AttachReporter(htmlReporter);
            //test = extent.CreateTest(FeatureContext.Current.FeatureInfo.Title);
        }
Ejemplo n.º 2
0
 public static void AfterFeature()
 {
     SelectBrowser.BrowserTearDown();
     extent.Flush();
 }