再说一次,很久没人问过我了,但我想我可以做点贡献。在
我们目前正在构建一个完整的测试解决方案,旨在测试用于验证和验证的嵌入式设备。我们的旗舰实现基于Google的OpenHTF:https://github.com/google/openhtf
以下是hello world示例:import openhtf as htf
from openhtf.output.callbacks import json_factory
from openhtf.plugs import user_input
@htf.measures(htf.Measurement('hello_world_measurement'))
def hello_world(test):
"""A hello world test phase."""
test.logger.info('Hello World!')
test.measurements.hello_world_measurement = 'Hello Again!'
if __name__ == '__main__':
test = htf.Test(hello_world)
test.add_output_callbacks(
json_factory.OutputToJSON('./{dut_id}.hello_world.json', indent=2))
test.execute(test_start=user_input.prompt_for_test_start())
您可以使用不同的模块扩展OpenHTF:“插头”,即与外部设备或被测设备的接口。一、 e.一个COM端口插头。在
“回调”,这是自定义导出接口。在
OpenHTF有它自己的GUI,它无疑为产品测试测试台或设计验证/验证测试的开发提供了一个巨大的起点,这就是这个问题的例子。在
我很乐意帮助任何需要指导的人。在