Printer FriendlyEmail Article Link

iTest: How to make double substitution for variable values?

Environment/Versions

iTest

Answer

The double substitution is for substituting 2 variables at a time. It can be done by giving the following syntax:

Syntax: puts [subst \$device[subst $i]]

Here, device1 and device2 are the names given for 2 variables

Attachments
Attachment
Attachment Description
Attached is the sample test case. Please refer to this.

Product : Velocity Portfolio,Velocity iTest