CN107656873A - Automatization test system and method for testing based on the vehicle-mounted softwares of Linux - Google Patents

Automatization test system and method for testing based on the vehicle-mounted softwares of Linux Download PDF

Info

Publication number
CN107656873A
CN107656873A CN201710992564.1A CN201710992564A CN107656873A CN 107656873 A CN107656873 A CN 107656873A CN 201710992564 A CN201710992564 A CN 201710992564A CN 107656873 A CN107656873 A CN 107656873A
Authority
CN
China
Prior art keywords
servers
testing
test
code
gerrit
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.)
Pending
Application number
CN201710992564.1A
Other languages
Chinese (zh)
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.)
Yangzhou Hangsheng Technology Co Ltd
Original Assignee
Yangzhou Hangsheng 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 Yangzhou Hangsheng Technology Co Ltd filed Critical Yangzhou Hangsheng Technology Co Ltd
Priority to CN201710992564.1A priority Critical patent/CN107656873A/en
Publication of CN107656873A publication Critical patent/CN107656873A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of automatization test system based on the vehicle-mounted softwares of Linux in software systems field, including:Gerrit servers, to examine the code of Developmental Engineer's submission;Yocto servers, the code examined by Gerrit servers is carried out into automatic structure respective modules and compiled;Jenkins servers, it is integrated with Gerrit servers, Yocto servers, whether there are code, patch to submit to automatic monitoring Gerrit servers, and by the code submitted, patch by calling static code checking tool to be checked, and outgoing inspection result gives Yocto servers;The result completed also is compiled to Yocto servers simultaneously and carries out automatic test, the present invention improves current on-vehicle information and entertains multimedia product quality and testing efficiency, available in vehicle-mounted software development.

Description

Automatization test system and method for testing based on the vehicle-mounted softwares of Linux
Technical field
The present invention relates to a kind of vehicle-mounted software testing system, more particularly to a kind of vehicle-mounted method for testing software.
Background technology
Current vehicle-mounted industry development is rapid, and the cycle of new product release constantly shortens, to software development cycle and product Quality proposes higher requirement, this also means that original manual test speed can not tackle the needs of fast development, leads Enter embedded automation turns into inexorable trend.
But existing embedded software automation, the especially automation of linux system, due to the complexity of system itself Property, it can apply in actual items and few;General data can only realize the automation of part test item, and all compare zero Dissipate, maintenance gets up also to spend the more time, and the lifting to test job efficiency, product quality in a sense is not played Practical function.
The content of the invention
It is an object of the invention to provide a kind of automatization test system and its method of testing based on the vehicle-mounted softwares of Linux, Improve current on-vehicle information and entertain multimedia product quality and testing efficiency.
The object of the present invention is achieved like this:A kind of automatization test system based on the vehicle-mounted softwares of Linux, including:
Gerrit servers, to examine the code of Developmental Engineer's submission;
Yocto servers, the code examined by Gerrit servers is carried out into automatic structure respective modules and compiled;
Jenkins servers, Gerrit servers, Yocto servers are integrated with, whether Gerrit servers are monitored to automatic There are code, patch to submit, and by the code submitted, patch by calling static code checking tool to be checked, and export inspection The fruit that comes to an end gives Yocto servers;The result completed also is compiled to Yocto servers simultaneously and carries out automatic test.
A kind of automated testing method based on the vehicle-mounted softwares of Linux, comprises the following steps:
Step 1)Gerrit servers, Yocto servers are integrated into Jenkins servers;
Step 2)Code is submitted to Gerrit servers by Developmental Engineer;
Step 3)Plug-in unit in Jenkins servers monitors whether Gerrit servers have code, patch to submit automatically, if any then Static code checking tool is called check simultaneously outgoing inspection result;
Step 4)Yocto servers carry out automatic structure respective modules to inspection result and compiled, after compiling OK, Jenkins clothes Automated test frame in business device carries out automatic test respectively;
Step 5)Test result is formed into test report, feeds back to Developmental Engineer.
As the further restriction of the present invention, the automatic test of the Jenkins servers includes unit testing, interface Test, module testing and integration testing, wherein,
Unit testing:Automated test frame is introduced, carries out writing, holding for test case to product code using script Row, test report output;
Interface testing:Ethernet device is turned by USB, obtains the IP address at on-vehicle information amusement multimedia end;Correlation is carried out to match somebody with somebody Postpone, the dbus-send orders carried using linux system may have access to modules interface function, for the interface letter of acquisition Number, is encapsulated into script, so as to realize access of the PC ends to vehicle device end interface, and is tested;
Module testing:For basic functions such as USB, BT, according to module protocol, coordinate automated test frame using script Engine end is accessed, so as to realize the automation of basic function;
Integration testing:The main performance test for implementing product, it is real using audio analyzer, RF signal generators, programmable power supply Existing power source life experiment, radio/audio frequency parameter automation and broadcasting durability automation.
As the further restriction of the present invention, step 4)Middle automatic test includes unit testing, interface testing, module survey Examination, integration testing, specific method are:
Unit testing:Automated test frame is introduced, carries out writing, holding for test case to product code using script Row, test report output;
Interface testing:Ethernet device is turned by USB, obtains the IP address at on-vehicle information amusement multimedia end;Correlation is carried out to match somebody with somebody Postpone, the dbus-send orders carried using linux system may have access to modules interface function, for the interface letter of acquisition Number, is encapsulated into script, so as to realize access of the PC ends to vehicle device end interface, and is tested;
Module testing:For basic functions such as USB, BT, according to module protocol, coordinate automated test frame using script Engine end is accessed, so as to realize the automation of basic function;
Integration testing:The main performance test for implementing product, it is real using audio analyzer, RF signal generators, programmable power supply Existing power source life experiment, radio/audio frequency parameter automation and broadcasting durability automation.
Compared with prior art, the beneficial effects of the present invention are, instant invention overcomes conventional automatic test it is single, zero The defects of dissipating, realize from code check to the whole flow process design tested automatically, more systematization;Unit testing, white-box testing Software defect can be found in advance, and module testing, the application of integration testing automation highly shortened the testing time, further Improve current on-vehicle information and entertain multimedia product quality and testing efficiency.
Brief description of the drawings
Fig. 1 is workflow diagram of the present invention.
Embodiment
With reference to specific embodiment, the present invention will be further described.
A kind of automatization test system based on the vehicle-mounted softwares of Linux, including:
Gerrit servers, after modification code submits Gerrit, jenkins tasks can be triggered automatically, are advised by code check Model go check Developmental Engineer submit code whether meet demand(Pass through:Vertify+1, do not pass through:Vertify -1);
Citing:
After submitting code, the task on jenkins servers is triggered:
According to code check specification, check submit code whether meet demand,
It is to check to pass through as follows(Vertify +1)Case:
Yocto servers, the code examined by Gerrit servers is carried out into automatic structure respective modules and compiled;
Jenkins servers, Gerrit servers, Yocto servers are integrated with, whether Gerrit servers are monitored to automatic There are code, patch to submit, and by the code submitted, patch by calling static code checking tool to be checked, and export inspection The fruit that comes to an end gives Yocto servers;The result completed also is compiled to Yocto servers simultaneously and carries out automatic test automatic test Including unit testing, interface testing, module testing and integration testing, wherein, unit testing:Introduce automated test frame, Product code is carried out using script the writing of test case, perform, test report exports;Interface testing:Turned by USB Ethernet device, obtain the IP address at on-vehicle information amusement multimedia end;After carrying out relevant configuration, carried using linux system Dbus-send orders may have access to modules interface functions, for the interface function of acquisition, be encapsulated into script, from And access of the PC ends to vehicle device end interface is realized, and tested;Module testing:For basic functions such as USB, BT, according to mould Block agreement, automated test frame is coordinated to access engine end using script, so as to realize the automation of basic function;It is integrated Test:The main performance test for implementing product, the power supply longevity is realized using audio analyzer, RF signal generators, programmable power supply Life experiment, radio/audio frequency parameter automation and broadcasting durability automation.
A kind of automated testing method based on the vehicle-mounted softwares of Linux, comprises the following steps:
Step 1)Gerrit servers, Yocto servers are integrated into Jenkins servers;
Step 2)Code is submitted to Gerrit servers by Developmental Engineer;
Step 3)Plug-in unit in Jenkins servers monitors whether Gerrit servers have code, patch to submit automatically, if any then Static code checking tool is called check simultaneously outgoing inspection result;
Step 4)Yocto servers carry out automatic structure respective modules to inspection result and compiled, after compiling OK, Jenkins clothes Automated test frame in business device carries out automatic test respectively, and automatic test includes unit testing, interface testing, module Test, integration testing, specific method are:
Unit testing:Automated test frame is introduced, carries out writing, holding for test case to product code using script Row, test report output;
Interface testing:Ethernet device is turned by USB, obtains the IP address at on-vehicle information amusement multimedia end;Correlation is carried out to match somebody with somebody Postpone, the dbus-send orders carried using linux system may have access to modules interface function, for the interface letter of acquisition Number, is encapsulated into script, so as to realize access of the PC ends to vehicle device end interface, and is tested;
Module testing:For basic functions such as USB, BT, according to module protocol, coordinate automated test frame using script Engine end is accessed, so as to realize the automation of basic function;
Integration testing:The main performance test for implementing product, it is real using audio analyzer, RF signal generators, programmable power supply Existing power source life experiment, radio/audio frequency parameter automation and broadcasting durability automation;
Step 5)Test result is formed into test report, feeds back to Developmental Engineer.
Citing:Based on RootFramework automation frameworks, a certain automatic test application integrated with Jenkins.
1)RootFramework automated test frames are built, it is as shown below after the completion of building:
2)Test case is write using Python,
Below figure is the test case of " bluetooth discovery ":
3)Configured on Jenkins servers, it is therefore an objective to directly invoke this configuration when having and submitting code to come and surveyed Examination;
4)Following test report is exported in the form of mail after having performed test and notifies engineer;
The invention is not limited in above-described embodiment, on the basis of technical scheme disclosed by the invention, the skill of this area Art personnel are according to disclosed technology contents, it is not necessary to which performing creative labour can makes one to some of which technical characteristic A little to replace and deform, these are replaced and deformation is within the scope of the present invention.

Claims (4)

  1. A kind of 1. automatization test system based on the vehicle-mounted softwares of Linux, it is characterised in that including:
    Gerrit servers, to examine the code of Developmental Engineer's submission;
    Yocto servers, the code examined by Gerrit servers is carried out into automatic structure respective modules and compiled;
    Jenkins servers, Gerrit servers, Yocto servers are integrated with, whether Gerrit servers are monitored to automatic There are code, patch to submit, and by the code submitted, patch by calling static code checking tool to be checked, and export inspection The fruit that comes to an end gives Yocto servers;The result completed also is compiled to Yocto servers simultaneously and carries out automatic test.
  2. 2. the automatization test system according to claim 1 based on the vehicle-mounted softwares of Linux, it is characterised in that described The automatic test of Jenkins servers includes unit testing, interface testing, module testing and integration testing, wherein,
    Unit testing:Automated test frame is introduced, carries out writing, holding for test case to product code using script Row, test report output;
    Interface testing:Ethernet device is turned by USB, obtains the IP address at on-vehicle information amusement multimedia end;Correlation is carried out to match somebody with somebody Postpone, the dbus-send orders carried using linux system may have access to modules interface function, for the interface letter of acquisition Number, is encapsulated into script, so as to realize access of the PC ends to vehicle device end interface, and is tested;
    Module testing:For basic functions such as USB, BT, according to module protocol, coordinate automated test frame using script Engine end is accessed, so as to realize the automation of basic function;
    Integration testing:The main performance test for implementing product, it is real using audio analyzer, RF signal generators, programmable power supply Existing power source life experiment, radio/audio frequency parameter automation and broadcasting durability automation.
  3. 3. a kind of automated testing method based on the vehicle-mounted softwares of Linux, it is characterised in that comprise the following steps:
    Step 1)Gerrit servers, Yocto servers are integrated into Jenkins servers;
    Step 2)Code is submitted to Gerrit servers by Developmental Engineer;
    Step 3)Plug-in unit in Jenkins servers monitors whether Gerrit servers have code, patch to submit automatically, if any then Static code checking tool is called check simultaneously outgoing inspection result;
    Step 4)Yocto servers carry out automatic structure respective modules to inspection result and compiled, after compiling OK, Jenkins clothes Automated test frame in business device carries out automatic test respectively;
    Step 5)Test result is formed into test report, feeds back to Developmental Engineer.
  4. 4. the automated testing method according to claim 3 based on the vehicle-mounted softwares of Linux, it is characterised in that in step 4 Automatic test includes unit testing, interface testing, module testing, integration testing, and specific method is:
    Unit testing:Automated test frame is introduced, carries out writing, holding for test case to product code using script Row, test report output;
    Interface testing:Ethernet device is turned by USB, obtains the IP address at on-vehicle information amusement multimedia end;Correlation is carried out to match somebody with somebody Postpone, the dbus-send orders carried using linux system may have access to modules interface function, for the interface letter of acquisition Number, is encapsulated into script, so as to realize access of the PC ends to vehicle device end interface, and is tested;
    Module testing:For basic functions such as USB, BT, according to module protocol, coordinate automated test frame using script Engine end is accessed, so as to realize the automation of basic function;
    Integration testing:The main performance test for implementing product, it is real using audio analyzer, RF signal generators, programmable power supply Existing power source life experiment, radio/audio frequency parameter automation and broadcasting durability automation.
