RobotFramework : cx_Oracle - FAIL : InternalError: No Oracle error?

≯℡__Kan透↙ 提交于 2019-12-11 22:49:05

问题


Couldn't find a solution for my problem using search so I created this topic.

I'm having problems when connecting to Oracle database using DataBase libary and cx_Oracle module.

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'

I get an error : FAIL : InternalError: No Oracle error?

If I try to connect to database using

Connect To Database | dbapiModuleName=cx_Oracle | dbName=db_name | dbUsername=user | dbPassword=pass | dbHost=host | dbPort=port

I get an error : FAIL : TypeError: 'database' is an invalid keyword argument for this function

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?

Sincerely, Kristiāns


回答1:


I run into the same problem: 'FAIL : TypeError: 'database' is an invalid keyword argument for this function'

This is what works for me:

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


来源:https://stackoverflow.com/questions/15019323/robotframework-cx-oracle-fail-internalerror-no-oracle-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!