jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: getNode without the name
Date Fri, 29 Jun 2007 11:01:18 GMT

On 6/27/07, Frédéric Esnault <fesn@legisway.com> wrote:
> The thing is I'm writing JMeter tests and for a "Get Node Test Plan", I'm generating
> random position, and I want to get the contract (or whatever) node at the position
> defined by this random number.
> Something like : /lgw:root/lgw:contracts/child::*[__Random(1, max_contracts, position)]

Note that querying for a node is considerably more expensive than
accessing the node directly by path or by UUID.

> Your idea was good, anyway ;) And to be honest with you, I decided (to test the
> getNodeByUUID() method), to make an xml export of my nodes' uuids, ordered
> by node type. Like this I can pick some uuids in the export and pass them to
> JMeter. But I'd like to be able to test also the getNode "by path" method extensively.

Could you do a similar thing for node paths? List all the paths in
your repository and pass that list to JMeter.


Jukka Zitting
View raw message