chaitu-ycr / py_canoe

Python 🐍 Package for controlling Vector CANoe 🛶 Tool
https://chaitu-ycr.github.io/py_canoe/
MIT License
60 stars 36 forks source link

Execute Test Environments and its Test Modules in the CANoe configuration #6

Closed Rajadeepanm closed 1 year ago

Rajadeepanm commented 1 year ago

Updated the script to support Test Environment and Test Modules Execution in the CANoe configuration:

Example script which triggers all test modules in a test environment and wait till the completion of the each test module one by one:

Start the Measurement

status = self.canoe_inst.start_measurement() if status == False: return False

Execute all the test sequences

test_Envs = self.canoe_inst.get_test_environments() for test_env in test_Envs: status = self.canoe_inst.start_all_test_modules(test_env, True) if status == False: return False

chaitu-ycr commented 1 year ago

Started reviewing code. I will merge once reviewed

chaitu-ycr commented 1 year ago

this logic is implemented in latest release. https://github.com/chaitu-ycr/py_canoe/releases/tag/v2.1.0

https://chaitu-ycr.github.io/py_canoe/999_reference/#src.py_canoe.CANoe.execute_test_module https://chaitu-ycr.github.io/py_canoe/999_reference/#src.py_canoe.CANoe.execute_all_test_modules_in_test_env https://chaitu-ycr.github.io/py_canoe/999_reference/#src.py_canoe.CANoe.execute_all_test_environments