CN106528425B - A kind of hardware and software platform plug-in unit automatic test approach for microprocessor - Google Patents

A kind of hardware and software platform plug-in unit automatic test approach for microprocessor Download PDF

Info

Publication number
CN106528425B
CN106528425B CN201611019390.2A CN201611019390A CN106528425B CN 106528425 B CN106528425 B CN 106528425B CN 201611019390 A CN201611019390 A CN 201611019390A CN 106528425 B CN106528425 B CN 106528425B
Authority
CN
China
Prior art keywords
plug
test
unit
measured
layer
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.)
Expired - Fee Related
Application number
CN201611019390.2A
Other languages
Chinese (zh)
Other versions
CN106528425A (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.)
NR Electric Co Ltd
NR Engineering Co Ltd
Original Assignee
NR Electric Co Ltd
NR Engineering 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 NR Electric Co Ltd, NR Engineering Co Ltd filed Critical NR Electric Co Ltd
Priority to CN201611019390.2A priority Critical patent/CN106528425B/en
Publication of CN106528425A publication Critical patent/CN106528425A/en
Application granted granted Critical
Publication of CN106528425B publication Critical patent/CN106528425B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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

Abstract

The invention discloses a kind of hardware and software platform plug-in unit automatic test approach for microprocessor, based on client layer, device layers, test case layer, test object layer distributed structure/architecture, client layer includes testing tool and output test report, device layers include test system, configuration tool, management plug-in unit and plug-in unit to be measured, test case layer includes testing element library, test script library, and test object layer includes various plugin libraries to be measured.Hardware and software platform plug-in unit automatic test approach for microprocessor of the invention, only variety classes plug-in unit microprocessor need to be can be realized as to the simple modification of test template progress to be tested automatically, improve test case multiplexing, flexibly and scalability, reduce the workload of tester, greatly reduce cost and the time of maintenance system, to improve development efficiency, shortens product development cycle, guarantee product reliability, has a good application prospect.

Description

A kind of hardware and software platform plug-in unit automatic test approach for microprocessor
Technical field
The present invention relates to built-in system software the field of test technology, and in particular to a kind of hardware and software platform for microprocessor Plug-in unit automatic test approach.
Background technique
With the high speed development of microprocessor technology, microprocessor has been increasingly being applied to aerospace, industry control The every field such as system, household electrical appliance.Due to the diversification of user demand, the complication of electronic product function, used by promotion Microprocessor type, performance are enriched constantly, when embedded bottom software exploitation maintenance, test job being caused to need to expend a large amount of Between, especially in the case where the electronic product development cycle is short, guarantee that Quality of electronic products becomes particularly difficult, is current urgent need solution Certainly the problem of.
Summary of the invention
It is existing in the case where the electronic product development cycle is short the purpose of the present invention is overcoming, microprocessor it is embedded Bottom software exploitation maintenance, test job needs take considerable time, it is difficult to the problem of guaranteeing Quality of electronic products.Of the invention For the hardware and software platform plug-in unit automatic test approach of microprocessor, simple modification need to be only carried out to test template can be realized as difference Category plugin microprocessor is tested automatically, improve test case multiplexing, flexibly and scalability, reduce tester Workload, greatly reduce cost and the time of maintenance system, to improve development efficiency, shorten product development cycle, protect Product reliability is demonstrate,proved, is had a good application prospect.
In order to achieve the above object, the technical scheme adopted by the invention is that:
A kind of hardware and software platform plug-in unit automatic test approach for microprocessor, it is characterised in that: include the following steps,
Step (A), client layer call multiple plugin libraries to be measured of testing tool building test object layer;
Step (B), function of the client layer according to plugin library to be measured, modularization selection testing element, the multiple tests members of building Part library constructs multiple testing element libraries positioned at test case layer;
Step (C), client layer is according to different types of microprocessor package types, the test template of configuration module;
Step (D), client layer calls testing tool to identify test template, plugin library to be measured, testing element library, automatic to construct Plug-in unit test program to be measured;
Step (E), the configuration tool in device layers are configured according to practical plug-in unit to be measured, construct matching for test system Confidence breath;
Step (F), client layer call testing tool to merge the configuration information of test system, plug-in card program to be measured, automatically Online updating is into the management plug-in unit and plug-in unit to be measured of device layers;
Step (G), the test script of the automatic implementation of test cases layer of testing tool in client layer, in device layers to It surveys device to interact, completes automatic test, export test report.
A kind of hardware and software platform plug-in unit automatic test approach for microprocessor above-mentioned, it is characterised in that: step (D) is used Family layer calling testing tool identifies test template, plugin library to be measured, testing element library, calls corresponding test in test case layer Script constructs plug-in unit test program to be measured automatically.
A kind of hardware and software platform plug-in unit automatic test approach for microprocessor above-mentioned, it is characterised in that: step (E), dress The configuration tool in layer is set, is configured according to practical plug-in unit to be measured, constructs the configuration information of test system, the test system Configuration information can put into or exit according to demand.
A kind of hardware and software platform plug-in unit automatic test approach for microprocessor above-mentioned, it is characterised in that: step (E), dress It sets and is additionally provided with management plug-in unit and multiple plug-in units to be measured in layer, the management plug-in unit is used to carry out with the testing tool in client layer Interaction, and interacted with multiple plug-in units to be measured, it is handed between management plug-in unit and the testing tool using Ethernet mode Mutually, it is interacted between the management plug-in unit and multiple plug-in units to be measured using CAN mode.
A kind of hardware and software platform plug-in unit automatic test approach for microprocessor above-mentioned, it is characterised in that: step (F) is used Family layer calling testing tool merges the configuration information of test system, plug-in card program to be measured, and automatic on-line is updated to device layers It manages in plug-in unit and plug-in unit to be measured, process is as follows:
(F1) testing tool is according to the parsing of the configuration information of test system, by the card slots information of plug-in card program to be measured After merging, configuration file is formed, by configuration file online updating into management plug-in unit storage;
It (F2) will be in the memory of plug-in card program online updating to be measured to plug-in unit to be measured.
A kind of hardware and software platform plug-in unit automatic test approach for microprocessor above-mentioned, it is characterised in that: step (G) is used The test script of the automatic implementation of test cases layer of testing tool in the layer of family, interacts with the test system in device layers, complete At automatic test, test report is exported, process is as follows:
(G1) apply the management plug-in unit in input data to device layers;
(G2) input data is handed down to corresponding plug-in unit to be measured in device layers by management plug-in unit, and plug-in unit to be measured returns to output knot Fruit gives management plug-in unit;
(G3) management plug-in unit will export result and be uploaded to the testing tool in device layers, and testing tool will receive and export result It is compared with the test script expected results of test case layer, completes automatic test, save as test report, and export test Report.
A kind of hardware and software platform plug-in unit automatic test approach for microprocessor above-mentioned, it is characterised in that: the input number According to for the variable defined in plugin library to be measured, testing element library for debugging;Apply the management in input data to device layers Plug-in unit process refers to calls test case layer to go to modify corresponding to be measured insert by the testing tool of client layer by management plug-in unit Debugging variable in part library, testing element library.
The beneficial effects of the present invention are: the hardware and software platform plug-in unit automatic test approach for microprocessor of the invention, only needs It can be realized as variety classes plug-in unit microprocessor to the simple modification of test template progress to be tested automatically, improve test and use The multiplexing of example, flexible and scalability, reduce the workload of tester, greatly reduce cost and the time of maintenance system, from And development efficiency is improved, shorten product development cycle, guarantee product reliability, has a good application prospect.
Detailed description of the invention
Fig. 1 is the system block diagram of the hardware and software platform AUTOMATIC CARD TESTING SYSTEM for microprocessor of the invention.
Fig. 2 is the format chart of file needed for the hardware and software platform plug-in unit automatic test approach for microprocessor of the invention.
Fig. 3 is the relational graph between management plug-in unit of the invention, plug-in unit to be measured.
Fig. 4 is the use-case schematic diagram of test case layer of the invention.
Specific embodiment
Below in conjunction with Figure of description, the present invention is further illustrated.
Hardware and software platform plug-in unit automatic test approach for microprocessor of the invention only need to simply repair test template Changing can be realized as variety classes plug-in unit microprocessor and is tested automatically, improves the multiplexing of test case, flexibly and can expand Malleability reduces the workload of tester, greatly reduces cost and the time of maintenance system, to improve development efficiency, contracts The short sawn timber development cycle guarantees product reliability, certainly based on the hardware and software platform plug-in unit for microprocessor as shown in Figures 1 and 2 Dynamic test macro realizes, the system based on client layer, device layers, test case layer, test object layer distributed structure/architecture, user Layer includes testing tool and output test report, and device layers include test system, configuration tool, manage plug-in unit and plug-in unit to be measured, Test case layer includes testing element library, test script library, and test object layer includes various plugin libraries to be measured, and of the invention is used for The hardware and software platform plug-in unit automatic test approach of microprocessor, includes the following steps,
Step (A), client layer call multiple plugin libraries to be measured of testing tool building test object layer;
Step (B), function of the client layer according to plugin library to be measured, modularization selection testing element, the multiple tests members of building Part library constructs multiple testing element libraries positioned at test case layer,
Support the plugin library to be measured of a variety of different types of microprocessors, every kind of plug-in unit library facility to be measured is variant;It supports Modularization selects testing element to form testing element library, and the plugin library to be measured is .syslib file, the testing element library For .testlib file;
Step (C), client layer is according to different types of microprocessor package types, the test template of configuration module, no Chip architecture, translation and compiling environment with type microprocessor is variant, needs to configure test template according to microprocessor type, described Test template includes compiling template, link template, and compiling template is identified for compilation tool;It is raw for fastening means to link template At executable program, the compiling template is .mk file, and the link template is .link file;
Step (D), client layer call testing tool to identify test template, plugin library to be measured, testing element library, call test Corresponding test script in use-case layer, constructs plug-in unit test program to be measured automatically, and the testing tool is testtool, the survey Training sheet is .sh file, and the plug-in unit test program to be measured is .hex file;
Step (E), the configuration tool in device layers are configured according to practical plug-in unit to be measured, construct matching for test system Confidence breath, the configuration information of the test system can put into or exit according to demand, be additionally provided in device layers management plug-in unit and Multiple plug-in units to be measured, the management plug-in unit for being interacted with the testing tool in client layer, and with multiple plug-in units to be measured Interact, interact between management plug-in unit and the testing tool using Ethernet mode, the management plug-in unit with it is multiple to It surveys between plug-in unit using the interaction of CAN mode;
Step (F), client layer call testing tool to merge the configuration information of test system, plug-in card program to be measured, automatically For online updating into the management plug-in unit and plug-in unit to be measured of device layers, process is as follows:
(F1) testing tool is according to the parsing of the configuration information of test system, by the card slots information of plug-in card program to be measured After merging, configuration file is formed, by configuration file online updating into management plug-in unit storage;
It (F2) will be in the memory of plug-in card program online updating to be measured to plug-in unit to be measured;
Configuration tool in device layers is configtool, and the configuration information is .config file, and setting is in configuration work In tool;The configuration file is .bin file;
Step (G), the test script of the automatic implementation of test cases layer of testing tool in client layer, in device layers to It surveys device to interact, completes automatic test, export test report, process is as follows:
(G1) apply the management plug-in unit in input data to device layers;The input data refers in plugin library to be measured, test For the variable of debugging defined in component library;The management plug-in unit applied in input data to device layers refers to through client layer Testing tool control management plug-in unit calls that test case layer removes to modify corresponding plugin library to be measured, the debugging in testing element library becomes Amount, plug-in unit to be measured can execute different logic branches according to the value of debugging variable, generate different output results;
(G2) input data is handed down to corresponding plug-in unit to be measured in device layers by management plug-in unit, and plug-in unit to be measured returns to output knot Fruit gives management plug-in unit;
(G3) management plug-in unit will export result and be uploaded to the testing tool in device layers, and testing tool will receive and export result It is compared with the test script expected results of test case layer, completes automatic test, save as test report, and export test Report, the test script are .py file, and the test report is .report file.
As shown in figure 3, device layers include that management plug-in unit and several plug-in units to be measured are constituted, management plug-in unit is used to use upper layer Testing tool in the layer of family interacts, and is responsible for interacting with multiple plug-in units to be measured, and the quantity of plug-in unit to be measured is expansible.
Using the hardware and software platform plug-in unit automatic test approach for microprocessor of the invention, according to plug-in unit (microprocessor) Function selects different test cases, completes hardware and software platform test, plug-in unit newly developed or upgrading plug-in unit, can pass through hardware and software platform Automatic test side quickly carries out functional test, improves product and issues reliability.
As shown in figure 4, test case layer of the invention, including downloading (TestCase_Download), dynamic element (TestCase_Dynamic), data exchange (TestCase_Exchange), parameter management (TestCase_Para), debugging are looked into Ask (TestCase_Query), task schedule (TestCase_Schedule), system interface (TestCase_SysAPI), exception (TestCase_Exception) use-case is recorded to constitute.
Basic principles and main features and advantage of the invention have been shown and described above.The technical staff of the industry should Understand, the present invention is not limited to the above embodiments, and the above embodiments and description only describe originals of the invention Reason, without departing from the spirit and scope of the present invention, various changes and improvements may be made to the invention, these changes and improvements It all fall within the protetion scope of the claimed invention.The claimed scope of the invention is by appended claims and its equivalent circle It is fixed.

