XPath would generally use more memory is an accurate statement (since most
engines need the creation of a tree structure first). But depending on the
load you want to generate and the size of the pages it may not be
significant.
>His concern comes from a scenario where there are say 10,000 hidden
You actually have such a page with 10,000 fields?
>I want to extract one of those fields say a random one when I use jMeter
A regex makes more sense in that case. My rule of thumb is if the regex
works use that, only if the expression gets too complicated (and the
corresponding XPath is a simple one) or there is something that cant be done
in regex (like the use of the various axes e.g. preceding-sibling) would I
use XPath.




On Mon, Mar 8, 2010 at 9:24 AM, Troy Bull <[email protected]> wrote:

> Greetings
>
> I prefer XPath but my boss thinks it uses more memory on the jmeter
> script driver machine.  Does anyone know for sure if this is the case.
>  To me it seems like it could use the same or less.
>
> His concern comes from a scenario where there are say 10,000 hidden
> fields or checkboxes (or whatever) on the screen (and no "don't use
> hidden fields" is not going to do me any good as an answer).  I want
> to extract one of those fields say a random one when I use jMeter
> debug sampler they are all listed there.
>
>
>
> Thanks
> Troy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to