Skip to content

Library can't be used during robot --dry-run #6

Description

@akrautsc

Description:
When using jmslibrary without jar files available in configured path, an Exception is raised when calling robot --dryrun.
An Exception is also raised when calling command libdoc JMS list or similar to get libdoc documentation using CLI.

Analysis:
When robot --dryrun or libdoc JMS list is called, constructor of JMS class is called. It tries
to import Java classes, which should be available in configured path for jar files, and to create a ConnectionFactory from them.

Solution:
Move import and creation of ConnectionFactory to existing keyword (i.e. create_connection(..)) or create new keyword to
initialize the lib. In both cases do not raise an Exception, but let the keyword fail instead with proper error message.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions