FormulatedAutomation / robotframework-otp

OTP entry for Robot Framework
14 stars 3 forks source link

Robotframework-OTP

.. contents::

Introduction

Robotframework-OTP is a Robot Framework test library for generating two-factor One Time Passwords. The project is hosted on GitHub and downloads can be found from PyPI_.

.. image:: https://circleci.com/gh/FormulatedAutomation/robotframework-otp.svg?style=svg :target: https://app.circleci.com/pipelines/github/FormulatedAutomation/robotframework-otp

Libdocs <https://itsautomic.github.io/robotframework-otp>_

Installation

pip install robotframework-otp

Usage

.. code:: robotframework

*** Settings ***
Library                OTP

*** Test Cases ***
Get OTP from secret
    ${otp}=    Get OTP    ${SECRET}
    Should Match Regexp   ${otp}    \\d{6}

Update Docs

python -m robot.libdoc src/OTP/ doc/OTP.html

.. _Github: https://github.com/itsautomic/robotframework-otp .. _pypi: https://pypi.org/project/robotframework-otp .. _Robot Framework: https://robotframework.org