{"id":21883,"library":"robotframework-reportportal","title":"RobotFramework ReportPortal Integration","description":"Agent for reporting RobotFramework test results to ReportPortal. Current version 5.7.0. Released regularly, aligned with the ReportPortal client library updates.","status":"active","version":"5.7.0","language":"python","source_language":"en","source_url":"https://github.com/reportportal/agent-Python-RobotFramework","tags":["robotframework","reportportal","testing","test-reporting"],"install":[{"cmd":"pip install robotframework-reportportal","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core client library for ReportPortal API communication","package":"reportportal-client","optional":false},{"reason":"RobotFramework test framework (optional as of 5.7.0 to avoid supply chain attack)","package":"robotframework","optional":true}],"imports":[{"note":"Incorrect module path; the listener class is imported directly from the package.","wrong":"from robotframework_reportportal.listener import ReportPortalListener","symbol":"ReportPortalListener","correct":"from robotframework_reportportal import ReportPortalListener"},{"note":"No common wrong import.","symbol":"ReportPortalAgent","correct":"from robotframework_reportportal import ReportPortalAgent"}],"quickstart":{"code":"import os\nfrom robotframework_reportportal import ReportPortalListener\n\n# Configure via environment variables\nos.environ['RP_ENDPOINT'] = 'https://your-instance.reportportal.io'\nos.environ['RP_API_KEY'] = 'your-api-key'\nos.environ['RP_PROJECT'] = 'your-project'\nos.environ['RP_LAUNCH'] = 'RobotFramework Launch'\nos.environ['RP_LAUNCH_ATTRIBUTES'] = 'platform:linux version:1.0'\n\n# In RobotFramework output.xml, the listener is specified in --listener option\n# Example command:\n# robot --listener robotframework_reportportal.ReportPortalListener tests/\n\nprint('Listener configured. Run: robot --listener robotframework_reportportal.ReportPortalListener tests/')","lang":"python","description":"Configure and use the ReportPortal listener with environment variables."},"warnings":[{"fix":"Use Python 3.9 or later.","message":"Python 3.8 support removed in version 5.7.0. Upgrade to Python 3.9+.","severity":"breaking","affected_versions":">=5.7.0"},{"fix":"Add robotframework to your project dependencies explicitly: pip install robotframework.","message":"robotframework dependency removed in 5.7.0 to avoid supply chain attack. Your project must have robotframework installed separately.","severity":"breaking","affected_versions":">=5.7.0"},{"fix":"Replace RP_UUID with RP_API_KEY environment variable.","message":"RP_UUID parameter is no longer supported since 5.6.5. Use RP_API_KEY instead.","severity":"deprecated","affected_versions":">=5.6.5"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Ensure you have installed the latest version: pip install robotframework-reportportal. Then use: from robotframework_reportportal import ReportPortalListener","cause":"Using wrong import path or outdated package version.","error":"ImportError: cannot import name 'ReportPortalListener' from 'robotframework_reportportal'"},{"fix":"Install robotframework explicitly: pip install robotframework","cause":"robotframework is no longer a dependency starting from 5.7.0.","error":"ModuleNotFoundError: No module named 'robotframework'"},{"fix":"Use RP_API_KEY instead. Example: export RP_API_KEY='your-api-key'","cause":"RP_UUID support was removed in 5.6.5.","error":"ConfigurationError: 'RP_UUID' is not a valid configuration parameter"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}