使用databaseLibrary连接到Robotframework中的ASE sybase

时间:2018-05-29 14:01:59

标签: robotframework sybase

我试图连接到Sysbase但我总是错误

套件设置失败:

  

操作错误:(' 08001',u" [08001] [Microsoft] [ODBC SQL Server   驱动程序] [DBNETLIB] Ce服务SQL n' existe pas ou son acc \ xe8s est   拒\ xe9。 (17)(SQLDriverConnect); [08001] [Microsoft] [ODBC SQL   服务器驱动程序] [DBNETLIB] ConnectionOpen(Connect())。 (53)&#34)

我的代码是:

*** Settings ***
Suite Setup       Connect To Database    pyodbc    ${DBName}    ${DBUser}    
${DBPass}    ${DBHost}    ${DBPort}
Suite Teardown    Disconnect From Database
Library           Selenium2Library
Resource          ../../../Keywords/Initialisation/Initialisation.robot
Library           DatabaseLibrary
Library           OperatingSystem

*** Variables ***
${DBHost}         ""
${DBName}         ""
${DBPass}         ""
${DBPort}         ""
${DBUser}         ""

*** Test Cases ***
Récupérer CAB
${output} =    Execute SQL String    select "" from "" where ""= '80000204000048' ;
Log    ${output}

我已经安装了databaselibrary     pip install robotframework-databaselibrary和pyodbc     "> pip install pyodbc"

0 个答案:

没有答案