lrix
14 years agoOccasional Contributor
Data Driven loop - Boolean Data Type
Hi
I'm struggling to use a boolean data type when creating a data driven loop in the Keyword Tests.
1. Create keyword test
2. Select relevant rows to loop
3. Right Click and "Make Data Loop"
4. Create New Variable
5. Select "Table Variable" and click Next.
6. In update values, create 2 columns. (Column 1 to contain the value of an item in a combobox. Column 2 to contain a boolean to check the Enabled value of a field).
6. Table Generation -- here's where I get confused. If I have the Data Type column as "Use Value" and "Value or Settings" as False or True, then the subsequent test run for those items works fine. But I don't want all Falses or all Trues obviously, so in the next screen (the data table itself) I'll overwrite some of the values with True.
The tests will then fail along the lines of "Expecting "true"; actual true". Why is it now seeing my True as a string, and how do I make it see it as a boolean as it did do with the dafault value?
Many thanks.
I'm struggling to use a boolean data type when creating a data driven loop in the Keyword Tests.
1. Create keyword test
2. Select relevant rows to loop
3. Right Click and "Make Data Loop"
4. Create New Variable
5. Select "Table Variable" and click Next.
6. In update values, create 2 columns. (Column 1 to contain the value of an item in a combobox. Column 2 to contain a boolean to check the Enabled value of a field).
6. Table Generation -- here's where I get confused. If I have the Data Type column as "Use Value" and "Value or Settings" as False or True, then the subsequent test run for those items works fine. But I don't want all Falses or all Trues obviously, so in the next screen (the data table itself) I'll overwrite some of the values with True.
The tests will then fail along the lines of "Expecting "true"; actual true". Why is it now seeing my True as a string, and how do I make it see it as a boolean as it did do with the dafault value?
Many thanks.