CN201710992564.1A 2017-10-23 2017-10-23 Automatization test system and method for testing based on the vehicle-mounted softwares of Linux Pending CN107656873A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710992564.1A CN107656873A (en) 2017-10-23 2017-10-23 Automatization test system and method for testing based on the vehicle-mounted softwares of Linux

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710992564.1A CN107656873A (en) 2017-10-23 2017-10-23 Automatization test system and method for testing based on the vehicle-mounted softwares of Linux

Publications (1)

Publication Number Publication Date
CN107656873A true CN107656873A (en) 2018-02-02

Family

ID=61118165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710992564.1A Pending CN107656873A (en) 2017-10-23 2017-10-23 Automatization test system and method for testing based on the vehicle-mounted softwares of Linux

Country Status (1)

Country Link
CN (1) CN107656873A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108426604A (en) * 2018-02-07 2018-08-21 深圳市恒晨电器有限公司 A kind of automatization test system and method for car-mounted terminal
CN108762803A (en) * 2018-04-17 2018-11-06 平安科技(深圳)有限公司 A kind of configuring management method, device, terminal device and storage medium
CN109815142A (en) * 2019-01-09 2019-05-28 珠海天燕科技有限公司 A kind of product test method and apparatus
CN110389887A (en) * 2018-04-16 2019-10-29 鸿富锦精密工业(武汉)有限公司 Code detection system and method
CN111078577A (en) * 2019-12-31 2020-04-28 易票联支付有限公司 Automatic code auditing method, system, device and storage medium
CN111162972A (en) * 2019-12-31 2020-05-15 扬州航盛科技有限公司 Vehicle-mounted Ethernet protocol stack automatic testing method based on semantic analysis
CN111290934A (en) * 2018-12-06 2020-06-16 中车株洲电力机车研究所有限公司 Jenkins-based vehicle-mounted network product cloud testing method and system
CN111831554A (en) * 2020-06-09 2020-10-27 时时同云科技(成都)有限责任公司 Code checking method and device
CN113534764A (en) * 2020-04-16 2021-10-22 广州汽车集团股份有限公司 Continuous integration test method and system for whole electric vehicle controller
CN113553030A (en) * 2020-04-26 2021-10-26 上汽通用汽车有限公司 Jenkins-based embedded software construction method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412816A (en) * 2013-08-12 2013-11-27 浪潮电子信息产业股份有限公司 Linux-based continuous integration test platform building method
CN105446878A (en) * 2015-11-09 2016-03-30 上海爱数信息技术股份有限公司 Continuous program automated testing method
CN105701010A (en) * 2015-12-31 2016-06-22 北京元心科技有限公司 Method and device for accelerating software testing
CN105786691A (en) * 2014-12-25 2016-07-20 重庆重邮信科通信技术有限公司 Automatic integration testing device, method and system of mobile terminal
WO2016177124A1 (en) * 2015-07-29 2016-11-10 中兴通讯股份有限公司 Method and device for implementing continuous integration test
CN106201882A (en) * 2016-07-13 2016-12-07 浪潮(北京)电子信息产业有限公司 Automated operating system method of testing based on Jenkins and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412816A (en) * 2013-08-12 2013-11-27 浪潮电子信息产业股份有限公司 Linux-based continuous integration test platform building method
CN105786691A (en) * 2014-12-25 2016-07-20 重庆重邮信科通信技术有限公司 Automatic integration testing device, method and system of mobile terminal
WO2016177124A1 (en) * 2015-07-29 2016-11-10 中兴通讯股份有限公司 Method and device for implementing continuous integration test
CN105446878A (en) * 2015-11-09 2016-03-30 上海爱数信息技术股份有限公司 Continuous program automated testing method
CN105701010A (en) * 2015-12-31 2016-06-22 北京元心科技有限公司 Method and device for accelerating software testing
CN106201882A (en) * 2016-07-13 2016-12-07 浪潮(北京)电子信息产业有限公司 Automated operating system method of testing based on Jenkins and system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
丁建成: "Vxworks操作系统特点及热补丁制作过程中相关技术", 《电脑知识与技术》 *
任宁宁等: "基于Yocto Project的嵌入式应用设计", 《单片机与嵌入式系统应用》 *
杜登科等: "基于Yocto订制嵌入式Linux发行版", 《微型机与应用》 *
董渊文等: "一种面向LTE基站的SOC平台软件解决方案", 《今日电子》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108426604A (en) * 2018-02-07 2018-08-21 深圳市恒晨电器有限公司 A kind of automatization test system and method for car-mounted terminal
CN110389887B (en) * 2018-04-16 2022-07-05 鸿富锦精密工业(武汉)有限公司 Code detection system and method
CN110389887A (en) * 2018-04-16 2019-10-29 鸿富锦精密工业(武汉)有限公司 Code detection system and method
CN108762803A (en) * 2018-04-17 2018-11-06 平安科技(深圳)有限公司 A kind of configuring management method, device, terminal device and storage medium
CN108762803B (en) * 2018-04-17 2021-09-10 平安科技(深圳)有限公司 Configuration management method, device, terminal equipment and storage medium
CN111290934A (en) * 2018-12-06 2020-06-16 中车株洲电力机车研究所有限公司 Jenkins-based vehicle-mounted network product cloud testing method and system
CN109815142B (en) * 2019-01-09 2022-04-15 珠海天燕科技有限公司 Product testing method and device
CN109815142A (en) * 2019-01-09 2019-05-28 珠海天燕科技有限公司 A kind of product test method and apparatus
CN111162972A (en) * 2019-12-31 2020-05-15 扬州航盛科技有限公司 Vehicle-mounted Ethernet protocol stack automatic testing method based on semantic analysis
CN111078577A (en) * 2019-12-31 2020-04-28 易票联支付有限公司 Automatic code auditing method, system, device and storage medium
CN113534764A (en) * 2020-04-16 2021-10-22 广州汽车集团股份有限公司 Continuous integration test method and system for whole electric vehicle controller
CN113553030A (en) * 2020-04-26 2021-10-26 上汽通用汽车有限公司 Jenkins-based embedded software construction method and system
CN111831554A (en) * 2020-06-09 2020-10-27 时时同云科技(成都)有限责任公司 Code checking method and device
CN111831554B (en) * 2020-06-09 2023-07-04 时时同云科技(成都)有限责任公司 Code checking method and device

