| Author |
Message |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6369 Location: Red Gate Software
|
Posted: Sat Apr 07, 2007 11:18 am Post subject: Testing scripts with dynamic data |
|
|
Hi,
I noticed this with script tester -- if you parse any content from a webpage and use it in your test script, for instance if your web page returns something like a session ID in a hidden field and you want to post it back to the server, script tester will use stale data when you try to view the compiled script in IE.
For example, I test this forum using ANTS Load. PHPBB returns a session in a hidden field. I examine WebClient.HttpResponse.Content and pull the session ID from the GET request, so it can be posted to the server.
When the script 'compiles', the session ID is valid. But when you then step through the script in IE, PHPBB creates a new session ID, but the script tester is using the original one.
The result, in my case, is that my test script doesn't post new topics, for example, because the session ID is invalid, and PHPBB continually redirects me to the login page.
In ANTS Load, however, the script runs great and posts new topics.
Maybe I can find a workaround for this in the future!  _________________ 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