How to do it…
- Be sure to activate your virtualenv sandbox.
- Install by typing: easy_install robotframework.
- Using any type of window navigator, go to <virtualenv root>/build/robotframework/doc/quickstart and open quickstart.html with your favorite browser. This is not only a guide but also a runnable test suite.
- Switch to your virtualenv’s build directory for Robot Framework: cd <virtualenv root>/build/robotframework/doc/quickstart.
- Run the Quick Start manual through pybot to verify installation: pybot quickstart.html.
- Inspect the generated report.html, log.html, and output.xml files generated by the test run.
- Install the Robot Framework Selenium library to allow integration with Selenium by first downloading: http://robotframework.org/SeleniumLibrary/.
- Unpack the tarball.
- Switch to the directory: cd robotframework-seleniumlibrary-2.5.
- Install the package: python setup.py install.
- Switch to the demo directory: cd demo.
- Start up the demo web app: python rundemo.py demoapp start.
- Start up the Selenium server: python rundemo.py selenium start.
- Run the demo tests: pybot login_tests.
- Shutdown the demo web app: python rundemo.py demoapp stop.
- Shutdown the Selenium server: python rundemo.py selenium stop.
- Inspect the generated report.html, log.html, output.xml, and selenium_log.txt files generated by the test run.
Summary
With this recipe, we have installed the Robot Framework and one third-party library that integrates Robot with Selenium.