Script Compilation Errors

A tool for running ANTS Load projects interactively

Moderator: Brian Donahue

Script Compilation Errors

Postby tonymaynardsmith » Sat Dec 02, 2006 5:27 pm

I get a script compilation error talking about a Null reference when I include the lines:

logtofile(webclient.HttpRequest.Headers.ToString)
logtofile(webclient.HttpResponse.Headers.ToString)

Over to you.

Regards, Tony.
tonymaynardsmith
 
Posts: 4
Joined: Sat Dec 02, 2006 4:18 pm

Postby Brian Donahue » Tue Dec 12, 2006 7:44 am

Hi Tony,

I'll look into supporting this. The problem is that the HttpRequest and HttpResponse objects are 'fakes' in script tester. I don't think I supported the 'inherited' methods like ToString and Headers["something"].
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Postby Brian Donahue » Sat Dec 30, 2006 10:04 pm

This should be fixed now. Thanks for pointing it out.

The Headers object now acts like a WebHeaderCollection object, so you can get request headers by name from your ANTS Load script.

I've also added a few enhancements
  • Percentage complete
  • HTTP error report
  • UI things (window resizing, control updating)
  • Added Imports to the script so VB Constants such as vbCrLf work
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am


Return to ANTS Load script tester

Who is online

Users browsing this forum: No registered users and 0 guests