How to use Restsharp in test automation asp.net core

83 views
Skip to first unread message

Thirunarayanan Sowrirajan

unread,
Dec 19, 2019, 9:54:31 AM12/19/19
to RestSharp
Folks,

I have several questions while trying to understand how can i write integration tests using Restsharp and have the tests run as part of pipeline automation? one of the challenges that is apparent is the tests should be run on a live instance of the api right? how do i make the integration tests run automatically after the api is deployed to staging environment?

Alexey Zimarev

unread,
Jan 6, 2020, 9:55:58 AM1/6/20
to RestSharp
Currently, we use the WebRequest and only in .NET Core 3 it was moved to use HttpClient under the hood.

We plan to implement HttpClient instead of WebRequest. Then, we probably could support the test server too.

It is quite easy, though, to test APIs from the outside using Docker and/or Docker Compose.
Reply all
Reply to author
Forward
0 new messages