Api Testing with RestSharp

6 Days




In this program, participants learn RestSharp and its use cases. Assuming little knowledge on participants-side, program starts with basics of Http and Api. It covers lot of ground for Nunit as well. RestSharp is a free and open source rest api client library for .net. With extensive configuration, auth support, serilaization, and first-class features, RestSharp allows to rapidly create and execute automated rest api testing when combined with Nunit, very capable unit testing library. Participants learn how to use RestSharp to deal with rest api requests and responses for various usecases including authentition. Program allows participants to use RestSharp with Nunit to test any rest api with data driven testing. Sometimes, BDD is preferred for Api Testing. Program includes important topics for BDD with Specflow and RestSharp. Program includes demos and hands-on.


Program is primarily for participants who must be software savvy testers and developers who aspire to use RestSharp and Nunit to efficiently conduct .net api testing.


Participant must be able to code in C# with .Net standard library.

  • Web and HTTP
  • Request, response, status
  • URL, path, parameters
  • methods, headers, body
  • JSON and XML
  • Third-party libraries for JSON and XML
  • Schema and Validation
  • Using Browser Dev Tools
  • Using UI Tools
    • VSCode extensions
    • SoapUI Free Version
    • Postman
  • Studying real web-sites
  • What is API?
  • Why API?
  • What is Testing?
  • Test automation
  • Challenges
  • Test types
  • Why Nunit?
  • Installation
  • Hello, Nunit!
  • Writing Tests
  • Running Tests
  • Running Tests in Console
  • Test Runners
  • Nunit test lifecycle
  • Describing Tests
  • Assertions
  • RegEx
  • Fluent assertions
  • Important attributes
  • Data-driven Testing
  • Using files in the test
  • Intro to extending Nunit
  • Types of API
  • What is Rest?
  • Rest Vs Api
  • Rest Vs Http
  • Rest Vs Soap
  • Benefits
  • Hateos
  • API Documentation
  • Open Api
  • Swagger
  • What is Api Testing?
  • HTTP Client Library
  • Setup
  • Hello, RestSharp!
  • Mocking Api
  • Setup
  • Base class
  • More about test structure
  • Parameterised Tests
  • Serialization
  • Object Mapping
  • Sync and Async
  • Using WireMock
  • Authentication
  • Run via command
  • Data-driven testing
  • Using Files
    • CSV, XML, JSON, Excel
  • ExtentReports Community
  • Authentication
  • Grouping Tests
  • Real-World Example
  • Simple introduction
    • Microservices
    • GraphQL
  • Assessment
  • Need for BDD
  • BDD as process
    • Discovery
    • Formulation
    • Automation
  • Discovery Workshop
    • 3 Perspectives
  • Arranging Step Definitions
  • Gherkin Best Practices
    • BRIEF
  • Specflow and RestSharp
  • Examples
  • Common Anti-patterns
  • When not to use BDD

Advanced BDD Process, TDD, Scrum, Load & Performance testing, Advanced Specflow
Anything not mentioned in Topics1

Software Requirements

Latest Visual Studio Community Edition

Internet Requirements

Good internet connection is required.

Hardware Requirements

Laptop capable to run MS Office

Classroom Requirements

Projector with HDMI, White Board, Markers with Eraser

Online Requirements

Appropriate meeting software e.g. Zoom, MS Teams
Please make sure that camera, speaker and mic are working


  1. If you have any query, please drop us a line.