Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't import test library modules #77

Open
incogniro opened this issue Feb 7, 2020 · 1 comment
Open

Won't import test library modules #77

incogniro opened this issue Feb 7, 2020 · 1 comment

Comments

@incogniro
Copy link

Trying to use either the AngularJSLibrary or ExtendedSelenium2Libray by placing the folders beneath src/test/resources/libraries. The modules are never loaded when referenced. I've also tried adding a configuration section in the pom.xml which points to the libraries folder and also the folder of the module. This has no effect either.

[ ERROR ] Error in file '/src/test/robotframework/resource.robot': Importing test library 'AngularJSLibrary' failed: ImportError: No module named AngularJSLibrary
Traceback (most recent call last):
None
PYTHONPATH:
/.m2/repository/org/robotframework/robotframework/3.1.2/Lib
/.m2/repository/org/robotframework/robotframework/3.1.2/robotframework-3.1.2.jar/Lib
classpath
pyclasspath/
CLASSPATH:
/usr/local/Cellar/maven/3.6.3/libexec/boot/plexus-classworlds-2.6.0.jar

Any assistance appreciated.

@Hi-Fi
Copy link
Contributor

Hi-Fi commented Feb 7, 2020

According https://robotframework.org/MavenPlugin/run-mojo.html#extraPathDirectories path of the libraries need to be (by default) ${project.basedir}/src/test/resources/robotframework/libraries.

Example also here: https://robotframework.org/MavenPlugin/examples/seleniumlibrary.html.

When running with Java I think it would make more sense to use Java SeleniumLibrary, but if course that way there's no e.g. Angular specific keywords available. But as seen in the example, usin Python libraries mean that dependencies need to be available, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants