12 years ago
How to reference property value 2 or 3
I have a test case property setup with one name that has multiple values. For example name: Type with Value: typeA|typeB|typeC where | is the delimiter. In the test step I have a soap request that uses the property name value pair. Like:
<typ:StatusRequest>
<typ:Type>${Properties: Type Address#Type}</typ:Type>
<typ:Address>${Properties: Type Address#Address}</typ:Address>
</typ:StatusRequest>
The request works but it only uses the 1st value in the property (I always get typeA). How do I reference the other values for that property (like typeB or typeC)?
I tried:
typ:Type>${Properties: Type Address#Type[2]}</typ:Type>
or
typ:Type>${Properties: Type Address#Type2}</typ:Type>
But these did not work.
<typ:StatusRequest>
<typ:Type>${Properties: Type Address#Type}</typ:Type>
<typ:Address>${Properties: Type Address#Address}</typ:Address>
</typ:StatusRequest>
The request works but it only uses the 1st value in the property (I always get typeA). How do I reference the other values for that property (like typeB or typeC)?
I tried:
typ:Type>${Properties: Type Address#Type[2]}</typ:Type>
or
typ:Type>${Properties: Type Address#Type2}</typ:Type>
But these did not work.