Claims (7)

1. a kind of hardware and software platform plug-in unit automatic test approach for microprocessor, it is characterised in that: include the following steps,
Step (A), client layer call multiple plugin libraries to be measured of testing tool building test object layer;
Step (B), client layer select testing element, construct multiple testing element libraries according to the function of plugin library to be measured, modularization, Construct multiple testing element libraries positioned at test case layer;
Step (C), client layer is according to different types of microprocessor package types, the test template of configuration module;
Step (D), client layer call testing tool to identify test template, plugin library to be measured, testing element library, construct automatically to be measured Plug-in unit test program;
Step (E), the configuration tool in device layers are configured according to practical plug-in unit to be measured, construct test system with confidence Breath;
Step (F), client layer call testing tool to merge the configuration information of test system, plug-in card program to be measured, automatic on-line It is updated in the management plug-in unit and plug-in unit to be measured of device layers;
Step (G), the test script of the automatic implementation of test cases layer of testing tool in client layer, with the dress to be measured in device layers It sets and interacts, complete automatic test, export test report.
2. a kind of hardware and software platform plug-in unit automatic test approach for microprocessor according to claim 1, it is characterised in that: Step (D), client layer call testing tool to identify test template, plugin library to be measured, testing element library, call in test case layer Corresponding test script constructs plug-in unit test program to be measured automatically.
3. a kind of hardware and software platform plug-in unit automatic test approach for microprocessor according to claim 1, it is characterised in that: Step (E), the configuration tool in device layers are configured according to practical plug-in unit to be measured, construct the configuration information of test system, institute The configuration information for stating test system can put into or exit according to demand.
4. a kind of hardware and software platform plug-in unit automatic test approach for microprocessor according to claim 1, it is characterised in that: Step (E), is additionally provided with management plug-in unit and multiple plug-in units to be measured in device layers, the management plug-in unit for and the survey in client layer Trial work tool interacts, and interacts with multiple plug-in units to be measured, uses between management plug-in unit and the testing tool The interaction of Ethernet mode, is interacted between the management plug-in unit and multiple plug-in units to be measured using CAN mode.
5. a kind of hardware and software platform plug-in unit automatic test approach for microprocessor according to claim 1, it is characterised in that: Step (F), client layer call testing tool to merge the configuration information of test system, plug-in card program to be measured, and automatic on-line updates Into the management plug-in unit and plug-in unit to be measured of device layers, process is as follows:
(F1) testing tool merges the card slots information of plug-in card program to be measured according to the parsing of the configuration information of test system Afterwards, configuration file is formed, by configuration file online updating into management plug-in unit storage;
It (F2) will be in the memory of plug-in card program online updating to be measured to plug-in unit to be measured.
6. a kind of hardware and software platform plug-in unit automatic test approach for microprocessor according to claim 1, it is characterised in that: Step (G), the test script of the automatic implementation of test cases layer of testing tool in client layer, with the test system in device layers into Row interaction completes automatic test, exports test report, and process is as follows:
(G1) apply the management plug-in unit in input data to device layers;
(G2) input data is handed down to corresponding plug-in unit to be measured in device layers by management plug-in unit, plug-in unit return to be measured export result to Manage plug-in unit;
(G3) management plug-in unit will export result and be uploaded to the testing tool in device layers, and testing tool will receive output result and survey The test script expected results of example layer on probation are compared, and are completed automatic test, are saved as test report, and export test report It accuses.
7. a kind of hardware and software platform plug-in unit automatic test approach for microprocessor according to claim 6, it is characterised in that: The input data be plugin library to be measured, defined in testing element library for the variable of debugging;Apply input data to device Management plug-in unit process in layer refers to calls test case layer to go modification pair by the testing tool of client layer by management plug-in unit Debugging variable in the plugin library to be measured answered, testing element library.
CN201611019390.2A 2016-11-18 2016-11-18 A kind of hardware and software platform plug-in unit automatic test approach for microprocessor Expired - Fee Related CN106528425B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611019390.2A CN106528425B (en) 2016-11-18 2016-11-18 A kind of hardware and software platform plug-in unit automatic test approach for microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611019390.2A CN106528425B (en) 2016-11-18 2016-11-18 A kind of hardware and software platform plug-in unit automatic test approach for microprocessor

