RestAssured.Net
Installation
To log RestAssured.Net tests to Orangebeard, you can use the VSTest logger.
Install the latest version in your test solution using nuGet, or run: dotnet add package Orangebeard.VSTest.testlogger
Configure the logger by placing orangebeard.json
in your project folder (or above):
{
"endpoint": "https://app.orangebeard.io/{ORGANIZATION}",
"accessToken": "{LISTENER_TOKEN}",
"project": "{PROJECT}",
"testset": "{TESTSET}",
"description": "A description",
"attributes": [
{
"key": "Tool",
"value": "RestAssured.Net"
}
],
"ref.url": "https://docs.orangebeard.io/"
}
Note that these fields can also be (partially) set using environment variables. The automatic client configuration will first try to get the json values and append/overwrite the configuration if environment variables are present.
ORANGEBEARD_ENDPOINT
ORANGEBEARD_PROJECT
ORANGEBEARD_TESTSET
ORANGEBEARD_DESCRIPTION
ORANGEBEARD_ATTRIBUTES
ORANGEBEARD_REF_URL
ORANGEBEARD_ACCESS_TOKEN
Usage
- From the command line: Run your RestAssured.Net tests using:
dotnet test --logger Orangebeard
- In your IDE:
- Configure a .runsettings file, or
- add
--logger Orangebeard
to your unit test command run config
.runsettings example
<RunSettings>
<LoggerRunSettings>
<Loggers>
<Logger friendlyName="Orangebeard" enabled="true" />
</Loggers>
</LoggerRunSettings>
</RunSettings>
Log verbosity
The VSTest logger will output all console logs produced by the tests to Orangebeard. To get Request and Response information by default, or in case of failures, ensure that your logging configuration in RestAssured.Net is set to output the desired information. For more info, See RestAssured.Net's usage guide.