API 参考

ecu.test 的程序目录在 Help/api 中包含附加文档和示例。目前包含以下内容:

信息

HTML 文档 index.html 作为入口页,可帮助用户在现有文档中便捷导航。

远程控制并自动化 ecu.test

  • COM API: ecu.test COM 自动化接口命令概览(含两个示例)

  • REST API: ecu.test REST API 命令的交互式概览。

另请参见 COM API 和 REST API。

在 test case 和 Trace analysis 中获取静态与动态信息

  • Internal API: 可通过 api. 访问的 ecu.test Internal API 命令概览

  • Trace Analysis API: 用于在自定义 Python Trace step 模板中控制 ecu.test Trace analysis 的可用命令概览

使用 ecu.test 中的专用对象

在自定义报告生成器中提取信息

  • Report API: 可在自定义报告生成器中使用的命令概览

为 ecu.test 开发自定义扩展

ecu.test Interface Python Library

ecu.test Interface Python Library 提供用于开发自定义 ecu.test 扩展的公共 Python 接口。Python wheel ecutest-interface 位于 <ecu.test installation directory>/res 中。

在 Python 开发环境中使用 pip install <path to wheel> 安装该 wheel。这样在开发自定义扩展时即可获得 IDE 自动补全和类型检查。

已安装的 wheel 也可帮助 AI 生成扩展代码。请明确告知 AI 使用 ecutest-interface 作为其信息来源。

面向 AI 的示例提示词:

Create a parameter set generator for ecu.test.
Use the ecutest-interface library for this.
For instructions, read the README files, docstrings, and type information included
in the library.
The parameter set generator shall ...

包含的接口