This is a proof of concept for taking API calls using the Postman collections to quickly perform load testing on software environments.
- Download .Net and installation docs.
- macOS note: use installer
- Create folder "TaskSample" and inside, solution file
dotnet new sln
. - Create class library
dotnet new classlib -n TaskSample.Tasks
. - Add library to the solution
dotnet sln add TaskSample.Tasks/TaskSample.Tasks.csproj
- Build the solution
dotnet build TaskSample.sln
- Run unit tests
dotnet test
- Add library to expose as an api
dotnet new webapi -minimal -o TaskApi
- Add reference to Task project
dotnet add reference ../Task/Task.csproj
dotnet dev-certs https --trust
dotnet run --project TaskApi/TaskApi.csproj
https://localhost:7053/swagger/index.html
(test weather)- remove weather and add method for Task API
- update
.gitignore
file withdotnet new gitignore --force
- Postman - an API platform for building and using APIs.
- Newman - a command-line collection runner for Postman.
- Comparing Postman CLI and Newman
- Grafana k6 - an open-source load testing tool that makes performance testing easy and productive for engineering teams. k6 is free, developer-centric, and extensible.
- postman-to-k6 - utilizes Postman collections and converts Postman requests, including tests, variables, ... to K6 scripts that can be executed by K6 to run performance tests.
- Tutorial: Create a minimal web API with ASP.NET Core
Recommended extensions have been moved to the .vscode/extensions.json
file.