bearaman
bearaman

Reputation: 1091

How to call an asp.net web application via command line?

We have an internal asp.net web application which users can configure and execute automated tests. I'd like to be able to launch tests with is application but from a remote command line console or other non browser way. The goal is to be able to launch tests without user interaction. Any ideas how to do this without a high impact on the existing solution? Thanks in advance, John

Upvotes: 0

Views: 924

Answers (1)

bearaman
bearaman

Reputation: 1091

The solution to my problem was Web API. I found a way to do exactly what I wanted by adding a few simple files to the asp.net application and then calling it using PowerShell's Invoke-RestMethod. Details of setting up the Web API: http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/using-web-api-with-aspnet-web-forms Details of using Invoke-RestMethod: http://csharpening.net/?p=1613 John

Upvotes: 1

Related Questions