Skip to content

Keyword "Connect using custom params" requires quotes (") around the connection string #173

Description

@amochin

The following example would work:

Connect To Database Using Custom Params    oracledb    "${con_str}"

But if you put no quotation marks around the connection string param, there is an error:

Connect To Database Using Custom Params    oracledb    ${con_str}

In order to avoid the backwards incompatibility, the code should be improved in the way that both options (with and without quotes) work.

Here is a full example for the oracle database:

*** Variables ***
${DBHost}       127.0.0.1
${DBName}       MY_DB
${DBPass}       pass
${DBPort}       1521
${DBUser}       db_user

*** Keywords ***
Connect To DB
    ${con_str} =    Catenate    SEPARATOR=${EMPTY}
    ...    ${DBUser}/${DBPass}@
    ...    ${DBHost}:${DBPort}/${DBName}
    Connect To Database Using Custom Params    oracledb    "${con_str}"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions