CN101593145A - Designing method of high-efficiency high-coverage-rate function test case - Google Patents

Designing method of high-efficiency high-coverage-rate function test case Download PDF

Info

Publication number
CN101593145A
CN101593145A CNA200810071153XA CN200810071153A CN101593145A CN 101593145 A CN101593145 A CN 101593145A CN A200810071153X A CNA200810071153X A CN A200810071153XA CN 200810071153 A CN200810071153 A CN 200810071153A CN 101593145 A CN101593145 A CN 101593145A
Authority
CN
China
Prior art keywords
case
designing
coverage
design
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.)
Granted
Application number
CNA200810071153XA
Other languages
Chinese (zh)
Other versions
CN101593145B (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.)
Fujian Centerm Information Co Ltd
Original Assignee
Fujian Centerm Information 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 Fujian Centerm Information Co Ltd filed Critical Fujian Centerm Information Co Ltd
Priority to CN200810071153XA priority Critical patent/CN101593145B/en
Publication of CN101593145A publication Critical patent/CN101593145A/en
Application granted granted Critical
Publication of CN101593145B publication Critical patent/CN101593145B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

A kind of designing method of high-efficiency high-coverage-rate function test case comprises the following step of carrying out successively: tested object and testing requirement analysis; The beginning use-case; Analyze the expected result of use-case; Program receives input variable and handles, and then carries out the design of positive function test case according to tested object and demand analysis, and the function that is used for the verifying software requirement can both realize, carries out various use-case methods for designing then and uses, and finishes use-case; Program does not receive input variable, then carries out reverse abnormal conditions use-case design according to tested object and demand analysis, carry out various use-case methods for designing then and use, and test result estimates, and finishes use-case.The invention has the advantages that: from forward thinking and opposition thinking two aspect design test case, the forward thinking realizes based on the software function demand, guarantees that software function can both correctly realize; Opposition thinking is based on unusual input, realizations such as abnormal operation, and the robustness of verifying software is guaranteed the high coverage rate tested, implementation effect is faster more accurate.

Description

