Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 584 by kai.hackemesser: Variable resolution doesn't work properly with variables passed to a library constructor.
http://code.google.com/p/robotframework/issues/detail?id=584

We import the attached html file as a resource in a suite. The class com.ourcompany.robot.SQLLibrary has a constructor accepting the driver name and the connection string to construct the library, there are methods to connect/disconnect and to return query results etc.. With RF 2.1.3 this worked well, with RF 2.5 this fails to run producing this SQLException:

java.sql.SQLException: The syntax of the connection URL 'jdbc:jtds:sqlserver://${DB_HOST}:${DB_PORT}/Manage' is invalid.

The connection doesn't happen on library construction, but when the connect method is called in one of the test case in the suite importing this resource file. This means the suite has initialised the library but not using the resolved variable strings, else it would not fail.



Environment:
- XP 64bit
- JDK 1.6.0_16 on
- Jython 2.5.1
- RF 2.5


Attachments:
        environment.html  13.2 KB

Reply via email to