public NUnitParser(ExtentReports extent)
 {
     _extent = extent;
 }
Esempio n. 2
0
 public static void ExtentReports()
 {
     extent = new ExtentReports(Base.ReportPath, true, DisplayOrder.NewestFirst);
     // extent.LoadConfig(ConstantUtils.ReportXMLPath);
 }
Esempio n. 3
0
 public ClassFixture()
 {
     Extent     = ExtentTestManager.ExtentReportInstance();
     parentTest = ExtentTestManager.CreateTest("TestClass Name", "Test Class Description");
 }
 public ExceptionViewTest()
 {
     extent = new ExtentReports("ExceptionViewTest.html", true);
 }
Esempio n. 5
0
 public TestConverter(ExtentReports Extent, string FilePath)
 {
     _extent   = Extent;
     _filePath = FilePath;
 }
Esempio n. 6
0
 public static void StartTestReport(string reportfilename, string title, string description)
 {
     extent = new ExtentReports("D:\\Загрузки\\" + reportfilename + ".html");
     test   = extent.StartTest(title, description);
 }
Esempio n. 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportingTasks"/> class.
 /// </summary>
 /// <param name="extentInstance">The extent instance.</param>
 public ReportingTasks(ExtentReports extentInstance)
 {
     _extent = extentInstance;
 }
        public void Setup()
        {
            // Relevantcodes extent Report 2.41
            //*******************************************************************************************
            // //To obtain the current solution path/project path
            // string pth = System.Reflection.Assembly.GetCallingAssembly().CodeBase;
            // string actualPath = pth.Substring(0, pth.LastIndexOf("bin"));
            // string projectPath = new Uri(actualPath).LocalPath;
            // Console.WriteLine(projectPath);
            // //Append the html report file to current project path
            // string reportPath = projectPath + "Report\\TestRunReport.html";
            // Console.WriteLine(reportPath);
            // //Boolean value for replacing exisisting report
            //extent = new ExtentReports(reportPath, true);
            // //Add QA system info to html report
            // extent.AddSystemInfo("Host Name", "Shwetabh")
            //     .AddSystemInfo("Environment", "Stage")
            //    .AddSystemInfo("Username", "shwetabh123");
            // //Adding config.xml file
            // extent.LoadConfig(projectPath + "extent-config.xml"); //Get the config.xml file from http://extentreports.com
            //******************************************
            //aventstack extentreport 3.0.0
            //****************************************************
            //To obtain the current solution path/project path
            //string pth = System.Reflection.Assembly.GetCallingAssembly().CodeBase;
            // string pth = System.Environment.CurrentDirectory;
            //  string pth = AppDomain.CurrentDomain.BaseDirectory;
            //-----------------------
            //string pth = AppDomain.CurrentDomain.SetupInformation.ApplicationBase;
            //string actualPath = pth.Substring(0, pth.LastIndexOf("bin"));
            //string projectPath = new Uri(actualPath).LocalPath;
            //Console.WriteLine(projectPath);

            //-------------------
            string projectPath = (@"D:\Shell Framework");

            //Append the html report file to current project path
            string reportPath = projectPath + "Report\\TestRunReport.html";

            //string reportPath = "TestRunReport.html";
            Console.WriteLine(reportPath);
            //aventstack
            //  ExtentHtmlReporter htmlReporter = new ExtentHtmlReporter(reportPath);
            //Boolean value for replacing exisisting report
            //relevent codes
            // extent = new ExtentReports();
            //aventstack
            //   extent = new ExtentReports();
            //// report title
            htmlReporter.Configuration().DocumentTitle = "aventstack - ExtentReports";
            //// encoding, default = UTF-8
            htmlReporter.Configuration().Encoding = "UTF-8";
            htmlReporter.Configuration().Theme    = AventStack.ExtentReports.Reporter.Configuration.Theme.Standard;
            //// report or build name
            //   htmlReporter.Config.ReportName = "Build-1224";
            //// chart location - top, bottom
            htmlReporter.Configuration().ChartLocation = ChartLocation.Top;
            //// theme - standard, dark
            ////htmlReporter.Configuration().Theme = Theme.Dark;
            //// add custom css
            htmlReporter.Configuration().CSS = "css-string";
            //// add custom javascript
            htmlReporter.Configuration().JS = "js-string";
            //// create ExtentReports and attach reporter(s)

            //aventstack
            extent = new ExtentReports();
            extent.AttachReporter(htmlReporter);
            extent.AddSystemInfo("Platform", "Windows");
            extent.AddSystemInfo("Host Name", "localhost");
            extent.AddSystemInfo("Environment", "QA");
            extent.AddSystemInfo("User Name", "testUser");
            //************
            //Gives full path package---class name---test name
            // parentTest = extent.CreateTest(TestContext.CurrentContext.Test.ClassName);
            //Gives only class name----use this
            //aventstack
            parentTest = extent.CreateTest(TestContext.CurrentContext.Test.Name);
            childTest  = parentTest.CreateNode(TestContext.CurrentContext.Test.Name);
            //  parenttest = extent.StartTest("Parent", "Test Started");
        }
Esempio n. 9
0
 public void FixtureInit()
 {
     this.extentReport = ExtentManager.Instance;
 }
Esempio n. 10
0
 public CategoryTest()
 {
     extent = new ExtentReports("CategoryTest.html", true);
 }
Esempio n. 11
0
 public void BaseInitialize()
 {
     BaseDriver.Initialize();
     ReportLog  = ReportHelper.ReportInstance;
     TestReport = ReportLog.StartTest(TestContext.CurrentContext.Test.Name);
 }
Esempio n. 12
0
 public void Setup()
 {
     _extent = new ExtentReports();
     _html   = new ExtentHtmlReporter(
         Path.Combine(ReportPath, DateTime.Now.ToString("yyyy-MM-dd_HH.mm.ss")) + "\\");
 }
Esempio n. 13
0
 public void FixtureInit()
 {
     extent = ExtentManager.Instance;
 }
Esempio n. 14
0
 public static void SetupReport()
 {
     extentReports = new ExtentReports();
     reportsFolder = IOManager.CreateReportsDirectory();
 }
Esempio n. 15
0
        public static void BeforeTestRun()
        {
            string reportPath = Path.GetDirectoryName(Path.GetDirectoryName(Path.GetDirectoryName(Path.GetDirectoryName(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location))))) + REPORT_LOCATION;

            _extentReports = Reporter.CreateReport(reportPath);
        }
Esempio n. 16
0
 public AuthorTest()
 {
     extent = new ExtentReports("AuthorTest.html", true);
 }
Esempio n. 17
0
        public void StartReport()
        {
            string reportPath = "C:\\FlightBook\\FlightBookReport.html";

            extent = new ExtentReports(reportPath, true);
        }
Esempio n. 18
0
 public static void StartReporting(TestContext tc)
 {
     Console.WriteLine("Create HTML and start reporting");
     extent = CreateExtent("ScopeAR", "ScopeAR Mobile Automation Test Results");
     parent = CreateParentTest(extent, "ScopeAR", "ScopeAR Mobile Automation Test Results");
 }
 public ExceptionViewTest()
 {
     extent = new ExtentReports("ExceptionViewTest.html", true);
 }
Esempio n. 20
0
 public static void BeforeTestRun()
 {
     // _extentHtmlReporter = new ExtentHtmlReporter(@"C:\\Newfolder\\aaa.html");
     _extentReports = new ExtentReports();
     _extentReports.AttachReporter(_extentHtmlReporter);
 }
 public static void ClassInit(TestContext context)
 {
     testutil = new TestUtil();
     reports  = testutil.StartReporter();
     Initialize();
 }
Esempio n. 22
0
 public static void TearDownReport(ExtentReports extent)
 {
     //  extent.Flush();
 }
Esempio n. 23
0
 public void FixtureInit()
 {
     extent = ExtentManager.Instance;
 }
 public static void BeforeTestRun()
 {
     _extentHtmlReporter = new ExtentHtmlReporter(@"C:\Data\log\");
     _extentReports      = new ExtentReports();
     _extentReports.AttachReporter(_extentHtmlReporter);
 }