CN108984410A - A kind of method for test examples design of high multiplexing - Google Patents

A kind of method for test examples design of high multiplexing Download PDF

Info

Publication number
CN108984410A
CN108984410A CN201810789628.2A CN201810789628A CN108984410A CN 108984410 A CN108984410 A CN 108984410A CN 201810789628 A CN201810789628 A CN 201810789628A CN 108984410 A CN108984410 A CN 108984410A
Authority
CN
China
Prior art keywords
test
case
test case
data
library
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.)
Pending
Application number
CN201810789628.2A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810789628.2A priority Critical patent/CN108984410A/en
Publication of CN108984410A publication Critical patent/CN108984410A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to a kind of method for test examples design of high multiplexing, it is characterized in that, the following steps are included: S1: classification refinement and the reusable test resource for extracting different densities, S2: the process design case of function point and system to all controls, S3: description and test case library carry out the multiplexing of use-case according to demand, utilize the general character between project in project, from test data, testing procedure, test case and test scene, heredity is inherited, reference is integrated, the mode of supplement extension is multiplexed test case;S4: after compared test case library, by the medium demand of matching rate, test scene or test case or testing procedure or test data in Inherit Testing use-case library, and carry out according to system under test (SUT) perfect, form new test case.

Description

A kind of method for test examples design of high multiplexing
Technical field
The invention belongs to software test fields, and in particular to a kind of method for test examples design of high multiplexing.
Background technique
With the expansion of field of software engineering, in today of software industry rapid development, software test, which becomes, guarantees software The important means of quality.
The selection of test case plays decisive role for the success or failure of software test, therefore how to design least test Use-case realizes that maximum Test coverage becomes the main study subject in software test field.
Test case is to determine one group of test data and process for most possibly finding mistake, realizes system to some function Test.
And the personal experience of testing example design and tester are closely bound up, the personal experience of different testers and The difference of format write results in the blindness of test, so that generating higher late maintenance cost.This is the prior art Shortcoming.
Therefore, in view of the above-mentioned drawbacks in the prior art, the method for test examples design for designing a kind of high multiplexing is provided;With Drawbacks described above in the prior art is solved, is necessary.
Summary of the invention
It is an object of the present invention in view of the above-mentioned drawbacks of the prior art, provide the test for designing a kind of high multiplexing Case designing method, to solve the above technical problems.
To achieve the above object, the present invention provides following technical scheme:
A kind of method for test examples design of high multiplexing, which comprises the following steps:
S1: classification refinement and the reusable test resource for extracting different densities,
S2: the process design case of function point and system to all controls,
S3: description and test case library carry out the multiplexing of use-case according to demand, using the general character between project in project, from Test data, testing procedure, test case and test scene, heredity is inherited, reference is integrated, the mode of supplement extension is multiplexed test Use-case;
S4: test scene or test after compared test case library, by the medium demand of matching rate, in Inherit Testing use-case library Use-case or testing procedure or test data, and carry out according to system under test (SUT) perfect, form new test case;
S5: reference, which integrates the test case being directly multiplexed in test case library or carries out reference, is integrated into new test case; After compared test case library, the higher demand of matching rate or is drawn at the test case that is directly multiplexed in test case library With being integrated into new test case;
S6: supplement extension is to extract the lower demand of matching rate, after compared test case library using structure directing Mode constructs new test case by the content map in Specification into test case, and updates test Multiplexing template in use-case library.
Preferably, the specific implementation steps are as follows by the step S1: using test scene, testing procedure, test data And test method realizes the round-robin of test case by way of inheriting heredity, quoting integrated, supplement extension.
Preferably, test scene includes prerequisite, test case, test data, constraint.Wherein prerequisite is to hold Premise needed for test case describes before the trade;Test case is the test case that test scene includes;Test data is and survey The relevant data combination of examination hall scape;Constraint i.e. description scene includes the executive mode and sequence of test case operation.Such as scene S ={ CONDITION,DATA,CASE,CONSTRAIN}
Wherein CONDITION is prerequisite, such as creation subnet there must be network data
DATA is test data, such as the data such as subnet title needed for creation subnet
CASE is the test case that scene includes, such as how to create the operation of subnet
CONSTRAIN is the constraint of scene, illustrates that CASE's executes sequence.
Preferably, the specific implementation steps are as follows by the step S2: setting prerequisite, testing procedure, test data And test method, software program is in such a case it is necessary to can run well and reach implementing result designed by program; Such as
CASE={ CONDITION,DATA,STEP,METHOD }
Wherein CONDITION is prerequisite, such as creation subnet there must be network data
DATA is test data, such as the data such as subnet title needed for creation subnet
STEP is testing procedure, such as first creates subnet, and then the processes such as subnet are deleted in operation
METHOD is test method, such as equivalence class classifying method, boundary analysis, mistake conferring method, decision table method, orthogonal Experimental method.
The beneficial effects of the present invention are the multiplexing of test case avoids some skimble-skamble test operations, guarantees Test quality.
By way of inheriting heredity, quoting integrated, supplement extension, the round-robin of test case is realized.
Good test case is constantly re-used, so that test process gets twice the result with half the effort.
In addition, design principle of the present invention is reliable, structure is simple, has very extensive application prospect.
It can be seen that compared with prior art, the present invention have substantive distinguishing features outstanding and it is significant ground it is progressive, implementation Beneficial effect be also obvious.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram of the method for test examples design of high multiplexing provided by the invention.
Specific embodiment
The present invention will be described in detail with reference to the accompanying drawing and by specific embodiment, and following embodiment is to the present invention Explanation, and the invention is not limited to following implementation.
As shown in Figure 1, a kind of method for test examples design of high multiplexing provided by the invention, which is characterized in that including with Lower step:
S1: classification refinement and the reusable test resource for extracting different densities,
S2: the process design case of function point and system to all controls,
S3: description and test case library carry out the multiplexing of use-case according to demand, using the general character between project in project, from Test data, testing procedure, test case and test scene, heredity is inherited, reference is integrated, the mode of supplement extension is multiplexed test Use-case;
S4: test scene or test after compared test case library, by the medium demand of matching rate, in Inherit Testing use-case library Use-case or testing procedure or test data, and carry out according to system under test (SUT) perfect, form new test case;
S5: reference, which integrates the test case being directly multiplexed in test case library or carries out reference, is integrated into new test case; After compared test case library, the higher demand of matching rate or is drawn at the test case that is directly multiplexed in test case library With being integrated into new test case;
S6: supplement extension is to extract the lower demand of matching rate, after compared test case library using structure directing Mode constructs new test case by the content map in Specification into test case, and updates test Multiplexing template in use-case library.
In the present embodiment, the specific implementation steps are as follows by the step S1: using test scene, testing procedure, test number According to and test method, inherited heredity, reference is integrated, by way of supplement extension, realize the round-robin of test case.
Test scene includes prerequisite, test case, test data, constraint.Wherein prerequisite is to execute current survey Premise needed for example on probation describes;Test case is the test case that test scene includes;Test data is and test scene phase The data of pass combine;Constraint i.e. description scene includes the executive mode and sequence of test case operation.Such as scene S= CONDITION,DATA,CASE,CONSTRAIN}
Wherein CONDITION is prerequisite, such as creation subnet there must be network data
DATA is test data, such as the data such as subnet title needed for creation subnet
CASE is the test case that scene includes, such as how to create the operation of subnet
CONSTRAIN is the constraint of scene, illustrates that CASE's executes sequence.
The specific implementation steps are as follows by the step S2: setting prerequisite, testing procedure, test data and test side Method, software program is in such a case it is necessary to can run well and reach implementing result designed by program;Such as
CASE={ CONDITION,DATA,STEP,METHOD }
Wherein CONDITION is prerequisite, such as creation subnet there must be network data
DATA is test data, such as the data such as subnet title needed for creation subnet
STEP is testing procedure, such as first creates subnet, and then the processes such as subnet are deleted in operation
METHOD is test method, such as equivalence class classifying method, boundary analysis, mistake conferring method, decision table method, orthogonal Experimental method.
Disclosed above is only the preferred embodiment of the present invention, but the present invention is not limited to this, any this field What technical staff can think does not have creative variation, and without departing from the principles of the present invention made by several improvement and Retouching, should all be within the scope of the present invention.

