All Projects → reportportal → agent-Python-RobotFramework

reportportal / agent-Python-RobotFramework

Licence: Apache-2.0 License
No description or website provided.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to agent-Python-RobotFramework

robotframework-vim
Some vim scripts for use with the Robot framework.
Stars: ✭ 89 (+102.27%)
Mutual labels:  robot-framework
robotframework-anywherelibrary
AnywhereLibrary is a cross platform(desktop browser,Android,iOS) testing library for Robot Framework that leverages the [Selenium 2(WebDriver)] libraries internally to control a web browser and [appium] as mobile test automation framework for use with native and hybrid app.
Stars: ✭ 62 (+40.91%)
Mutual labels:  robot-framework
robotframework-difflibrary
Robot Framework keyword library that will provide Diff capabilities
Stars: ✭ 23 (-47.73%)
Mutual labels:  robot-framework
robotframework-seleniumtestability
Extension for SeleniumLibrary that provides manual and automatic waiting for asyncronous events like fetch, xhr, etc.
Stars: ✭ 34 (-22.73%)
Mutual labels:  robot-framework
serenity-reportportal-integration
Serenity TAF integration with Report Portal
Stars: ✭ 21 (-52.27%)
Mutual labels:  reportportal
TinyCog
Small Robot, Toy Robot platform
Stars: ✭ 29 (-34.09%)
Mutual labels:  robot-framework
kubernetes
Kubernetes/Helm configs for ReportPortal
Stars: ✭ 66 (+50%)
Mutual labels:  reportportal
2019-UGRP-DPoom
2019 DGIST DPoom project under UGRP : SBC and RGB-D camera based full autonomous driving system for mobile robot with indoor SLAM
Stars: ✭ 35 (-20.45%)
Mutual labels:  robot-framework
client-java
Asynchronous client for Java-based agents
Stars: ✭ 17 (-61.36%)
Mutual labels:  reportportal
robotframework-preso
Introduction to Robot Framework - TriTAUG Presentation
Stars: ✭ 16 (-63.64%)
Mutual labels:  robot-framework
RobotEyes
Image comparison for Robot Framework
Stars: ✭ 62 (+40.91%)
Mutual labels:  robot-framework
service-api
Report portal. Main API Service
Stars: ✭ 35 (-20.45%)
Mutual labels:  reportportal
wdio-reportportal-reporter
A WebdriverIO plugin. Report results to Report Portal.
Stars: ✭ 22 (-50%)
Mutual labels:  reportportal
agent-java-cucumber
Cucumber JVM version [1.0.0; 2.0.0) adapter
Stars: ✭ 21 (-52.27%)
Mutual labels:  reportportal
service-ui
UI service for Report Portal
Stars: ✭ 47 (+6.82%)
Mutual labels:  reportportal
robotframework-pageobjectlibrary
Lightweight keyword library for implementing the PageObject pattern in Robot Framework
Stars: ✭ 76 (+72.73%)
Mutual labels:  robot-framework
Python-Study
Python, robot framework, docker 笔记和练习
Stars: ✭ 24 (-45.45%)
Mutual labels:  robot-framework
robot-framework-docker
Docker image to run robot framework acceptance testing in a docker container
Stars: ✭ 24 (-45.45%)
Mutual labels:  robot-framework
robotframework-imagehorizonlibrary
Cross-platform Robot Framework library for GUI automation based on image recognition
Stars: ✭ 67 (+52.27%)
Mutual labels:  robot-framework
rfswarm
Robot Framework Swarm
Stars: ✭ 68 (+54.55%)
Mutual labels:  robot-framework

ReportPortal RobotFramework agent

PyPI Python versions Build Status codecov.io

Listener for RobotFramework to report results to ReportPortal

Installation

First you need to install RobotFramework:

pip install robotframework

The latest stable version of library is available on PyPI:

pip install robotframework-reportportal

reportportal-client and 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

For reporting results to ReportPortal you need to pass some variables to pybot run:

REQUIRED:

--listener robotframework_reportportal.listener
--variable RP_UUID:"your_user_uuid"
--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_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.

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":

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 ReportPortal.

Send attachement (screenshots)

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

Integration with GA

ReportPortal 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.

ReportPortal 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.

export AGENT_NO_ANALYTICS=1

Copyright Notice

Licensed under the Apache 2.0 license (see the LICENSE.txt file).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].