Hard Boiled Testing
QA and Peace of Mind
I would like to write a script that confirms that the correct page has been returned (by evaluating the header tag) and confirms that the expected values appear in the drop down list. If it was native HTML I would use Webload or OpenSTA, but I am not sure that either of these can do this.
[This message has been edited by tjinkerson (edited 04-11-2002).]
All opinions expressed in these postings are my own, and not necessarily those of my wife.
If you don't care about scalability greatly for testing JS links in a load tool, you can use your test tool to instantiate an instance of IE using ActiveX (both webload and Empirix are be able to do this; others might too).
You then use the browser to load the page under test by invoking the relevant ActiveX methods, and then navigate the DOM the browser creates (after it has helpfully executed all that client side script for you), again using ActiveX.
It's a pain to write the code and you will need to be familiar with both the DOM and IE's object model, and the sometimes counter-intuitive relationship betwen the two. If you are successful, it would be worth posting the code back to the forums to share with others.
The reason why it's poor scalability for load tools is that you'll have to create a new instance of the activeX component for each virtual user, and IE consumes much by way of CPU, memory etc. It'll also share things like cache data across instances of itself (in this case across virtual users), which you may or may not care about.
Functional tools, such as WinRunner, Silk and eTester may do a better job natively (since they drive the actual browser itself), but for load you don't (currently) have a choice.
[This message has been edited by Phil Hollows (edited 04-12-2002).]