How to read the CSV file in robot framework(ride)?

2,897 views
Skip to first unread message

Adnan Ghaffar

unread,
Feb 18, 2014, 6:08:13 AM2/18/14
to robotframe...@googlegroups.com
CSV file is attached here, i want to read all rows for data verification instead 1st row.
Tasks.csv

Tatu Aalto

unread,
Feb 20, 2014, 2:33:05 PM2/20/14
to adnan....@rolustech.com, robotframe...@googlegroups.com
Ugh

The question about csv files pops up, now and then in the user group
[1], [2]. Most common answer is that you need to code your own library.
The user guide is full of information, how to make your own library[3].
Because the request comes up now and then, perhaps some-one should make
a feature request and perhaps some-one will do it.

I have also done it (I am a tester and not a coder) and if my memory
servers correct I did get all the required functionality with 10 lines
of code. I did use the python standart csv library [3], but there are
plenty of other choises too. Happy coding.

-Tatu
[1]
https://groups.google.com/forum/#!searchin/robotframework-users/csv/robotframework-users/Vv0G9lUqZ4Q/AIZ7Ggfx9FsJ
[2]
https://groups.google.com/forum/#!searchin/robotframework-users/csv/robotframework-users/1yImXf48sLw/AeMCnffRvoUJ
[3]
http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html?r=2.8.4#creating-test-libraries
[4] http://docs.python.org/2/library/csv.html
On 18.2.2014 13:08, Adnan Ghaffar wrote:
> CSV file is attached here, i want to read all rows for data
> verification instead 1st row.
> --
> You received this message because you are subscribed to the Google
> Groups "robotframework-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to robotframework-u...@googlegroups.com.
> To post to this group, send email to
> robotframe...@googlegroups.com.
> Visit this group at http://groups.google.com/group/robotframework-users.
> For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages