vectyvec
vectyvec

Reputation: 305

How to pass a custom parameter to Connect To DataBase Keyword in Robot Framework

I have been using Connect To DataBase Keyword in Robot Framework. Is it possible to add a custom parameter to the keyword? For ex : i want to add dictionary=true to cursor instance below is the keyword that i have used -

EMPDB.Connect To Database pymysql ${EMPNAME} ${EMPUSER} ${PWD} ${HOST} ${PORT}

To Above Keyword statement can i use dictionary=true? So that when i select query the result i want is along with the column and the values.

Upvotes: 0

Views: 368

Answers (1)

asprtrmp
asprtrmp

Reputation: 1062

That's is not possible using the library as is, so you need to implement that feature yourself. Usually DB queries return lists and they do not include column names.

Upvotes: 2

Related Questions