Pororoca.Test
2.2.0
See the version list below for details.
dotnet add package Pororoca.Test --version 2.2.0
NuGet\Install-Package Pororoca.Test -Version 2.2.0
<PackageReference Include="Pororoca.Test" Version="2.2.0" />
paket add Pororoca.Test --version 2.2.0
#r "nuget: Pororoca.Test, 2.2.0"
// Install Pororoca.Test as a Cake Addin
#addin nuget:?package=Pororoca.Test&version=2.2.0
// Install Pororoca.Test as a Cake Tool
#tool nuget:?package=Pororoca.Test&version=2.2.0
Pororoca.Test
This is the official Pororoca package for running automated tests with Pororoca collections.
To use it, you will need a Pororoca collection file to include inside your test project. Any .NET test framework can be used: xUnit, MSTest, and others, even console applications.
A full tutorial is available on the documentation website.
Example of usage within a test
The code below shows how to use the Pororoca.Test
in a xUnit test. First, it loads a Pororoca collection from a file. Then, defines the environment that will be used.
using Xunit;
using System.Net;
using Pororoca.Test;
namespace Pororoca.Test.Tests;
public class MyPororocaTest
{
private readonly PororocaTest pororocaTest;
public MyPororocaTest()
{
string filePath = @"C:\Tests\MyCollection.pororoca_collection.json";
pororocaTest = PororocaTest.LoadCollectionFromFile(filePath)
.AndUseTheEnvironment("Local");
}
[Fact]
public async Task Should_get_JSON_successfully()
{
var res = await pororocaTest.SendRequestAsync("Get JSON");
Assert.NotNull(res);
Assert.Equal(HttpStatusCode.OK, res.StatusCode);
Assert.Equal("application/json; charset=utf-8", res.ContentType);
Assert.Contains("\"id\": 1", res.GetBodyAsText());
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.4.2 | 0 | 7/2/2024 |
3.4.1 | 92 | 6/12/2024 |
3.4.0 | 83 | 5/29/2024 |
3.3.0 | 88 | 4/29/2024 |
3.2.0 | 92 | 4/9/2024 |
3.1.1 | 97 | 3/13/2024 |
3.1.0 | 94 | 2/15/2024 |
3.0.1 | 140 | 1/10/2024 |
3.0.0 | 124 | 1/2/2024 |
2.5.0 | 151 | 11/14/2023 |
2.4.0 | 143 | 10/16/2023 |
2.3.0 | 104 | 9/25/2023 |
2.2.0 | 132 | 8/6/2023 |
2.1.0 | 140 | 4/24/2023 |
2.0.1 | 239 | 2/26/2023 |
2.0.0 | 265 | 12/21/2022 |
1.6.0 | 308 | 11/20/2022 |
1.5.0 | 392 | 9/21/2022 |
1.4.0 | 394 | 7/3/2022 |
1.3.0 | 408 | 5/15/2022 |
1.2.0 | 381 | 4/11/2022 |
1.1.1 | 406 | 3/21/2022 |
1.1.0 | 410 | 3/18/2022 |
0.1.1 | 381 | 3/15/2022 |
0.1.0 | 404 | 3/15/2022 |