无法使用搜索找到问题的解决方案,因此我创建了此主题。
我在使用DataBase libary和cx_Oracle模块连接到Oracle数据库时遇到了问题。
在python中,import cx_Oracle工作得很好(不返回错误),但是当我尝试使用Connect To Database Using Custom Params | cx_Oracle | 'user', 'pass', 'host/db'连接到RobotFramework上的数据库时
我得到一个错误: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,非管理员用户,Oracle11g,Python2.7.3,cx_Oracle 5.1.2,RobotFramework 2.7.6,RIDE 1.0.1。其他的一切都很棒(使用PLSQLDeveloper、RobotFramework、Selenium2Libary等连接到数据库)
有谁知道我该怎么解决我的问题吗?
诚心诚意,Kristiāns
发布于 2013-10-21 22:03:16
我遇到了同样的问题:'FAIL : TypeError:'database‘对于这个函数来说是一个无效的关键字参数’
以下是对我有效的方法:
DatabaseLibrary.Connect To Database Using Custom Params | cx_Oracle | 'user', 'password', 'host:port/dbname'https://stackoverflow.com/questions/15019323
复制相似问题