CN101551774A - Software automatic test system - Google Patents

Software automatic test system Download PDF

Info

Publication number
CN101551774A
CN101551774A CNA2009100389220A CN200910038922A CN101551774A CN 101551774 A CN101551774 A CN 101551774A CN A2009100389220 A CNA2009100389220 A CN A2009100389220A CN 200910038922 A CN200910038922 A CN 200910038922A CN 101551774 A CN101551774 A CN 101551774A
Authority
CN
China
Prior art keywords
test
software
result
data
electronic product
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
CNA2009100389220A
Other languages
Chinese (zh)
Other versions
CN101551774B (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.)
DONGGUAN HUMEN TAIDA ELECTRONIC Co Ltd
Original Assignee
DONGGUAN HUMEN TAIDA ELECTRONIC 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 DONGGUAN HUMEN TAIDA ELECTRONIC Co Ltd filed Critical DONGGUAN HUMEN TAIDA ELECTRONIC Co Ltd
Priority to CN2009100389220A priority Critical patent/CN101551774B/en
Publication of CN101551774A publication Critical patent/CN101551774A/en
Application granted granted Critical
Publication of CN101551774B publication Critical patent/CN101551774B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a software automatic test system which can automatically test the software of an electronic product in a development phase so as to improve development speed of the product. The software automatic test system comprises two parts of hardware and program software; wherein the hardware comprises a software tester and a computer; the computer communicates with the software tester; the software tester is used for simulating manual operation, simulating manual reading of display information and testing the software of the electronic product in the development phase; the computer is used for reading test results feedback from the software tester and comparing the test results with preset results and automatically forming a test report; the program software consists of a tester driving program and a test program; the tester driving program is arranged in the computer; and the test program is stored in a main control CPU of the software tester. Compared with the traditional manual test software, the software automatic test system not only has precise testing, but also improves the efficiency by more than 10 times and simultaneously avoids the defects of omission and error operation and the like in the manual operation.

Description

