On Tue, 01 Mar 2005 12:12:33 -0600, Danny R. Faught
<[EMAIL PROTECTED]> wrote:
> sebb wrote:
> > That's just given me an idea though - rather than try to maintain a
> > cache, a cruder approach might be to provide a "Retrieve all embedded
> > resources - first time only" option.
> >
> > This should be simple to implement - and should provide most of what is 
> > needed?
> 
> When would you reset the idea of "first time"?  I would want each thread
> to track this separately.  Then I'd need to plan when it resets, so that
> a virtual user represents a brand new user to the site.  Not sure what
> to recommend on that yet - probably on each iteration of the thread
> group.  Or maybe add a control to explicitly say when to dump the cache.

Each Sampler in each thread is a separate instance (of the Java
object), so I was just going to check if the sampler instance had been
run before or not.

Normally a single thread represents a single user, so this would mean
first time for each thread (user) in a Thread Group within a test run.
This fits in with the way the Cookie Manager works.

It might be a lot harder to implement a reset control, and I'm not
sure what it would correspond to in terms of a test.

> The only thing I can think of that this wouldn't cover would be the
> sampled html pages themselves, so it would be a big help.

OK.

> Mostly, the tool just needs to track which items have been downloaded
> already - it doesn't need to cache the contents, except that some
> listeners need to show them.  I guess they're already caching things but
> not reusing them.

Not sure I understand the last sentence - who is they?

Contents would usally be needed for Assertions too.

A proper cache ought to take note of the relevant Header lines and
expiry dates etc.
> --
> Danny R. Faught
> Tejas Software Consulting
> http://tejasconsulting.com/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to