Hi Everyone,
I am using the following environment. They are all windows 32 bit version.
Python 2.7.6
RobotFramework 2.8.4
Selenium2Library
WxPython 2.8
Robot Framework is returning an incorrect query when the column is a varchar.
This is the code that I have:
${importpath} Query ${query_statement}
The query statement is only returning one row.
It is returning “u’” at the front. Here is what I get when I query in robot framework.
[(u'\\\\server_name\\primary\\database_name\\ImportFolders\\51',)]
I have tried putting the variable ${importpath} as a list by using the “Create List” keyword. The result is still the same.
The u’ at the beginning of the query should not be there. Can anyone provide a feedback at why robotframework is returning a u’ in front of the query?
Thanks for the assistance,
Mike
I was able to extract the contents without the little u and among other stuff that robot framework returns when doing a query with the following statements:
${importpath} Query ${query_statement}
${importpath} Set Variable ${importpath[0][0]}
The statement above worked perfectly. I try using the same code on a “list” since some queries returned multiple rows and it doesn’t work so well
@{importID } Create list
@{ImportID} Query ${query_statement}
${importID} Set Variable ${importID[0][0]}
I play around with it and I had to use the FOR loop to make it work
@{ importID } Create list
@{ importID } Query ${query_statement}
:FOR ${value} IN @{ importID }
${value} Set Variable ${value[0]}
Should not contain ${value} ${empty}
Any reason why I have to use only one [0] instead of [0][0] in order to make it work?
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
To post to this group, send email to robotframe...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.