Robot Framework - framework for the development of acceptance auto-tests (ATDD). This is a keyword-driven testing framework that provides table formatting. [2]
Robot framework | |
---|---|
Type of | Software testing framework / Test tool |
Developer | Pekka Klärck, Janne Härkönen et al. |
Written on | Python |
operating system | Cross platform |
First edition | |
Latest version | 3.1 (December 7, 2018) |
License | Apache License 2.0 |
Site | robotframework.org |
Content
History
The main ideas for creating the Robot Framework were reflected in the Pekka Klärck Master's thesis [3] in 2005. The first version was developed by Nokia Siemens Networks in the same year. Version 2.0 was released under the open Apache License on June 24, 2008. The framework is written in Python .
Description
Test scripts are written using keyword testing testing techniques and recorded in a table format. These tables can be written as plain text, HTML , separated by tabs of values ( TSV ) or reStructuredText ( reST ) [4] in any text editor or using the Robot Integrated Development Environment (RIDE). [5] RIDE simplifies the writing of test scripts and provides features such as auto-completion, syntax highlighting, etc.
Examples
The following test implements the Hello World example:
Test case | Action | Argument |
---|---|---|
Demo | Log | Hello world |
It can be written as follows:
*** Test Cases *** Demo Log hello world
Log
is a built-in keyword that logs the passed parameter into the test report that the Robot Framework generates.
Using SeleniumLibrary, [6] tests are written for web applications - it is also very simple:
Test case | Action | Argument | Argument |
---|---|---|---|
Demo | Open browser | http://www.google.com | ie |
Input text | id = lst-ib | Hollywood celebrities | |
Click button | Google search |
This test opens a new Internet Explorer window and searches the Internet.
Add-ons
These libraries are best implemented in Python , but using Java or .Net is also possible.
See also
- Acceptance testing
- Keyword-driven testing
- Data driven testing
- Test driven development
Notes
- ↑ https://code.google.com/p/robotframework/downloads/list
- ↑ Robot Framework Homepage . Robotframework.org. Date of treatment January 9, 2016.
- ↑ Laukkanen, Pekka: “Data-Driven and Keyword-Driven Test Automation Frameworks”, 2006 . Eliga.fi. Date of treatment December 8, 2012.
- ↑ User Guide 2.8.4 . Robotframework.org. Date of treatment December 3, 2013. Archived March 16, 2014.
- ↑ RIDE Homepage . Github.com Date of treatment December 8, 2012.
- ↑ Robot Selenium Library . Code.google.com. Date of treatment December 8, 2012.
Links
- Project website
- An Introduction to Test Automation Design by Lisa Crispin
- Command Line Testing With The Robot Framework by Alessandro Collino
- Driving Development with Tests: ATDD and TDD by Elisabeth Hendrickson
- Writing Maintainable Automated Acceptance Tests by Dale H. Emery
- Usage of Robot Framework in Automation of Functional Test Regression by Stanislav Stresnjak and Zeljko Hocenski
- Selenium Meet-Up April 20, 2010 Elisabeth Hendrickson on Robot Framework
- Robot Framework: Semicolon-free testing by Filip Noetzel