SpecFlow c#: API Testing using BDD SpecFlow and RestSharp

  Рет қаралды 19,378

Learn Test Automation

Learn Test Automation

Күн бұрын

API Testing using RestSharp, SpecFlow, C#
SpecFlow: Behavior Driven Development for .NET
SpecFlow bind automation to feature files
What is Behavior-driven development (BDD)?
.BDD is a software development process for teams to create simple scenarios on how an application should behave from the end user's perspective.
.The goal of implementing BDD testing is to improve collaboration between stakeholders, such as developers, testers, product managers, and business analysts.
.The BDD testing framework promises to address the need for automation using Cucumber, Specflow.
Installation and setup:
1. Install visual studio extension (not mandatory) but provides helpful features
To install extension for VS 2019
marketplace.vi...
SpecFlow Project:
We can use number of test execution framework
SpecFlow+ Runner
MSTest
NUnit
xUnit
RestSharp is a powerful library to automate REST API using C#. In this video I will explain about important part of RestSharp and how to automate your REST API tests. I have used NewtonSoft Json.NET to serialize and deserialize JSON.
Please download code from here
Latest version:
github.com/man...
Version 1.0:
drive.google.c...
RestSharp C# Tutorial
RestSharp
API testing
WebServices Tutorial
Rest APIs
API Automation using C# RestSharp
Tests d'API REST à l'aide de C # RestSharp et Json.NET
REST API-testen met behulp van C # RestSharp en Json.NET
REST API testování pomocí C # RestSharp a Json.NET
REST-API-Tests mit C # RestSharp und Json.NET
Teste da API REST usando C # RestSharp e Json.NET
اختبار REST API باستخدام C # RestSharp و Json.NET
C # RestSharp ve Json.NET kullanarak REST API testi
#specflow #restsharp #csharp

Пікірлер: 21
@cheequsharma7391
@cheequsharma7391 2 жыл бұрын
I used SpecFlow in 2018 last time and forgot, But catch back today after watch this video. Thanks a lot.
@LearnTestAutomation
@LearnTestAutomation 2 жыл бұрын
Glad to hear you found it useful 😊
@pdharmendra
@pdharmendra 2 жыл бұрын
Very Useful Manoj Sir...Thanks
@wordofgod4782
@wordofgod4782 4 жыл бұрын
Great Job
@jananijeeva9872
@jananijeeva9872 Жыл бұрын
You should have used the same projects throughout this series. Getting a little confused when I follow RestSharp: REST APIs Testing using C# - Complete course playlist :( The project that's available in GIT is different from what is shown in this video. As I am fairly new to all of these concepts, it's hectic to connect the concepts with files
@LearnTestAutomation
@LearnTestAutomation Жыл бұрын
Thank you for the feedback. I will try to update. Meanwhile will share here link of Github for your reference.
@sachinshinde5012
@sachinshinde5012 2 жыл бұрын
Thank you for the videos so far :-) Could you guide to write up test automation in AWS envmt? Connect the envt in AWS -ECS, DB, S3, API Gateways etc?
@LearnTestAutomation
@LearnTestAutomation 2 жыл бұрын
Thanks for the idea! Noted
@ВадикАладик-ч8р
@ВадикАладик-ч8р 4 жыл бұрын
Great video! Thank you. Can you please do on scenario context, feature context and context injection. Thank you sir
@LearnTestAutomation
@LearnTestAutomation 4 жыл бұрын
Noted, sure will try to cover very soon.
@ВадикАладик-ч8р
@ВадикАладик-ч8р 4 жыл бұрын
@@LearnTestAutomation Thank you!
@trishanvassan3745
@trishanvassan3745 2 жыл бұрын
Thanks for the Video - when trying to access and Run the GitHub Project there seems to be no solution I can find , is there a way I can find the .sln file or not ?
@LearnTestAutomation
@LearnTestAutomation 2 жыл бұрын
Working code can be downloaded from here github.com/manu1rock/RestSharpDemo
@wordofgod4782
@wordofgod4782 4 жыл бұрын
Very useful
@LearnTestAutomation
@LearnTestAutomation 4 жыл бұрын
Glad to hear that
@saraswathij672
@saraswathij672 4 жыл бұрын
Hi, I couldnot find specflow related files in you shared github. Can you please share those as well?
@LearnTestAutomation
@LearnTestAutomation 4 жыл бұрын
Hello, sure will update GitHub repo today and update you here.
@LearnTestAutomation
@LearnTestAutomation 4 жыл бұрын
@Saraswathi Have updated Github repo please check. Let me know if you have any questions.
@pavansureddy6556
@pavansureddy6556 2 жыл бұрын
Hello there do you provide support
@victor-uc7rq
@victor-uc7rq 3 жыл бұрын
Hi Sir, how to Save Bearer Token for future req use using RestSharp
@LearnTestAutomation
@LearnTestAutomation 3 жыл бұрын
Hello, you can write specific method to get bearer token and call from Setup method in test class. This token can be passed to subsequent requests. Will explain in a new video very soon.
RestSharp: How to assert HTTP status code?
6:29
Learn Test Automation
Рет қаралды 4,7 М.
Почему Катар богатый? #shorts
0:45
Послезавтра
Рет қаралды 2 МЛН
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН
Elegant Acceptance Testing in .NET with SpecFlow
18:36
Nick Chapsas
Рет қаралды 28 М.
Getting Started with SpecFlow
7:41
SpecFlow
Рет қаралды 35 М.
The Biggest React Framework You've Never Heard of
20:29
Theo - t3․gg
Рет қаралды 49 М.
Integrating SpecFlow with Azure DevOps
28:59
Edgewords
Рет қаралды 36 М.
C# | Rest API Testing: How to create an API Testing Framework
13:16
QA Underground
Рет қаралды 15 М.
Почему Катар богатый? #shorts
0:45
Послезавтра
Рет қаралды 2 МЛН