Publications (2)

Publication Number Publication Date
CN106528425A CN106528425A (en) 2017-03-22
CN106528425B true CN106528425B (en) 2019-02-22

Family

ID=58352388

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611019390.2A Expired - Fee Related CN106528425B (en) 2016-11-18 2016-11-18 A kind of hardware and software platform plug-in unit automatic test approach for microprocessor

Country Status (1)

Country Link
CN (1) CN106528425B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107145417A (en) * 2017-05-08 2017-09-08 郑州云海信息技术有限公司 A kind of outer plug-in card installation site method of calibration and device
CN107729238A (en) * 2017-10-09 2018-02-23 郑州云海信息技术有限公司 A kind of plug-in unit adjustment method, system, device and computer-readable recording medium
CN110162310B (en) * 2018-02-12 2022-03-01 腾讯科技(深圳)有限公司 Plug-in interface test method and device, computer equipment and storage medium
CN110232024B (en) * 2019-05-26 2020-02-28 必成汇(成都)科技有限公司 Software automation test framework and test method
CN112069083A (en) * 2020-11-12 2020-12-11 深圳开源互联网安全技术有限公司 Test case design method and device and storage medium
CN112256595B (en) * 2020-12-22 2021-03-12 成都新希望金融信息有限公司 Heterogeneous system testing method and device and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101968770A (en) * 2010-11-01 2011-02-09 北京航空航天大学 Reusable embedded software testing and developing method and system
US20140006867A1 (en) * 2012-06-29 2014-01-02 National Instruments Corporation Test Executive System With Process Model Plug-ins
CN104809056B (en) * 2014-01-27 2018-10-02 阿里巴巴集团控股有限公司 A kind of generation method and device of interface testing code

Also Published As

Publication number Publication date
CN106528425A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN106528425B (en) A kind of hardware and software platform plug-in unit automatic test approach for microprocessor
CN102214139B (en) Automatic test performance control and debugging method facing distributed system
CN107562969B (en) Method and device for integrating aero-engine control system software
CN100562879C (en) A kind of dynamic simulation platform method that is used for embedded processor function verification
CN101196844B (en) System and method of testing hardware module
CN103209180B (en) A kind of method and system of testing protocol consistency
CN107704384A (en) A kind of convergent method and system of speed-up chip functional verification
CN104932479A (en) Automatic test method and system
CN103345442A (en) Equipment automated testing service integration system
Pusztai et al. A novel middleware for efficiently implementing complex cloud-native slos
CN106874189A (en) A kind of implementation method of the automatization test system of real-time data of power grid storehouse system
WO2016062152A1 (en) Network element inspection method and device
CN106326127A (en) Automatic test method
CN110532044A (en) A kind of big data batch processing method, device, electronic equipment and storage medium
CN105739481B (en) The test method of industrial control software, apparatus and system
CN109597733A (en) A kind of multifunctional efficient dynamic chip verifying emulation mode and equipment
CN105630559B (en) Board firmware burning method and its system
CN109766278A (en) The backstage gateway WEB automatic test approach based on OSGI frame
CN109669363A (en) A kind of automation simulation test optimization method based on state behavior tree
Acar et al. Programming tools for rapid NFV-based media application development in 5G networks
CN106445611B (en) Big data node system and automatic deployment method
Vogel-Heuser et al. Key maturity indicators for module libraries for PLC-based control software in the domain of automated Production Systems
CN111290934A (en) Jenkins-based vehicle-mounted network product cloud testing method and system
CN105373409B (en) Test case distributed test method based on Hadoop and system
CN113254054A (en) Intelligent contract one-stop development system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190222

CF01 Termination of patent right due to non-payment of annual fee