Skip to content

This is API Testing Framework Demo Using HttpClient and Dapper in C#

Notifications You must be signed in to change notification settings

WizardOfQA/API_Testing_Using_HttpClient

Repository files navigation

API Testing with HttpClient + Dapper

Description:

HttpClient in C# built-in. It is another great way for API Testing. It is fater than ResteSharp, but has little bit higher learning curve.

How to run it

  1. Download Students api, update your server name in StartUp.cs file.
  2. Run the application. (This will create Students db)
  3. Download PI_Testing_Using_HttpClient.
  4. Change Connction String in App.config file.
  5. Run the tests in API_Testing_Using_HttpClient.

Test Cases Covered:

GET

  • Can_Retrieve_All_Students
  • Can_Retrieve_Specific_Student

PUT

  • Can_Update_Existing_Student_Info

POST

  • Can_Create_A_New_Student

DELETE

  • Can_Delete_A_Student

About

This is API Testing Framework Demo Using HttpClient and Dapper in C#

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages