{"id":15018773,"url":"https://github.com/reportportal/agent-python-robotframework","last_synced_at":"2025-05-16T15:06:13.127Z","repository":{"id":38815439,"uuid":"68202375","full_name":"reportportal/agent-Python-RobotFramework","owner":"reportportal","description":"Robot Framework integration for Report Portal","archived":false,"fork":false,"pushed_at":"2025-04-03T14:08:35.000Z","size":680,"stargazers_count":60,"open_issues_count":3,"forks_count":34,"subscribers_count":32,"default_branch":"develop","last_synced_at":"2025-04-12T14:19:31.493Z","etag":null,"topics":["python","reportportal","robot","robot-framework","test-automation","testing","testing-framework","testing-library","testing-tools"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reportportal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-09-14T11:58:53.000Z","updated_at":"2025-04-03T14:08:39.000Z","dependencies_parsed_at":"2023-10-16T19:24:01.120Z","dependency_job_id":"1670cc71-4855-47c7-b2c1-f8f2087c2e02","html_url":"https://github.com/reportportal/agent-Python-RobotFramework","commit_stats":{"total_commits":341,"total_committers":22,"mean_commits":15.5,"dds":0.4369501466275659,"last_synced_commit":"3c8785c14944cc2df43672585ec82be691f5fdbe"},"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reportportal%2Fagent-Python-RobotFramework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reportportal%2Fagent-Python-RobotFramework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reportportal%2Fagent-Python-RobotFramework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reportportal%2Fagent-Python-RobotFramework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reportportal","download_url":"https://codeload.github.com/reportportal/agent-Python-RobotFramework/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248578875,"owners_count":21127714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","reportportal","robot","robot-framework","test-automation","testing","testing-framework","testing-library","testing-tools"],"created_at":"2024-09-24T19:52:26.398Z","updated_at":"2025-04-12T14:19:34.754Z","avatar_url":"https://github.com/reportportal.png","language":"Python","readme":"# ReportPortal integration for RobotFramework\n\nA RobotFramework Listener to report test results to ReportPortal\n\n\u003e **DISCLAIMER**: We use Google Analytics for sending anonymous usage information such as agent's and client's names,\n\u003e and their versions after a successful launch start. This information might help us to improve both ReportPortal\n\u003e backend and client sides. It is used by the ReportPortal team only and is not supposed for sharing with 3rd parties.\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/develop/graph/badge.svg)](https://codecov.io/gh/reportportal/agent-Python-RobotFramework)\n[![Join Slack chat!](https://img.shields.io/badge/slack-join-brightgreen.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-❤%EF%B8%8F%E2%80%8D-lightgrey.svg)](http://reportportal.io?style=flat)\n\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\n\n## Usage\n\n### Properties\n\nFor reporting results to ReportPortal you need to pass some variables\nto `robot` run:\n\nREQUIRED:\n\n```\n--listener robotframework_reportportal.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_CLIENT_TYPE:\"SYNC\"\n    - Type of the under-the-hood ReportPortal client implementation. Possible values: [SYNC, ASYNC_THREAD, ASYNC_BATCHED].\n--variable RP_LAUNCH_UUID:\"id_of_existing_rp_launch\"\n    - ID of existing ReportPortal 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_LAUNCH_UUID_PRINT:\"True\"\n    - Default value is \"False\", enables printing Launch UUID on test run start.\n--variable RP_LAUNCH_UUID_PRINT_OUTPUT:\"stderr\"\n    - Default value is \"stdout\", Launch UUID print output. Possible values: [stderr, stdout].\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_CONNECT_TIMEOUT:\"20\"\n    - Default value is \"10.0\", connection timeout to ReportPortal server.\n--variable RP_READ_TIMEOUT:\"20\"\n    - Default value is \"10.0\", response read timeout for ReportPortal connection.\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--variable RP_REMOVE_KEYWORDS:\"True\"\n    - Default value is \"False\", remove  keywords from reporting, passed with '--remove-keywords' Robot's argument.\n--variable RP_FLATTEN_KEYWORDS:\"True\"\n    - Default value is \"False\", flatten keywords on reporting, passed with '--flatten-keywords' Robot's argument.\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\nReportPortal.\n\n## Send attachment (screenshots)\n\nhttps://github.com/reportportal/client-Python#send-attachement-screenshots\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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freportportal%2Fagent-python-robotframework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freportportal%2Fagent-python-robotframework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freportportal%2Fagent-python-robotframework/lists"}