Selenium with C# | Extent Report
In this video we will talk about that how to integrate ExtentReport in Selenium c# project. 1. To start with the integration, we will be required ExtentReport.Core package. 2. Once finished with the installation of ExtentReport package then we will create Hooks.cs class. This class will hold all the hook related information. Below are the Specflow hooks which we can use in our project. [BeforeTestRun]/[AfterTestRun] [BeforeFeature]/[AfterFeature] [BeforeScenario] or [Before] [AfterScenario] or [After] [BeforeScenarioBlock] [AfterScenarioBlock] [BeforeStep] [AfterStep] 3. Initialize the extent report in [BeforeTestRun] hook. This method will be executed before any test. 4. Then create the feature in [BeforeFeature] hook. This method will be called before each feature file execution. 5. Now create scenario in the extent report using [BeforeScenario] hook. This method will be called before each scenario run. 6. Then create a function to report step as Pass or Fail in [AfterStep] hook. Based on the outcome of the execution steps will display as passed or failed in extent report. 7. At last use [AfterFeature] hook to flush the result into the extent report. 8. Then build the project and run it. After execution ends we will get the extent report generate at the desired location. Please comment in case of any query. Please watch below video as well - To start with selenium project in c#. : https://youtu.be/Yb-p4PtyOAQ Klov report server : https://youtu.be/Y6_TmWOq_Xk Selenium with C# - Parallel Execution and Screenshot : https://youtu.be/9i8jy7fWSOw Selenium with C# - All about feature files - Gherkin - BDD : https://youtu.be/aUD6W9U9b0c Serilog - Logging in Automation Framework : https://youtu.be/EYK3Q4emSZQ Selenium with C# - Specflow - External Bindings : https://youtu.be/FjsOLQBbM7k Selenium with C# Working with Excel - Part 1 : https://youtu.be/5EwNG5aI8w4 Selenium C# - Visual Studio Code : https://youtu.be/UbgUNOe2R00
In this video we will talk about that how to integrate ExtentReport in Selenium c# project. 1. To start with the integration, we will be required ExtentReport.Core package. 2. Once finished with the installation of ExtentReport package then we will create Hooks.cs class. This class will hold all the hook related information. Below are the Specflow hooks which we can use in our project. [BeforeTestRun]/[AfterTestRun] [BeforeFeature]/[AfterFeature] [BeforeScenario] or [Before] [AfterScenario] or [After] [BeforeScenarioBlock] [AfterScenarioBlock] [BeforeStep] [AfterStep] 3. Initialize the extent report in [BeforeTestRun] hook. This method will be executed before any test. 4. Then create the feature in [BeforeFeature] hook. This method will be called before each feature file execution. 5. Now create scenario in the extent report using [BeforeScenario] hook. This method will be called before each scenario run. 6. Then create a function to report step as Pass or Fail in [AfterStep] hook. Based on the outcome of the execution steps will display as passed or failed in extent report. 7. At last use [AfterFeature] hook to flush the result into the extent report. 8. Then build the project and run it. After execution ends we will get the extent report generate at the desired location. Please comment in case of any query. Please watch below video as well - To start with selenium project in c#. : https://youtu.be/Yb-p4PtyOAQ Klov report server : https://youtu.be/Y6_TmWOq_Xk Selenium with C# - Parallel Execution and Screenshot : https://youtu.be/9i8jy7fWSOw Selenium with C# - All about feature files - Gherkin - BDD : https://youtu.be/aUD6W9U9b0c Serilog - Logging in Automation Framework : https://youtu.be/EYK3Q4emSZQ Selenium with C# - Specflow - External Bindings : https://youtu.be/FjsOLQBbM7k Selenium with C# Working with Excel - Part 1 : https://youtu.be/5EwNG5aI8w4 Selenium C# - Visual Studio Code : https://youtu.be/UbgUNOe2R00