A custom Robot Framework library for automating CANoe using Python.
This library provides reusable keywords to control CANoe, interact with CAN signals, perform diagnostics, manage replay blocks, handle environment/system variables, and execute test modules.
- CANoe automation using Robot Framework
- Signal read/write support
- Diagnostic request handling (UDS)
- Replay block control
- Environment & System variable handling
- Test module execution
pip install canoe-robot-lib- Python 3.7+
- Robot Framework
- py_canoe library
- CANoe installed (Vector tool)
- Valid CANoe license
Import the library in your Robot Framework test file:
*** Settings ***
Library canoe_robot_lib.keywords.CanoeLibrary*** Variables ***
${cfg} path_to_cfg_file.cfg
*** Test Cases ***
Basic CANoe Test
Start CANoe ${cfg}
Set Signal CAN 1 Msg Signal 1
${val}= Get Signal CAN 1 Msg Signal
Should Be Equal As Numbers ${val} 1
Stop CANoeDetailed keyword descriptions are available in:
➡️ KEYWORDS.md
- CANoe configuration (.cfg) must be valid before execution
- User should have knowledge of CANoe setup (signals, DBC, test modules)
- Boolean inputs (True/False) are used for control keywords like replay
- Some features depend on CANoe configuration setup
Naresh Kothari System Test Engineer – Automotive Domain
- Wait For Signal keyword
- Logging block support
- BLF replay validation
- Advanced reporting integration
This project is licensed under the MIT License.