CN101178687B - Software regression testing method - Google Patents
Software regression testing method Download PDFInfo
- Publication number
- CN101178687B CN101178687B CN200710193825XA CN200710193825A CN101178687B CN 101178687 B CN101178687 B CN 101178687B CN 200710193825X A CN200710193825X A CN 200710193825XA CN 200710193825 A CN200710193825 A CN 200710193825A CN 101178687 B CN101178687 B CN 101178687B
- Authority
- CN
- China
- Prior art keywords
- file
- test
- testing
- message
- software
- 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
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method of a software regress testing, which comprises the following steps: step S102, the input of the software waiting for the test is simulated to be message and the message is dispatched to the software waiting for the test through a testing platform and the output of the software waiting for the test is written into a stub file; step S 104, according to search messageof the output structure of the software waiting for the test, output result of the software waiting for the test is obtained through searching the message and the records corresponding to the outputresult in the stub file is back to the testing platform; step S106, testing proposal file is set up according to the message simulated by the software waiting for the test and is implemented; the result after right executed and the record of the stub file returning to the testing platform are recorded together to form a standard file and are saved; and step S108, the current result file and the standard result file are automatically compared with each other and the regress test is fulfilled, when the testing proposal file executed next time. By adopting the method of the invention to test, thedisposal of the stub files becomes much simpler.
Description
Technical field
The present invention relates to the regression test of embedded software.
Background technology
In communication, today of field develop rapidlys such as software, increasingly competitive, each company is all saving cost hand and foot, and needs suitable manpower in the process of test unavoidably, how to save testing cost effectively, make the test of software only need accomplish a manual operation, and when change took place software, can carry out original functional test did not like a cork need the duplication of labour, and this just seems very important.
This patent has been introduced a kind of regression tested implementation method, record is carried out in the output of software in operational process, and feed back to test platform, test platform carries out record with the outgoing message of software in the whole process, in follow-up test automatically relatively and point out difference.This regression tested is used quite extensive, and each company all has at robotization or regression tested research and uses.
CN200610138745 " a kind of mobile phone automatized test macro and method of testing " as Huawei Company has described record has been carried out in input, and be converted into button, with the operation note of this button is test case, make things convenient for automatic test, but on this problem of regression test, how output is carried out verification and returns not being described.And this patent has not only described how input is converted into use-case, has also described and how the output of software has been inquired about and record, has only comprehensive input and output of having write down, and just can finish automatic regression test.
Huawei Company and for example: CN03107179 " a kind of method of testing " says is automatic test to real equipment, data for output, the Special Equipment that adopts is handled record, so that next time relatively, and this patent is not used as special processing at outbound course, and after just noting earlier, inquire about record then by the test platform unification.The user only needs just passable alternately with test platform.
The CN200510100657 of KangJia Group Co., Ltd " testing method of program unit of automatic gauging test result " has talked about the regression tested method for another example, but just be confined to the unit testing field of software, just the rreturn value to function returns, and to how returning to system-Level software does not describe.
Therefore, need a kind of software regression testing solution, can solve the problem in the above-mentioned correlation technique.
Summary of the invention
The objective of the invention is to realize regression test,, and when change takes place software, can carry out original functional test like a cork even the test of software only need to accomplish a manual operation to software function, and the difference of comparison execution result.
According to the present invention, a kind of method of software regression testing is provided, may further comprise the steps: step S102, the input of software under testing is modeled to message, and message is issued to software under testing, and the output of software under testing is write a file by test platform with message generation, record and sending function; Step S104 according to the output of software under testing structure query message, obtaining the output result of software under testing by the inquiry query message when each test, and will turn back to test platform corresponding to the record in output result's the stake file; Step S106, set up the testing scheme file that comprises a plurality of test cases according to the message that is modeled to by software under testing, and carry out described a plurality of test cases in the testing scheme file, the result after the correct execution is recorded as the standard results file with the record of the stake file that turns back to test platform and preserves; And step S108, when carrying out the testing scheme file, automatically current results file and standard results file are compared, if variant then point out described difference next time.
Test platform is the message generation system, is used for generating, writes down and sends message.
The stake file is used to carry out simple record.
All comprise a plurality of test cases in each testing scheme file, and last test case in each testing scheme file all is the message of inquiry output.
Adopt method of the present invention to test, make the processing of a file become very simple, and all input/output states of software all have been recorded as the standard results file, only need current results file and standard results file are once compared next time, can finish regression test.
Other features and advantages of the present invention will be set forth in the following description, and, partly from instructions, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the instructions of being write, claims and accompanying drawing.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 shows the process flow diagram according to the method for software regression testing of the present invention;
Fig. 2 shows the process flow diagram according to the embedded software regression tested method of the embodiment of the invention;
Fig. 3 shows the mutual synoptic diagram of embedded software regression tested in accordance with another embodiment of the present invention; And
Fig. 4 shows the process flow diagram of embedded software regression tested method in accordance with another embodiment of the present invention.
Embodiment
Describe embodiments of the invention in detail below in conjunction with accompanying drawing.
Fig. 1 shows the process flow diagram according to the method for software regression testing of the present invention.With reference to Fig. 1, may further comprise the steps according to the method for software regression testing of the present invention: step S102 is modeled to message with the input of software under testing, and by test platform message is issued to software under testing, and the output of software under testing is write a file; Step S104 according to the output of software under testing structure query message, obtaining the output result of software under testing by the inquiry query message when each test, and will turn back to test platform corresponding to the record in output result's the stake file; Step S106 sets up the testing scheme file according to the message that is modeled to by software under testing, and carries out the testing scheme file, the result after the correct execution is recorded as the standard results file with the record of the stake file that turns back to test platform and preserves; And step S108, when carrying out the testing scheme file, automatically current results file and standard results file are compared next time, finish regression test.
Step S108 is further comprising the steps of: when current results file and standard results file are compared, if variant then point out difference.
Test platform is the message generation system, is used for generating, writes down and sends message.
The stake file is used to carry out simple record.
All comprise a plurality of test cases in each testing scheme file, and last test case in each testing scheme file all is the message of inquiry output.
Fig. 2 shows the process flow diagram according to the embedded software regression tested method of the embodiment of the invention.With reference to Fig. 2, in this embodiment, the software regression testing method may further comprise the steps:
Step S202, the input end transformation promptly, is simulated the input of software under testing by message, issue by test platform;
Step S204, the output terminal transformation promptly, writes a file with the output of software under testing, and wherein, a stake file just carries out simple record;
Step S206 according to software output structure query message, turns back to test platform with precedence record to the record in the stake file;
Step S208 sets up the testing scheme file according to the list entries of software, and wherein, each scheme file the inside has comprised a plurality of test cases, and last use-case of each file all is the message of inquiry output;
Step S210 carries out testing scheme, and is the standard results file with the outcome record after the correct execution, preserves to be used for recurrence;
Step S212 when carrying out this scheme file, compares current results file and standard results file next time automatically, if variant then point out difference.
In this embodiment, test platform is a kind of message generation system, can be used in generation, record and sends message.
Describe an alternative embodiment of the invention in detail below in conjunction with Fig. 3 and Fig. 4.Fig. 3 shows the mutual synoptic diagram of embedded software regression tested in accordance with another embodiment of the present invention.
In this embodiment, in the process of the business processing part of doing the SDH transmitting software, for the function of business processing part software is carried out regression test, the outside message input or the input of excitation will be arranged not only, whether the time slot configuration that also will pay close attention to output is correct.As shown in Figure 4, the method for this embodiment may further comprise the steps:
Step S402 simulates message and outside excitation information that the network element control plate issues by message, issue by test platform;
Step S404 writes a file with the time slot configuration of exporting, and a stake file part just simply writes down time slot configuration, form such as a/b->C;
Step S406, the message of structure inquiry time slot turns back to test platform with precedence record to the record in the stake file;
Step S408 sets up the testing scheme file according to the test procedure of business processing, and wherein, each scheme file the inside has comprised a plurality of test cases, and last use-case of each file all is the time slot that query note gets off.
Step S410 carries out testing scheme, pays close attention to the time slot and the message information that return, is the standard results file with the outcome record after the correct execution, preserves to be used for returning; And
Step S412 when carrying out this scheme file, compares current results file and standard results file next time automatically, if variant then point out difference.
Adopt method of the present invention to test, make the processing of a file become very simple, and all input/output states of software all have been recorded as the standard results file, only need current results file and standard results file are once compared next time, can finish regression test.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (2)
1. the method for a software regression testing is characterized in that, may further comprise the steps:
Step S102 is modeled to message with the input of software under testing, and by the test platform with message generation, record and sending function described message is issued to described software under testing, and the output of software under testing is write a file;
Step S104, output structure query message according to described software under testing, with when each test by inquiring about the output result that described query message obtains described software under testing, and will turn back to described test platform corresponding to the record in described output result's the described stake file;
Step S106, set up the testing scheme file that comprises a plurality of test cases according to the message that is modeled to by described software under testing, and carry out described a plurality of test cases in the described testing scheme file, the result after the correct execution is recorded as the standard results file with the record of the described stake file that turns back to described test platform and preserves; And
Step S108 when carrying out described testing scheme file, compares current results file and described standard results file next time automatically, if variant then point out described difference,
Wherein, last the described test case in each described testing scheme file all is the message of inquiry output.
2. method according to claim 1 is characterized in that, described stake file is used to carry out simple record.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200710193825XA CN101178687B (en) | 2007-11-26 | 2007-11-26 | Software regression testing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200710193825XA CN101178687B (en) | 2007-11-26 | 2007-11-26 | Software regression testing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101178687A CN101178687A (en) | 2008-05-14 |
CN101178687B true CN101178687B (en) | 2010-06-09 |
Family
ID=39404947
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200710193825XA Expired - Fee Related CN101178687B (en) | 2007-11-26 | 2007-11-26 | Software regression testing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101178687B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101271423B (en) * | 2008-05-19 | 2010-06-16 | 中兴通讯股份有限公司 | Software interface test approach and system |
CN103514088B (en) * | 2012-06-19 | 2016-05-11 | 珠海世纪鼎利通信科技股份有限公司 | A kind of function regression testing method of terminal application software |
CN103823747B (en) * | 2012-11-16 | 2017-09-15 | 上海华虹集成电路有限责任公司 | The method of automatic regression test |
JP5991695B2 (en) * | 2013-12-06 | 2016-09-14 | インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation | Method for detecting an effect caused by changing a source code of an application from which a document object model tree and a cascading style sheet can be retrieved, and a computer for detecting the effect and the computer ·program |
CN106201859A (en) * | 2015-05-07 | 2016-12-07 | 阿里巴巴集团控股有限公司 | A kind of regression testing method and system |
CN106484605A (en) * | 2015-08-28 | 2017-03-08 | 中兴通讯股份有限公司 | A kind of method and system realizing software automated testing |
CN105721864B (en) * | 2016-04-20 | 2018-09-21 | 杭州当虹科技有限公司 | A kind of efficient regression testing method based on audio and video encapsulated layer parameter detecting |
CN105975924A (en) * | 2016-04-29 | 2016-09-28 | 杭州当虹科技有限公司 | Regression testing method for precisely recognizing ad content based on video frame statistics |
CN106897216A (en) * | 2017-02-13 | 2017-06-27 | 北京趣拿软件科技有限公司 | The method and apparatus of test software |
CN106897217A (en) * | 2017-02-13 | 2017-06-27 | 北京趣拿软件科技有限公司 | Method of testing and test device |
CN107870858A (en) * | 2017-05-05 | 2018-04-03 | 平安科技(深圳)有限公司 | Version contrast test method and system |
CN109743231A (en) * | 2019-02-22 | 2019-05-10 | 杭州迪普科技股份有限公司 | A kind of acl feature test method and device |
CN110569196A (en) * | 2019-09-11 | 2019-12-13 | 宝付网络科技(上海)有限公司 | Regression testing system |
CN112231201A (en) * | 2020-09-18 | 2021-01-15 | 中国铁道科学研究院集团有限公司通信信号研究所 | Automatic batch regression testing method and system for functions of automatic machine of CTC system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5022028A (en) * | 1988-03-30 | 1991-06-04 | Elverex Limited | Software verification apparatus |
CN1527509A (en) * | 2003-03-06 | 2004-09-08 | 华为技术有限公司 | Test method |
CN1932776A (en) * | 2006-09-29 | 2007-03-21 | 上海科泰世纪科技有限公司 | Automatic operating method for interface test in embedded operating system |
CN1952818A (en) * | 2005-10-22 | 2007-04-25 | 康佳集团股份有限公司 | Testing method of program unit with capability of checking test result automatically |
CN101046763A (en) * | 2006-03-29 | 2007-10-03 | 盛趣信息技术(上海)有限公司 | Implementing method of automatic test system based on scenario |
-
2007
- 2007-11-26 CN CN200710193825XA patent/CN101178687B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5022028A (en) * | 1988-03-30 | 1991-06-04 | Elverex Limited | Software verification apparatus |
CN1527509A (en) * | 2003-03-06 | 2004-09-08 | 华为技术有限公司 | Test method |
CN1952818A (en) * | 2005-10-22 | 2007-04-25 | 康佳集团股份有限公司 | Testing method of program unit with capability of checking test result automatically |
CN101046763A (en) * | 2006-03-29 | 2007-10-03 | 盛趣信息技术(上海)有限公司 | Implementing method of automatic test system based on scenario |
CN1932776A (en) * | 2006-09-29 | 2007-03-21 | 上海科泰世纪科技有限公司 | Automatic operating method for interface test in embedded operating system |
Also Published As
Publication number | Publication date |
---|---|
CN101178687A (en) | 2008-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101178687B (en) | Software regression testing method | |
CN101192194A (en) | Test case design method based on test case database | |
CN102323923B (en) | Method for processing historical record and equipment | |
CN102055826B (en) | Method and system for maintaining multi-dimensional related information related to contacts in address list | |
CN100454949C (en) | Method for obtaining mobile terminal professional ability information | |
CN110147237A (en) | A kind of redundant resource minimizing technology and device | |
CN103368869B (en) | Network flow managing system and method | |
CN101339642B (en) | Multi-party interactive automatized electronic business system | |
CN101226063A (en) | Method, mobile terminal and guidance system for obtaining navigation information | |
CN101883107A (en) | Method and related device for realizing context perception service application | |
CN105868196A (en) | Method for generating industrial data report in server | |
CN105761052A (en) | Business examination and approval mobile terminal, business examination and approval system with business examination and approval mobile terminal and business examination and approval method | |
CN105320758A (en) | Search service platform and search service method therefor | |
CN104581690A (en) | Network access implementing method of intelligent card, wireless card-writing platform and intelligent card | |
CN105512276A (en) | Method and device for constructing junk file and electronic equipment | |
CN104866650A (en) | Abstract equipment creating method and device | |
CN111291157A (en) | Response method, response device, terminal and storage medium | |
CN105868170A (en) | Method for generating industrial data report in server | |
CN105208231A (en) | Voice broadcasting method based on IVR and related system | |
CN109492039A (en) | A kind of recording method of daily record data, device, electronic equipment and readable medium | |
CN107708064A (en) | A kind of method and system of mobile unit locating cellphone | |
CN102547678B (en) | Number portability short message log analysis method, system and device | |
CN101227349B (en) | Device and method for automatically testing system change | |
CN104462235A (en) | Internet of Things general event service mechanism based on Restful Web Service | |
CN103186397A (en) | Data installing method and data installing system |
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 |
Granted publication date: 20100609 Termination date: 20171126 |
|
CF01 | Termination of patent right due to non-payment of annual fee |