CN103207338A - Python script-based automotive electronic test platform - Google Patents

Python script-based automotive electronic test platform Download PDF

Info

Publication number
CN103207338A
CN103207338A CN2013101488111A CN201310148811A CN103207338A CN 103207338 A CN103207338 A CN 103207338A CN 2013101488111 A CN2013101488111 A CN 2013101488111A CN 201310148811 A CN201310148811 A CN 201310148811A CN 103207338 A CN103207338 A CN 103207338A
Authority
CN
China
Prior art keywords
test
script
python
testing apparatus
key word
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013101488111A
Other languages
Chinese (zh)
Other versions
CN103207338B (en
Inventor
徐峰
汪宏杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai nan'en Automobile Technology Co.,Ltd.
Original Assignee
SHANGHAI NAEN AUTOMOBILE TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHANGHAI NAEN AUTOMOBILE TECHNOLOGY Co Ltd filed Critical SHANGHAI NAEN AUTOMOBILE TECHNOLOGY Co Ltd
Priority to CN201310148811.1A priority Critical patent/CN103207338B/en
Publication of CN103207338A publication Critical patent/CN103207338A/en
Application granted granted Critical
Publication of CN103207338B publication Critical patent/CN103207338B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Tests Of Electronic Circuits (AREA)

Abstract

The invention discloses a Python script-based automotive electronic test platform. The test platform is controlled by using a Python script from top to bottom, has the characteristic which is superior to that of the common test platform, and can be used as a test platform scheme which is particularly suitable for automotive electronic products.

Description

A kind of automotive electronics test platform based on the Python script
Technical field
The present invention relates to a kind of Electronic Testing Technology, be specifically related to a kind of automotive electronics measuring technology.
Background technology
Automobile electronics have input, the miscellaneous characteristics of output signal, and the software logic complexity of product, and to real-time, reliability requirement is very high.
The automotive electronics test platform is the software and hardware system ensemble of automobile electronics being carried out integration test, is used for the automatic regression test of product development stage, thereby finds product software and hardware defective.The automotive electronics test platform is taken on the key player in product development process, be significant.
Outstanding automotive electronics test platform needs to possess following characteristics at least
1. can make things convenient for, control multiple external test facility quickly, as various digital quantities, analog acquisition equipment, radio frequency signal transceiver, CAN, LIN, MOST, simulated-bus equipment such as FLEXRAY, and oscillograph, power supply, AWG (Arbitrary Waveform Generator) etc.
2. development and testing use-case quickly and easily carries out automatically performing of test case, and can produce test report.
3. the characteristics that have software modularity, integrated new testing apparatus drives easily.
4. system has very high reliability.
Traditional automotive electronics test platform generally uses language such as LABVIEW, C++, VB, C# as the software language of automotive electronics test platform, test driving the development﹠ testing script write language, be responsible for execution when being moved by function software through compiling then.But because above these language exploitation itself, debugging is difficulty relatively, so generally expand difficulty based on the test platform of these language, the test case exploitation is very inconvenient, and carrying out needs compiling, inefficiency.
Summary of the invention
The present invention is directed to the existing existing problem of automotive electronics test platform, and a kind of automotive electronics test platform based on the Python script is provided.This platform can overcome the existing in prior technology shortcoming, automobile electronics is realized efficiently, efficiently test.
In order to achieve the above object, the present invention adopts following technical scheme:
A kind of automotive electronics test platform based on the Python script, described test platform adopt the Python script to control.
In preferred embodiment of the present invention, described test platform comprises:
The DLL that some testing apparatus driver modules, described testing apparatus driver module use related libraries among the Python to encapsulate product to be tested drives or utilizes VISA to carry out equipment control, thereby provides hardware driving interface based on Python for the upper strata test frame;
Test library, described test library are the RoboFramework test library, and the testing apparatus driver based on the hardware driving interface of Python that the testing apparatus driver module is provided goes on foot encapsulation, the test key word that formation can tested framework identification;
Test script, described test script drives to set up formation based on the key word that forms in the test library;
Test frame, described test frame is the RobotFramework test frame based on python, described test frame is resolved the test script content, go out the test key word that encapsulation forms in the test library according to key word content recognition in the test script that parses, the testing apparatus driver according to this test key word correspondence drives control product to be tested again; Described test frame operation test script is controlled product to be tested according to the content of test script and is finished test operation.
Further, described test frame record whole test process, and form journal file, the test result record is formed the report of XML form.
The automotive electronics test platform that forms according to such scheme has following useful effect:
1. the encapsulation of test products driving is very simple, utilizes the ctype storehouse of python can the DLL that general device provides be encapsulated, if VISA equipment, simply realization equipment control of the pyvisa storehouse that python has.
2. test frame also is based on the RobotFramework of python, and this framework has crosses the threshold simply system stability, the characteristics that real-time is good.
3. the exploitation of test script and simple, with traditional test platform relatively, efficient improves more than 30% at least, this is because it drives based on key word, namely need not to understand any programming language, only need get final product based on the key word that forms in the test frame.
4. the form of development and testing script is various, can use the TXT file layout, also can use the EXCEL formatted file, and test script need not compiling, exploitation, execution efficient height.
5. system can produce very exquisite test report, the test macro daily record.Test report adopts the XML form, can produce multiple form by XLST, as html, and pdf, word etc.Compare general test report, more flexible, easy to understand.
Description of drawings
Further specify the present invention below in conjunction with the drawings and specific embodiments.
Fig. 1 is principle of the invention block diagram.
Embodiment
For technological means, creation characteristic that the present invention is realized, reach purpose and effect is easy to understand, below in conjunction with concrete diagram, further set forth the present invention.
Referring to Fig. 1, it is depicted as the automotive electronics test platform based on the Python script provided by the invention.As seen from the figure, this test platform 100 mainly comprises testing apparatus driver module 101, test library 102, test frame 103 and test script 104 these four parts.
Testing apparatus driver module 101 in the platform provides the driver of corresponding product to be tested 200, and related libraries encapsulates the DLL driving of product to be tested among its use Python; If VISA equipment, utilize VISA to carry out equipment control, thereby provide hardware driving interface based on Python for the upper strata test frame.
In the specific implementation, this module is utilized storehouses such as pyVisa, pySerial, the ctyp of Python, at the corresponding driver of different test products (equipment) 200 exploitations.Generally need develop following device driver at automobile electronics:
1.CANCaseXL drive: the driving of the DLL that use ctype encapsulation CANCaseXL provides, thereby control CAN, the bus that automotive electronics such as LIN are commonly used;
2. AWG (Arbitrary Waveform Generator) drives: use pyVisa to carry out the visit of AWG (Arbitrary Waveform Generator);
3. programmable power supply drives: use pyVisa to control programmable power supply;
4. analog quantity, digital quantity input and output integrated circuit board: use ctype encapsulation dll form to drive;
5. wireless signal generator and radiofrequency signal resolver: use pyVisa to control;
6. relay matrix integrated circuit board: use ctype encapsulation dll form to drive;
7. multimeter able to programme: use pyVisa to control
8. universal serial port equipment: use pySerial to carry out serial ports control.
Test library 102 in the platform is the RoboFramework test library, at the test frame on upper strata, forms corresponding test key word.Itself and testing apparatus driver module data are joined, and the testing apparatus driver based on the hardware driving interface of Python that the testing apparatus driver module is provided goes on foot encapsulation, the test key word that formation can tested framework identification.
Can realize by Python for this test key word.
Test frame 103 in the platform adopts the RobotFramework test frame, because RobotFramework is the test frame of increasing income, can specifically reduce this framework, makes it be adapted to the test of automobile electronics more.
This test frame 103 will provide running environment for test script 104, and its scheduling and control test script move, and form the test products test operation of correspondence according to the content of test script; Test frame 103 is controlled concrete test products by the testing apparatus program of encapsulation in the test library 102 simultaneously, thereby encourages product to be measured, finishes test and the measurement of product to be measured according to the formed test operation of test script.
For all processes in the test run, this test frame 103 will carry out record, form journal file, and test result will be recorded the report that forms the XML form.This report can use XLST to carry out the form that format conversion forms forms such as html, pdf, word.
Test script 104 in the platform drives to develop formation based on the key word that forms in the test library.It adopts the key word method of driving, and the form of multiple test scripts such as TXT, Excel can be provided.This test script need not compiling, and the efficient height is carried out in exploitation.Defined the step of test in the test script 104, by condition, test data, variable etc., and the statement in the test script can resolve by tested framework 103, and moved by framework.
The test platform of Xing Chenging joins product 200 to be tested and the hardware driving interface data that testing apparatus driver module 101 provides when carrying out the automobile electronics test thus.
Testing apparatus driver module 101 forms corresponding testing apparatus driver at required product to be measured 200 exploitations, thereby provides hardware driving interface based on Python for the upper strata test frame.
At this moment, the RoboFramework test library goes on foot encapsulation with the testing apparatus driver based on the hardware driving interface of Python that the testing apparatus driver module provides, the test key word that formation can tested framework identification.
Simultaneously, drive to develop based on the key word that forms in the test library and form the test script that meets test request (as the step of test, by condition, test data, variable etc.).
After finishing test script, the test script operation will be dispatched and control to test frame, and product to be measured is finished test.Concrete, test frame is resolved the content of the test script of transferring, thereby parse corresponding key word, go out the test key word that encapsulation forms in the test library according to key word content recognition in the test script that parses, the testing apparatus driver according to this test key word correspondence drives control product to be tested again.This test frame test script that reruns forms corresponding test operation according to the content of test script, utilizes these test operations to control product to be tested and finishes corresponding test process.
Whole platform all adopts the Python script to control from bottom to up, has than general test platform good characteristic more, and be a kind of test platform scheme of very suitable automobile electronics.
More than show and described ultimate principle of the present invention, principal character and advantage of the present invention.The technician of the industry should understand; the present invention is not restricted to the described embodiments; that describes in above-described embodiment and the instructions just illustrates principle of the present invention; without departing from the spirit and scope of the present invention; the present invention also has various changes and modifications, and these changes and improvements all fall in the claimed scope of the invention.The claimed scope of the present invention is defined by appending claims and equivalent thereof.

Claims (3)

1. the automotive electronics test platform based on the Python script is characterized in that, described test platform adopts the Python script to control.
2. a kind of automotive electronics test platform based on the Python script according to claim 1 is characterized in that described test platform comprises:
The DLL that some testing apparatus driver modules, described testing apparatus driver module use related libraries among the Python to encapsulate product to be tested drives or utilizes VISA to carry out equipment control, thereby provides hardware driving interface based on Python for the upper strata test frame;
Test library, described test library are the RoboFramework test library, and the testing apparatus driver based on the hardware driving interface of Python that the testing apparatus driver module is provided goes on foot encapsulation, the test key word that formation can tested framework identification;
Test script, described test script drives to set up formation based on the key word that forms in the test library;
Test frame, described test frame is the RobotFramework test frame based on python, described test frame is resolved the test script content, go out the test key word that encapsulation forms in the test library according to key word content recognition in the test script that parses, the testing apparatus driver according to this test key word correspondence drives control product to be tested again; Described test frame operation test script is controlled product to be tested according to the content of test script and is finished test operation.
3. a kind of automotive electronics test platform based on the Python script according to claim 2 is characterized in that, described test frame record whole test process, and form journal file, the test result record is formed the report of XML form.
CN201310148811.1A 2013-04-25 2013-04-25 A kind of automotive electronics test platform based on Python script Active CN103207338B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310148811.1A CN103207338B (en) 2013-04-25 2013-04-25 A kind of automotive electronics test platform based on Python script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310148811.1A CN103207338B (en) 2013-04-25 2013-04-25 A kind of automotive electronics test platform based on Python script

Publications (2)

Publication Number Publication Date
CN103207338A true CN103207338A (en) 2013-07-17
CN103207338B CN103207338B (en) 2016-03-30

Family

ID=48754621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310148811.1A Active CN103207338B (en) 2013-04-25 2013-04-25 A kind of automotive electronics test platform based on Python script

Country Status (1)

Country Link
CN (1) CN103207338B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104615541A (en) * 2015-02-10 2015-05-13 上海创景计算机系统有限公司 Simulation testing modeling system and method based on flow chart
CN105758648A (en) * 2014-12-19 2016-07-13 北汽福田汽车股份有限公司 Vehicle performance test method and device
CN107992428A (en) * 2018-01-03 2018-05-04 成都能通科技有限公司 The automatic test platform that a kind of Python is realized
CN109885902A (en) * 2019-01-29 2019-06-14 华南理工大学 A kind of EDA development platform and its application method based on Python
WO2020000772A1 (en) * 2018-06-28 2020-01-02 昂纳信息技术(深圳)有限公司 Method and system for testing optical amplifier
CN111175632A (en) * 2018-11-13 2020-05-19 南京南瑞继保电气有限公司 Single board testing system based on python
CN111773692A (en) * 2020-07-02 2020-10-16 北京思明启创科技有限公司 MicroPython-based hardware driving method, equipment and storage medium
CN111858336A (en) * 2020-07-20 2020-10-30 深圳市筑泰防务智能科技有限公司 Software automation test method and system
CN112433955A (en) * 2020-12-30 2021-03-02 伟创力电子技术(苏州)有限公司 Python-based general software test system
CN114487553A (en) * 2022-01-29 2022-05-13 重庆长安汽车股份有限公司 Vehicle-mounted entertainment system monomer dark current testing method based on python development

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5065090A (en) * 1988-07-13 1991-11-12 Cross-Check Technology, Inc. Method for testing integrated circuits having a grid-based, "cross-check" te
CN101551778A (en) * 2009-05-08 2009-10-07 刘志方 Test method supporting Python extension
CN102902540A (en) * 2012-09-25 2013-01-30 浙江创佳数字技术有限公司 Embedded automation development method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5065090A (en) * 1988-07-13 1991-11-12 Cross-Check Technology, Inc. Method for testing integrated circuits having a grid-based, "cross-check" te
CN101551778A (en) * 2009-05-08 2009-10-07 刘志方 Test method supporting Python extension
CN102902540A (en) * 2012-09-25 2013-01-30 浙江创佳数字技术有限公司 Embedded automation development method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
吴超等: "python脚本在整车控制系统HIL测试中的应用", 《上海汽车》 *
毛玉书等: "面向嵌入式通信设备的Ch自动化测试框架设计", 《计算机系统应用》 *
邹轩等: "Softcar测试软件包与Python语言的集成", 《微计算机信息》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105758648A (en) * 2014-12-19 2016-07-13 北汽福田汽车股份有限公司 Vehicle performance test method and device
CN105758648B (en) * 2014-12-19 2018-08-28 北京宝沃汽车有限公司 The test method and device of vehicle performance
CN104615541A (en) * 2015-02-10 2015-05-13 上海创景计算机系统有限公司 Simulation testing modeling system and method based on flow chart
CN107992428A (en) * 2018-01-03 2018-05-04 成都能通科技有限公司 The automatic test platform that a kind of Python is realized
WO2020000772A1 (en) * 2018-06-28 2020-01-02 昂纳信息技术(深圳)有限公司 Method and system for testing optical amplifier
CN111175632A (en) * 2018-11-13 2020-05-19 南京南瑞继保电气有限公司 Single board testing system based on python
CN109885902A (en) * 2019-01-29 2019-06-14 华南理工大学 A kind of EDA development platform and its application method based on Python
CN111773692A (en) * 2020-07-02 2020-10-16 北京思明启创科技有限公司 MicroPython-based hardware driving method, equipment and storage medium
CN111858336A (en) * 2020-07-20 2020-10-30 深圳市筑泰防务智能科技有限公司 Software automation test method and system
CN111858336B (en) * 2020-07-20 2024-03-15 深圳市筑泰防务智能科技有限公司 Automatic software testing method and system
CN112433955A (en) * 2020-12-30 2021-03-02 伟创力电子技术(苏州)有限公司 Python-based general software test system
CN114487553A (en) * 2022-01-29 2022-05-13 重庆长安汽车股份有限公司 Vehicle-mounted entertainment system monomer dark current testing method based on python development

Also Published As

Publication number Publication date
CN103207338B (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN103207338A (en) Python script-based automotive electronic test platform
CN204832267U (en) Chip test platform
CN103308846B (en) Method and device for detecting functional performance of integrated chip based on model identification
CN102592023B (en) Register design method and device in integrated circuit design process
CN101509948A (en) Automobile electronic test system and test method thereof
CN102681532B (en) Simulating test system for BCM (body control module)
CN104657245B (en) The automatically generating device of module level UVM verification platform based on AMBA bus
CN102402628A (en) Method and system for generating systems-on-a-chip (SoC) verification platform
US8832622B1 (en) Coverage scoreboard
CN102749604B (en) Testing apparatus automatic calibrator, calibration system and calibration steps
CN102788951B (en) Automatic test equipment (ATE) test result judging method and ATE test method
CN202693755U (en) Comprehensive test device for integrated circuit
CN105070321B (en) The quick test circuit and method of memory device
CN202794491U (en) Test equipment automatic calibration instrument and calibration system
CN107992428A (en) The automatic test platform that a kind of Python is realized
CN104461812A (en) Method for constructing UVM verification component by utilizing existing Verilog BFM
CN102346234B (en) Functional test method of I2S (Inter-IC Sound Bus) interface
CN102608517A (en) Method for rapidly creating integrated circuit test program package
CN116860536B (en) Rapid FT test system, test equipment and test method of GPU chip
CN101373493A (en) SOC chip logical verification method special for multimedia storage gateway
CN106528425A (en) Platform plug-in automatically testing method for microprocessor
CN101377793A (en) SOC chip logic verification method for server safe monitoring management
CN102565683B (en) Generation and verification method of test vector
CN103713627A (en) Function node test system
CN107728045A (en) FPGA method of testings based on Ultra Flex

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: Room 101, building 44, No. 258, shenzhuan Road, Songjiang hi tech park, Caohejing Development Zone, Songjiang District, Shanghai, 201612

Patentee after: Shanghai nan'en Automobile Technology Co.,Ltd.

Address before: Room 302, building 13, No. 518, Xinzhuan Road, Songjiang high tech park, Caohejing Development Zone, Songjiang District, Shanghai, 201612

Patentee before: SHANGHAI NAEN AUTOMOTIVE TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: An automobile electronic test platform based on Python script

Effective date of registration: 20211217

Granted publication date: 20160330

Pledgee: Industrial Bank Co.,Ltd. Shanghai Branch

Pledgor: Shanghai nan'en Automobile Technology Co.,Ltd.

Registration number: Y2021310000135

PE01 Entry into force of the registration of the contract for pledge of patent right