robotframework-sequencelibrary


Namerobotframework-sequencelibrary JSON
Version 1.0.1 PyPI version JSON
download
home_pageNone
SummaryRobot Framework library for running keywords in sequence.
upload_time2024-07-25 12:50:10
maintainerNone
docs_urlNone
authorMauricio Gutierrez
requires_python>=3.8
licenseMIT License
keywords robotframework
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # RobotFramework-SequenceLibrary

[![GitHub Actions status](https://github.com/crsdet/robotframework-sequencelibrary/actions/workflows/tests.yml/badge.svg)](https://github.com/crsdet/robotframework-sequencelibrary/actions) [![Version](https://img.shields.io/pypi/v/robotframework-sequencelibrary.svg?label=version)](https://pypi.python.org/pypi/robotframework-sequencelibrary) [![License](https://img.shields.io/pypi/l/robotframework-sequencelibrary.svg)](https://github.com/crsdet/robotframework-sequencelibrary/blob/main/LICENSE)

**RobotFramework-SequenceLibrary** is a [Robot Framework](https://robotframework.org) library for running keywords in sequence. The purpose is to streamline the execution of common operations by providing a condensed syntax that allows users to perform tasks with fewer lines of code.

## Installation

You can install robotframework-sequencelibrary via [pip](https://pip.pypa.io/en/stable):

~~~sh
pip install robotframework-sequencelibrary
~~~

## Usage

Documentation can be found at <https://crsdet.github.io/robotframework-sequencelibrary>.

~~~robotframework
*** Settings ***
Library             SequenceLibrary


*** Test Cases ***
Test Generate Random Int And Set A Test Variable
    ${num}                  Run Sequence
    ...                     Random Int              18                      100
    ...                     AND
    ...                     Set Test Variable       $RANDOM_NUMBER
    Variable Should Exist                           ${RANDOM_NUMBER}
    Should Be Equal         ${num}                  ${RANDOM_NUMBER}

Test Replace Last Returned Value
    ${num}                  Run Sequence
    ...                     Random Int              18                      100
    ...                     AND
    ...                     Set Test Variable       $RANDOM_NUMBER
    ...                     AND
    ...                     Evaluate                $_ + 10
    ...                     AND
    ...                     Set Test Variable       $RANDOM_NUMBER_PLUS_10
    Variable Should Exist                           ${RANDOM_NUMBER}
    Variable Should Exist                           ${RANDOM_NUMBER_PLUS_10}
    Should Be Equal         ${RANDOM_NUMBER + 10}                           ${RANDOM_NUMBER_PLUS_10}
    Should Be Equal         ${num}                  ${RANDOM_NUMBER_PLUS_10}

Test Last Returned Value Remains If Previous Keyword Does Not Return A Value
    ${num}                  Run Sequence
    ...                     Random Int              18                      100
    ...                     AND
    ...                     Log
    ...                     AND
    ...                     Set Test Variable       $RANDOM_NUMBER
    Variable Should Exist                           ${RANDOM_NUMBER}
    Should Be Equal         ${num}                  ${RANDOM_NUMBER}

~~~

You can also specify a different separator or replace string:

~~~robotframework
*** Settings ***
Library     SequenceLibrary    separator=${SEPARATOR}    replace=${REPLACE}


*** Variables ***
${SEPARATOR}    ->
${REPLACE}      %
~~~

## License

RobotFramework-SequenceLibrary is open source software provided under the [MIT License](https://github.com/crsdet/robotframework-sequencelibrary/blob/main/LICENSE).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "robotframework-sequencelibrary",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "robotframework",
    "author": "Mauricio Gutierrez",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/a8/7a/27a67bbefee17762694606a7e03ab38ca4be52003778e75de4f3c7a037dd/robotframework_sequencelibrary-1.0.1.tar.gz",
    "platform": null,
    "description": "# RobotFramework-SequenceLibrary\n\n[![GitHub Actions status](https://github.com/crsdet/robotframework-sequencelibrary/actions/workflows/tests.yml/badge.svg)](https://github.com/crsdet/robotframework-sequencelibrary/actions) [![Version](https://img.shields.io/pypi/v/robotframework-sequencelibrary.svg?label=version)](https://pypi.python.org/pypi/robotframework-sequencelibrary) [![License](https://img.shields.io/pypi/l/robotframework-sequencelibrary.svg)](https://github.com/crsdet/robotframework-sequencelibrary/blob/main/LICENSE)\n\n**RobotFramework-SequenceLibrary** is a [Robot Framework](https://robotframework.org) library for running keywords in sequence. The purpose is to streamline the execution of common operations by providing a condensed syntax that allows users to perform tasks with fewer lines of code.\n\n## Installation\n\nYou can install robotframework-sequencelibrary via [pip](https://pip.pypa.io/en/stable):\n\n~~~sh\npip install robotframework-sequencelibrary\n~~~\n\n## Usage\n\nDocumentation can be found at <https://crsdet.github.io/robotframework-sequencelibrary>.\n\n~~~robotframework\n*** Settings ***\nLibrary             SequenceLibrary\n\n\n*** Test Cases ***\nTest Generate Random Int And Set A Test Variable\n    ${num}                  Run Sequence\n    ...                     Random Int              18                      100\n    ...                     AND\n    ...                     Set Test Variable       $RANDOM_NUMBER\n    Variable Should Exist                           ${RANDOM_NUMBER}\n    Should Be Equal         ${num}                  ${RANDOM_NUMBER}\n\nTest Replace Last Returned Value\n    ${num}                  Run Sequence\n    ...                     Random Int              18                      100\n    ...                     AND\n    ...                     Set Test Variable       $RANDOM_NUMBER\n    ...                     AND\n    ...                     Evaluate                $_ + 10\n    ...                     AND\n    ...                     Set Test Variable       $RANDOM_NUMBER_PLUS_10\n    Variable Should Exist                           ${RANDOM_NUMBER}\n    Variable Should Exist                           ${RANDOM_NUMBER_PLUS_10}\n    Should Be Equal         ${RANDOM_NUMBER + 10}                           ${RANDOM_NUMBER_PLUS_10}\n    Should Be Equal         ${num}                  ${RANDOM_NUMBER_PLUS_10}\n\nTest Last Returned Value Remains If Previous Keyword Does Not Return A Value\n    ${num}                  Run Sequence\n    ...                     Random Int              18                      100\n    ...                     AND\n    ...                     Log\n    ...                     AND\n    ...                     Set Test Variable       $RANDOM_NUMBER\n    Variable Should Exist                           ${RANDOM_NUMBER}\n    Should Be Equal         ${num}                  ${RANDOM_NUMBER}\n\n~~~\n\nYou can also specify a different separator or replace string:\n\n~~~robotframework\n*** Settings ***\nLibrary     SequenceLibrary    separator=${SEPARATOR}    replace=${REPLACE}\n\n\n*** Variables ***\n${SEPARATOR}    ->\n${REPLACE}      %\n~~~\n\n## License\n\nRobotFramework-SequenceLibrary is open source software provided under the [MIT License](https://github.com/crsdet/robotframework-sequencelibrary/blob/main/LICENSE).\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Robot Framework library for running keywords in sequence.",
    "version": "1.0.1",
    "project_urls": {
        "Documentation": "https://crsdet.github.io/robotframework-sequencelibrary/",
        "Homepage": "https://github.com/crsdet/robotframework-sequencelibrary"
    },
    "split_keywords": [
        "robotframework"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f873193e3fa7bdb7e043526be75d18e15818b41c99584793ec1fa5dbaae5c5f9",
                "md5": "dbb5796376f8e274ccb459ac04d63b1a",
                "sha256": "29c454931c398ab12450a9167dfa4137da95f3796e44fcf58640da0d8b066983"
            },
            "downloads": -1,
            "filename": "robotframework_sequencelibrary-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dbb5796376f8e274ccb459ac04d63b1a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 4668,
            "upload_time": "2024-07-25T12:50:08",
            "upload_time_iso_8601": "2024-07-25T12:50:08.974587Z",
            "url": "https://files.pythonhosted.org/packages/f8/73/193e3fa7bdb7e043526be75d18e15818b41c99584793ec1fa5dbaae5c5f9/robotframework_sequencelibrary-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a87a27a67bbefee17762694606a7e03ab38ca4be52003778e75de4f3c7a037dd",
                "md5": "4094e246bbd3325447ad62dac45ef763",
                "sha256": "5998daafcf06cbde41c42b22fada72e3f91f958fe0c0691ab3764f55b97cf8c3"
            },
            "downloads": -1,
            "filename": "robotframework_sequencelibrary-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "4094e246bbd3325447ad62dac45ef763",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 4387,
            "upload_time": "2024-07-25T12:50:10",
            "upload_time_iso_8601": "2024-07-25T12:50:10.648031Z",
            "url": "https://files.pythonhosted.org/packages/a8/7a/27a67bbefee17762694606a7e03ab38ca4be52003778e75de4f3c7a037dd/robotframework_sequencelibrary-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-25 12:50:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "crsdet",
    "github_project": "robotframework-sequencelibrary",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "robotframework-sequencelibrary"
}
        
Elapsed time: 0.29911s