How to get the messages after save

Forum for users of ANTS web server load testing tool

How to get the messages after save

Postby psabbani » Sat Apr 29, 2006 1:45 pm

Can someone tell me the syntax to get the message posted by page after clicking on save.
I would like to read/get the message displayed after clicking on Save is performed.
I would like to put that statement into log file.
Messages i mean here are like "Save successfull" generally that is the message disaplyed after save in our applciation or some error messages/warnings after save.
Thanks in advance.
Posts: 3
Joined: Tue Apr 25, 2006 5:09 pm

Postby Brian Donahue » Mon May 08, 2006 5:58 pm


I think you want to log the server response. There are a variety of things that you can include in the script to do this:

Me.LogToFile <-- places the data in c:\\program files\\ants load\\antstracelog.txt
Me.ReportWarning <-- puts data in the report as a warning

To log the server responses, you can use the HttpResponse object. For instance, to log the content of a page sent as the result of a GET or POST request, you could script:

Brian Donahue
Posts: 6590
Joined: Mon Aug 23, 2004 9:48 am

Return to ANTS Load

Who is online

Users browsing this forum: No registered users and 0 guests