This is a RESTful API testing Framework using C#, .NET Core, Xunit Gherkin Quick BDD test framework, RestSharp client library and Fluent Assertions to test JSONPlaceholder REST API.
Xunit.Gherkin.Quick is a lightweight, cross platform BDD test framework (targets .NET Standard, can be used from both .NET and .NET Core test projects). It parses Gherkin language and executes Xunit tests corresponding to scenarios. https://github.com/ttutisani/Xunit.Gherkin.Quick
.NET Core 2.1
JSONPlaceholder is a free online REST API that you can use whenever you need some fake data. It's great for tutorials, testing new libraries, sharing code examples. https://jsonplaceholder.typicode.com/
The following HTTP methods are tested:
- GET
- POST
- PUT
- PATCH
- DELETE
Simple REST and HTTP API Client for .NET http://restsharp.org/
Fluent Assertions is used for validation. https://fluentassertions.com/
Microsoft Visual Studio IDE is used to develop this Framework.
- Build => Build Solution
- Test => Windows => Test Explorer => Run All
- Open Folder in File Explorer: ..\RestApiTesting.Framework.Lynx\bin\Debug\netcoreapp2.1
- Open Command Prompt/Windows PowerShell
- Run "dotnet vstest RestApiTesting.Framework.Lynx.dll"