sushant99
16 years agoOccasional Contributor
capturing array element values in a datasink
Hi there,
I want to capture the information comprised within two string arrays of a groovy assertion script to a DataSink report.
string array1 = ['Vehicle is of type Car', 'Vehicle is of type Scooter', 'Vehicle is of type Truck']
Column1 of the datasink report should have
Vehicle is of type Car
Vehicle is of type Scooter
Vehicle is of type Truck
string array2 = ['Vehicle is of type Cycle', 'Vehicle is of type Bike', 'Vehicle is of type Van']
Column2 of the datasink report should have
Vehicle is of type Cycle
Vehicle is of type Bike
Vehicle is of type Van
The datasink property does not seem to accept an array type. How can I get the above working.
Regards,
Sushant
I want to capture the information comprised within two string arrays of a groovy assertion script to a DataSink report.
string array1 = ['Vehicle is of type Car', 'Vehicle is of type Scooter', 'Vehicle is of type Truck']
Column1 of the datasink report should have
Vehicle is of type Car
Vehicle is of type Scooter
Vehicle is of type Truck
string array2 = ['Vehicle is of type Cycle', 'Vehicle is of type Bike', 'Vehicle is of type Van']
Column2 of the datasink report should have
Vehicle is of type Cycle
Vehicle is of type Bike
Vehicle is of type Van
The datasink property does not seem to accept an array type. How can I get the above working.
Regards,
Sushant