Contributions
Re: I am using a CSV for a Data-Driven loop but it's not working with a numeric option list
Robert, Wrapping it in quotes was the first thing I tried and it didn't make any difference. I really like your second solution, but I must be doing something wrong because when I tried to implement it, I got the following error: Unable to evaluate the operation's "Item" parameter. Error: TypeError: KeywordTests.Checkin.Variables.POData is not a function This is how I set the step up:2.8KViews0likes2CommentsRe: I am using a CSV for a Data-Driven loop but it's not working with a numeric option list
Thanks for the info. After looking at your response again, I figured out that, rather than passing the value from the csv directly into the test, I needed to create a string variableand a corresponding function to convert the value from the csv into a string, populate the string variable and pass that value to the test.2.8KViews0likes1CommentRe: I am using a CSV for a Data-Driven loop but it's not working with a numeric option list
That's probably a good answer if I could figure out how to implement it. :) I am VERY new to this software (started using it last week)soI'm probably phrasing my question wrong. I'm using a Data-driven loop and have specifiedPOData.csv as my data source: This csv contains, among other things, the branch number I've set up the test step to populate the branch number from the csv: . What I can't figure out ishow to convertthe value from the csv to a string. Where would I do that?I willdig through the documentation some more and see ifI can find the 'relevant help topics' you mentioned. Regards, Judy2.8KViews0likes4CommentsI am using a CSV for a Data-Driven loop but it's not working with a numeric option list
I'm testing a web application and I've created a csv for my Data-Driven loop. It was working great until I tried to populate a numeric option list (a list of about 60 four digit branch numbers). Instead of using the value from the csv to set the option list text, it is attempting to set the option list index. As a result it throws an index out of bounds error. For example: if the branch number in the csv is 1500, rather than selecting 1500 from the option list values, it tries to set the index to 1500. This happens in both IE and Chrome. I haven't tested Firefox yet, but I suspect it will do the same thing. If I use a variable, parameter or a constant rather than using the csv, it selects the numeric value. It only fails when loading data from a csv. Any ideas how to get around this? Thanks, JudySolved2.9KViews0likes8Comments