WikiFox

Robot Framework



Robot Framework is a generic test automation framework for acceptance testing and acceptance test-driven development (ATDD). It is a keyword-driven testing framework that uses tabular test data syntax.[1]

Robot Framework
Robot Framework Logo
Developer(s)Pekka Klärck, Janne Härkönen et al.
Initial release2.0 June 24, 2008
Stable release
4.0.2 / May 11, 2021; 2 months ago
Repository Edit this at Wikidata
Written inPython
Operating systemCross-platform
TypeSoftware testing framework / test tool
LicenseApache License 2.0
Websiterobotframework.org

Contents


History

The basic ideas for Robot Framework were shaped in Pekka Klärck's masters thesis[2] in 2005. The first version was developed at Nokia Networks the same year. Version 2.0 was released as open source software June 24, 2008 and version 3.0.2 was released February 7, 2017.[3]

The framework is written using the Python programming language and has an active community of contributors. It is released under Apache License 2.0 and can be downloaded from robotframework.org.


Description

Test cases are written using a keyword-testing methodology written in a tabular format. These tables can be written in plain text, tab-separated values (TSV), or reStructuredText (reST) formats files[4] in any text editor or using the Robot Integrated Development Environment (RIDE).[5] RIDE simplifies writing test cases by providing framework-specific code completion, syntax highlighting, etc.


Examples

The following test case implements a Hello, World! example:

*** Test Cases ***
Demo
    Log  Hello world

Log is a built-in keyword that logs the given parameter to the test report generated by Robot Framework.

With SeleniumLibrary,[6] writing tests for web applications is very easy too:

*** Test Cases ***
Demo
    Open Browser  https://www.google.com  ie
    Input Text  id=lst-ib  Hollywood Celebrities
    Click Button  Google Search

This test opens a new Internet Explorer browser window with Google and performs an Internet search for "Hollywood Celebrities" by pressing the button "Google Search".

With Robot Framework Browser,[7] automation can be done with Chromium, WebKit and Firefox.

*** Settings ***
Library   Browser*** Test Cases ***
Example Test
    New Page    https://playwright.dev
    Get Text    h1    ==    🎭 Playwright

Add-ons

These libraries are best implemented in Python, but using Java or .NET is also possible.

Other languages such as Perl, JavaScript, and PHP can be used for libraries as well, using the remote library interface. See Robot Framework User Guide and documentation for more information.


See also


References

  1. ^ "Robot Framework Homepage" . Robotframework.org. Retrieved January 20, 2019.
  2. ^ "Laukkanen, Pekka: "Data-Driven and Keyword-Driven Test Automation Frameworks", 2006" . Eliga.fi. Retrieved March 23, 2018.
  3. ^ "Robot Framework Pypi Page" . Robotframework.org. Retrieved March 23, 2018.
  4. ^ "User Guide 3.1.2" . Robotframework.org. Retrieved February 14, 2020.
  5. ^ "RIDE Homepage" . Github.com. Retrieved February 14, 2020.
  6. ^ "Robot Selenium Library" . github.com. Retrieved March 23, 2018.
  7. ^ "Robot Framework Broswe" . github.com. Retrieved August 5, 2020.

External links





Source


Information as of: 15.08.2021 01:11:06 CEST

Source: Wikipedia (Authors [History])    License of the text: CC-BY-SA-3.0. Creators and licenses of the individual images and media can either be found in the caption or can be displayed by clicking on the image.

Changes: Design elements were rewritten. Wikipedia specific links (like "Redlink", "Edit-Links"), maps, niavgation boxes were removed. Also some templates. Icons have been replaced by other icons or removed. External links have received an additional icon.

Please note: Because the given content is automatically taken from Wikipedia at the given point of time, a manual verification was and is not possible. Therefore WikiFox.org does not guarantee the accuracy and actuality of the acquired content. If there is an Information which is wrong at the moment or has an inaccurate display please feel free to contact us: email.
See also: Legal Notice & Privacy policy.