[Webtest] Decrement in fieldIndex

Dierk Koenig webtest@lists.canoo.com
Fri, 14 Oct 2005 11:50:39 +0200


There are multiple ways of achieving this.

You can use xpath for such simple expressions
(See the xpath steps for details).

When things get more complicated, use ScriptStep or Groovy
(See the syntax ref for details).

cheers
Mittie

> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of Vikenty Menshutkin
> Sent: Freitag, 14. Oktober 2005 11:42
> To: WebTest Mailing List
> Subject: [Webtest] Decrement in fieldIndex
>
>
> Hi all,
>
> Can I use some simple math functions in (for example) fieldIndex?
>
> <repeat ...
> ...
> <setCheckbox
> 	name="selected"
> 	fieldIndex="#{checkBox-count}-1" <!-- NOT WORKING -->
> 	checked="false" />
> </repeat>
>
> Or this is impossible?
>
> --
> Vikenty Menshutkin
> OILspace, 26 Leninskaya sloboda, bld. 2, 2nd floor, 115280 Moscow, Russia
> P:+7 095 105 7245 F:+7 095 105 7246 E:VikentyMenshutkin@oilspace.com
> Building Successful Supply Chains - One Solution At A Time.
> www.oilspace.com
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest