Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to give arguments for Read Csv As Dictionary in robot framework #65

Open
jayajothig opened this issue Dec 3, 2019 · 0 comments
Open

Comments

@jayajothig
Copy link

Hi ,
I am using RIDE 1.7.3.1 running on Python 3.7.5. Iam doing migration process frpm python 27 to python 37 . in python 27 i have used the key word read csv file to associative to Read the csv file as a dictinary. For example if my csv file is

id,name,age,height,weight
1,Alice,20,62,120.6
2,Freddie,21,74,190.6
3,Bob,17,68,120.0

i want an output like the following

{'age': '20', 'height': '62', 'id': '1', 'weight': '120.6', 'name': 'Alice'}
{'age': '21', 'height': '74', 'id': '2', 'weight': '190.6', 'name': 'Freddie'}
{'age': '17', 'height': '68', 'id': '3', 'weight': '120.0', 'name': 'Bob'}

In python 37 csvlib 1.0.0 is only supported.
it contains the following keywords

Read CSV As Single List
Read CSV As List
Read CSV As Dictionary

I am using the following libraries.

pip freeze

Appium-Python-Client==0.48
bcrypt==3.1.7
beautifulsoup4==4.8.1
certifi==2019.9.11
cffi==1.13.2
chardet==3.0.4
coverage==4.5.4
cryptography==2.8
decorator==4.4.1
docutils==0.15.2
idna==2.8
importlib-metadata==0.23
jsonpatch==1.24
jsonpath-rw==1.4.0
jsonpath-rw-ext==1.2.2
jsonpointer==2.0
kitchen==1.2.6
more-itertools==7.2.0
numpy==1.17.4
oauthlib==3.1.0
paramiko==2.6.0
pbr==5.4.3
Pillow==6.2.1
pluggy==0.13.0
ply==3.11
py==1.8.0
pycparser==2.19
Pygments==2.4.2
PyNaCl==1.3.0
PyPubSub==3.3.0
pywin32==227
requests==2.22.0
requests-oauthlib==1.3.0
robotframework==3.1.2
robotframework-appiumlibrary==1.5.0.4
robotframework-csvlib==1.0.0
robotframework-extendedrequestslibrary==0.5.5
robotframework-ftplibrary==1.6
robotframework-httplibrary==0.4.2
robotframework-jsonlibrary==0.3.1
robotframework-requests==0.6.2
robotframework-ride==1.7.3.1
robotframework-selenium2library==3.0.0
robotframework-seleniumlibrary==4.1.0
robotframework-sshlibrary==3.4.0
robotframeworklexer==1.1
scp==0.13.2
selenium==3.141.0
six==1.13.0
soupsieve==1.9.5
tox==3.0.0
urllib3==1.25.7
virtualenv==16.7.7
waitress==1.3.1
WebOb==1.8.5
WebTest==2.0.33
wxPython==4.0.7.post2
zipp==0.6.0

Could you give the solution to get the output like above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant