Skip to content

This is API Testing Framework Demo Using RestSharp and Entity Framework

Notifications You must be signed in to change notification settings

WizardOfQA/API_Testing_Using_RestSharp

Repository files navigation

API Testing with RestSharp + Entity Framework

Description:

RestSharp is very powerful but very easy to use open source HTTP client library. With RestSharp, QA team can save a lot of time to create Restful API Test Automation In this demo, I will use RestSharp to consume Students Web API" demo. For the database access, I used Entity Framework Database First approach.

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 API_Testing_Using_RestSharp.
  4. Change Connction Strings in App.config files.
  5. Run the tests in API_Testing_Using_RestSharp.

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 RestSharp and Entity Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages