Skip to content

Commit

Permalink
Added mention about including also dependencies when using Python lib…
Browse files Browse the repository at this point in the history
…raries

Fixes #57
  • Loading branch information
Hi-Fi committed Dec 17, 2019
1 parent 60b0ecf commit 139d03f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 23 deletions.
11 changes: 2 additions & 9 deletions src/site/apt/examples/javalibraries.apt
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
------
Java Libraries
------
Dietrich Schulten
------
2012-01-20
------

Using Java Libraries with the Robotframework Plugin

* Java test libraries

You can access Java test libraries by adding the jars to the extraPathDirectories parameter.
You can access Java test libraries by adding the jars to the extraPathDirectories parameter or importing those
as Maven dependencies.
Note that such tests will run with Jython only.

+---
Expand Down
24 changes: 10 additions & 14 deletions src/site/apt/examples/seleniumlibrary.apt
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
------
Selenium Library
------
Dietrich Schulten
------
2012-01-20
------


Using SeleniumLibrary with the Robotframework Plugin
Using Python-based SeleniumLibrary with the Robotframework Plugin

ExtraPathDirectories parameter can be used to add extra test libraries to your build.

By default, you should add them to $\{project.basedir}/src/test/resources/robotframework/libraries.

* Configuration and Installation

Download the tarball from the Selenium Library download page,
e.g. robotframework-seleniumlibrary-2.6.tar.gz
This is just and example how importing can be done, as there's also {{{https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/}Java-based Selenium-library}} available that
can be included just as Maven depednency

Download the tarball from the Selenium Library releases page,
e.g. {{{https://github.com/robotframework/SeleniumLibrary/archive/v3.3.1.tar.gz}robotframework-seleniumlibrary-3.3.1.tar.gz}}

Extract the file and move the SeleniumLibrary directory from
robotframework-seleniumLibrary/src to ${project.basedir}/src/test/resources/robotframework/libraries.

So your project will have a folder
$\{project.basedir}/src/test/resources/robotframework/libraries/SeleniumLibrary


Make same thing for {{{https://github.com/robotframework/SeleniumLibrary/blob/master/requirements.txt}external dependencies of the library}}.
Robot Framework doesn't need to be imported, as it comes from dependencies.

* Example

Expand All @@ -40,5 +36,5 @@ Suite Tear Down Stop Selenium Server

*** Test Cases ***
My Test
Open Browser http://robotframework.googlecode.com
Open Browser http://robotframework.org
+---

0 comments on commit 139d03f

Please sign in to comment.