That's a great tip Alex, and yeah that will work for really simple stuff that doesn't have any kind of session or user id.. However, once you login a user and start playing with session id's, or any ASP.NET stuff designed to prevent plaback spoofing (like viewstate) you get hosed unless the thing you are using allows you to capture stuff from responses, and insert it into specific places in the requests. You'll also need the ability to read from datafiles to substitute things like userid and login, at the HTTP level. Otherwise you're going to have to use multiple threads and multiple browser instances and run the stuff in watir directly where the browser takes care of the ASP, cookies, and other session stuff, and watir can deal with parameters for things like userid's and passwords.
The thing is, anything not dealing with sessions and transactions (e.g. hitting db and/or middle tier) really doesn't tend to be that 'interesting' in terms of loadtests (since most of the data is static and cached) So in general (presuming you don't have issues with something like oh your homepage when a new user hits it) most of the things you could do via simple http capture and playback are not normally the things that cause load issues.. so it's good for really basic tests, but again not terribly useful for most serious loadtests. On Jan 4, 3:35 am, Alex Collins <[email protected]> wrote: > On 4 Jan 2009, at 07:13, Chuck vdL wrote: > > > > >>> 5.Can be used for Load Testing? > > Following from Chuck's points which are all valid, I have had success > in using WATIR to write the script for a load test. > > Having written the script doing what you would like, play this into > jmeter using the proxy server and use jmeter to perform the load > generation. This captures the HTTP traffic for later playback. > > You normally still have to do some additional work in adapting the > jmeter script depending upon technologies in use and what you wish to > achieve. > > You will not get the same analysis tools as you might with the > commercial products, but the tools are free. > > Alex --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