Software automatic test system
Technical field:
The present invention relates to the testing apparatus of electronic product development phase software, a kind ofly can test the software automatic test system that improves product development speed automatically the software of electronic product development phase thereby relate in particular to.
Background technology:
In the software test field of existing electronic product development phase, according to statistics, the time of electronic product software test accounts for 2/3 of the entire product construction cycle greatly, so the speed of software test can influence the tempo of development of entire product to a great extent.At present, all adopt the method for test manually both at home and abroad, the notion of still unmatchful electronic product software automatic test produces always.Because the main points of electronic product software test are various, complicated, repeatability big, so testing software manually, have all always that workload is huge, fatiguability, easily omit main points, people and be maloperation, shortcoming such as speed is slow, accuracy is low, thereby have a strong impact on the Products Development cycle.
Summary of the invention:
Purpose of the present invention is exactly the deficiency that exists at prior art and a kind of testing efficiency height, software automatic test system easy and simple to handle are provided.
To achieve these goals, the technical solution used in the present invention is:
It comprises hardware and program software two parts, hardware comprises software test instrument and computing machine, computing machine and software test instrument carry out communication, and the software test instrument is used for the analog manual operation, anthropomorphic dummy's part work and part study is got display message, the software of electronic product development phase is tested; The test result that computing machine is used to read from software test instrument feedback also compares this test result with the result who presets, thereby forms test report automatically; Described program software is to be made of tester driver, test procedure, and the tester driver is installed in the computing machine, and test procedure is stored in the master cpu of software test instrument.
Described tester driver comprises: database module is used to deposit the data that tested software is preset the test report of result's data, generation; Module is checked in the compiling of test main points, is used for the software test main points of being imported are compiled and the form inspection; The test result comparison module, the default result's of test result data that the software test instrument is fed back and the tested software in the database data compare, and the result after the comparison is generated test report; Main control module, be used for checking module with described software test instrument and the compiling of test main points, the communication of test result comparison module, test main points compiling is checked that the RS232 PORT COM of software test main points by computing machine after the module compiles inspection sends to the software test instrument, the test result data of receiving software tester feedback, and this test result data is issued the test result comparison module compare, and the default result data of input, the data of test report deposit in the database module, also can delete data message, print, preview, backup, the processing of duplicating.
Described test procedure comprises: the operational order generation module of software test main points, the software test main points that main control module transmitted that are used for acceptance test instrument driver, and after the software test main points are made an explanation, generate the step of the artificial test operation of simulation, the electronic product of required test is tested; Testing data processing module is used to read the test result data of the electronic product feedback of required test, and this test result is sent to the main control module of tester driver.
Described software test instrument comprises master cpu, signal A/D collecting unit, latch, analog switch array unit, communication interface unit; The input end of described signal A/D collecting unit is connected with the LCDs of electronic product to be measured, is used to gather the display message of LCDs; The output terminal of signal A/D collecting unit is connected with the test result input end of master cpu, is used to transmit test result and gives master cpu; The input end of described latch is connected with the operation signal output terminal of master cpu, is used for the test operation signal of temporary master cpu output; The output terminal of latch is connected with the input end of analog switch array unit, is used to transmit the test operation signal and gives the analog switch array unit; The output terminal of described analog switch array unit is connected with the keyboard array unit of electronic product to be measured, is used for artificial test operation is simulated in the keyboard array unit of electronic product to be measured; Described communication interface unit is connected with master cpu, is used to transmit the test that test result sends for computing machine and receiving computer and wants point data.
Described master cpu is a single-chip microcomputer.
The model of described single-chip microcomputer is st2202.
Described communication interface unit is the RS232 interface.
Beneficial effect of the present invention is:
1, the speed of test is fast automatically, if finish the software test cycle of an electronic product, utilizing software test instrument software to test automatically with normal artificial manual test compares, efficient can improve more than at least 10 times, and the calculating function forms test report automatically the problem that software exists is informed the developer apace, easy and simple to handle, need not manually participate in; Again because the software test stage account for the exploitation of whole electronic product cycle 2/3, so utilize the software test instrument, can shorten the electronic product construction cycle greatly.
2, the accuracy height of testing automatically, because the test main points of electronic product are various, complicated, repeatability big, utilize test job amount manually huge, tester's fatiguability, easily omit main points or produce the people and be maloperation, thereby ignore the existence of software issue, do not reach the requirement of test, and the software test instrument just can be avoided the generation of the problems referred to above fully, there are not defectives such as fatigue, omission, maloperation, can all inform the development and testing personnel to each details of test main points really.
Description of drawings:
Fig. 1 is a block diagram of the present invention;
Fig. 2 is the block diagram of software test instrument of the present invention.
Embodiment:
The present invention is further illustrated below in conjunction with accompanying drawing, see Fig. 1,2, the present invention includes hardware and program software two parts, hardware comprises software test instrument 1 and computing machine 2, computing machine 2 and software test instrument 1 carry out communication, and software test instrument 1 is used for the analog manual operation, anthropomorphic dummy's part work and part study is got display message, the software of electronic product development phase is tested; The test result that computing machine 2 is used to read from software test instrument 1 feedback also compares this test result with the result who presets, thereby forms test report automatically; Described program software is to be made of tester driver 3, test procedure 4, and tester driver 3 is installed in the computing machine 2, and test procedure 4 is stored in the master cpu 11 of software test instrument 1.
Described tester driver 3 comprises: database module 5 is used to deposit the data that tested software is preset the test report of result's data, generation; Module 6 is checked in the compiling of test main points, is used for the software test main points of being imported are compiled and the form inspection; Test result comparison module 7, the default result's of test result data that software test instrument 1 is fed back and the tested software in the database data compare, and the result after the comparison is generated test report; Main control module 8, be used for checking module 6 with described software test instrument 1 and the compiling of test main points, 7 communications of test result comparison module, test main points compiling is checked that the RS232 PORT COM of software test main points by computing machine 2 after module 6 compilings are checked sends to software test instrument 1, the test result data of receiving software tester 1 feedback, and this test result data is issued test result comparison module 7 compare, and the default result data of input, the data of test report deposit in the database module 5, also can delete data message, print, preview, backup, the processing of duplicating.
Described test procedure 4 comprises: the operational order generation module 9 of software test main points, be used for the software test main points that the main control module 8 of acceptance test instrument driver 3 is transmitted, and after the software test main points are made an explanation, generate the step of the artificial test operation of simulation, the electronic product of required test is tested; Testing data processing module 10 is used to read the test result data of the electronic product feedback of required test, and this test result is sent to the main control module 8 of tester driver 3.
Described software test instrument 1 comprises master cpu 11, signal A/D collecting unit 12, latch 13, analog switch array unit 14, communication interface unit 15; The input end of described signal A/D collecting unit 12 is connected with the LCDs of electronic product 16 to be measured, is used to gather the display message of LCDs; The output terminal of signal A/D collecting unit 12 is connected with the test result input end of master cpu 11, is used to transmit test result and gives master cpu 11; The input end of described latch 13 is connected with the operation signal output terminal of master cpu 11, is used for the test operation signal of temporary master cpu 11 outputs; The output terminal of latch 13 is connected with the input end of analog switch array unit 14, is used to transmit the test operation signal and gives analog switch array unit 14; The output terminal of described analog switch array unit 14 is connected with the keyboard array unit of electronic product 16 to be measured, is used for artificial test operation is simulated in the keyboard array unit of electronic product 16 to be measured; Described communication interface unit 15 is connected with master cpu 11, is used to transmit the test that test result sends for computing machine 2 and receiving computer 2 and wants point data; Wherein, described master cpu 11 is a single-chip microcomputer, and the model of single-chip microcomputer is st2202; Described communication interface unit 15 is the RS232 interface.
Concrete operations flow process of the present invention:
1, software test instrument 1 is connected on the development board of computing machine 2 and electronic product to be measured 16;
2, each running parameter of adjustment software test instrument 1 cooperates current electronic product to be measured 16;
3, on computing machine 2, start tester driver 3, carry out online testing by 1 pair of electronic product 16 to be measured of software test instrument.
Principle of work of the present invention:
1) analog manual operation
Software test instrument 1 is to want point data to resolve by the test that the RS232 interface sends computing machine 2, form the concrete operations flow process of these test main points then, artificial test operation is simulated in keyboard array unit by the 14 pairs of electronic products 16 to be measured in analog switch array unit, for example, analog switch array unit 14 is electronic analog swtich or relay, then can carry out switch motion to electronic product 16 to be measured by the open closed of electronic analog swtich or relay, thus the artificial real operation of simulation.
2) display message is got in anthropomorphic dummy's part work and part study
Software test instrument 1 is gathered the display message of the LCDs of electronic product 16 to be measured by signal A/D collecting unit 12, forms display message stream in master cpu 11, and is sent to computing machine 2 by the RS232 interface and carries out analyzing and processing.
3) judge the correctness of testing main points automatically
Computing machine 2 flows the display message of the electronic product to be measured 16 that software test instrument 1 sends, and the data of presetting the result with tested software compare, and judge its correctness, and the test report that forms software is fast submitted to the development and testing personnel.
In sum, the present invention is by the cooperation of computing machine 2 and software test instrument 1, can from computing machine 2, extract the software test main points, form the artificial action of simulation, electronic product 16 to be measured is operated, read the display message of electronic product 16 to be measured then, data with the default result of tested software compare, thereby draw test result fast, the present invention can replace artificial software test, for example fully in the process of software test, the present invention can be applicable to counter and uses in the test of electronic product softwares such as software, thereby shortens the construction cycle of counter.
Certainly, the above only is preferred embodiment of the present invention, so all equivalences of doing according to the described structure of patent claim of the present invention, feature and principle change or modify, is included in the patent claim of the present invention.

Claims (7)

1, a kind of software automatic test system, it is characterized in that: this system comprises hardware and program software two parts, hardware comprises software test instrument (1) and computing machine (2), computing machine (2) and software test instrument (1) carry out communication, and software test instrument (1) is used for the analog manual operation, anthropomorphic dummy's part work and part study is got display message, the software of electronic product development phase is tested; The test result that computing machine (2) is used to read from software test instrument (1) feedback also compares this test result with the result who presets, thereby forms test report automatically; Described program software is to be made of tester driver (3), test procedure (4), and tester driver (3) is installed in the computing machine (2), and test procedure (4) is stored in the master cpu (11) of software test instrument (1).
2, software automatic test system according to claim 1 is characterized in that: described tester driver (3) comprising:
Database module (5) is used to deposit the data that tested software is preset the test report of result's data, generation;
Module (6) is checked in the compiling of test main points, is used for the software test main points of being imported are compiled and the form inspection;
Test result comparison module (7), test result data that software test instrument (1) is fed back and the default result's of the tested software in the database data compare, and the result after the comparison is generated test report;
Main control module (8), be used for checking module (6) with described software test instrument (1) and the compiling of test main points, test result comparison module (7) communication, to test main points compilings and check that the RS232 PORT COM of software test main points by computing machine (2) after modules (6) compiling is checked sends to software test instrument (1), the test result data of receiving software tester (1) feedback, and this test result data is issued test result comparison module (7) compare, and the default result data of input, the data of test report deposit in the database module (5), also can delete data message, print, preview, backup, the processing of duplicating.
3, software automatic test system according to claim 1 is characterized in that: described test procedure (4) comprising:
The operational order generation module (9) of software test main points, be used for the software test main points that the main control module (8) of acceptance test instrument driver (3) is transmitted, and after the software test main points are made an explanation, generate the step of the artificial test operation of simulation, the electronic product of required test is tested;
Testing data processing module (10) is used to read the test result data of the electronic product feedback of required test, and this test result is sent to the main control module (8) of tester driver (3).
4, software automatic test system according to claim 1 is characterized in that: described software test instrument (1) comprises master cpu (11), signal A/D collecting unit (12), latch (13), analog switch array unit (14), communication interface unit (15);
The input end of described signal A/D collecting unit (12) is connected with the LCDs of electronic product to be measured (16), is used to gather the display message of LCDs; The output terminal of signal A/D collecting unit (12) is connected with the test result input end of master cpu (11), is used to transmit test result and gives master cpu (11);
The input end of described latch (13) is connected with the operation signal output terminal of master cpu (11), is used for the test operation signal of temporary master cpu (11) output; The output terminal of latch (13) is connected with the input end of analog switch array unit (14), is used to transmit the test operation signal and gives analog switch array unit (14);
The output terminal of described analog switch array unit (14) is connected with the keyboard array unit of electronic product to be measured (16), is used for artificial test operation is simulated in the keyboard array unit of electronic product to be measured (16);
Described communication interface unit (15) is connected with master cpu (11), is used to transmit the test that test result sends for computing machine (2) and receiving computer (2) and wants point data.
5, software automatic test system according to claim 4 is characterized in that: described master cpu (11) is a single-chip microcomputer.
6, software automatic test system according to claim 5 is characterized in that: the model of described single-chip microcomputer is st2202.
7, software automatic test system according to claim 4 is characterized in that: described communication interface unit (15) is the RS232 interface.
CN2009100389220A 2009-04-24 2009-04-24 Software automatic test system Expired - Fee Related CN101551774B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100389220A CN101551774B (en) 2009-04-24 2009-04-24 Software automatic test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100389220A CN101551774B (en) 2009-04-24 2009-04-24 Software automatic test system

