Red Gate forums :: View topic - Script Compilation Errors
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation

ANTS Load script tester forum

Script Compilation Errors

Search in ANTS Load script tester forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
tonymaynardsmith



Joined: 02 Dec 2006
Posts: 4

PostPosted: Sat Dec 02, 2006 5:27 pm    Post subject: Script Compilation Errors Reply with quote

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.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6581

PostPosted: Tue Dec 12, 2006 7:44 am    Post subject: Reply with quote

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"].
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6581

PostPosted: Sat Dec 30, 2006 10:04 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group