Library pubmed.PubmedHomePage
Library pubmed.PubmedDocsumPage
Library pubmed.PubmedArticlePage
Library ${CURDIR}${/}lib${/}pubmed.PubmedHomePage
Library ${CURDIR}${/}lib${/}pubmed.PubmedDocsumPage
Library ${CURDIR}${/}lib${/}pubmed.PubmedArticlePage20150809 13:03:41.940 ERROR Error in file 'C:\Users\rramasubramanian\robotframework-pageobjects-master\demo\test_pubmed.robot': Importing test library 'C:\Users\rramasubramanian\robotframework-pageobjects-master\demo\lib\pubmed.PubmedHomePage' failed: File or directory does not exist. 20150809 13:03:41.944 ERROR Error in file 'C:\Users\rramasubramanian\robotframework-pageobjects-master\demo\test_pubmed.robot': Importing test library 'C:\Users\rramasubramanian\robotframework-pageobjects-master\demo\lib\pubmed.PubmedDocsumPage' failed: File or directory does not exist. 20150809 13:03:41.947 ERROR Error in file 'C:\Users\rramasubramanian\robotframework-pageobjects-master\demo\test_pubmed.robot': Importing test library 'C:\Users\rramasubramanian\robotframework-pageobjects-master\demo\lib\pubmed.PubmedArticlePage' failed: File or directory does not exist.
from pubmed import *Another mechanism for specifying the library to import is using a path to it in the file system. This path is considered relative to the directory where current test data file is situated similarly as paths to resource and variable files. The main benefit of this approach is that there is no need to configure the module search path.
If the library is a file, the path to it must contain extension. For
Python libraries the extension is naturally .py and for Java
libraries it can either be .class or .java, but the
class file must always be available. If Python library is implemented
as a directory, the path to it must have a trailing forward slash (/).
Following examples demonstrate these different usages.
*** Settings *** Library PythonLib.py Library /absolute/path/JavaLib.java Library relative/path/PythonDirLib/ possible arguments Library ${RESOURCES}/Example.class
A limitation of this approach is that libraries implemented as Python classes must be in a module with the same name as the class. Additionally, importing libraries distributed in JAR or ZIP packages is not possible with this mechanism.