Sandeepan Basu
Sandeepan Basu

Reputation: 1

How to Export a Database query result to a CSV using Robot Framework?

For Data Validations on a database, i have to compare the data on the export of the spotfire report to data in the tables. So, i have taken the output of a query and inserted it into a variable on Ride. Next, i want to export this variable to a CSV file. I installed CSVLibrary from 's4int' of 'robotframework-CSVLibrary' in github and it has a keyword named 'Append To Csv File'.

But when I am passing this output variable as an argument to the keyword, i am getting a common error: TypeError: a bytes-like object is required, not 'str'

How can i mitigate this? Can the query output be stored in bytes format?

my worksheet

Upvotes: 0

Views: 891

Answers (0)

Related Questions