简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM