doublewood
14 years agoOccasional Contributor
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
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