Claims (4)

1. a kind of method for test examples design of high multiplexing, which comprises the following steps:
S1: classification refinement and the reusable test resource for extracting different densities,
S2: the process design case of function point and system to all controls,
S3: description and test case library carry out the multiplexing of use-case according to demand, using the general character between project in project, from Test data, testing procedure, test case and test scene, heredity is inherited, reference is integrated, the mode of supplement extension is multiplexed test Use-case;
S4: test scene or test after compared test case library, by the medium demand of matching rate, in Inherit Testing use-case library Use-case or testing procedure or test data, and carry out according to system under test (SUT) perfect, form new test case;
S5: reference, which integrates the test case being directly multiplexed in test case library or carries out reference, is integrated into new test case; After compared test case library, the higher demand of matching rate or is drawn at the test case that is directly multiplexed in test case library With being integrated into new test case;
S6: supplement extension is to extract the lower demand of matching rate, after compared test case library using structure directing Mode constructs new test case by the content map in Specification into test case, and updates test Multiplexing template in use-case library.
2. a kind of method for test examples design of high multiplexing according to claim 1, which is characterized in that the step S1's The specific implementation steps are as follows: using test scene, testing procedure, test data and test method, is inherited by heredity, reference collects At, supplement extension mode, realize the round-robin of test case.
3. a kind of method for test examples design of high multiplexing according to claim 2, which is characterized in that test scene includes Prerequisite, test case, test data, constraint;
Wherein prerequisite is that premise needed for executing current test case describes;Test case is the test that test scene includes Use-case;Test data is that data relevant with test scene combine;Constraint i.e. description scene includes the execution of test case operation Mode and sequence.
4. a kind of method for test examples design of high multiplexing according to claim 3, which is characterized in that the step S2's The specific implementation steps are as follows: setting prerequisite, testing procedure, test data and test method, software program is in such case Under, it has to be possible to it runs well and reaches implementing result designed by program.
CN201810789628.2A 2018-07-18 2018-07-18 A kind of method for test examples design of high multiplexing Pending CN108984410A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810789628.2A CN108984410A (en) 2018-07-18 2018-07-18 A kind of method for test examples design of high multiplexing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810789628.2A CN108984410A (en) 2018-07-18 2018-07-18 A kind of method for test examples design of high multiplexing

