Robot Framework Acceptance Tests: Develop With Eclipse, Run With Maven


The Robot Framework is a very versatile tool and never confronted us with unsolvable problems so far. In some regards it still feels a little rough and needs some polishing, to make development and maintenance of automated tests more efficient. One of those areas is the integration into the well known development environment. There is the Robot IDE, but this only covers a fraction of my requirements. The following will show, how easily the Robot Framework and your own Java Keywords can be integrated in Maven and Eclipse.

Robot is started with a script, depending on your operating system this is or jybot.bat (when you don’t use Java Keywords, pybot is enough). With many command line parameters you can control, which tests shall be executed. Before doing so, you want to compile your own keywords and include them into the classpath. Since development is often enough happening on windows, but the continuous integration server is running on Linux, you have two non-trivial scripts to maintain to invoke the robot tests. This can be done much easier:

1. Maven

Instead of maintaining a plethora of start scripts manually, you can execute jybot directly from within maven. The following pom.xml shows the details:

  • The maven-dependency-plugin copies all dependant libraries into a folder, which is later included into the classpath. Now you can easily use any third party library.
  • With the exec-maven-plugin you can invoke ‘jybot’ in the integration-test lifecycle phase. This requires that jybot is in your PATH of your environment. Luckily, the .sh or .bat can be omitted.
  • The classpath is configured to


    This ensures that it will include

    1. The compiled classes of your own Java keywords
    2. All jar libraries that the pom.xml lists as dependency. (The wildcard notation is only available with Java 6!)
  • Afterwards, the jybot script is parametrized:
    • -C off turns off the colored output
    • –variable … sets some variables. Developerfriedly defaults are set in the pom.xml’s properties section. Is the environment variable ‘env’ set to ‘ci’, the ci profile will be activated, which changes those variables to make use of the real test system.
    • –variable RESOURCES:${project.basedir}/src/main/robot/resource Setting a RESOURCES variable makes it possible to refer to resources from your testcases simply with ${RESOURCES}/keyword-file.txt.
    • –exclude inprogress Excludes test cases, that are currently in progress. A developer can work on a test case until it is fully working, and can commit parts of his work, without having the test case executed by default. Of course, once the testcase is fully automated and functional, that tag must be deleted..
    • –include author-* In my opinion, all tests should me tagged with an author. This includes all tests that are existing, but also offers an easy way for the developer to limit the test execution to a set of test, that he is currently working on. This could be further improved with maven properties and profiles. There’s currently a bug in Jython that expands any parameter to matching filenames. (Jython Issue 1567) – so there should be no file that matches author-*!
    • ${ROBOT_TESTS} This tells robot which tests to execute. By default this refers to all tests in ${project.basedir}/src/main/robot/suite. By using tags and folders you have two independant ways to structure and manage your test cases and select a set for execution. This should be enough flexibility for everybody.

On the long term, it would be nicer to have a full-blown maven plugin for the robot framework, in order to save the awkward script parameterization. Until this is done, the presented solution should be sufficient.

            <id>get dependencies</id>

2. Project Structure

The above quoted pom.xml results in Eclipse in the depicted project structure below – either with the m2eclipse-Plugin or by running the eclipse:eclipse goal of the maven-eclipse-plugin.

3. Starting Robot

Executing the automated tests is now just a matter of executing the appropriate maven lifecycle phase:

4. Selenium Server

If you test Web UIs with robot, it is nice to integrate also the selenium server as external tool into Eclipse:

5. Full Workflow

By means of a concrete Example, a short screen cast should give you an impression, how to develop test cases in eclipse and how to execute them. Since details are hardly seen in the embedded video, there also a fullscreen version of it.


  • Josu

    Could complete more information.
    I’m quite interested.

  • kimlam

    1. March 2012 von kimlam

    Hello together,

    I’m a tester.

    I’ve installed RobotFramework and developed test case successfully within RIDE.

    And now I would like to use the RobotFramwork and develop test case in Eclipse (my version is HELIOS).

    I’ve tried with your above instructions but I’m really not understand yet.

    I’m not a developer so I have no experience with Eclipse as well as Maven that the link mentioned.

    Could anyone tell me in detailed how can I integrate RobotFramework to my Eclipse?

    That’s great if anyone instruct me with step by steps or images slide.

    Thank so much!

  • Kimlam

    2. March 2012 von Kimlam

    Ooops, I got it.

    Just configure pom.xml file and run with integration-test.

    Thank you so much

  • kimlam8888

    5. March 2012 von kimlam8888

    Today I have a addition question for the external libraries of python that I developed, it names ‘’.

    That python library contains some useful keyword for my testing services.

    When I run it by Maven, the report show error “No keyword [example] found”.

    I’ve tried to put my library to

    However, the error still showing. Can any one tell me how can I use the keyword from python library from Maven?

    I’m investigating to compile to jar dependencies. Correct me if I’m wrong.

    Many thanks in advanced,

  • Ruslan

    There is a maven plugin that does all this things in a simple way:

  • Prakash

    27. February 2013 von Prakash

    Great work, here i have a doubt how to run junit test cases in Robot Frame work

    • Andreas Ebbert-Karroum

      Hi Prakash,

      I don’t think that you can integrate Robot Framework with JUnit.


      • Bhanu

        I have a doubt regarding running Robot Framework test cases through Maven SurefirePlugin to achieve Parallel execution. Is it possible?

        • Andreas Ebbert-Karroum

          Hi Bhanu,

          the surefire plugin allows for parallel execution, but the way robot framework is executed in this blog post does not allow to use the surefire plugin, since robot framework doesn’t offer a junit compatible interface.


  • SreedharK

    20. June 2013 von SreedharK


    I am a Tester. I am using Robot Framework with simple Note Pad ++. I surprised to see that robot can be integrated with Eclipse. Could some one please help me the detailed steps to integrate Robot, Selenium and Python to Eclipse.

    Also my Keyword and script files are written in .TSV format. Did any one try using .TSV file in Eclipse.

    Thanks in Advance!!



Your email address will not be published.