Forum Discussion
aLostDawg
14 years agoOccasional Contributor
Since I've received no response to this I'll share the solution that I found for future users.
The solution is simple, but wasn't real easy to find. Like I suspected, the mapped object wasn't releasing the first set of values it was given in iteration 1 of the Data-Driven loop. Because of this it was selecting the wrong object in iteration 2, 3, and so on. I suspected that I needed to dump the objects attributes so that the object would get the current value of the variable and the new attributes based on the variablized attribute.
To do this in a KeywordTest you take and insert a Call Object Method line before the line that uses that object. Set the object in the Call to the object that is changing (based on the variable) and use the operation RefreshMappingInfo. This re-gathers the objects other attributes based on the mapped attributes.
I hope this helps someone else having this issue.
The solution is simple, but wasn't real easy to find. Like I suspected, the mapped object wasn't releasing the first set of values it was given in iteration 1 of the Data-Driven loop. Because of this it was selecting the wrong object in iteration 2, 3, and so on. I suspected that I needed to dump the objects attributes so that the object would get the current value of the variable and the new attributes based on the variablized attribute.
To do this in a KeywordTest you take and insert a Call Object Method line before the line that uses that object. Set the object in the Call to the object that is changing (based on the variable) and use the operation RefreshMappingInfo. This re-gathers the objects other attributes based on the mapped attributes.
I hope this helps someone else having this issue.