SpecFlow Selenium C# Tutorials-04 Add Screenshot into Extent Report When Script Failed

Поделиться
HTML-код
  • Опубликовано: 2 фев 2025

Комментарии • 19

  • @testerstalk
    @testerstalk  Год назад

    Specflow BDD Automation framework GitHub Repository -
    github.com/BakkappaN/SpecFlowBDDAutomationFramework#readme
    ** FREE RUclips Full Courses **
    ==========================
    🔊 Specflow Selenium C# Tutorial - ruclips.net/video/7xPcalwU76c/видео.html
    🔊 Selenium C# .NET NUnit Tutorial - ruclips.net/video/utfaE9Nv1FY/видео.html
    🔊 EasyRepro Framework Tutorial D365 CRM Testing Tutorial - ruclips.net/video/x0cHZ3E7Ekw/видео.html
    🔊 Selenium GRID Tutorial - ruclips.net/video/uVS08EMxThk/видео.html
    🔊 Appium Tutorial Mobile App Automation - ruclips.net/video/Xnxf6uK7V5Q/видео.html
    🔊 Appium Tutorial Selenium GRID Tutorial - ruclips.net/video/OpzWMdL7kRA/видео.html
    🔊 Data Driven Framework Tutorial - ruclips.net/video/lwkyl-Th9nU/видео.html
    🔊 Cucumber BDD Framework Tutorial Part1 - ruclips.net/video/Xw4Gok2i2pA/видео.html
    🔊 Cucumber BDD Framework Tutorial Part2 - ruclips.net/video/Ls9dCu7TTXU/видео.html
    *You can follow us on*
    LinkedIN : www.linkedin.com/in/bakkappa-n/
    LinkedIN Group : www.linkedin.com/groups/10393...
    Facebook : facebook.com/groups/24786...
    #testerstalk
    #selenium #automationtesting #testing #testautomation #qa #sdet #softwaretesting #bdd #automationframework #seleniumjava #seleniumcsharp #.net #testng #nunit #appium #cucumber #specflow #git #github #tutorial #beginner #seleniumautomationtesting #restapi #api #easyrepro #postman #apitesting #restapitesting
    #bakkappan

  • @SoumyaSenapati-h8v
    @SoumyaSenapati-h8v Месяц назад

    Hi Sir,
    After cloning the repo to local I'm getting error as : Severity Code Description Project File Line Suppression State
    Error (active) CS0103 The name 'ScreenshotImageFormat' does not exist in the current context SpecFlowBDDAutomationFramework C:\Users\Soberr\Desktop\FrameworkView\SpecFlowBDDAutomationFramework\Utility\ExtentReport.cs 47
    Can you please help me on that...

  • @akak4118
    @akak4118 Год назад

    Specflow+runner have they retired it. Will they retire the basic specflow as well?

  • @yashwantbeeram8543
    @yashwantbeeram8543 Год назад +1

    This is really awesome video, even fresher will understand very easily.Thank you so much. If we want to keep All logs with folder not updating existing folder then what we need to do sir?

    • @testerstalk
      @testerstalk  Год назад

      Thanks for watching, you need to create extent report name dynamically. For example you give current time & date

  • @lifecaptured2396
    @lifecaptured2396 Год назад +1

    Very Help full video .

    • @lifecaptured2396
      @lifecaptured2396 Год назад +1

      If possible, can you share the video about How to perform Cross Browser testing and parallel Testing on c#. Thanks

    • @testerstalk
      @testerstalk  Год назад +1

      Thanks for watching

    • @testerstalk
      @testerstalk  Год назад +1

      Keep visiting my channel!

  • @sujjiarunreddy5438
    @sujjiarunreddy5438 Год назад +1

    Thank you sir

    • @testerstalk
      @testerstalk  Год назад

      Thanks for watching! Please share these tutorials with your friends and colleagues 😊

  • @MrAditya30
    @MrAditya30 Год назад +1

    Sir, when are you going to add Tutorials-05?

    • @testerstalk
      @testerstalk  Год назад

      Thanks for watching this tutorial! Already specflow Selenium C# full course is available in RUclips - ruclips.net/video/7xPcalwU76c/видео.html

  • @shrikantgore9035
    @shrikantgore9035 Год назад

    How to take Full Page screenshot, can you please help.

  • @PablitoLazarus
    @PablitoLazarus Год назад +3

    screenshot.SaveAsFile(screenshotLocation); //maybe this is help to somebody instead of this: screenshot.SaveAsFile(screenshotLocation, ScreenshotImageFormat.Png);

    • @269sanket
      @269sanket Год назад

      Thanks!!

    • @dapomorenigbade9958
      @dapomorenigbade9958 11 месяцев назад

      Thanks for this, however, I keep getting nullexception when there is a failure, could you help on that?

  • @GodblessEnaigbe
    @GodblessEnaigbe Год назад

    Hi Bakkappa, please i need help. I created a simple test the test is behaving as expected but Stack Trace is throwing up BindingInvoker error and I am not sure were the problem is coming from Message: 
    String lengths are both 8. Strings differ at index 1.
    Expected: "Register"
    But was: "REGISTER"
    ------------^
    Stack Trace: 
    step1.ThenValidateTheHomePage() line 35
    BindingInvoker.InvokeBinding(IBinding binding, IContextManager contextManager, Object[] arguments, ITestTracer testTracer, TimeSpan& duration)
    TestExecutionEngine.ExecuteStepMatch(BindingMatch match, Object[] arguments, TimeSpan& duration)
    TestExecutionEngine.ExecuteStep(IContextManager contextManager, StepInstance stepInstance)
    TestExecutionEngine.OnAfterLastStep()
    TestRunner.CollectScenarioErrors()
    Feature1Feature.ScenarioCleanup()
    Feature1Feature.AccessHomePage() line 9
    Standard Output: 
    Given I open the browser
    -> done: step1.GivenIOpenTheBrowser() (2.5s)
    When I enter url
    -> done: step1.WhenIEnterUrl() (7.4s)
    Then validate the home page
    -> error: String lengths are both 8. Strings differ at index 1.
    Expected: "Register"
    But was: "REGISTER"
    ------------^
    My concern is the Stack Trace: please any idea?
    Feature: Feature1
    A short summary of the feature
    @tag1
    Scenario: Access home page
    Given I open the browser
    When I enter url
    Then validate the home page
    using NUnit.Framework;
    using OpenQA.Selenium;
    using OpenQA.Selenium.Chrome;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    namespace SpecFlowProject2.StepDefinitions
    {
    [Binding]
    public class step1
    {
    IWebDriver driver;
    [Given(@"I open the browser")]
    public void GivenIOpenTheBrowser()
    {
    driver = new ChromeDriver();
    driver.Manage().Window.Maximize();
    }
    [When(@"I enter url")]
    public void WhenIEnterUrl()
    {
    driver.Navigate().GoToUrl("example.com");
    }
    [Then(@"validate the home page")]
    public void ThenValidateTheHomePage()
    {
    string actual =driver.FindElement(By.XPath("(//a[normalize-space()='Register'])[1]")).Text;
    string expected = "Register";
    Assert.AreEqual(expected, actual);
    }
    }
    }