Forum Discussion

pchandraprakash's avatar
pchandraprakash
New Contributor
6 years ago
Solved

Access Aliases/NameSpace data through CSV file.

I'm storing the aliases in a CSV file and then I want to call the same through CSV Data Driver to perform data driven testing.   Contents of my CSV file:   "LabelObject","LabelName" Aliases....
  • tristaanogre's avatar
    6 years ago

    The Alias is stored in your CSV file as a string.  So, you can't just use it as an object without evaluating the string into an object.

     

    So... change your declaration of s1 to

     

    var s1 = eval(driver.Value("LabelObject"));