Movatterモバイル変換


[0]ホーム

URL:


CN101593145B - 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
CN101593145B
CN101593145BCN200810071153XACN200810071153ACN101593145BCN 101593145 BCN101593145 BCN 101593145BCN 200810071153X ACN200810071153X ACN 200810071153XACN 200810071153 ACN200810071153 ACN 200810071153ACN 101593145 BCN101593145 BCN 101593145B
Authority
CN
China
Prior art keywords
case
designing
coverage
test
design
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN200810071153XA
Other languages
Chinese (zh)
Other versions
CN101593145A (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 LtdfiledCriticalFujian Centerm Information Co Ltd
Priority to CN200810071153XApriorityCriticalpatent/CN101593145B/en
Publication of CN101593145ApublicationCriticalpatent/CN101593145A/en
Application grantedgrantedCritical
Publication of CN101593145BpublicationCriticalpatent/CN101593145B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

The invention discloses a designing method of a high-efficiency high-coverage-rate function test case, which sequentially comprises the following steps: analyzing a test object and a test requirement; starting the case; analyzing an expected result of the case; designing a forward function teat case according to the teat object and the requirement analysis when a program receives and processes an input variable; realizing functions for testing software requirements; then, completing the case by using various case designing methods; designing a reverse abnormal condition case according to the teat object and the requirement analysis when the program does not receive the input variable; and completing the case by using various case designing methods and estimating a test result in advance. The designing method of a high-efficiency high-coverage-rate function test case has the advantages that the teat case is designed through positive thinking and reverse thinking, the positive thinking based on a software function requirement is realized so as to ensure the correct realization of the software function, the reverse thinking based on the abnormal input, the abnormal operation, and the like is realized so as to test the robustness of the software and ensure the high coverage rate of the test, and the execution effect is quicker and 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, like 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 through following technical scheme: 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 receive input variable and handle the corresponding result of feedback, with positive function and reverse unusual two kinds of situation classification, then get intostep 40 andstep 70 based on the use-case numbering simultaneously this moment;
Step 40: program receives input variable and handles, and gets intostep 50 then;
Step 50: the design of positive function test case is carried out in tested object and demand analysis according tostep 10; The function that is used for the verifying software requirement can both realize; Get intostep 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 get intostep 100 then;
Step 70: program does not receive input variable, then gets intostep 80;
Step 80: reverse abnormal conditions use-case design is carried out in tested object and demand analysis according tostep 10, gets intostep 90 then;
The various use-case methods for designing ofstep 90 are used, and with the viewpoint or the position of opposition, utilization error guessing, judgement/condition combined method are analyzed in reverse abnormal conditions use-case design; 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 gets intostep 100 then;
Step 100: accomplish use-case.
In the saidstep 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 saidstep 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.Two kinds of methods of forward thinking and opposition thinking combine, and guarantee the high coverage rate of testing.Forward thinking and opposition thinking are separated, 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]
Combine embodiment that the present invention is done further description 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: analyze the expected result of use-case, and whether program receive input variable and handle the corresponding result of feedback,, with positive function and reverse unusual two kind situation classification like positive function use-case be numbered according to the use-case numbering this moment*A, promptly last position is a, reverse unusual use-case is numbered*B, promptly last position is b, then gets intostep 40 andstep 70 simultaneously;
Step 40: program receives input variable and handles, and gets intostep 50 then;
Step 50: the design of positive function test case is carried out in tested object and demand analysis according tostep 10; The function that is used for the verifying software requirement can both realize; Get intostep 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. get intostep 100 then;
Step 70: program does not receive input variable, then gets intostep 80;
Step 80: reverse abnormal conditions use-case design is carried out in tested object and demand analysis according tostep 10, gets intostep 90 then;
Step 90: various use-case methods for designing are used; Viewpoint or position to oppose in reverse abnormal conditions use-case design; 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. get intostep 100 then;
Step 100: accomplish use-case.
Though more than described embodiment of the present invention; But the technician who is familiar with the present technique field is to be understood that; We described concrete embodiment is illustrative; Rather than being 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)

CN200810071153XA2008-05-292008-05-29Designing method of high-efficiency high-coverage-rate function test caseExpired - Fee RelatedCN101593145B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN200810071153XACN101593145B (en)2008-05-292008-05-29Designing method of high-efficiency high-coverage-rate function test case

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN200810071153XACN101593145B (en)2008-05-292008-05-29Designing method of high-efficiency high-coverage-rate function test case

Publications (2)

Publication NumberPublication Date
CN101593145A CN101593145A (en)2009-12-02
CN101593145Btrue CN101593145B (en)2012-08-08

Family

ID=41407812

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN200810071153XAExpired - Fee RelatedCN101593145B (en)2008-05-292008-05-29Designing method of high-efficiency high-coverage-rate function test case

Country Status (1)

CountryLink
CN (1)CN101593145B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102063376B (en)*2011-02-162013-01-16哈尔滨工程大学Test case selection method
CN103530223B (en)*2012-07-062018-05-04百度在线网络技术(北京)有限公司A kind of method and device of automatically generating unit test use-case
CN103942147B (en)*2014-05-062017-04-05南京大学A kind of automatic generation of test data of linear fit function drive
CN104021083B (en)*2014-06-172017-11-28珠海格力电器股份有限公司Test method and device
CN106021113A (en)*2016-05-312016-10-12浪潮电子信息产业股份有限公司Method for realizing accurate test
CN108627716B (en)*2017-03-222021-08-31株洲中车时代电气股份有限公司Method for analyzing detection coverage rate of whole process of converter
CN107329895B (en)*2017-06-212020-08-21福建中金在线信息科技有限公司Test method and device for modular test case
CN109144668B (en)*2018-08-062022-08-05华大恒芯科技有限公司RFID simulation case implementation method and device
CN109815121B (en)*2018-12-152023-07-18中国平安人寿保险股份有限公司Interface automation test case generation method and related equipment
CN111124928B (en)*2019-12-272023-03-14成都康赛信息技术有限公司Test case design method based on data
CN112328500A (en)*2020-11-272021-02-05成都精灵云科技有限公司Method for automatically generating black box test case

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1489306A (en)*2002-10-102004-04-14华为技术有限公司 a test device
CN1776643A (en)*2004-11-152006-05-24华为技术有限公司 Method and device for testing robustness of software products

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1489306A (en)*2002-10-102004-04-14华为技术有限公司 a test device
CN1776643A (en)*2004-11-152006-05-24华为技术有限公司 Method and device for testing robustness of software products

Also Published As

Publication numberPublication date
CN101593145A (en)2009-12-02

Similar Documents

PublicationPublication DateTitle
CN101593145B (en)Designing method of high-efficiency high-coverage-rate function test case
CN103744761B (en)Method and system for controlling multiple mobile terminals to automatically execute tasks
CN101478449B (en) A protocol automatic testing method and system thereof
CN105764081A (en)Method for detecting communication link, base station, web master and system
CN102999417B (en)Automatic test management system and method
KR101266565B1 (en)Test case creating mehtod and running method of robot software component using specifications of required interface
CN102222035A (en)Software behavior detection system based on symbolic execution technology and detection method thereof
CN101727390A (en)Method and device for debugging performance test scripts
CN103678121B (en)A kind of embedded binary software test case prioritization method
CN102393732B (en) Vehicle Fault Diagnosis Method
CN106841974A (en)A kind of FPGA test platforms and method
WO2015131697A1 (en)Method and apparatus for multiplex-frame random data verification
CN109002397B (en)Controller smoking test system and test method
CN215867583U (en) Controller Fault Diagnosis Test System
CN102385382A (en)Vehicle fault diagnosis device
CN105824749B (en)The analysis method of User space process exception under a kind of Linux system
US20180113779A1 (en)Intelligent packet analyzer circuits, systems, and methods
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
CN106326089B (en)Automatic testing method, device and system
CN109446002B (en)Jig plate, system and method for grabbing SATA hard disk by server
CN102289401B (en)System-level verification method, device and system for chip
CN101227346B (en)Fault monitoring method and device in automatic testing process of communication equipment
CN103246596A (en)Automatic testing method for PLC (Programmable Logic Controller) program based on time control

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant
C17Cessation of patent right
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20120808

Termination date:20140529


[8]ページ先頭

©2009-2025 Movatter.jp