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...
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?
screenshot.SaveAsFile(screenshotLocation); //maybe this is help to somebody instead of this: screenshot.SaveAsFile(screenshotLocation, ScreenshotImageFormat.Png);
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); } } }
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
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...
Specflow+runner have they retired it. Will they retire the basic specflow as well?
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?
Thanks for watching, you need to create extent report name dynamically. For example you give current time & date
Very Help full video .
If possible, can you share the video about How to perform Cross Browser testing and parallel Testing on c#. Thanks
Thanks for watching
Keep visiting my channel!
Thank you sir
Thanks for watching! Please share these tutorials with your friends and colleagues 😊
Sir, when are you going to add Tutorials-05?
Thanks for watching this tutorial! Already specflow Selenium C# full course is available in RUclips - ruclips.net/video/7xPcalwU76c/видео.html
How to take Full Page screenshot, can you please help.
screenshot.SaveAsFile(screenshotLocation); //maybe this is help to somebody instead of this: screenshot.SaveAsFile(screenshotLocation, ScreenshotImageFormat.Png);
Thanks!!
Thanks for this, however, I keep getting nullexception when there is a failure, could you help on that?
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);
}
}
}