RobotFramework:cx_Oracle-失败:InternalError:没有Oracle错误? [英] RobotFramework : cx_Oracle - FAIL : InternalError: No Oracle error?
问题描述
无法通过搜索找到解决问题的方法,因此我创建了此主题.
Couldn't find a solution for my problem using search so I created this topic.
使用数据库文库连接到Oracle数据库时,我遇到了问题和cx_Oracle模块.
I'm having problems when connecting to Oracle database using DataBase libary and cx_Oracle module.
在python中,import cx_Oracle
效果很好(不返回错误),但是当我尝试使用Connect To Database Using Custom Params | cx_Oracle | 'user', 'pass', 'host/db'
In python import cx_Oracle
works great (returns no error), but when I try to connect to DB on RobotFramework with Connect To Database Using Custom Params | cx_Oracle | 'user', 'pass', 'host/db'
我收到错误消息:FAIL : InternalError: No Oracle error?
如果我尝试使用
Connect To Database | dbapiModuleName=cx_Oracle | dbName=db_name | dbUsername=user | dbPassword=pass | dbHost=host | dbPort=port
我收到错误消息:FAIL : TypeError: 'database' is an invalid keyword argument for this function
我正在使用Windows7 x86,非管理员用户,Oracle 11g,Python 2.7.3,cx_Oracle 5.1.2,RobotFramework 2.7.6,RIDE 1.0.1.其他所有东西都像魅力一样(使用PLSQLDeveloper,RobotFramework,Selenium2Libary等连接到数据库)
I'm using Windows7 x86, non-Administrator user, Oracle 11g, Python 2.7.3, cx_Oracle 5.1.2, RobotFramework 2.7.6, RIDE 1.0.1. Everything else works like a charm (connection to database using PLSQLDeveloper, RobotFramework, Selenium2Libary etc.)
对任何人有任何想法我该如何解决我的问题?
Have anyone any ideas how can I solve my problem?
此致, 克里斯蒂安(Kristiāns)
Sincerely, Kristiāns
推荐答案
我遇到了同样的问题:'FAIL:TypeError:'database'是该函数的无效关键字参数'
I run into the same problem: 'FAIL : TypeError: 'database' is an invalid keyword argument for this function'
这对我有用:
DatabaseLibrary.Connect To Database Using Custom Params | cx_Oracle | 'user', 'password', 'host:port/dbname'
这篇关于RobotFramework:cx_Oracle-失败:InternalError:没有Oracle错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!