robotframework-reportportal-updated


Namerobotframework-reportportal-updated JSON
Version 1.1.10 PyPI version JSON
download
home_pagehttps://github.com/reportportal/agent-Python-RobotFramework
SummaryAgent for reporting RobotFramework test results to Report Portal
upload_time2023-07-21 11:27:13
maintainer
docs_urlNone
authorReport Portal Team
requires_python
license
keywords testing reporting robot framework reportportal agent
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ReportPortal RobotFramework agent

[![PyPI](https://img.shields.io/pypi/v/robotframework-reportportal.svg?maxAge=259200)](https://pypi.python.org/pypi/robotframework-reportportal)
[![Python versions](https://img.shields.io/pypi/pyversions/robotframework-reportportal.svg)](https://pypi.org/project/robotframework-reportportal)
[![Build Status](https://github.com/reportportal/agent-Python-RobotFramework/actions/workflows/tests.yml/badge.svg)](https://github.com/reportportal/agent-Python-RobotFramework/actions/workflows/tests.yml)
[![codecov.io](https://codecov.io/gh/reportportal/agent-Python-RobotFramework/branch/master/graph/badge.svg)](https://codecov.io/gh/reportportal/agent-Python-RobotFramework)
[![Join Slack chat!](https://slack.epmrpp.reportportal.io/badge.svg)](https://slack.epmrpp.reportportal.io/)
[![stackoverflow](https://img.shields.io/badge/reportportal-stackoverflow-orange.svg?style=flat)](http://stackoverflow.com/questions/tagged/reportportal)
[![Build with Love](https://img.shields.io/badge/build%20with-❤%EF%B8%8F%E2%80%8D-lightgrey.svg)](http://reportportal.io?style=flat)

Listener for RobotFramework to report results to Report Portal

* [Installation](https://github.com/reportportal/agent-Python-RobotFramework#installation)
* [Usage](https://github.com/reportportal/agent-Python-RobotFramework#usage)
* [Send attachement (screenshots)](https://github.com/reportportal/agent-Python-RobotFramework#send-attachement-screenshots)
* [Integration with GA](https://github.com/reportportal/agent-Python-RobotFramework#integration-with-ga)
* [Copyright Notice](https://github.com/reportportal/agent-Python-RobotFramework#copyright-notice)

## Installation

First you need to install RobotFramework:

    pip install robotframework

The latest stable version of library is available on PyPI:

    pip install robotframework-reportportal-updated

[reportportal-client](https://github.com/reportportal/client-Python)
and [six](https://pypi.org/project/six/) will be installed as dependencies

**IMPORTANT!**
The latest version **does not** support Report Portal versions below 5.0.0.

Specify the last one release of the client version 3 to install or update the
client for other versions of Report Portal below 5.0.0:

```
pip install robotframework-reportportal~=3.0
```

## Contribution

All the fixes for the agent that supports Report Portal versions below 5.0.0
should go into the v3 branch.
The master branch will store the code base for the agent for Report Portal
versions 5 and above.

## Usage

### Properties

For reporting results to Report Portal you need to pass some variables
to `robot` run:

REQUIRED:

```
--listener robotframework_reportportal_updated.listener
--variable RP_API_KEY:"your_user_api_key"
--variable RP_ENDPOINT:"your_reportportal_url"
--variable RP_LAUNCH:"launch_name"
--variable RP_PROJECT:"reportportal_project_name"
```

NOT REQUIRED:

```
--variable RP_LAUNCH_UUID:"id_of_existing_rp_launch"
    - ID of existing Report Portal launch
--variable RP_LAUNCH_DOC:"some_documentation_for_launch"
    - Description for the launch
--variable RP_LAUNCH_ATTRIBUTES:"RF tag_name:tag_value"
    - Space-separated list of tags/attributes for the launch
--variable RP_TEST_ATTRIBUTES:"key1:value1 key1:value2 tag key2:value3"
    - Space-separated list of tags/attributes for the tests
--variable RP_LOG_BATCH_SIZE:"10"
    - Default value is "20", affects size of async batch log requests
--variable RP_LOG_BATCH_PAYLOAD_SIZE:"10240000"
    - Default value is "65000000", maximum payload size of async batch log
      requests
--variable RP_RERUN:"True"
    - Default is "False". Enables rerun mode for the last launch.
--variable RP_RERUN_OF:"xxxxx-xxxx-xxxx-lauch-uuid"
    - Default is "None". Enables rerun mode for the launch with the specified
      UUID. Should be used in combination with the RP_RERUN option.
--variable RP_SKIPPED_ISSUE:"True"
    - Default value is "True", marks skipped test items with 'To Investigate'
--variable RP_ATTACH_LOG:"True"
    - Default value is "False", attaches Robot Framework HTML log file to
      the launch.
--variable RP_ATTACH_REPORT:"True"
    - Default value is "False", attaches Robot Framework HTML report file to
      the launch.
--variable RP_ATTACH_XUNIT:"True"
    - Default value is "False", attaches Robot Framework XUnit result file to
      the launch.
--variable RP_VERIFY_SSL:"True"
    - Default value is "True", disables SSL verification for HTTP requests.
      Also, you can specify a full path to your certificate as the value.
```

### Logging

Custom logger which supports attachments can be used in Python keywords.
Usage of this logger is similar to the standard robot.api.logger with addition
of an extra kwarg "attachment":

```python
import subprocess
from robotframework_reportportal import logger


def log_free_memory():
    logger.debug("Collecting free memory statistics!")
    logger.debug(
        "Memory consumption report",
        attachment={
            "name": "free_memory.txt",
            "data": subprocess.check_output("free -h".split()),
            "mime": "text/plain",
        },
    )
```

## Test case ID

It's possible to tag tests the following way `test_case_id:12345` using default
Robot Framework tagging functionality. ID specified after `:` will be sent to
Report Portal.

## Send attachment (screenshots)

https://github.com/reportportal/client-Python#send-attachement-screenshots

## Integration with GA

Report Portal is now supporting integrations with more than 15 test frameworks
simultaneously. In order to define the most popular agents and plan the team
workload accordingly, we are using Google analytics.

Report Portal collects information about agent name and its version only. This
information is sent to Google analytics on the launch start. Please help us to
make our work effective.
If you still want to switch Off Google analytics, please change env variable
the way below.

```bash
export AGENT_NO_ANALYTICS=1
```

## Copyright Notice

Licensed under the [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)
license (see the LICENSE.txt file).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/reportportal/agent-Python-RobotFramework",
    "name": "robotframework-reportportal-updated",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "testing,reporting,robot framework,reportportal,agent",
    "author": "Report Portal Team",
    "author_email": "support@reportportal.io",
    "download_url": "https://files.pythonhosted.org/packages/3e/76/d32631f26c10975414f99b32ac9c06b750cd28191871efb7173d2296180a/robotframework-reportportal_updated-1.1.10.tar.gz",
    "platform": null,
    "description": "# ReportPortal RobotFramework agent\n\n[![PyPI](https://img.shields.io/pypi/v/robotframework-reportportal.svg?maxAge=259200)](https://pypi.python.org/pypi/robotframework-reportportal)\n[![Python versions](https://img.shields.io/pypi/pyversions/robotframework-reportportal.svg)](https://pypi.org/project/robotframework-reportportal)\n[![Build Status](https://github.com/reportportal/agent-Python-RobotFramework/actions/workflows/tests.yml/badge.svg)](https://github.com/reportportal/agent-Python-RobotFramework/actions/workflows/tests.yml)\n[![codecov.io](https://codecov.io/gh/reportportal/agent-Python-RobotFramework/branch/master/graph/badge.svg)](https://codecov.io/gh/reportportal/agent-Python-RobotFramework)\n[![Join Slack chat!](https://slack.epmrpp.reportportal.io/badge.svg)](https://slack.epmrpp.reportportal.io/)\n[![stackoverflow](https://img.shields.io/badge/reportportal-stackoverflow-orange.svg?style=flat)](http://stackoverflow.com/questions/tagged/reportportal)\n[![Build with Love](https://img.shields.io/badge/build%20with-\u2764%EF%B8%8F%E2%80%8D-lightgrey.svg)](http://reportportal.io?style=flat)\n\nListener for RobotFramework to report results to Report Portal\n\n* [Installation](https://github.com/reportportal/agent-Python-RobotFramework#installation)\n* [Usage](https://github.com/reportportal/agent-Python-RobotFramework#usage)\n* [Send attachement (screenshots)](https://github.com/reportportal/agent-Python-RobotFramework#send-attachement-screenshots)\n* [Integration with GA](https://github.com/reportportal/agent-Python-RobotFramework#integration-with-ga)\n* [Copyright Notice](https://github.com/reportportal/agent-Python-RobotFramework#copyright-notice)\n\n## Installation\n\nFirst you need to install RobotFramework:\n\n    pip install robotframework\n\nThe latest stable version of library is available on PyPI:\n\n    pip install robotframework-reportportal-updated\n\n[reportportal-client](https://github.com/reportportal/client-Python)\nand [six](https://pypi.org/project/six/) will be installed as dependencies\n\n**IMPORTANT!**\nThe latest version **does not** support Report Portal versions below 5.0.0.\n\nSpecify the last one release of the client version 3 to install or update the\nclient for other versions of Report Portal below 5.0.0:\n\n```\npip install robotframework-reportportal~=3.0\n```\n\n## Contribution\n\nAll the fixes for the agent that supports Report Portal versions below 5.0.0\nshould go into the v3 branch.\nThe master branch will store the code base for the agent for Report Portal\nversions 5 and above.\n\n## Usage\n\n### Properties\n\nFor reporting results to Report Portal you need to pass some variables\nto `robot` run:\n\nREQUIRED:\n\n```\n--listener robotframework_reportportal_updated.listener\n--variable RP_API_KEY:\"your_user_api_key\"\n--variable RP_ENDPOINT:\"your_reportportal_url\"\n--variable RP_LAUNCH:\"launch_name\"\n--variable RP_PROJECT:\"reportportal_project_name\"\n```\n\nNOT REQUIRED:\n\n```\n--variable RP_LAUNCH_UUID:\"id_of_existing_rp_launch\"\n    - ID of existing Report Portal launch\n--variable RP_LAUNCH_DOC:\"some_documentation_for_launch\"\n    - Description for the launch\n--variable RP_LAUNCH_ATTRIBUTES:\"RF tag_name:tag_value\"\n    - Space-separated list of tags/attributes for the launch\n--variable RP_TEST_ATTRIBUTES:\"key1:value1 key1:value2 tag key2:value3\"\n    - Space-separated list of tags/attributes for the tests\n--variable RP_LOG_BATCH_SIZE:\"10\"\n    - Default value is \"20\", affects size of async batch log requests\n--variable RP_LOG_BATCH_PAYLOAD_SIZE:\"10240000\"\n    - Default value is \"65000000\", maximum payload size of async batch log\n      requests\n--variable RP_RERUN:\"True\"\n    - Default is \"False\". Enables rerun mode for the last launch.\n--variable RP_RERUN_OF:\"xxxxx-xxxx-xxxx-lauch-uuid\"\n    - Default is \"None\". Enables rerun mode for the launch with the specified\n      UUID. Should be used in combination with the RP_RERUN option.\n--variable RP_SKIPPED_ISSUE:\"True\"\n    - Default value is \"True\", marks skipped test items with 'To Investigate'\n--variable RP_ATTACH_LOG:\"True\"\n    - Default value is \"False\", attaches Robot Framework HTML log file to\n      the launch.\n--variable RP_ATTACH_REPORT:\"True\"\n    - Default value is \"False\", attaches Robot Framework HTML report file to\n      the launch.\n--variable RP_ATTACH_XUNIT:\"True\"\n    - Default value is \"False\", attaches Robot Framework XUnit result file to\n      the launch.\n--variable RP_VERIFY_SSL:\"True\"\n    - Default value is \"True\", disables SSL verification for HTTP requests.\n      Also, you can specify a full path to your certificate as the value.\n```\n\n### Logging\n\nCustom logger which supports attachments can be used in Python keywords.\nUsage of this logger is similar to the standard robot.api.logger with addition\nof an extra kwarg \"attachment\":\n\n```python\nimport subprocess\nfrom robotframework_reportportal import logger\n\n\ndef log_free_memory():\n    logger.debug(\"Collecting free memory statistics!\")\n    logger.debug(\n        \"Memory consumption report\",\n        attachment={\n            \"name\": \"free_memory.txt\",\n            \"data\": subprocess.check_output(\"free -h\".split()),\n            \"mime\": \"text/plain\",\n        },\n    )\n```\n\n## Test case ID\n\nIt's possible to tag tests the following way `test_case_id:12345` using default\nRobot Framework tagging functionality. ID specified after `:` will be sent to\nReport Portal.\n\n## Send attachment (screenshots)\n\nhttps://github.com/reportportal/client-Python#send-attachement-screenshots\n\n## Integration with GA\n\nReport Portal is now supporting integrations with more than 15 test frameworks\nsimultaneously. In order to define the most popular agents and plan the team\nworkload accordingly, we are using Google analytics.\n\nReport Portal collects information about agent name and its version only. This\ninformation is sent to Google analytics on the launch start. Please help us to\nmake our work effective.\nIf you still want to switch Off Google analytics, please change env variable\nthe way below.\n\n```bash\nexport AGENT_NO_ANALYTICS=1\n```\n\n## Copyright Notice\n\nLicensed under the [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)\nlicense (see the LICENSE.txt file).\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Agent for reporting RobotFramework test results to Report Portal",
    "version": "1.1.10",
    "project_urls": {
        "Download": "https://github.com/reportportal/agent-Python-RobotFramework/tarball/1.1.10",
        "Homepage": "https://github.com/reportportal/agent-Python-RobotFramework"
    },
    "split_keywords": [
        "testing",
        "reporting",
        "robot framework",
        "reportportal",
        "agent"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d420fd6f04340a98907f66223d480d43cf5fe4883e1ac09349e5214a46818d0a",
                "md5": "1304ab33be8474835a06612d62f02e0a",
                "sha256": "d545c3d749e1e78fa2f2e8fd33837a857aa5dc8a839775c0090e6257045bfbaa"
            },
            "downloads": -1,
            "filename": "robotframework_reportportal_updated-1.1.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1304ab33be8474835a06612d62f02e0a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 32933,
            "upload_time": "2023-07-21T11:27:12",
            "upload_time_iso_8601": "2023-07-21T11:27:12.387102Z",
            "url": "https://files.pythonhosted.org/packages/d4/20/fd6f04340a98907f66223d480d43cf5fe4883e1ac09349e5214a46818d0a/robotframework_reportportal_updated-1.1.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3e76d32631f26c10975414f99b32ac9c06b750cd28191871efb7173d2296180a",
                "md5": "abd673acccddba7054da01fbd67cba20",
                "sha256": "44bb87d67e20428eed9f298bd3fa0bddd92b83da3915d9b6d087a28762f29475"
            },
            "downloads": -1,
            "filename": "robotframework-reportportal_updated-1.1.10.tar.gz",
            "has_sig": false,
            "md5_digest": "abd673acccddba7054da01fbd67cba20",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 25700,
            "upload_time": "2023-07-21T11:27:13",
            "upload_time_iso_8601": "2023-07-21T11:27:13.952032Z",
            "url": "https://files.pythonhosted.org/packages/3e/76/d32631f26c10975414f99b32ac9c06b750cd28191871efb7173d2296180a/robotframework-reportportal_updated-1.1.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-21 11:27:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "reportportal",
    "github_project": "agent-Python-RobotFramework",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "tox": true,
    "lcname": "robotframework-reportportal-updated"
}
        
Elapsed time: 0.09237s