Publications (2)

Publication Number Publication Date
CN101551774A true CN101551774A (en) 2009-10-07
CN101551774B CN101551774B (en) 2011-07-20

Family

ID=41156023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100389220A Expired - Fee Related CN101551774B (en) 2009-04-24 2009-04-24 Software automatic test system

Country Status (1)

Country Link
CN (1) CN101551774B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101806820A (en) * 2010-03-16 2010-08-18 合肥皖仪科技有限公司 Automatic zero-setting method for software
CN102298112A (en) * 2011-05-05 2011-12-28 中兴通讯股份有限公司 Method and system for testing programmable logic device
CN102495803A (en) * 2011-12-27 2012-06-13 苏州佰思迈信息咨询有限公司 Software testing system
CN103391209A (en) * 2012-05-10 2013-11-13 王�琦 Network authorization management method suitable for analyzing and testing instrument
CN104360952A (en) * 2012-03-02 2015-02-18 北京奇虎科技有限公司 Software test system and software test method
CN104484249A (en) * 2014-11-28 2015-04-01 北京百度网讯科技有限公司 Smart check system of hardware product quality and server
CN110471855A (en) * 2019-08-21 2019-11-19 小胡杨信息技术(武汉)有限公司 A kind of computer application software test macro and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1554951A (en) * 2003-12-29 2004-12-15 广东拓思软件科学园有限公司 Computer-aided housheold electric appliance auxiliary detector and its detecting method
CN101175285A (en) * 2006-11-01 2008-05-07 联想移动通信科技有限公司 Automatic testing method and system for mobile phone software
CN200997633Y (en) * 2006-12-30 2007-12-26 中国电子科技集团公司第五十研究所 Automatic testing system based on graphic testing platform

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101806820A (en) * 2010-03-16 2010-08-18 合肥皖仪科技有限公司 Automatic zero-setting method for software
CN101806820B (en) * 2010-03-16 2012-08-01 安徽皖仪科技股份有限公司 Automatic zero-setting method for software
CN102298112A (en) * 2011-05-05 2011-12-28 中兴通讯股份有限公司 Method and system for testing programmable logic device
CN102298112B (en) * 2011-05-05 2016-06-01 中兴通讯股份有限公司 The method of testing of a kind of PLD and system
CN102495803A (en) * 2011-12-27 2012-06-13 苏州佰思迈信息咨询有限公司 Software testing system
CN104360952A (en) * 2012-03-02 2015-02-18 北京奇虎科技有限公司 Software test system and software test method
CN103391209A (en) * 2012-05-10 2013-11-13 王�琦 Network authorization management method suitable for analyzing and testing instrument
CN104484249A (en) * 2014-11-28 2015-04-01 北京百度网讯科技有限公司 Smart check system of hardware product quality and server
CN110471855A (en) * 2019-08-21 2019-11-19 小胡杨信息技术(武汉)有限公司 A kind of computer application software test macro and method