Publications (1)

Publication Number Publication Date
CN108984410A true CN108984410A (en) 2018-12-11

Family

ID=64549166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810789628.2A Pending CN108984410A (en) 2018-07-18 2018-07-18 A kind of method for test examples design of high multiplexing

Country Status (1)

Country Link
CN (1) CN108984410A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109828904A (en) * 2018-12-14 2019-05-31 深圳壹账通智能科技有限公司 System Authentication method, device, electronic equipment and storage medium
CN110795352A (en) * 2019-10-29 2020-02-14 中国科学院微小卫星创新研究院 Establishing and using method of fine-grained test case system for component-oriented star software

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060230326A1 (en) * 2005-03-18 2006-10-12 Potts Matthew P Method for re-using test cases through standardization and modularity
CN103353859A (en) * 2013-07-26 2013-10-16 浪潮电子信息产业股份有限公司 Test case reusing method based on XML
KR20140072726A (en) * 2012-12-05 2014-06-13 경북대학교 산학협력단 Function Test Apparatus based on Unit Test Cases Reusing and Function Test Method thereof
CN104123227A (en) * 2014-08-13 2014-10-29 广东电网公司信息中心 Method for automatically generating testing cases
CN104239210A (en) * 2014-09-23 2014-12-24 浪潮电子信息产业股份有限公司 Object-oriented designing and compiling method of test case
CN105302718A (en) * 2015-10-26 2016-02-03 浪潮电子信息产业股份有限公司 Reusable software-oriented test model design method
CN106021093A (en) * 2016-05-05 2016-10-12 北京思特奇信息技术股份有限公司 Test case reuse method and system
CN107193740A (en) * 2017-05-23 2017-09-22 郑州云海信息技术有限公司 The software test case test system and method for a kind of Reuse-Oriented
CN108255718A (en) * 2018-01-11 2018-07-06 郑州云海信息技术有限公司 A kind of method for being multiplexed software use-case

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060230326A1 (en) * 2005-03-18 2006-10-12 Potts Matthew P Method for re-using test cases through standardization and modularity
KR20140072726A (en) * 2012-12-05 2014-06-13 경북대학교 산학협력단 Function Test Apparatus based on Unit Test Cases Reusing and Function Test Method thereof
CN103353859A (en) * 2013-07-26 2013-10-16 浪潮电子信息产业股份有限公司 Test case reusing method based on XML
CN104123227A (en) * 2014-08-13 2014-10-29 广东电网公司信息中心 Method for automatically generating testing cases
CN104239210A (en) * 2014-09-23 2014-12-24 浪潮电子信息产业股份有限公司 Object-oriented designing and compiling method of test case
CN105302718A (en) * 2015-10-26 2016-02-03 浪潮电子信息产业股份有限公司 Reusable software-oriented test model design method
CN106021093A (en) * 2016-05-05 2016-10-12 北京思特奇信息技术股份有限公司 Test case reuse method and system
CN107193740A (en) * 2017-05-23 2017-09-22 郑州云海信息技术有限公司 The software test case test system and method for a kind of Reuse-Oriented
CN108255718A (en) * 2018-01-11 2018-07-06 郑州云海信息技术有限公司 A kind of method for being multiplexed software use-case

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109828904A (en) * 2018-12-14 2019-05-31 深圳壹账通智能科技有限公司 System Authentication method, device, electronic equipment and storage medium
CN110795352A (en) * 2019-10-29 2020-02-14 中国科学院微小卫星创新研究院 Establishing and using method of fine-grained test case system for component-oriented star software
CN110795352B (en) * 2019-10-29 2024-02-27 中国科学院微小卫星创新研究院 Method for establishing and using fine granularity test case system for structured star software

