2013-02-22 61 views
0

找不到解决方案,我的问题使用搜索,所以我创建了这个话题。RobotFramework:cx_Oracle - FAIL:InternalError:没有Oracle错误?

我在使用DataBase libary和cx_Oracle模块连接到Oracle数据库时遇到问题。

在蟒蛇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

我使用的是无线网络ndows7 x86,非管理员用户,Oracle 11g,Python 2.7.3,cx_Oracle 5.1.2,RobotFramework 2.7.6,RIDE 1.0.1。其他一切都像魅力(使用PLSQLDeveloper,RobotFramework,Selenium2Libary等连接数据库)

有没有人有任何想法我该如何解决我的问题?

真诚, Kristiāns

回答

1

我遇到了同样的问题:“不及格:类型错误:‘数据库’是这个功能的无效关键字参数”

这对我来说是什么在起作用:

DatabaseLibrary.Connect To Database Using Custom Params | cx_Oracle | 'user', 'password', 'host:port/dbname'