Similar Documents

Publication Publication Date Title
CN107656873A (en) Automatization test system and method for testing based on the vehicle-mounted softwares of Linux
JP6892705B2 (en) How to change virtual production of electronic product production line
CN106502888B (en) The test method and device of software
CN110275833B (en) Universal test equipment and use method
CN107015908A (en) A kind of computer application software test system and method
CN106874189A (en) A kind of implementation method of the automatization test system of real-time data of power grid storehouse system
US11341030B2 (en) Scriptless software test automation
CN111444052A (en) Production testing method, system and device thereof
WO2021227690A1 (en) Automatic testing system and method for robot, and build server and storage medium
CN103473178B (en) The method and system that a kind of optimal inspection flow is performed
CN102063355A (en) Automatic test server and system of disk array
CN113268397B (en) Production intelligent test method, device and system
CN114327765A (en) Server testing method and device based on Docker virtual container
CN111428775B (en) Automobile part traceability system and method based on block chain and artificial intelligence
CN116228263A (en) Production detection integrated automatic debugging method, system and storage medium applied to fusion terminal
CN116244188A (en) Automatic test method and system for interface isolation control
CN109977007B (en) PLM (product development management) mold test management method and system
CN105675992A (en) Automatic testing system and testing method thereof
CN110674573A (en) Method, device and storage medium for simulating hardware work in MES system
CN104731682A (en) Arrival detection method for Rack server cabinet
CN101488984B (en) Functional test method, terminal device and system based on memory apparatus
CN118276534B (en) Configuration and development method of automation system, intelligent platform, system, medium and equipment
CN110674036A (en) Cross-platform cooperative function interface test system based on CSG II system
TWI281034B (en) Systematic inspection method
CN116467182A (en) Interface test model capable of supporting multiple scenes

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180202

RJ01 Rejection of invention patent application after publication