Skip to content

boyone/robotframework-101

Repository files navigation

Robot Framework 101

Prerequisite

  1. Python3

  2. Robot Framework

    pip install robotframework
  3. User Guide


Basic Syntax

Structure

  • Settings

  • Variables

  • Test Cases

  • Tasks

  • Keywords

  • Keywords Keyword tables are used to create new higher-level keywords by combining existing keywords together. These keywords are called user keywords to differentiate them from lowest level library keywords that are implemented in test libraries.

  • Report And Log

Variables

  • Scalar
  • List
  • Dictionary
  • Environment

Tagging

Command Line Options

  • variables + command line parameters
    • local http, remote https
  • tags + command line options

Execution Flow

  • Suite Setup
  • Test Template
  • Test Setup
  • Test Teardown
  • Suite Teardown

Standard Library

Extending Robot Framework

External Library

PyPi

The Python Package Index (PyPI) is a repository of software for the Python programming language.

pip

pip is the package installer for Python

Creating Virtual Environments

Python “Virtual Environments” allow Python packages to be installed in an isolated location for a particular application, rather than being installed globally.

2 common tools for creating Python virtual environments:

  1. venv is available by default in Python 3.3 and later, and installs pip and setuptools into created virtual environments in Python 3.4 and later. Using venv

    python3 -m venv <DIR>
    source <DIR>/bin/activate
  2. virtualenv needs to be installed separately, but supports Python 2.7+ and Python 3.3+, and pip, setuptools and wheel are always installed into created virtual environments by default (regardless of Python version). Using virtualenv:

    virtualenv <DIR>
    source <DIR>/bin/activate

Todo

[x] slice in Python3 [ ] Inline Python evaluation [ ] Variable priorities and scopes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages