Exemplo n.º 1
0
        public void Initialize()
        {
            var htmlReporter = new AventStack.ExtentReports.Reporter.ExtentHtmlReporter(@"C:\Users\aayush.gupta\source\repos\DotNetQAFinalAssessment\Reports\TestSuite1\GoogleTest.html");

            test = extentTest("GoogleSearchTest", "Google Search Test on google home page");
            extentReports.AttachReporter(htmlReporter);
        }
Exemplo n.º 2
0
        private ExtentHtmlReporter()
        {
            var htmlReporter =
                new AventStack.ExtentReports.Reporter.ExtentHtmlReporter(Path.Combine(Config.GetOutputDir(),
                                                                                      "extent.html"));

            htmlReporter.LoadConfig("Extent-Config.xml");
            Extent.AttachReporter(htmlReporter);
        }
Exemplo n.º 3
0
        public void Initialize()
        {
            ExtentReporter = new AventStack.ExtentReports.ExtentReports();

            // NOTE: For some reason, I need to specify the path here or it goes 'one level up'. Am I missing something?
            _htmlReporter = new AventStack.ExtentReports.Reporter.ExtentHtmlReporter(System.IO.Path.Combine(ReportOutputFolder, "index.html"));

            ExtentReporter.AttachReporter(_htmlReporter);
        }
Exemplo n.º 4
0
        // Creates a new testcase using the provided input
        public TestcaseReport(string path)
        {
            //ReportPath = path + @"\" + System.DateTime.Now.ToString(@"yyyy-MM-dd HH.mm.ss") + @"\";
            ReportPath = path + @"\";

            System.IO.Directory.CreateDirectory(ReportPath);
            HtmlReporter = new AventStack.ExtentReports.Reporter.ExtentHtmlReporter(ReportPath);

            ExtentReports = new ExtentReports();
            ExtentReports.AttachReporter(HtmlReporter);
        }
Exemplo n.º 5
0
 public static void Initializereport(TestContext context)
 {
     //Added Code
     htmlReporter = new AventStack.ExtentReports.Reporter.ExtentHtmlReporter("D:\\Automation - Doc\\Vievuautomationresult.html");
     htmlReporter.LoadConfig("Extendreport.xml");
     extent = new ExtentReports();
     extent.AddSystemInfo("Host Name", "Nandkumar");
     extent.AddSystemInfo("Environment", "QA");
     extent.AddSystemInfo("User Name", "Nandkumar");
     extent.AttachReporter(htmlReporter);
 }
        public static void BasicSetUp()
        {
            string currentDate     = DateTime.Now.ToString("dddd, dd MMMM yyyy ");
            string currentTime     = DateTime.Now.ToShortTimeString().ToString().Replace(":", ".");
            string currentDateTime = currentDate + currentTime;

            string pth         = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
            string actualPath  = pth.Substring(0, pth.LastIndexOf("bin"));
            string projectPath = new Uri(actualPath).LocalPath;
            string reportPath  = projectPath + "Reports\\TestResultReport_" + currentDateTime + ".html"; // using date time for generating new report each time

            extent = new ExtentReports();
            var extentHtml = new AventStack.ExtentReports.Reporter.ExtentHtmlReporter(reportPath);

            extent.AttachReporter(extentHtml);
            extentHtml.LoadConfig(projectPath + "extent-config.xml");

            extent.AddSystemInfo("Environment", ConfigurationManager.AppSettings["Environment"]);
        }