Run pytest with
pytest-twister-harness plugin
Execute following actions in any order as many as needed:
1. Flash device(s)
2. Send something to device(s)
3. Parse and verify device(s) outputs
4. Perform any additional actions available from the Python level (like run MCUmgr, run external program/server/tool)