Creating tests with multiple posts for an ASP.NET applicatio

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
mpilz
Posts: 6
Joined: Fri Sep 05, 2003 2:15 am

Creating tests with multiple posts for an ASP.NET applicatio

Post by mpilz »

Hello.

I operate a webserver which hosts an asp.net 2.0 application. Now I want to use HostMonitor to monitor the availability of the application. The application is accessed by a login form, which authenticates the user based on his username and password and which sets a cookie for following requests.

I created the first test, which does a postback to the loginform with the necessary credentials. This test works fine.
Now I want to do a following test that checks the contents of another page, which is only available to a logged in user.

The problem is, that I don't know how to create another test that uses the logged in usersession.

Is it possible to create a test with multipe posts or gets in a series, or to use a cookie from a preeceding test?

Thanks in advance!
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: Creating tests with multiple posts for an ASP.NET applic

Post by KS-Soft Europe »

mpilz wrote:Is it possible to create a test with multipe posts or gets in a series, or to use a cookie from a preeceding test?
Sorry, HostMonitor does not support chains of requests in one session. Probably, you may use "Active Script" test method to achieve your goals, but in such case you have to write VB or JS script to make it work.

Another solution is to ask appication's maintainer slightly modify login page to pass one additional parameter. For instance, now after successful login, login page redirects you to certain page. As you mentioned above - it works. It would be great to add additional parameter, that defines url to redirect after successful login. So, your URL to login page should be like the following: http://some_server.com/login_srv.aspx?username=aaa&password=bbb&redirect_url=some_URL_encoded_page_or_token
In this case, you can get contet of necessary page with only one http request, that could be performed by HostMonitor. What do you think?

Regards,
Max
Post Reply