当前位置:网站首页>在CANoe中通过Panel面板控制Test Module 运行(高级)
在CANoe中通过Panel面板控制Test Module 运行(高级)
2022-07-06 09:03:00 【蚂蚁小兵】
相关文章
前言
- 在(初级)文章中,初步理解了用系统变量控制TestModule的运行,已经用panel控制系统变量,进而控制Test Module运行,那么问题来了
- 在CANoe中,一个
Test Module
运行完了,就停止了,我们怎么可以连续运行N
个Test Module
?
这就是(高级)中需要解决的问题,解决这个问题,让你的自动化测试上一个小台阶。- 演示软硬件环境 Win10 x64 ; CANoe 11 SP2 x64
多个TestMoudle自动运行的架构
- 1️⃣ 如下图,这里创建了几个常见的测试 类型,分成了几个
Test Module
,接下来我们要做的就是一键测完
所有被选中的Test Module
2️⃣ 这里我们需要创建几个系统变量,和TestModule一一对应。
每个TestModule需要用到3个变量:
xx_test ; xx_test_status ;xx_call
xx_test
: 用于绑定panel
面板控件,继续往下看xx_test_status
: 用于绑定test module state
xx_call
:用于绑定test module
触发条件
- 2️⃣ 下面以
flash test module
为例, 把上面创建的系统变量和TestModule
绑定下,也正是xx_test_status
和xx_call
变量的使用地方
- 3️⃣ 下面以
flash test module
为例, 仿照《初级》
文章中的方法把系统变量和panel
控件一一绑定
- 4️⃣ 有了
panel
,我们还要处理下panel
的响应逻辑,如下图,我们在这个tse
中新建一个NetWork Module Node
,在can
文件中完善响应代码
- 5️⃣ 这样就打工告成了,如下图,我们选择了几个TestModule ,他按照顺序全部执行完毕了。
总结
️ 这种架构下,只需要根据自己项目的实际需要,可以很方便的进行扩展,而且使用起来也非常简单方便,
️ 也可通过关注下方的公众号免费领取上面的源码
,CANoe软件
,ISO标准
,学习资料
等海量资源
- 有手机的小伙伴可以加下交流群,在车载诊断领域的一个小小圈子,群里有
网盘资料
,源码
,可能有你需要的呢,平时可以交流技术,聊聊工作机会啥的。- 如果这篇博客对你有帮助,请 “点赞” “评论”“收藏”一键三连 哦!码字不易,感谢小伙伴的支持。
边栏推荐
- A wave of open source notebooks is coming
- Global and Chinese market of linear regulators 2022-2028: Research Report on technology, participants, trends, market size and share
- Webrtc blog reference:
- Yarn organizational structure
- 英雄联盟轮播图手动轮播
- The order of include header files and the difference between double quotation marks "and angle brackets < >
- MapReduce instance (IV): natural sorting
- Global and Chinese market of AVR series microcontrollers 2022-2028: Research Report on technology, participants, trends, market size and share
- 六月刷题02——字符串
- Summary of May training - from a Guang
猜你喜欢
Redis distributed lock implementation redison 15 questions
Kratos ares microservice framework (II)
Mapreduce实例(四):自然排序
Elk project monitoring platform deployment + deployment of detailed use (II)
Une grande vague d'attaques à la source ouverte
五月集训总结——来自阿光
Take you back to spark ecosystem!
Nc29 search in two-dimensional array
leetcode-14. Longest common prefix JS longitudinal scanning method
一大波開源小抄來襲
随机推荐
MapReduce instance (x): chainmapreduce
Global and Chinese market for annunciator panels 2022-2028: Research Report on technology, participants, trends, market size and share
May brush question 27 - figure
Leetcode:608 tree node
Workflow - activiti7 environment setup
MapReduce instance (IV): natural sorting
068. Find the insertion position -- binary search
018. Valid palindromes
基于B/S的影视创作论坛的设计与实现(附:源码 论文 sql文件 项目部署教程)
Regular expressions are actually very simple
Global and Chinese markets for small seed seeders 2022-2028: Research Report on technology, participants, trends, market size and share
嵌入式开发中的防御性C语言编程
MapReduce instance (VIII): Map end join
基于B/S的网上零食销售系统的设计与实现(附:源码 论文 Sql文件)
Persistence practice of redis (Linux version)
Function description of shell command parser
Global and Chinese market of AVR series microcontrollers 2022-2028: Research Report on technology, participants, trends, market size and share
Nc17 longest palindrome substring
DCDC power ripple test
MapReduce instance (VII): single table join