Snooz82 / robotframework-datadriver

Library to provide Data-Driven testing with CSV tables to Robot Framework
Apache License 2.0
131 stars 37 forks source link

'keywords' attribute is read-only and deprecated since RF 4.0. Use 'body', 'setup', or 'teardown' instead #37

Closed abhishek12sarkar closed 3 years ago

abhishek12sarkar commented 3 years ago

When upgraded to RF 4.0, getting this error 'keywords' attribute is read-only and deprecated since RF 4.0. Use 'body', 'setup', or 'teardown' instead. The issue might be raised from _start_suite() method from DataDriver class.

Can this be fixed? The changes required might be mentioned over here #3749

kumarkrish85 commented 3 years ago

Facing same issue from RF 4.0 , please advice how to resolve

lucagiove commented 3 years ago

pip install --upgrade --pre robotframework-datadriver

fixes it

Snooz82 commented 3 years ago

Yes i am working on that and i will release tomorrow.

kumarkrish85 commented 3 years ago

Please share the updated example code

lucagiove commented 3 years ago

@kumarkrish85 You just have to install the newer version with the command I pasted above since it's a pre-release version

kumarkrish85 commented 3 years ago

@kumarkrish85 You just have to install the newer version with the command I pasted above since it's a pre-release version

Thanks ., I mean is there any change in earlier way of using the Data driver? If yes, please add an example

lucagiove commented 3 years ago

It shouldn't, the deprecation is inside the library itself how it calls RF api

kumarkrish85 commented 3 years ago

It shouldn't, the deprecation is inside the library itself how it calls RF api

Thanks for the confirmation

Snooz82 commented 3 years ago

Fixed in Version 1.1.0 of DataDriver.