CN1503136A - Embedded software test method - Google Patents
Embedded software test method Download PDFInfo
- Publication number
- CN1503136A CN1503136A CNA021453888A CN02145388A CN1503136A CN 1503136 A CN1503136 A CN 1503136A CN A021453888 A CNA021453888 A CN A021453888A CN 02145388 A CN02145388 A CN 02145388A CN 1503136 A CN1503136 A CN 1503136A
- Authority
- CN
- China
- Prior art keywords
- test
- program
- background
- software
- data
- 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
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
This invention relates to a embedded software test program including the following steps: 1. coding test background program capable if generating or dispatching testing routine library 2. the background program sends down the testing routine via its communication port 3. adding pile programs in the test software which processes received testing routine data by the pile programs and presets data and state needed to be collected from surrounding hardware ports 4. the pile program collects operation results of the test software and feed it back to the background 5. the background computer compares the routine operation result with that of the preset to be counted and displayed.
Description
Technical field
The present invention relates to a kind of computer software, more particularly relate to a kind of method of testing of computer software.
Background technology
Embedded software all is the software that moves on particular target system, and its hardware platform and operating system are special-purpose often, do not have versatility, the software that uses such as switch, fire wall, mobile phone, PDA, intelligent appliance etc.At present, cross-beta (Cross-test) is generally adopted in the test of embedded software, promptly utilizes the portability of higher level lanquage, major part work is transferred on the host platform (Host) carried out.The bottleneck of goal systems can be avoided like this, in-circuit emulator needn't be used.For with the closely-related fraction software of target hardware, still on target platform, test by in-circuit emulator/debugger.And for the test of some embedded software, can not transplant or be transplanted to and test on the computer platform (Host) comparatively speaking that workload is too big, very calculate.To its dynamic test of carrying out generally is to carry out on the target platform (Target) in reality.Promptly in the real system operational process, the tester, observes the ruuning situation of tested software, thereby finishes the dynamic test to tested software by the various input states of the artificial manufacturing of system environments according to the test case of design.The method of testing of carrying out on this target platform in reality (Target) often because of the environmental limit that is put to the test, is difficult to simulate for the situation that might occur in a lot of actual motions or some special circumstances, and test case is very limited.And when test, the tester generally needs the most of the time to stay in test site, observes operation result.
Summary of the invention
The present invention is in order to overcome weak point of the prior art, being intended to provides a kind of test case very abundant for those are difficult to be transplanted to the embedded software of testing on the computer platform (Host), content measurement is more extensive, and can realize the method for testing of test automation to a certain degree.
The present invention is achieved through the following technical solutions: method of testing of the present invention is a kind of input and output that utilize communication port as data, makes tested software under part detachment system hardware platform environment and to its a kind of embedded software test method of testing.It comprises the following steps: (1) establishment test background program, and the background test program is moved on background computer, and the test background program can generate or call test case library; (2) background program issues test case to the tested software in the target platform by the PORT COM of computing machine; (3) add the stake program that is used to test in the tested software in target platform, tested software is passed through the test case data that the stake routine processes receives, and presets from the data and the state of peripheral hardware port processing needing in the target platform according to the test case data that receives; (4) the stake program is collected the operation result of tested software under this test case in the target platform, and by communication port the operation result of tested software is fed back to the backstage; (5) background computer compares this test case operation result and the expected results of feedback, and statistics also shows comparative result.
The present invention has following beneficial effect;
(1) owing to the test case of this method of testing is called or customized by the computer background test procedure, but the data of test case are arbitrary combination under situation about meeting the demands, carry out various conventionally tests and marginal test or the like, test case is very abundant, has improved test coverage greatly.
(2) can realize to a certain degree test automation.The backstage can compare The actual running results and the expected results of receiving, and compared result is added up and record, and shows on the interface.The tester can stay in each test of field observation ruuning situation with row after starting test, the result of whole test is just known in the statistic record that only need check background computer.
Description of drawings
Fig. 1 implementation procedure synoptic diagram.
Embodiment
The invention will be further described below in conjunction with accompanying drawing:
According to the needs establishment test background program of test, test procedure moves on background computer, requires the background test program can generate automatically or call at the various test cases of tested software; And, be expected at tested software true(-)running result under this test case according to functional design requirements to tested software.Test procedure issues test case to the tested software in the target platform by the communication port of background computer.
Also to make corresponding modify for foreground tested software source code, add the stake program that is used for testing.The stake program mainly can be finished following function: 1, the tested software in the target platform receives the test case data that background computer issues by communication port, after handling accordingly with the deposit data that issues in a memory address of opening up specially.The collection of real time data when 2, the control tested program is moved.During test, gather port from hardware data when tested software in operational process and carry out data volume when gathering, the bootable tested software of stake program obtains the corresponding data that the backstage issues from the internal memory corresponding address, thereby finishes the data input to tested software.3, the operation result that is collected in tested program under some test cases (input data) (comprises various analog quantity numerical value, the switching value state, equipment running status or the like), and operation result packing handled, report background computer in the mode of communication by communication port.
The computer background test procedure compares this The actual running results behind the operation result that receives the test case in the target platform with the true(-)running result who is expected according to the functional design requirements of tested program by background computer.If The actual running results is consistent with expected results, it is correct to represent that then tested software is carried out the function that this test case realizes, test is passed through; If The actual running results and expected results are inconsistent, illustrate that then tested program may not this function of correct execution.
In addition, the present invention also can carry out a part of white-box testing: we also can open up a sector address space in the target platform internal memory, deposit some logic states or data that the background computer program is provided with, and change some the corresponding logical conditions in the target program that we will test or the numerical value of variable, thereby can be to white-box testings such as the test of test target program realization condition, data stream test and coverage rate statistics with these logic states or data.
Instantiation:
Further specify practicing of this method of testing below by a simple concrete example.
For high-power integrated drive generator, system as 3000A, want the alarm of test macro overcurrent, if (power is too big to carry out the difficulty of building very of test environment in the system of reality, require very high to power line and load line, so big load also is difficult to look for), also danger close, but just very simple with this method of testing.Testing procedure is as follows:
1, customization background test program can issue various test cases at the integrated drive generator monitoring software by test background computing machine communication port.
2, add the stake program that is used for testing in the target monitoring software of integrated drive generator veneer: a) open up one section memory headroom in the software of foreground, deposit the data that the backstage issues, one of them address of 16 is used for depositing the load current value that background computer issues.B) data acquisition guiding stake program, when the data that will read the A/D port when tested formula software data capture program were load current value, the data acquisition program of the tested formula software of stake program designation read the value in 16 bit address that are used for depositing the load current value that the backstage issues; The load current value that obtains of foreground is actually the load current value that the test computer backstage issues like this.C) foreground monitoring software running status collection stake program is collected in the value (suppose 00H for normal, 01H is the load current overcurrent) of the load current overcurrent alarm status sign under this load current value, and this state value is reported background computer.
3, load current overcurrent in hypothetical target foreground judges that setting value is 3000A, issues 3001A by test background and gives the foreground monitoring software, and expect correct result, and promptly the value of load current overcurrent alarm status sign is 01H.The tested program in foreground is moved under these load current data, and the value of the load current overcurrent alarm status sign of tested program can be updated; The state outcome collection procedure that adds reads the value of load current overcurrent alarm status sign, and its communication serial ports by foreground veneer is reported the backstage.
4, computer background is received (value of the load current overcurrent alarm status sign that reports) after the The actual running results, and (01H) compares with expected results; If both unanimities are then passed through for test, inconsistently think that then this function of tested software realizes having problem, need further checking.And compared result adds up, and statistics is shown on background computer.
Claims (1)
1. an embedded software test method is characterized in that, it comprises the following steps: (1) establishment test background program, and the background test program is moved on background computer, and the test background program can generate or call test case library; (2) background program issues test case to the tested software in the target platform by the PORT COM of computing machine; (3) add the stake program that is used to test in the tested software in target platform, tested software is passed through the test case data that the stake routine processes receives, and presets from the data and the state of peripheral hardware port processing needing in the target platform according to the test case data that receives; (4) the stake program is collected the operation result of tested software under this test case in the target platform, and by communication port the operation result of tested software is fed back to the backstage; (5) background computer compares this test case operation result and the expected results of feedback, and statistics also shows comparative result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB021453888A CN1310150C (en) | 2002-11-21 | 2002-11-21 | Embedded software test method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB021453888A CN1310150C (en) | 2002-11-21 | 2002-11-21 | Embedded software test method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1503136A true CN1503136A (en) | 2004-06-09 |
CN1310150C CN1310150C (en) | 2007-04-11 |
Family
ID=34232401
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB021453888A Expired - Fee Related CN1310150C (en) | 2002-11-21 | 2002-11-21 | Embedded software test method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1310150C (en) |
Cited By (33)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1318976C (en) * | 2004-06-16 | 2007-05-30 | 华为技术有限公司 | Software detection method and system |
CN100337216C (en) * | 2004-09-04 | 2007-09-12 | 华为技术有限公司 | Software test method |
CN100340997C (en) * | 2004-09-04 | 2007-10-03 | 华为技术有限公司 | Automatic test method of application |
CN100349134C (en) * | 2005-03-28 | 2007-11-14 | 华为技术有限公司 | Method and system for testing drive software |
CN100362817C (en) * | 2005-04-07 | 2008-01-16 | 华为技术有限公司 | Software module testing method |
CN100364282C (en) * | 2004-08-18 | 2008-01-23 | 华为技术有限公司 | Method and system for testing stimulant user board function |
CN100370432C (en) * | 2004-08-18 | 2008-02-20 | 华为技术有限公司 | Automated testing apparatus and method for embedded software |
CN100370431C (en) * | 2004-08-16 | 2008-02-20 | 上海华为技术有限公司 | Method and system for monitoring embedded system on line |
CN100375057C (en) * | 2004-08-31 | 2008-03-12 | 中国银联股份有限公司 | Automatic test auxiliary system and corresponding software automatic test method |
CN100388229C (en) * | 2005-06-01 | 2008-05-14 | 中兴通讯股份有限公司 | Unit test system and method for automatic generating stub and driving function |
CN100407161C (en) * | 2004-09-09 | 2008-07-30 | 北京航空航天大学 | Dynamic software clustering test method |
CN100412815C (en) * | 2005-04-01 | 2008-08-20 | 上海宝信软件股份有限公司 | Method for integrative debugging of application program under three-tier architecture |
CN100414512C (en) * | 2004-09-09 | 2008-08-27 | 北京航空航天大学 | Software associated fault inspection |
CN100432954C (en) * | 2005-09-23 | 2008-11-12 | 中兴通讯股份有限公司 | Inlaid system detection method and system |
CN100451982C (en) * | 2007-02-05 | 2009-01-14 | 无敌科技(西安)有限公司 | Method for automatic detecting data of embedded equipment |
CN100458729C (en) * | 2006-09-29 | 2009-02-04 | 上海科泰世纪科技有限公司 | Automatic operating method for interface test in embedded operating system |
CN101697144A (en) * | 2009-10-28 | 2010-04-21 | 中兴通讯股份有限公司 | Software test method and software test device |
CN1920791B (en) * | 2005-08-22 | 2010-04-28 | 王彤 | Program testing system |
CN102004691A (en) * | 2010-11-12 | 2011-04-06 | 中兴通讯股份有限公司 | Method and system for executing test case |
CN101576850B (en) * | 2009-06-10 | 2011-05-04 | 南京航空航天大学 | Method for testing improved host-oriented embedded software white box |
CN101266570B (en) * | 2007-03-15 | 2011-05-11 | 中兴通讯股份有限公司 | Software system test method and apparatus |
CN102520343A (en) * | 2011-12-14 | 2012-06-27 | 电子科技大学 | Graphical test method of semiconductor devices |
CN102662846A (en) * | 2012-04-24 | 2012-09-12 | 广东欧珀移动通信有限公司 | Testing method combining automatic tool and testing case |
CN101427253B (en) * | 2005-12-09 | 2013-05-22 | Abb技术有限公司 | System and method for the automatic verification of planning results |
CN101859274B (en) * | 2009-04-07 | 2013-06-05 | 西门子(中国)有限公司 | Method and system for fuzz testing |
CN103324572A (en) * | 2013-06-28 | 2013-09-25 | 广东电网公司电力科学研究院 | Operating system performance test method and device for power secondary system |
CN103336741A (en) * | 2013-06-28 | 2013-10-02 | 广东电网公司电力科学研究院 | Method and device for testing stability of operation system of power secondary system |
CN103593179A (en) * | 2012-08-17 | 2014-02-19 | 通用电气航空系统有限责任公司 | Method for developing software in a parallel computing environment |
CN104063325A (en) * | 2014-07-11 | 2014-09-24 | 电子科技大学 | Automatic generation device and method for test cases of embedded software |
CN104657270A (en) * | 2015-02-28 | 2015-05-27 | 北京嘀嘀无限科技发展有限公司 | Method and system for testing |
CN105493048A (en) * | 2013-09-04 | 2016-04-13 | 株式会社Ntt都科摩 | Debug device, debug method, and debug program |
CN105893255A (en) * | 2016-03-30 | 2016-08-24 | 西安电子工程研究所 | Radar seeker data processing DSP software testing method |
CN106547684A (en) * | 2015-09-22 | 2017-03-29 | 腾讯科技(深圳)有限公司 | A kind of method of testing of application program, test device and mobile terminal |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE19650293C1 (en) * | 1996-12-04 | 1998-04-09 | Siemens Ag | System component testing method for object-orientated program |
CN1164065C (en) * | 1999-11-04 | 2004-08-25 | 中兴通讯股份有限公司 | Universal protocol testing method for embedded system |
-
2002
- 2002-11-21 CN CNB021453888A patent/CN1310150C/en not_active Expired - Fee Related
Cited By (39)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1318976C (en) * | 2004-06-16 | 2007-05-30 | 华为技术有限公司 | Software detection method and system |
CN100370431C (en) * | 2004-08-16 | 2008-02-20 | 上海华为技术有限公司 | Method and system for monitoring embedded system on line |
CN100364282C (en) * | 2004-08-18 | 2008-01-23 | 华为技术有限公司 | Method and system for testing stimulant user board function |
CN100370432C (en) * | 2004-08-18 | 2008-02-20 | 华为技术有限公司 | Automated testing apparatus and method for embedded software |
CN100375057C (en) * | 2004-08-31 | 2008-03-12 | 中国银联股份有限公司 | Automatic test auxiliary system and corresponding software automatic test method |
CN100337216C (en) * | 2004-09-04 | 2007-09-12 | 华为技术有限公司 | Software test method |
CN100340997C (en) * | 2004-09-04 | 2007-10-03 | 华为技术有限公司 | Automatic test method of application |
CN100407161C (en) * | 2004-09-09 | 2008-07-30 | 北京航空航天大学 | Dynamic software clustering test method |
CN100414512C (en) * | 2004-09-09 | 2008-08-27 | 北京航空航天大学 | Software associated fault inspection |
CN100349134C (en) * | 2005-03-28 | 2007-11-14 | 华为技术有限公司 | Method and system for testing drive software |
CN100412815C (en) * | 2005-04-01 | 2008-08-20 | 上海宝信软件股份有限公司 | Method for integrative debugging of application program under three-tier architecture |
CN100362817C (en) * | 2005-04-07 | 2008-01-16 | 华为技术有限公司 | Software module testing method |
CN100388229C (en) * | 2005-06-01 | 2008-05-14 | 中兴通讯股份有限公司 | Unit test system and method for automatic generating stub and driving function |
CN1920791B (en) * | 2005-08-22 | 2010-04-28 | 王彤 | Program testing system |
CN100432954C (en) * | 2005-09-23 | 2008-11-12 | 中兴通讯股份有限公司 | Inlaid system detection method and system |
CN101427253B (en) * | 2005-12-09 | 2013-05-22 | Abb技术有限公司 | System and method for the automatic verification of planning results |
CN100458729C (en) * | 2006-09-29 | 2009-02-04 | 上海科泰世纪科技有限公司 | Automatic operating method for interface test in embedded operating system |
CN100451982C (en) * | 2007-02-05 | 2009-01-14 | 无敌科技(西安)有限公司 | Method for automatic detecting data of embedded equipment |
CN101266570B (en) * | 2007-03-15 | 2011-05-11 | 中兴通讯股份有限公司 | Software system test method and apparatus |
CN101859274B (en) * | 2009-04-07 | 2013-06-05 | 西门子(中国)有限公司 | Method and system for fuzz testing |
CN101576850B (en) * | 2009-06-10 | 2011-05-04 | 南京航空航天大学 | Method for testing improved host-oriented embedded software white box |
CN101697144A (en) * | 2009-10-28 | 2010-04-21 | 中兴通讯股份有限公司 | Software test method and software test device |
WO2011050657A1 (en) * | 2009-10-28 | 2011-05-05 | 中兴通讯股份有限公司 | Software testing method and testing device |
CN102004691A (en) * | 2010-11-12 | 2011-04-06 | 中兴通讯股份有限公司 | Method and system for executing test case |
CN102520343A (en) * | 2011-12-14 | 2012-06-27 | 电子科技大学 | Graphical test method of semiconductor devices |
CN102662846B (en) * | 2012-04-24 | 2014-12-10 | 广东欧珀移动通信有限公司 | Testing method combining automatic tool and testing case |
CN102662846A (en) * | 2012-04-24 | 2012-09-12 | 广东欧珀移动通信有限公司 | Testing method combining automatic tool and testing case |
CN103593179A (en) * | 2012-08-17 | 2014-02-19 | 通用电气航空系统有限责任公司 | Method for developing software in a parallel computing environment |
CN103336741A (en) * | 2013-06-28 | 2013-10-02 | 广东电网公司电力科学研究院 | Method and device for testing stability of operation system of power secondary system |
CN103324572A (en) * | 2013-06-28 | 2013-09-25 | 广东电网公司电力科学研究院 | Operating system performance test method and device for power secondary system |
CN103324572B (en) * | 2013-06-28 | 2016-12-28 | 广东电网公司电力科学研究院 | The operating system performance method of testing of electric power secondary system and device |
CN105493048A (en) * | 2013-09-04 | 2016-04-13 | 株式会社Ntt都科摩 | Debug device, debug method, and debug program |
CN105493048B (en) * | 2013-09-04 | 2018-06-01 | 株式会社Ntt都科摩 | Debugging apparatus, adjustment method and storage medium |
CN104063325A (en) * | 2014-07-11 | 2014-09-24 | 电子科技大学 | Automatic generation device and method for test cases of embedded software |
CN104063325B (en) * | 2014-07-11 | 2016-10-26 | 电子科技大学 | A kind of test exemple automation generating means for embedded software and method thereof |
CN104657270A (en) * | 2015-02-28 | 2015-05-27 | 北京嘀嘀无限科技发展有限公司 | Method and system for testing |
CN106547684A (en) * | 2015-09-22 | 2017-03-29 | 腾讯科技(深圳)有限公司 | A kind of method of testing of application program, test device and mobile terminal |
WO2017049893A1 (en) * | 2015-09-22 | 2017-03-30 | 腾讯科技(深圳)有限公司 | Application program testing method, testing apparatus, and mobile terminal |
CN105893255A (en) * | 2016-03-30 | 2016-08-24 | 西安电子工程研究所 | Radar seeker data processing DSP software testing method |
Also Published As
Publication number | Publication date |
---|---|
CN1310150C (en) | 2007-04-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1310150C (en) | Embedded software test method | |
CN107562635B (en) | Embedded software test auxiliary system | |
US8589886B2 (en) | System and method for automatic hardware and software sequencing of computer-aided design (CAD) functionality testing | |
CN100349134C (en) | Method and system for testing drive software | |
CN103995777A (en) | Automatic embedded software block box testing system and method | |
US6868508B2 (en) | System and method enabling hierarchical execution of a test executive subsequence | |
US9170856B2 (en) | Message traffic interception system | |
US5309352A (en) | Method and system for optimizing termination in systems of programmable devices | |
CN104794258A (en) | Automobile hardware-in-loop simulation system | |
CN101060372A (en) | A method and system for rapid creating the automation test script | |
CN110018392B (en) | Test system of distribution automation system main station | |
CN102063367B (en) | Off-line analysis method and device aiming at computer crash program | |
CN103425055A (en) | Semi-virtual functional test device and method for control system | |
KR20050034661A (en) | Automatic testing system for mobile software and service | |
CN1306408C (en) | Method capable of smartly implementing EEPROM simulation function in chip | |
CN111310313A (en) | IAP-based simulation method and device and wafer cleaning equipment | |
CN110990221A (en) | Kernel LKM-based Android platform malicious software automatic detection method and system | |
CN1845078A (en) | Embedded apparatus debugging method | |
CN114925516A (en) | Method and device for automatic modeling and simulation | |
CN114647451A (en) | Test equipment driver and driving method | |
CN111209007A (en) | Software implementation method for monitoring controllable equipment based on mobile environment | |
CN110567112B (en) | Control method of air conditioning equipment, control system of air conditioning equipment and air conditioning system | |
CN109271296A (en) | A kind of jelly screen test method | |
CN114826615B (en) | Mobile terminal acquisition method and system based on mobile phone simulator | |
CN116909894B (en) | Virtual-real fusion hybrid dynamic test platform design method |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20070411 Termination date: 20171121 |