Also Published As

Publication number Publication date
CN101551774B (en) 2011-07-20

Similar Documents

Publication Publication Date Title
CN101551774B (en) Software automatic test system
CN102681532B (en) Simulating test system for BCM (body control module)
CN110048910A (en) A kind of vehicle-mounted ethernet gateway test macro and method
CN101739023B (en) Car body controller simulation system
CN101833076B (en) Terminal automatic detection device
CN102722107A (en) Intelligent integrated development and test system for high-voltage frequency converter and establishment method thereof
CN101435841A (en) Test system and method
CN108983077B (en) Circuit board test system and test method based on JTAG link
CN104598373B (en) A kind of embedded software test method of multi-technical fusion
CN107944193A (en) Avionics semi-matter simulating system
CN112036023B (en) Software integrated generation system of generator transformer set protection device
CN105158718B (en) A kind of fault detector integrated test facility and test system
CN103913728B (en) A kind of method of testing based on portable radar comprehensive tester
CN108181890A (en) DCS automatic test devices based on virtual instrument
CN200997633Y (en) Automatic testing system based on graphic testing platform
CN112162916A (en) LKJ test system capable of automatically generating test script
CN203178431U (en) Full-automatic testing system for circuit boards
CN109141588B (en) Automatic simulation test system for gas meter
CN201392525Y (en) Software automatic detector
CN112099453B (en) Function verification system of nuclear power plant safety level instrument control system
CN101320067B (en) Automatic testing equipment and method of multi-channel selector
CN102340572A (en) Method and equipment for carrying out black box test on mobile phone mainboard
CN112214912A (en) External automatic test system and airborne equipment test method
CN205898913U (en) Universal tool is used in electronic test equipment test
CN110674923A (en) Rapid model verification method among multiple neural network frames

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110720

Termination date: 20130424