• Stars
    star
    210
  • Rank 187,585 (Top 4 %)
  • Language RobotFramework
  • License
    MIT License
  • Created over 4 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A curated list of Robot Framework recipes to help beginner and intermediate engineers create test automation scripts faster.


robotframework-cookbook

All Contributors

Actions Status License: MIT code style: black Maintenance

A curated list of delicious Robot Framework recipes that will help you develop new test automation scripts faster, especially for beginner or intermediate level engineers.

If you need help writing Robot Framework scripts or wish to update older scripts to use newer syntax then you have come to the right place. Here we will compile and maintain recipes of working Robot Framework scripts that can be used in your domain.

In the first part of the cookbook there are many simple recipes showing how to use builtin keywords and additional keywords from both internal and external Robot Framework libraries. Towards the back of the cookbook there are complete case studies demonstrating whole projects and test automation solutions.

Other useful resources

Notes for contributors

Contributions from the wider community are most welcome! Contributions can be either single recipes or whole case studies.

We recommend using Robotidy to help standardise the format of the Robot Framework code.

We also recommend using the Robot Framework Robocop static analysis tool to check your scripts are clean before submission. Robocop can be installed using pip:

$ pip install -U robotframework-robocop

Issues are welcome and you can use them to post ideas for new recipes or report bugs and other observations for exisiting recipes.

For larger submissions simply clone this repository, create a feature branch (or work directly on master) and submit a pull request to merge your branch. If you are not comfortable with Git workflow then simply post your submission on the #cookbook Slack channel and I will help you publish your recipe or case study.

Installation and Usage

Python and Robot Framework must be installed prior to using Robot Framework Cookbook. Download Python and add to PATH during installation, then, use a command-line interpreter of your choice and run the following to install Robot Framework:

$ pip install robotframework

You can check if the installation was succesful by running the following command:

$ robot --version

After confirming Robot Framework installation was a success, clone the Robot Framework Cookbook repository by running the following command:

$ git clone https://github.com/adrianyorke/robotframework-cookbook.git

Once the repository has been cloned, you can install relevant libraries by navigating to the tests folder and running:

$ pip install -r ./tests/requirements-[version].txt

Table of contents

  1. Standard Library - BuiltIn
  2. Standard Library - Collections
  3. Standard Library - DateTime
  4. Standard Library - OperatingSystem
  5. Standard Library - Process
  6. Standard Library - Remote
  7. Standard Library - String
  8. Standard Library - XML
  9. External Library - REST API
  10. External Library - Databases
  11. External Library - SSH
  12. External Library - Parallel executor for Robot Framework test cases (pabot)
  13. External Library - SeleniumLibrary and SeleniumTestability
  14. External Library - AWSLibrary - for interacting with Amazon Web Services (AWS) Cloud Computing Services
  15. External Library - Robot Framework Browser library powered by Playwright.
  16. Robot Framework 4
  17. Case Studies

Contributors โœจ

Thanks goes to these wonderful people (emoji key):

Adrian Yorke
Adrian Yorke

๐Ÿ’ป ๐Ÿ“– ๐Ÿšง ๐Ÿ‘€
Tom Purl
Tom Purl

๐Ÿ’ป ๐Ÿ“–
Szabolcs Tรณth
Szabolcs Tรณth

๐Ÿ’ป ๐Ÿ“–
Jani Mikkonen
Jani Mikkonen

๐Ÿ’ป ๐Ÿ“–
Bartล‚omiej Hirsz
Bartล‚omiej Hirsz

๐Ÿ’ป ๐Ÿ“– ๐Ÿšง ๐Ÿ‘€
Christoph
Christoph

๐Ÿ’ป ๐Ÿ“–
Mikko Korpela
Mikko Korpela

๐Ÿ’ป ๐Ÿ“–
ericbjones
ericbjones

๐ŸŽจ ๐Ÿ’ป ๐Ÿ“–
Emna Ayadi
Emna Ayadi

๐Ÿ““ ๐Ÿ’ป
Joonas Venรคlรคinen
Joonas Venรคlรคinen

๐Ÿ’ป
Aleksandra Kowalczyk
Aleksandra Kowalczyk

๐Ÿ’ป
Martin ล kopek
Martin ล kopek

๐Ÿ’ป
sarafurd
sarafurd

๐Ÿ“– ๐Ÿšง
Jeff Choi
Jeff Choi

๐Ÿ“– ๐Ÿšง

This project follows the all-contributors specification. Contributions of any kind welcome!