This project has moved. For the latest updates, please go here.

Programatically stablish session using web requests

Sep 16, 2014 at 10:48 PM
HI all I have a website with a page ABC.aspx, the website requires Authentication via AAD by using OIDC/OWIN. if the user does not log in, then the user is not able to see ABC.ASPX.

Here is what I want to accomplish. I want to write a tests that issues a webrequest using a webClient to ABC.ASPX page with an existing session that was Programatically created with NO UI automation or user user interaction and all we had was the username/password.

The goal is for the test to see the response contents of ABC.ASPX, and for that it must issue the request with an existing session, can you guys tell how how can this be done?