Robot Framework

from Wikipedia, the free encyclopedia
Robot Framework

Robot-framework-logo.png
Basic data

Maintainer Pekka Klärck, Janne Harkonen et al.
Current  version 3.2.1
( July 30, 2020 )
operating system Cross-platform
programming language python
category Test - Framework
License Apache license 2.0
robotframework.org

The Robot Framework is a generic framework for performing automated software tests with an emphasis on acceptance tests . Robot uses a simple table-like structure to manage the test data and relies on keyword-driven testing .

The test cases are stored as text files and can basically be edited with any text editor. There are some IDE 's that focus on Robot Framework, such as Robot IDE (RIDE) and RED based on Eclipse based. These offer functions such as code completion, simplified management of keywords and debugging . In addition, there are community-driven plugins for other common development environments such as PyCharm , Jupyter and Microsoft Visual Studio Code .

history

The basic idea for the Robot Framework was formulated in 2005 in the master's thesis by Pekka Klärck. In the same year, Nokia Siemens Networks (now Nokia Solutions and Networks ) began developing a first version . Version 2.0 was released as open source on June 24, 2008 .

The framework developed in the Python programming language has an active community. It is subject to the Apache 2.0 license and can be downloaded from the project's homepage.

The international Robot Framework Conference Robocon has been held in Helsinki every year since 2018 . The conference consists of workshops, lectures and a final hackathon , the so-called sprints.

Extensions

Numerous libraries are available for Robot, for example the Selenium Library for testing web applications .

Libraries are particularly good at Python . Other programming languages ​​are also possible if you implement a remote server based on the so-called remote interface. The remote server provides the keywords using XML-RPC so that libraries implemented in Java , for example, can also be used in test cases .

During Robocon 2020, the so-called MarketSquare organization was founded on Github, under which community libraries can be collected and jointly developed.

Examples

The following test case implements the mandatory Hello World example:

*** Test Cases ***
Logge 'Hello World'
    Log    Hello World

Logis a built-in keyword that writes the following parameter as a log entry in the test report. With the help of the SeleniumLibrary, tests for web applications can be formulated just as easily :

*** Settings ***
Library    SeleniumLibrary

*** Test Cases ****
Teste Google-Suche
    Open Browser    https://www.google.de    ie
    Input Text    lst-ib    Robot Framework
    Click Button    Google-Suche

RPA

Although the Robot Framework was originally developed to automate the processes involved in manual testing, the framework is also suitable for robot-controlled process automation . For this purpose, the use of language was expanded to include so-called tasks with version 3.1 . Technically, tasks behave like test cases:

*** Settings ***
Library    SeleniumLibrary
Task Teardown    Close Browser

*** Tasks ***
Suche 'Robot Framework' mit Google
    Open Browser    https://www.google.de    headlesschrome
    Input Text    lst-ib    Robot Framework
    Click Buton    Google-Suche
    Capture Screenshot

Due to the close relationship between RPA and test automation, teams who already use Robot Framework manage to operate RPA relatively easily by building on their existing infrastructure.

Web links

Individual evidence

  1. Release 3.2.1 . July 30, 2020 (accessed July 31, 2020).
  2. Robot Framework Homepage (English)
  3. RIDE Homepage (English)
  4. ^ Robot Editor. In: Github. Nokia, accessed June 16, 2020 .
  5. Laukkanen, Pekka: "Data-Driven and Keyword-Driven Test Automation Frameworks", 2006
  6. Robocon. Robot Framework Foundation, accessed June 16, 2020 .
  7. a b Robot Selenium Library (English)
  8. RemoteInterface. In: Github. Retrieved June 16, 2020 (English).
  9. ^ Robot Framework Community's shared code repositories. In: Github. Retrieved June 16, 2020 (English).
  10. Pekka Klärck: Robot Framework 3.1 - Release Notes. Retrieved June 16, 2020 (English).
  11. André Rist, Markus Stahl: Verifying the quality of complex systems with open source tools. (PDF) In: German Testing Magazin. SIGS DATACOM GmbH, May 2019, pp. 20-23 , accessed on June 16, 2020 .