Forum Discussion

doublewood's avatar
doublewood
Occasional Contributor
14 years ago

Data driven Keyword test change IP into a float

I am using a simple CSV file with only 1 row and 5 column this is what it look like


IP,BSUserial,subnet,WRU,filename

10.2.0.99,200000099,2,2,99_2_2_wru.txt,


When I extract the first column to enter into a textbox the IP address was strip of its period and becomes 10.2099. If 10.2.0.99 is setup as constant string "10.2.0.99" than every thing works fine. Look like the routine extracting the CSV value is removing the period from the string. The attached image keywordtest.png shows the keyword test variable while result.png show the log from the test.





Mark




2 Replies


  • Hi Mark,





    This behavior is the specificity of the CSV driver used to work with CSV files. To retrieve the value correctly, try enclosing it in double quotes in the CSV file: "10.2.0.99"





    Does this help?