DOCS / CSHARPLOAD / BIEN DÉMARRER
Bien démarrer
CSharpLoad est un framework de tests de charge et de performance conçu en C# pour .NET 10.
Installation
dotnet add package CSharpLoad
dotnet add package CSharpLoad.HttpCréer un projet
dotnet new install CSharpLoad.Templates
dotnet new csharpload-http -n Checkout.Api.LoadTests --targetUrl https://api.example.test
cd Checkout.Api.LoadTests
dotnet runLe template HTTP inclut un HttpClient réutilisable, un scénario GET health, des rapports HTML et JSON, des seuils et des annotations GitHub Actions. Un contrôle réussi retourne 0 ; un échec de seuil ou une régression retourne 1.