Similar Documents

Publication Publication Date Title
CN106155651B (en) The automation publication of application version and the method and system of update
CN104834603B (en) A kind of controlling stream towards regression test changes domain of influence analysis method and system
CN104133771B (en) A kind of test method and device
EP3032425A1 (en) Integrated automated test case generation for safety-critical software
CN108984410A (en) A kind of method for test examples design of high multiplexing
CN103123607B (en) Software regression testing method based on formal conceptual analysis
CN103970662A (en) Method and system for obtaining boundary value input through GUI software
CN111651365B (en) Automatic interface testing method and device
CN105718368A (en) Software testing data amplification method
CN112579108A (en) Automatic deployment method and device
CN111782556A (en) Automatic test method and device
CN109032941A (en) The sustainable integrated interface automated testing method and system of test case driving
CN104536880B (en) Gui program test case amplification method based on semiology analysis
CN107491395A (en) A kind of self-defined test case framework application method
CN105786787B (en) Efficient PDF reports test method based on Java
CN112105025A (en) eSIM-based operator network test system and method
CN109165155B (en) Software defect repairing template extraction method based on cluster analysis
Yoshida et al. A cohesion metric approach to dividing source code into functional segments to improve maintainability
CN111176995A (en) Test method and test system based on big data test case
CN111240967A (en) Code generation method and device
CN106681910B (en) A kind of Intrusion Detection based on host code analysis generates the method and device of test cases
CN111078548B (en) Test case analysis method and device, storage medium and verification platform
CN105468514B (en) Test method and device based on data combination
CN111008140B (en) Cross-platform UI (user interface) automatic testing method and device
CN109709823A (en) Information integration test method based on model

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181211