- May 23, 2022
- admin
- 0
Restsharp Training
Basics of API testing
Develop API automation framework
Basic to advance concept of RestSharp
Integration of RestSharp with BDD SpecFlow
REST API Automation concepts
Requirements
- Basics of any programming language
- Basics of testing
- C# knowledge is add on
Description
RestSharp (Probably, the most popular REST API client library for .NET) is a powerful library to automate REST API using C#. This course is designed to cover basic to advance concepts of REST API automation. Even with basic knowledge of C#, you will be able to follow and implement. 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.
Course content
Introduction
- Introduction to REST API
- Basics of API testing
- Data Transfer Object
Design automation framework – getting started
- Create project
- Separate responsibilities – create custom libraries
- Utilize custom library
Handle POST request
- Create POST request
- Add test of POST request
Data driven testing
- Add models and csv file to handle data driven tests
- MSTest TestContext
- Data driven tests
Let’s do some refactoring
- Refactor custom library
- Update framework to utilize changes
- Handle HTTP code
- Handle big JSON payload
- Handle base url from tests
Handle PUT/DELETE requests
- Create PUT/DELETE requests
Reporting
- Create report utility
- Utilize report utility in tests
BDD: API Testing using BDD SpecFlow and RestSharp
- SpecFlow integration with RestSharp
RestSharp latest version 107: Major Upgrade
- Overview of latest changes
- Modify existing solution to work with RestSharp v107