Designing method of high-efficiency high-coverage-rate function test case
[technical field]
The invention relates to a kind of method of software Black-box Testing, be meant a kind of designing method of high-efficiency high-coverage-rate function test case especially.
[background technology]
The test case design is an important skill of software test, and the quality of use-case design is directly connected to the height of testing level.
Use-case design theory method is a lot of at present, as equivalence class division, boundary value analysis, cause-and-effect diagram, judgement table driven parsing, scene design etc.These methods have bigger help in the use-case design of certain function point or module.These methods do not have versatility, and concrete a certain function point or module will be selected one or more concrete methods for use.The use-case that designs like this can better be verified the software quality of each module, and the guidance of individual bulking property can not be arranged software system test.
A judgment criteria of software test level is exactly coverage and accuracy, testing efficiency.So the use-case design also will be considered from this two sides.
Two broad theory viewpoints of current software test circle------program be work with program be idle.Before a kind of be the correct realization of judging software function according to demand, the back is a kind of to be that prover is that BUG (mistake) is arranged as far as possible, mainly on the reliability of program, robustness " finding fault ".
Because manual test is more loaded down with trivial details, if software systems are divided into a plurality of little modules, carry out forward and reverse use-case design then, staggered forward and the reverse use-case carried out of test man is easy to wrong report and fails to report BUG like this.
[summary of the invention]
Technical matters to be solved by this invention is to provide a kind of method for designing of high efficiency high coverage rate functional test use-case.
The present invention solves the problems of the technologies described above by the following technical programs: a kind of designing method of high-efficiency high-coverage-rate function test case comprises the following step of carrying out successively:
Step 10: at first carry out tested object and testing requirement analysis;
Step 20: beginning use-case;
Step 30: analyze the expected result of use-case, and whether program receives input variable and corresponding result is fed back in processing, classify positive function and reverse unusual two kind situations according to the use-case numbering this moment, then enters step 40 and step 70 simultaneously;
Step 40: program receives input variable and handles, and enters step 50 then;
Step 50: the design of positive function test case is carried out in tested object and demand analysis according to step 10, the function that is used for the verifying software requirement can both realize, enter step 60 then, what this use-case design was mainly considered is coverage, the realizing route of software function, the different input values in same path etc.;
Step 60: various use-case methods for designing are used, and enter step 100 then;
Step 70: program does not receive input variable, then enters step 80;
Step 80: reverse abnormal conditions use-case design is carried out in tested object and demand analysis according to step 10, enters step 90 then;
The various use-case methods for designing of step 90 are used, viewpoint or position to oppose in oppositely the abnormal conditions use-case designs, utilization error guessing, judgement/condition combined method are analyzed, cause unusual input, the off path of software irregular operating, whether verifying software can well recover under above-mentioned abnormal conditions, then carries out test result and estimates, at this moment, program has prompting or abnormal conditions to recover, and enters step 100 then;
Step 100: finish use-case.
In the described step 60, in the process of positive function test case design, the method for designing of employing comprises following at least a: boundary value analysis method, Path Coverage Analysis, orthogonal experimental design method.
In the described step 90, the method for designing of usefulness comprises following at least a: boundary value analysis method, scene design method.
The advantage of designing method of high-efficiency high-coverage-rate function test case of the present invention is:
1, according to two broad theory viewpoints of current software test circle------program be work with program be idle, come design test case from forward thinking and opposition thinking two aspects, the forward thinking realizes based on the software function demand, guarantees that software function can both correctly realize; Opposition thinking is based on unusual input, realizations such as abnormal operation, the robustness of verifying software.The high coverage rate of testing is guaranteed in two kinds of method combinations of forward thinking and opposition thinking.With forward thinking and opposition thinking separately, so more help in the measuring executing process result's judgement is more helped the efficient execution of use-case.
2, based on the use-case of this strategy design, be used for automatic test, also more help result's judgement.
[description of drawings]
The invention will be further described in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the process flow diagram of designing method of high-efficiency high-coverage-rate function test case embodiment of the present invention.
[embodiment]
See also Fig. 1, designing method of high-efficiency high-coverage-rate function test case of the present invention comprises the following step of carrying out successively:
Step 10: at first carry out tested object and testing requirement analysis;
Step 20: beginning use-case;
Step 30: the expected result of analyzing use-case, and whether program receives input variable and handles the corresponding result of feedback, classify positive function and oppositely unusual two kind situations according to the use-case numbering this moment, be numbered * a as the positive function use-case, be that last position is a, oppositely unusual use-case is numbered * b, and promptly last position is b, then enters step 40 and step 70 simultaneously;
Step 40: program receives input variable and handles, and enters step 50 then;
Step 50: the design of positive function test case is carried out in tested object and demand analysis according to step 10, the function that is used for the verifying software requirement can both realize, enter step 60 then, what this use-case design was mainly considered is coverage, the realizing route of software function, the different input values in same path etc.;
Step 60: various use-case methods for designing are used, and in the process of positive function test case design, the method for designing that can adopt mainly contains: boundary value analysis method, Path Coverage Analysis, orthogonal experimental design method etc. enter step 100 then;
Step 70: program does not receive input variable, then enters step 80;
Step 80: reverse abnormal conditions use-case design is carried out in tested object and demand analysis according to step 10, enters step 90 then;
Step 90: various use-case methods for designing are used, viewpoint or position to oppose in oppositely the abnormal conditions use-case designs, utilization error guessing, judgement/methods analysts such as condition combination, cause unusual input (not meeting input, illegal input that design specification requires), the off path of software irregular operating, whether verifying software can well recover under above-mentioned abnormal conditions.Test result is estimated, and at this moment, program has prompting or abnormal conditions to recover.The method for designing that can adopt mainly contains: boundary value analysis method, scene design method etc. enter step 100 then;
Step 100: finish use-case.
Though more than described the specific embodiment of the present invention; but being familiar with those skilled in the art is to be understood that; our described specific embodiment is illustrative; rather than be used for qualification to scope of the present invention; those of ordinary skill in the art are in the modification and the variation of the equivalence of doing according to spirit of the present invention, all should be encompassed in the scope that claim of the present invention protects.

Claims (3)

