API testing with RestSharp and Specflow in C#
4.4 (134 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
1,801 students enrolled

API testing with RestSharp and Specflow in C#

Learn API testing for .NET world with powerful open-source library
4.4 (134 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
1,800 students enrolled
Created by Karthik KK
Last updated 5/2020
English
English [Auto]
Price: $49.99
30-Day Money-Back Guarantee
This course includes
  • 7 hours on-demand video
  • 8 articles
  • 9 downloadable resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Understanding complete basics of API Testing
  • Understand RestSharp from ground up
  • Understand basic to advanced libraries of RestSharp
  • Integrating RestSharp with Specflow for BDD
  • Parallel Test executing with Specflow
Requirements
  • Basics of Specflow
  • Basics of C# knowledge is plus
  • Basic knowledge in understanding of API
Description

This course API testing with RestSharp and Specflow in C# is designed in such a way that anyone who has basic knowledge in C# will perform complete API testing along with Business logic without any difficulty.


***** UPDATED ON APRIL 2020 WITH .NET CORE 3.1 SUPPORT *****

****** Microservice testing with Service Virtualization using Mountebank Support ******


This course is the only course on the internet which covers so many different real-world scenarios which are not covered elsewhere. With that said, here is the high-level overview of the course topics

  • Complete basics of API testing with RestSharp

  • Full understanding of different libraries in RestSharp

  • Execute with Async and Non-Async methods

  • Custom library designs

  • Specflow integration for BDD support

  • Parallel execution support (to speed test execution)

  • JWT Bearer authentication

  • Contract API testing

  • Upgrading code to .NET core 3.1

  • Working with Complex JSON response

  • Working with JSON Array response

  • Service virtualization testing with Mountebank

With all the above, you will also learn the complete best coding practice done in the industry for performing API testing in .NET and you can right away take the code and implement the same at your work .


Who this course is for:
  • QA
  • DevOps
  • Business Analyst
Course content
Expand all 57 lectures 07:05:19
+ Introduction and Getting started
7 lectures 54:07
Installing Fake JSON server for API testing
06:26
Performing Simple GET operation with RestSharp
10:08
DB.json file
00:03
Understanding DeSerialization of Response object with RestSharp
11:48
Performing POST with body parameter and with strongly typed class
14:59
+ Understanding different libraries of RestSharp
4 lectures 35:31
Working with Generic and Asynchronous Execute method of RestSharp
12:44
Working with Generic and Asynchronous Execute method of RestSharp (Contd)
08:06
Writing Custom libraries for RestSharp with extension methods
11:14
Using Inbuilt Async Task Async Library
03:27
+ Specflow integration with RestSharp
5 lectures 41:06
Specflow integration with RestSharp
14:14
Specflow context injection to work with RestSharp instance sharing
09:23
Specflow hooks for code maintainability
07:14
More specflow scenarios with RestSharp POST operation
04:53
Parallel Execution support with Specflow
05:22
+ JWT authentication with RestSharp
5 lectures 27:00
JWT authentication with RestSharp using Anonymous class body
06:36
JWT authentication with RestSharp using Anonymous type class
06:21
JWT body from JSON file with RestSharp
07:58
JWT authentication in Specflow Background scenario
06:04
Complete source Code
00:01
+ Extent reporting integration with Specflow + RestSharp
7 lectures 01:07:45
Introduction
02:53
Extent reporting setup and getting started
19:55
Extent reporting generate report dynamically
09:42
Extent reporting with Specflow steps
13:17
Historical report with Klov reporting
14:20
Extent report 4 support
07:36
Complete source Code
00:02
+ Contract Testing
5 lectures 53:30
Introduction to Contract Testing (Video from EA Weekly)
27:13
Creating contract testing - Writing Pact class
07:55
Contract Testing - Writing consumer contract test
09:49
Contract Testing - Writing provider contract test
08:33
Complete Source code
00:00
+ Upgrading RestSharp to .NET Core 3.1 (2020 updates)
4 lectures 21:33
Introduction to upgrade
04:05
Upgrading JSON Server with latest changes
03:58
Updating code to .NET Core 3.1 framework
06:26
Updating code to .NET Core 3.1 framework (Contd)
07:04
+ Real-time scenarios for API Testing with RestSharp (Advanced)
10 lectures 01:01:44
Working with Complex JSON Structure
05:31
Working with Query Parameter using AddOrUpdateParameter
07:26
Working with JArray and JObject to handle array of response
09:39
Handle Response Array without JArray
04:26
File Uploading via API in RestSharp
09:14
Complete Source code
00:01
PATCH/PUT operation for complex JSON response array object
08:54
PATCH/PUT operation for complex JSON response array object (contd)
11:23
DELETE operation with RestSharp
05:08
Complete Source code
00:01
+ Microservice testing using Service Virtualization using MounteBank
10 lectures 01:03:01
Disclaimers
01:43
Introduction to Microservices testing
19:56
Scenario to automate in Microservice
04:27
Setup Local JSON server and Docker JSON server
07:35
Dockerized JSON Server code
00:06
MounteBank setup in Visual studio and local machine and access imposters
09:44
Understanding Simple and Complex predicate and ResponseJSON in MounteBank
04:38
Working with Simple Predicates by Virtualizing Profile service with MounteBank
11:48
Delete Imposters after every scenario executed in Specflow
03:02
Complete Source code
00:01