CN104484162A - Software testing case designing and writing method - Google Patents
Software testing case designing and writing method Download PDFInfo
- Publication number
- CN104484162A CN104484162A CN201410605562.9A CN201410605562A CN104484162A CN 104484162 A CN104484162 A CN 104484162A CN 201410605562 A CN201410605562 A CN 201410605562A CN 104484162 A CN104484162 A CN 104484162A
- Authority
- CN
- China
- Prior art keywords
- priority
- path
- paths
- test case
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention relates to the technical field of software testing, particularly to a software testing case designing and writing method. The software testing case designing and writing method specifically comprises the following steps of, firstly, graphing the running process of a software system; secondly, finding out all the paths and setting priority level for every path; thirdly, selecting testing data and structuring a testing case for every path. The software testing case designing and writing method improves the testing case designing and writing quality and the testing efficiency and can be applied to design and writing of software testing cases.
Description
Technical field
The present invention relates to software testing technology field, particularly a kind of software test case design write method.
Background technology
Software test is the important means improving software quality, and test case is the guidance in software test procedure, is the criterion that must observe of software test, the basic guarantee that software testing quality is stable especially.In software test procedure, survey testing example design and establishment are most important in software test activity, are the correctness of test execution, the basis of validity.How effectively design test case is the problem that tester pays close attention to always.Along with software size is huge all the more, especially when carrying out the application software testing of sing on web platform, the test case quantity needed is very huge, need a large amount of experiences and time by manually completing testing example design by commonsense method and writing, cannot meet the short period of Web performance history and the process of continuous iteration.
Summary of the invention
The technical matters that the present invention solves is to provide a kind of software test case to design write method; Solve testing example design and write and need the problem such as a large amount of experiences and time.
The technical scheme that the present invention solves the problems of the technologies described above is:
Comprise following step:
Step one, by various flow charts involved in system operation;
Step 2, find out all paths, and give every paths setting priority;
Step 3, choose test data for every paths, structure test case;
Finally export test case.
In described step one, first from the most basic flow process, abstract for the flow process order becoming difference in functionality is performed; The basis of most basic procedure relates to secondary or abnormal flow process, by the refinement gradually of various flow process; Thus complete the setting in all paths.
In described step 2, to every paths setting priority, first survey priority high, then it is low to survey priority; And according to the time setting optional path of selecting the high path of priority, ignoring low priority of situation; The defining method of priority is: one is the frequency that path uses, and priority is higher more frequently in use; Two is the significance levels in path, if unsuccessfully higher to the priority that systematic influence is larger; The priority obtained respectively according to two principles is added the priority obtaining whole path.
In described step 3, a paths can corresponding multiple test case; When choosing test data, the method such as utilize boundary value to choose, by form by corresponding for the input and output of various test data.
The present invention adopts the method design of path analysis to write test case, achieve the process that a flow chart-> path setting priority-> run from software systems chooses test data structure test case, under guarantee reaches the prerequisite of expected test coverage rate, reduce the difficulty of Test Sample Design; Improve the quality of Test Sample Design, when the test duration is tighter, the selection test case that can shoot the arrow at the target, has practical significance to the test of this large scope software of upper eb application program, improves testing efficiency.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the present invention is further described:
Fig. 1 is method flow diagram of the present invention.
Embodiment
As shown in Figure 1, the design write method of software test case of the present invention, specifically comprises following step:
Step one: by various flow charts involved in system operation, can first start with from the most basic flow process, performs abstract for the flow process order becoming difference in functionality.The basis of most basic procedure is gone consider secondary or abnormal flow process again, like this by the refinement gradually of various flow process, so both can add the understanding of deep convection journey gradually, each can also be seemed isolated flow process and associate.The setting in all paths is just completed after completing the pictorialization of all flow processs.
Step 2: have found all paths, work is below exactly to every paths setting priority, just can first survey priority when testing so high, then it is low to survey priority, even can consider the path ignoring some low priorities when it is pressed for time.Priority is chosen according to two principles: one is the frequency that path uses, and priority is higher more frequently in use; Two is the significance levels in path, if unsuccessfully higher to the priority that systematic influence is larger.The priority obtained respectively according to two principles is added the priority just obtaining whole path.Sequence according to priority just can be tested more targetedly.
Step 3: after every paths sets priority, ensuing work chooses test data for every paths exactly, structure test case.One paths can corresponding multiple test case, when choosing test data, can make full use of boundary value and the method such as choosing, being got up, this completes testing example design by the input and output correspondence of form by various test data.
Claims (5)
1. a software test case design write method, is characterized in that:
Comprise following step:
Step one, by various flow charts involved in system operation;
Step 2, find out all paths, and give every paths setting priority;
Step 3, choose test data for every paths, structure test case;
Finally export test case.
2. software test case design write method according to claim 1, is characterized in that: in described step one, first from the most basic flow process, abstract for the flow process order becoming difference in functionality is performed; The basis of most basic procedure relates to secondary or abnormal flow process, by the refinement gradually of various flow process; Thus complete the setting in all paths.
3. software test case design write method according to claim 1, is characterized in that: in described step 2, to every paths setting priority, first survey priority high, then it is low to survey priority; And according to the time setting optional path of selecting the high path of priority, ignoring low priority of situation; The defining method of priority is: one is the frequency that path uses, and priority is higher more frequently in use; Two is the significance levels in path, if unsuccessfully higher to the priority that systematic influence is larger; The priority obtained respectively according to two principles is added the priority obtaining whole path.
4. software test case design write method according to claim 2, is characterized in that: in described step 2, to every paths setting priority, first survey priority high, then it is low to survey priority; And according to the time setting optional path of selecting the high path of priority, ignoring low priority of situation; The defining method of priority is: one is the frequency that path uses, and priority is higher more frequently in use; Two is the significance levels in path, if unsuccessfully higher to the priority that systematic influence is larger; The priority obtained respectively according to two principles is added the priority obtaining whole path.
5. the software test case design write method according to any one of Claims 1-4, is characterized in that: in described step 3, a paths can corresponding multiple test case; When choosing test data, the method such as utilize boundary value to choose, by form by corresponding for the input and output of various test data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410605562.9A CN104484162B (en) | 2014-10-31 | 2014-10-31 | A kind of software test case designs write method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410605562.9A CN104484162B (en) | 2014-10-31 | 2014-10-31 | A kind of software test case designs write method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104484162A true CN104484162A (en) | 2015-04-01 |
CN104484162B CN104484162B (en) | 2018-04-03 |
Family
ID=52758706
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410605562.9A Active CN104484162B (en) | 2014-10-31 | 2014-10-31 | A kind of software test case designs write method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104484162B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105511951A (en) * | 2016-01-06 | 2016-04-20 | 上海斐讯数据通信技术有限公司 | Task scheduling method and task scheduling system for automatic WIFI performance test platform |
CN106681915A (en) * | 2016-12-19 | 2017-05-17 | 成都康赛信息技术有限公司 | Software function test case design method |
CN107491394A (en) * | 2017-08-25 | 2017-12-19 | 中国银行股份有限公司 | A kind of method for testing and analyzing and device based on digraph identification |
CN107665170A (en) * | 2016-07-29 | 2018-02-06 | 高德软件有限公司 | A kind of flow testing method and device |
CN108845933A (en) * | 2018-05-24 | 2018-11-20 | 广东睿江云计算股份有限公司 | The method and device that software test case is write and evaluated |
CN112667500A (en) * | 2020-12-23 | 2021-04-16 | 北京焦点新干线信息技术有限公司 | Regression testing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101436128A (en) * | 2007-11-16 | 2009-05-20 | 北京邮电大学 | Software test case automatic generating method and system |
US20090265695A1 (en) * | 2008-04-18 | 2009-10-22 | Nec Corporation | Method and apparatus for analyzing program execution path |
CN101814053A (en) * | 2010-03-29 | 2010-08-25 | 中国人民解放军信息工程大学 | Method for discovering binary code vulnerability based on function model |
CN103019934A (en) * | 2012-11-28 | 2013-04-03 | 北京交控科技有限公司 | Test case generation method based on data code separation technology |
-
2014
- 2014-10-31 CN CN201410605562.9A patent/CN104484162B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101436128A (en) * | 2007-11-16 | 2009-05-20 | 北京邮电大学 | Software test case automatic generating method and system |
US20090265695A1 (en) * | 2008-04-18 | 2009-10-22 | Nec Corporation | Method and apparatus for analyzing program execution path |
CN101814053A (en) * | 2010-03-29 | 2010-08-25 | 中国人民解放军信息工程大学 | Method for discovering binary code vulnerability based on function model |
CN103019934A (en) * | 2012-11-28 | 2013-04-03 | 北京交控科技有限公司 | Test case generation method based on data code separation technology |
Non-Patent Citations (1)
Title |
---|
任军: "白盒测试方法在CBTC车载系统测试中的研究与应用", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105511951A (en) * | 2016-01-06 | 2016-04-20 | 上海斐讯数据通信技术有限公司 | Task scheduling method and task scheduling system for automatic WIFI performance test platform |
CN105511951B (en) * | 2016-01-06 | 2019-07-05 | 上海斐讯数据通信技术有限公司 | A kind of method for scheduling task and system of WIFI performance automation test platform |
CN107665170A (en) * | 2016-07-29 | 2018-02-06 | 高德软件有限公司 | A kind of flow testing method and device |
CN106681915A (en) * | 2016-12-19 | 2017-05-17 | 成都康赛信息技术有限公司 | Software function test case design method |
CN107491394A (en) * | 2017-08-25 | 2017-12-19 | 中国银行股份有限公司 | A kind of method for testing and analyzing and device based on digraph identification |
CN108845933A (en) * | 2018-05-24 | 2018-11-20 | 广东睿江云计算股份有限公司 | The method and device that software test case is write and evaluated |
CN112667500A (en) * | 2020-12-23 | 2021-04-16 | 北京焦点新干线信息技术有限公司 | Regression testing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104484162B (en) | 2018-04-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104484162A (en) | Software testing case designing and writing method | |
Jiang et al. | Software testing model selection research based on Yin-Yang testing theory | |
RU2015107237A (en) | SYSTEM AND METHODS OF DESIGNING, DISASSEMBLING AND JOINT USE OF RESEARCHES | |
CN109857804B (en) | Distributed model parameter searching method and device and electronic equipment | |
CN104020763A (en) | Automatic test method and system for input and output interfaces | |
CN104143024A (en) | Quick time-domain simulation method for high-speed parallel link system | |
CN105528656A (en) | Method and device for determining oil field yield reduction rate data | |
CN101482596A (en) | Fast fault recognition method for multifactor industrial system | |
CN104035766A (en) | Android system trimming method based on coverage rate test | |
CN104536882A (en) | Error locating method based on frequent sub-graph mining | |
CN104461875A (en) | Method for designing software testing case according to equivalence classes | |
CN105701004B (en) | Application testing method and device | |
CN104090838A (en) | Method for generating test case | |
CN103279422B (en) | A kind of method that self-adapting random based on repulsive area is tested | |
CN112084117B (en) | Test method and device | |
CN104050079A (en) | Real-time system testing method based on time automata | |
CN103914377A (en) | Interface testing method and device | |
CN104268161A (en) | USB chip verifying result analyzing and processing system | |
WO2015062183A1 (en) | Method and apparatus for separating quality levels in sequence data and sequencing longer reads | |
CN104503913B (en) | A kind of component software reliability estimation method based on migration path and improvement markov chain | |
CN107871028B (en) | Method and device for grading stratum | |
CN103150254A (en) | Error locating method for software based on state-dependent probabilistic modeling | |
CN111061599B (en) | Method for generating check point of interface test environment | |
CN105740319B (en) | A kind of method and device for correcting sampled data | |
CN105302835B (en) | A kind of document handling method and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP02 | Change in the address of a patent holder | ||
CP02 | Change in the address of a patent holder |
Address after: 523808 19th Floor, Cloud Computing Center, Chinese Academy of Sciences, No. 1 Kehui Road, Songshan Lake Hi-tech Industrial Development Zone, Dongguan City, Guangdong Province Patentee after: G-Cloud Technology Co., Ltd. Address before: 523808 No. 14 Building, Songke Garden, Songshan Lake Science and Technology Industrial Park, Dongguan City, Guangdong Province Patentee before: G-Cloud Technology Co., Ltd. |