1. designing method of high-efficiency high-coverage-rate function test case is characterized in that: comprise the following step of carrying out successively:
Step 10: at first carry out tested object and testing requirement analysis;
Step 20: beginning use-case;
Step 30: analyze the expected result of use-case, and whether program receives input variable and corresponding result is fed back in processing, classify positive function and reverse unusual two kind situations according to the use-case numbering this moment, then enters step 40 and step 70 simultaneously;
Step 40: program receives input variable and handles, and enters step 50 then;
Step 50: the design of positive function test case is carried out in tested object and demand analysis according to step 10, the function that is used for the verifying software requirement can both realize, enter step 60 then, what this use-case design was mainly considered is coverage, the realizing route of software function, the different input values in same path etc.;
Step 60: various use-case methods for designing are used, and enter step 100 then;
Step 70: program does not receive input variable, then enters step 80;
Step 80: reverse abnormal conditions use-case design is carried out in tested object and demand analysis according to step 10, enters step 90 then;
Step 90: various use-case methods for designing are used, viewpoint or position to oppose in oppositely the abnormal conditions use-case designs, utilization error guessing, judgement/condition combined method are analyzed, cause unusual input, the off path of software irregular operating, whether verifying software can well recover under above-mentioned abnormal conditions, then carries out test result and estimates, at this moment, program has prompting or abnormal conditions to recover, and enters step 100 then;
Step 100: finish use-case.
2. designing method of high-efficiency high-coverage-rate function test case as claimed in claim 1, it is characterized in that: in the described step 60, in the process of positive function test case design, the method for designing of employing comprises following at least a: boundary value analysis method, Path Coverage Analysis, orthogonal experimental design method.
3. designing method of high-efficiency high-coverage-rate function test case as claimed in claim 1 is characterized in that: in the described step 90, the method for designing of usefulness comprises following at least a: boundary value analysis method, scene design method.
CN200810071153XA 2008-05-29 2008-05-29 Designing method of high-efficiency high-coverage-rate function test case Expired - Fee Related CN101593145B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810071153XA CN101593145B (en) 2008-05-29 2008-05-29 Designing method of high-efficiency high-coverage-rate function test case

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810071153XA CN101593145B (en) 2008-05-29 2008-05-29 Designing method of high-efficiency high-coverage-rate function test case

Publications (2)

Publication Number Publication Date
CN101593145A true CN101593145A (en) 2009-12-02
CN101593145B CN101593145B (en) 2012-08-08

Family

ID=41407812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810071153XA Expired - Fee Related CN101593145B (en) 2008-05-29 2008-05-29 Designing method of high-efficiency high-coverage-rate function test case

Country Status (1)

