This is a typical use case for <repeat> combined with <previousResponse>
<storeXPath xpath="count(//your/xpath/identifying/the/links)"
name="nbLinks"/>
<repeat count="#{nbLinks}" startCount="1">
<clickLink xpath="(//your/xpath/identifying/the/links)[#{count}]"/>
<previousResponse/>
</repeat>
(typed directly in email without to check the syntax)
Marc.
Shawn Bradley wrote:
Hello,
I have a page that lists all users in my application. I want to click
each link to pull up the page for each user so I can verify the settings
for each user. Any suggestions on how to (1) determine how many links
are on the page – each link has the same format <a
href=”edituser.php?id=x”>User Name</a> where x is the database ID for
the user, and (2) click each link individually, perhaps using a <repeat>
or some other construct.
Any suggestions would be greatly appreciated.
Shawn Bradley
President, Sunergeo Systems, Inc.
www.sunergeosystems.com
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest