期
No.5
2019
年
3
月
Mar.
2019
收稿日期:
2018-05-06
稿件编号:
201805027
基金项目:
中国电科第十研究所发展基金
(
SSJ-1784
)
作者简介:
周阳明
(
1978
—)
,
男,
四川遂宁人,
工程师。研究方向:
自动测试系统。
近
年
来
,
随
着
工
业
4.0
的
概
念
推
广
和
中
国
制
造
2025
战略的逐步实施,
智能制造作为五大重点工程
之一,
是各单位企业未来几年改革发展的重要方向,
智能调试测试是智能制造的重要组成部分。在电子
产品的调试过程中,
使用自动测试系统能提高生产
效率。在多品种、
小批量的生产模式下,
为了提高自
动测试系统软件的开发速度、
降低开发难度、
减少重
复开发,
需要设计通用化和平台化的自动测试系统
软件
[1-4]
。
目前,
自动测试系统软件平台发展迅速,
比如
NI
公司的
TestStand
、
中电科
41
所的
TestCenter
等,
它们
应用十分广泛,
但是这些平台价格昂贵、
不够灵活,
与信息化系统联接能力不足。因此需要设计一种开
基于
Python
语言的自动测试系统通用软件平台实现
周阳明
(中国电子科技集团公司第十研究所
四川
成都
610036
)
摘要:
针对电子产品在多品种、
小批量的生产模式下开发自动测试系统软件时重复开发、
效率低下
的问题,
采用通用化和平台化的设计思想,
面向对象和中文化脚本的设计方法,
提取测试系统的共
性内容形成插件库和执行工具,
提供通用的功能和中文化脚本的接口;
分离被测产品测试相关特
性,
形成测试序列、
测试流程和配置等中文化脚本,
利用简洁优雅、
功能强大的
Python
语言,
优秀的
Pycharm
开发环境,
设计并实现开放、
灵活、
低成本的自动测试系统通用软件平台。运用本平台开
发某型功放模块的自动调试测试系统软件,
大幅提高了开发效率,
测试软件的脚本共约
3
千行,
而
传统方式至少需要
2
万行代码。
关键词:
自动测试系统;
通用软件平台;
Python
;
Pycharm
;
MySQL
中图分类号:
TN98
文献标识码:
A
文章编号:
1674-6236
(
2019
)
05-0081-05
Implementation
of
general
software
platform
for
automatic
test
system
based
on
Python
ZHOU
Yang-ming
(
The
No.
10
Institute
of
CETC
,
Chengdu
610036
,
China
)
Abstract:
In
order
to
develop
automatic
test
system
software
for
electronic
products
in
multi
variety
and
small
batch
production
mode
,
the
problem
of
repeated
development
and
inefficient
is
used.
The
design
method
of
universal
and
platform
design
is
adopted
,
the
design
method
of
object
oriented
and
medium
culture
script
is
used
,
and
the
common
internal
capacity
of
the
test
system
is
extracted
to
form
the
plug-
in
library
and
execution
tool.
The
universal
function
and
the
interface
of
the
Chinese
culture
script
;
separate
the
test
related
characteristics
,
form
the
test
sequence
,
test
process
and
configuration
and
other
Chinese
culture
script
,
use
the
concise
,
powerful
Python
language
,
the
excellent
Pycharm
development
environment
,
design
and
implement
the
open
,
flexible
and
low
cost
automatic
test
system
general
purpose
Software
platform.
Using
this
platform
to
develop
the
automatic
debugging
and
testing
system
software
of
a
type
of
power
amplifier
module
,
the
efficiency
is
improved.
The
script
of
the
test
software
is
about
3
thousand
lines
,
and
the
traditional
way
requires
at
least
20
thousand
lines
of
code.
Key
words:
automatic
test
system
;
general
software
platform
;
Python
;
Pycharm
;
MySQL
-
-
81
万方数据