| Author |
Message |
thieu
Joined: 12 Jun 2006 Posts: 6
|
Posted: Mon Oct 23, 2006 3:43 pm Post subject: Other result HttpResponse.Content |
|
|
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 |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6341 Location: Red Gate Software
|
Posted: Sat Oct 28, 2006 10:23 pm Post subject: |
|
|
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. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6341 Location: Red Gate Software
|
Posted: Fri Nov 17, 2006 7:34 pm Post subject: |
|
|
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. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
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