Country Link
CN (1) CN101593145B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063376A (en) * 2011-02-16 2011-05-18 哈尔滨工程大学 Test case selection method
CN103530223A (en) * 2012-07-06 2014-01-22 百度在线网络技术(北京)有限公司 Method and device for automatically generating unit test cases
CN103942147A (en) * 2014-05-06 2014-07-23 南京大学 Test data automatic generation method based on linear fitting function driving
CN104021083A (en) * 2014-06-17 2014-09-03 珠海格力电器股份有限公司 Test method and device
CN106021113A (en) * 2016-05-31 2016-10-12 浪潮电子信息产业股份有限公司 Method for realizing accurate test
CN107329895A (en) * 2017-06-21 2017-11-07 福建中金在线信息科技有限公司 The method of testing and device of a kind of modular testing use-case
CN108627716A (en) * 2017-03-22 2018-10-09 株洲中车时代电气股份有限公司 A kind of current transformer complete machine overall process detection coverage ratio analysis method
CN109144668A (en) * 2018-08-06 2019-01-04 华大半导体有限公司 RFID emulates use-case implementation method and device
CN109815121A (en) * 2018-12-15 2019-05-28 中国平安人寿保险股份有限公司 Interface automatic test cases generation method and relevant device
CN111124928A (en) * 2019-12-27 2020-05-08 成都康赛信息技术有限公司 Test case design method based on data
CN112328500A (en) * 2020-11-27 2021-02-05 成都精灵云科技有限公司 Method for automatically generating black box test case

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1265570C (en) * 2002-10-10 2006-07-19 华为技术有限公司 Measuring device
CN100351811C (en) * 2004-11-15 2007-11-28 华为技术有限公司 Method and device for testing software product robustness

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063376A (en) * 2011-02-16 2011-05-18 哈尔滨工程大学 Test case selection method
CN102063376B (en) * 2011-02-16 2013-01-16 哈尔滨工程大学 Test case selection method
CN103530223A (en) * 2012-07-06 2014-01-22 百度在线网络技术(北京)有限公司 Method and device for automatically generating unit test cases
CN103530223B (en) * 2012-07-06 2018-05-04 百度在线网络技术(北京)有限公司 A kind of method and device of automatically generating unit test use-case
CN103942147B (en) * 2014-05-06 2017-04-05 南京大学 A kind of automatic generation of test data of linear fit function drive
CN103942147A (en) * 2014-05-06 2014-07-23 南京大学 Test data automatic generation method based on linear fitting function driving
CN104021083A (en) * 2014-06-17 2014-09-03 珠海格力电器股份有限公司 Test method and device
CN106021113A (en) * 2016-05-31 2016-10-12 浪潮电子信息产业股份有限公司 Method for realizing accurate test
CN108627716A (en) * 2017-03-22 2018-10-09 株洲中车时代电气股份有限公司 A kind of current transformer complete machine overall process detection coverage ratio analysis method
CN107329895A (en) * 2017-06-21 2017-11-07 福建中金在线信息科技有限公司 The method of testing and device of a kind of modular testing use-case
CN107329895B (en) * 2017-06-21 2020-08-21 福建中金在线信息科技有限公司 Test method and device for modular test case
CN109144668A (en) * 2018-08-06 2019-01-04 华大半导体有限公司 RFID emulates use-case implementation method and device
CN109815121A (en) * 2018-12-15 2019-05-28 中国平安人寿保险股份有限公司 Interface automatic test cases generation method and relevant device
CN111124928A (en) * 2019-12-27 2020-05-08 成都康赛信息技术有限公司 Test case design method based on data
CN112328500A (en) * 2020-11-27 2021-02-05 成都精灵云科技有限公司 Method for automatically generating black box test case

Also Published As

Publication number Publication date
CN101593145B (en) 2012-08-08

Similar Documents

Publication Publication Date Title
CN101593145B (en) Designing method of high-efficiency high-coverage-rate function test case
CN102222035A (en) Software behavior detection system based on symbolic execution technology and detection method thereof
CN102662828A (en) A method and device for achieving software automatic testing
CN102368226A (en) Method for automatically generating test cases based on analysis on feasible paths of EFSM (extended finite state machine)
CN105022691A (en) Highly automatic software testing method based on UML diagram
CN102999417B (en) Automatic test management system and method
CN102479138A (en) System and method for detecting error by utilizing image
CN101727390A (en) Method and device for debugging performance test scripts
US20110067040A1 (en) Api evaluation system in embedded device
CN102306119A (en) System for capturing global exception and method
CN101201787A (en) System and method for debugging software program
CN105320600A (en) Test case execution monitoring method and system based on automatic testing platform
CN116107893A (en) Heterogeneous platform embedded software test verification system and method
KR101266565B1 (en) Test case creating mehtod and running method of robot software component using specifications of required interface
CN103135975B (en) The element sequence auto arranging method of control strategy configuration and logical connection method thereof
CN105824749B (en) The analysis method of User space process exception under a kind of Linux system
CN104317707A (en) Program structure influence sensing based software error positioning method
US10613963B2 (en) Intelligent packet analyzer circuits, systems, and methods
EP2221723A1 (en) Dual core processor and a method of error detection in a dual core processor
CN106612213B (en) Equipment testing method and device
CN103399572B (en) Equipment fault detection method and device
CN101706752A (en) Method and device for in-situ software error positioning
CN102707943A (en) Implementation method of remote control automation tool
KR20130022280A (en) Low cost apparatus and method for error-based program testing
CN109446002B (en) Jig plate, system and method for grabbing SATA hard disk by server

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: 20120808

Termination date: 20140529