Red Gate forums :: View topic - Testing scripts with dynamic data
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

Testing scripts with dynamic data

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
Brian Donahue



Joined: 23 Aug 2004
Posts: 6649

PostPosted: Sat Apr 07, 2007 11:18 am    Post subject: Testing scripts with dynamic data Reply with quote

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! Smile
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