作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• 开发研究与工程应用 • 上一篇    下一篇

AUTOSAR符合性测试适配器的实现方法

周 毅1,张晓先2,陈丽蓉1   

  1. (1. 电子科技大学计算机科学与工程学院,成都 611731;2. 普华基础软件股份有限公司,上海 200233)
  • 收稿日期:2012-11-05 出版日期:2014-01-15 发布日期:2014-01-13
  • 作者简介:周 毅(1988-),男,硕士研究生,主研方向:嵌入式系统,汽车电子;张晓先,高级工程师;陈丽蓉,讲师

Implementation Method of Adapter in AUTOSAR Conformance Test

ZHOU Yi   1, ZHANG Xiao-xian   2, CHEN Li-rong   1   

  1. (1. School of Computer Science and Engineering, University of Electronic Science and Technology of China, Chengdu 611731, China; 2. i-soft Infrastructure Software Co., Ltd., Shanghai 200233, China)
  • Received:2012-11-05 Online:2014-01-15 Published:2014-01-13

摘要: 系统适配器是AUTOSAR符合性测试框架的重要组成部分,针对测试机和被测系统运行环境不同的特点,通过将过程调用动作转化为消息发送的方式,提出一种新的系统适配器设计方法。该方法将系统适配器分为SUT适配器和目标适配器,两者运行于不同平台上,按照一种模块无关的报文格式通信。以LinSM基础软件为被测目标,采用AUTOSAR提供的标准测试脚本,依据该方法实现系统适配器。实践结果表明,通过该方法运行LinSM的30个用例均与预期结果符合,证明该方法能成功执行异构环境下的符合性测试。

关键词: AUTOSAR标准, 符合性测试, TTCN-3语言, 系统适配器, 报文格式, 可移植性

Abstract: System adapter is a key component of AUTOSAR conformance test framework. In order to solve the problem that tester and system under test run in different environment, a new method of designing system adapter is proposed by transferring the invoking action to a message sending action. By this method, the system adapter is divided into SUT adapter and target adapter which run on different platform and interact with each other abiding to a module independent message format. Selecting LinSM as test target, using standard test scripts provided by AUTOSAR, the system adapter is implemented. The tests indicate that all 30 test cases reach the expected conclusion by this method, which proves that it is feasible to execute the conformance test under heterogeneous environment by this method.

Key words: AUTOSAR standard, conformance test, TTCN-3 language, system adapter, message format, portability

中图分类号: