Red Gate forums :: View topic - Other result HttpResponse.Content
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

Other result HttpResponse.Content

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
thieu



Joined: 12 Jun 2006
Posts: 6

PostPosted: Mon Oct 23, 2006 3:43 pm    Post subject: Other result HttpResponse.Content Reply with quote

Hello,

I tested my script several times with the ANTS Load script tester and saved the HttpResponse.Content to the logfile by using LogToFile(WebClient.HttpResponse.Content).
In the directory where the ANTS Load script tester is installed, there was correctly one file added named AntsTraceLog.txt with the Html that the page was already redirected (and I'm sure I logged only once).

But if I run exactly the same project with the ANTS Load tool, I received the Html what I expected and not the Html that the page was already redirected.

So there seems to be a difference between both tools?
I like the script tester, but if I get other results...
Does someone have a sollution for this?

Kind regards,
Peter Theuwis
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6644

PostPosted: Sat Oct 28, 2006 10:23 pm    Post subject: Reply with quote

Thanks Peter!

There is a difference that would cause this. The script tester automatically follows redirections, whereas ANTS Load does not. The reason for this is that the Internet Explorer web browser component (shDocVw.dll) always follows redirects, and there is no way to disable the behavior.

When IE7 comes out, it will have an option to disable automatic redirection, so I'll definitely look at the issue again once IE7 is widely installed.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6644

PostPosted: Fri Nov 17, 2006 7:34 pm    Post subject: Reply with quote

Okay, Microsoft seemed to make an empty promise regarding IE7. So instead, I've done a workaround by trapping the web browser's onNavigateComplete2 event. If this fires and the URL is different than the one originally requested, the navigation is cancelled and the script tester moves forward to the next request. This should hopefully simulate ANTS Load a bit more closely.
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