david_quick
12 years agoOccasional Contributor
Data Driven Loop requires additional duplicate record to work
The website under test contains a pop-up form that has seven checkboxes.
Rather than map each checkbox I have:
My issue is the last record in the 'check box' data file is not read, so the last checkbox is not checked/unchecked. A work around is to add a duplicate record of the last record, not ideal.
I've attached a screenshot showing the keyword test, namemapping and project variables. I cannot attach the csv file???
Rather than map each checkbox I have:
Created a project variable 'idstr' - type 'string'
Created a project variable 'checkbox' - type 'db table' with the attached csv file
In NameMapping: Mapped one of the check boxes with a property 'idstr' and value using the project variable 'idstr'
Created a keyword test which:
a. uses a data driven loop and the project variable 'check box' to set the project variable 'idstr' using the 'idstr' column in the data file
b. sets the checkbox using the operation ClickChecked and value from the 'CheckedStatus' column in the data file
c. calls the RefreshMappingInfo operation to re-set the checkbox namemapping object
My issue is the last record in the 'check box' data file is not read, so the last checkbox is not checked/unchecked. A work around is to add a duplicate record of the last record, not ideal.
I've attached a screenshot showing the keyword test, namemapping and project variables. I cannot attach the csv file???