TestPlan set
Document

set

by Group Public on Thursday July 10 2008 @ 14:35:37 (1/1 Points)

Language ↪Reference ✑ Reply ✓ Stick It ✗ Ditch It ⚐ Tag It

set assigns a value to an item.

Core Syntax

set %Item% Extended-RValue

Creates a new, or overwrites and existing, item references by %Item%. The common RValue's are explained below, but are fully documented in Extended RValue.

String Expansion Syntax

set %Item% Standard-RValue

Sets the content of the provided item reference to the Standard RValue expansion. If the item already exists it will be replaced, otherwise it will be created.

Refer reset to clear an item.

Vector Syntax

set %Name% withvector
  Value0
  ...
  ValueN
end

Creates a new vector collection with the provided initial values (without values an empty vector is created, though end is still required).

Refer to putin to add items to the vector.

Map Syntax

set %Name% with
  %Name1% Value1
  ...
  %NameN% ValueN
end

Creates a map with the given entries. Refer to with

Setting values

To set values in a map you can use the normal item syntax specifying a traversal. This will be automatically created when used as an LValue, and will cause an error for Standard-RValue if not existing.

set %Map:Entry% value
somefunc %Map:Entry%
© 2008-2010 edA-qa mort-ora-y
Using Persephone and TestPlan
Tag: