CN107193740A - The software test case test system and method for a kind of Reuse-Oriented - Google Patents

The software test case test system and method for a kind of Reuse-Oriented Download PDF

Info

Publication number
CN107193740A
CN107193740A CN201710369035.6A CN201710369035A CN107193740A CN 107193740 A CN107193740 A CN 107193740A CN 201710369035 A CN201710369035 A CN 201710369035A CN 107193740 A CN107193740 A CN 107193740A
Authority
CN
China
Prior art keywords
test
case
data
test case
multiplexing
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
CN201710369035.6A
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 CN201710369035.6A priority Critical patent/CN107193740A/en
Publication of CN107193740A publication Critical patent/CN107193740A/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/3688Test management for test execution, e.g. scheduling of test suites

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 invention discloses a kind of software test case system of Reuse-Oriented, including multiplexing test case library, including test scene, test case, four kinds of granularity tissues of testing procedure and test data;With, test elements, reference, combination, succession multiplexing test case library are tested;Comparing module, for carrying out demand comparison to test elements, judges that test elements are multiplexed to multiplexing test case library using which kind of mode.The invention also discloses a kind of software test case method of Reuse-Oriented.The present invention sets multiplexing test case library abstract and extracts varigrained reusable test assets, and use example is multiplexed by different level, greatly realizes the high-quality test of software.

Description

The software test case test system and method for a kind of Reuse-Oriented
Technical field
The present invention relates to software testing technology field, the software test case test system of specifically a kind of Reuse-Oriented System and method.
Background technology
Becoming increasingly popular and deepen with computer application, the quantity of software product drastically expands with surprising rapidity, soft The effect of part in modern society is essential, and software cannot malfunction.And software test is accounted in the software life cycle There is consequence, and directly affect the quality of software.
But, it is ensured that high-quality software is generally very expensive, because test is the Main Means for realizing quality, and realizes Quality Assurance can consume 50%~60% software development workload estimate, and can hinder the process of whole project.Just because such as This, insufficient quality assurance, the deficiency especially tested causes the uneven of software quality.
In face of increasingly complicated software systems, multiplexing is considered as to improve software development efficiency and quality, realize that software is produced The important channel of product industrialized production, application of the multiplexing technology in software requirement engineering and design engineering, has been achieved with Significant achievement.
Test reuse be exactly by the thought of multiplexing be used for software test in, fully with pass by software test in accumulate into Really, knowledge and experience, goes to develop new test.
The content of the invention
It is an object of the invention to a kind of software test case test system of Reuse-Oriented, for solving existing software The problem of test not can fully ensure that test quality, improves test job efficiency, reduces testing cost.
The technical scheme adopted by the invention to solve the technical problem is that:A kind of software test case test of Reuse-Oriented System, it is characterized in that, including
It is multiplexed test case library, including test scene, test case, four kinds of granularity tissues of testing procedure and test data; With,
Test elements, quote, combine, inheriting multiplexing test case library, being tested;
Comparing module, for carrying out demand comparison to test elements, judges that test elements are used to multiplexing test case library Which kind of mode is multiplexed.
Further, described test scene includes scene properties, scrnario testing use-case, scrnario testing data, scene about Beam;Described scene properties are used to describe all attributes of test scene;Scrnario testing data are the numbers related to test scene According to combination;Scrnario testing use-case is the test case that test scene is included;Context restrictions are that description test scene is used comprising test The executive mode and order of example operation.
Further, described test case is the set of the instruction to system under test (SUT) practical operation, and test case includes Use-case attribute, use-case test data, use-case testing procedure, use-case constraint;Attribute is used for all properties for describing test case;With Example test data is the related data that the use-case is used;Use-case testing procedure is the basic operation in test process, including use-case Attribute and use-case data;Use-case constrains the executive mode and order for referring to the testing procedure that test case is included.
Further, described executive mode includes performing test and automated execution test by hand;Needed when performing by hand Tester is wanted to be ready to test precondition, precondition needs according to business, and use-case runs succeeded necessary condition;
Described execution sequence is foundation dependence condition to perform current use-case.
Further, described testing procedure is the basic operation in test process, including attribute and data.
Further, all data needed for the test of described test data, are made up of attribute.
Further, described attribute is that title is corresponding with value.
Further, the described test elements that are cited as directly quote the test scene for being multiplexed test case library, or/and survey Example on probation, or/and testing procedure, or/and test data;
Different test cases in described combination i.e. combination multiplexing test case library are new test scene;Combination is not Same testing procedure is new test case;The different test data of combination is new test data;
The test scene in multiplexing test case library, or/and test case, or/and test step are inherited in described succession Suddenly, or/and test data, and according to system under test (SUT) carry out perfect, form new test case.
Further, described demand, which is compared, is:The test elements of current version and the test elements of a upper version are entered Row contrast, judges demand.
A kind of software test case method of testing of Reuse-Oriented, utilizes a kind of the soft of Reuse-Oriented described in any one Part testing case system, it is characterized in that, specifically include following steps:
1), the current version and a upper version of test elements are contrasted, demand is judged;
2), if test elements need to quote, step 3 is performed) operation;If test elements need combination, perform Step 4) operation;If test elements need to inherit, step 5 is performed) operation;
3), test elements directly quote multiplexing test case library according to demand, carry out the direct multiplexing of test elements;
4), the specific granularity tissue for being multiplexed test case library is combined by test elements according to demand, is tested The direct multiplexing of element;
5), test elements carry out inheriting original granularity tissue according to demand, improve already present test elements, form new Test elements multiplexing;
6), multiplexing test case terminates.
The beneficial effects of the invention are as follows:
1st, the present invention sets multiplexing test case library abstract and extracts varigrained reusable test assets, use example point Level is multiplexed, and greatly realizes the high-quality test of software.
2nd, the present invention can realize the multiplexing of use-case by reference, combination, succession, either to redaction or old version This, is all suitable for.
3rd, the present invention realizes the automatic test of software, and testing cost is saved in use-case multiplexing.
Brief description of the drawings
Fig. 1 is modular structure connection figure of the invention;
Fig. 2 is the inventive method flow chart.
Embodiment
For the technical characterstic for illustrating this programme can be understood, below by embodiment, and its accompanying drawing is combined, to this hair It is bright to be described in detail.Following disclosure provides many different embodiments or example is used for realizing the different knots of the present invention Structure.In order to simplify disclosure of the invention, hereinafter the part and setting of specific examples are described.In addition, the present invention can be with Repeat reference numerals and/or letter in different examples.This repetition is that for purposes of simplicity and clarity, itself is not indicated Relation between various embodiments are discussed and/or set.It should be noted that part illustrated in the accompanying drawings is not necessarily to scale Draw.Present invention omits the description to known assemblies and treatment technology and process to avoid being unnecessarily limiting the present invention.
As shown in figure 1, a kind of software test case test system of Reuse-Oriented, including
It is multiplexed test case library, including test scene, test case, four kinds of granularity tissues of testing procedure and test data; With,
Test elements, quote, combine, inheriting multiplexing test case library, being tested;
Comparing module, for carrying out demand comparison to test elements, judges that test elements are used to multiplexing test case library Which kind of mode is multiplexed.
Test scene includes scene properties, scrnario testing use-case, scrnario testing data, context restrictions;Described scene category Property be used for all attributes of test scene are described;Scrnario testing data are that the data related with test scene are combined;Scrnario testing Use-case is the test case that test scene is included;Context restrictions are to describe test scene to include the executive mode that test case is run And order.Such as scene S={ ATTRIBUTE, DATA, CASE, CONSTRAIN };Wherein ATTRIBUTE be attribute, comprising but It is not limited to scene title, scene said module, scene and includes test case number.
DATA is test data, for example, create the virtual machine title needed for virtual machine scene.
CASE is the test case that scene is included, for example, create and login system use-case, establishment group are included in virtual machine scene Knit use-case, create virtual data center use-case, create virtual machine use-case, log off use-case.
CONSTRAIN is the constraint of scene, illustrates the execution sequence of CASE (test case).
Test case is the set of the instruction to system under test (SUT) practical operation, and test case includes use-case attribute, use-case and surveyed Try data, use-case testing procedure, use-case constraint;Attribute is used for all properties for describing test case;Use-case test data is should The related data that use-case is used;Use-case testing procedure is the basic operation in test process, including use-case attribute and use-case data; Use-case constrains the executive mode and order for referring to the testing procedure that test case is included.Such as CASE=ATTRIBUTE, DATA, STEP,CONSTRAIN};Wherein ATTRIBUTE is attribute, including but not limited to use-case title, use-case sequence number, the affiliated mould of use-case Block.
DATA is test data, for example, create the virtual machine title needed for virtual machine use-case.
STEP is the testing procedure that test case is included, for example, create virtual machine test case and include input virtual machine name Title, virtual machine configuration, selection virtual data center.
CONSTRAIN is the constraint of use-case, illustrates the execution sequence of STEP (testing procedure).
Executive mode includes performing test and automated execution test by hand;Tester is needed to be ready to when performing by hand Precondition is tested, precondition needs according to business, and use-case runs succeeded necessary condition;Execution sequence be according to according to Bad condition performs current use-case.
Testing procedure is the basic operation in test process, including attribute and data.
All data needed for test data test, are made up of attribute.Such as virtual machine title=vm.
Attribute is that title is corresponding with value.
, can be according to demand between project, from test data, test step when software test personnel start multiplexing test case Suddenly, test case and test scene, from fine to coarse, test case are multiplexed by the way of quoting, combining and inheriting.
Demand is compared:The test elements of current version and the test elements of a upper version are contrasted, and judge demand.
The test scene that test elements directly quote multiplexing test case library, or/and test case are cited as, or/and is surveyed Try is rapid, or/and test data.
Different test cases in combination i.e. combination multiplexing test case library are new test scene;The different survey of combination Try is new test case suddenly;The different test data of combination is new test data.
It is to inherit the test scene in multiplexing test case library to inherit, or/and test case, or/and testing procedure, or/ And test data, and it is perfect according to system under test (SUT) progress, form new test case.
As shown in Fig. 2 a kind of software test case method of testing of Reuse-Oriented, is surveyed using a kind of software of Reuse-Oriented Example test system on probation, specifically includes following steps:
1), the current version and a upper version of test elements are contrasted, demand is judged;
2), if test elements need to quote, step 3 is performed) operation;If test elements need combination, perform Step 4) operation;If test elements need to inherit, step 5 is performed) operation;
3), test elements directly quote multiplexing test case library according to demand, carry out the direct multiplexing of test elements;
4), the specific granularity tissue for being multiplexed test case library is combined by test elements according to demand, is tested The direct multiplexing of element;
5), test elements carry out inheriting original granularity tissue according to demand, improve already present test elements, form new Test elements multiplexing;
6), multiplexing test case terminates.
Simply the preferred embodiment of the present invention described above, for those skilled in the art, Without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications are also regarded as this hair Bright protection domain.

Claims (10)

1. a kind of software test case test system of Reuse-Oriented, it is characterized in that, including
It is multiplexed test case library, including test scene, test case, four kinds of granularity tissues of testing procedure and test data;With,
Test elements, quote, combine, inheriting multiplexing test case library, being tested;With,
Comparing module, for carrying out demand comparison to test elements, judges which kind of test elements use to multiplexing test case library Mode is multiplexed.
2. a kind of software test case test system of Reuse-Oriented according to claim 1, it is characterized in that, described survey Examination hall scape includes scene properties, scrnario testing use-case, scrnario testing data, context restrictions;Described scene properties are used to describe All attributes of test scene;Scrnario testing data are that the data related with test scene are combined;Scrnario testing use-case is test The test case that scene is included;Context restrictions are to describe test scene to include executive mode and order that test case is run.
3. a kind of software test case test system of Reuse-Oriented according to claim 1, it is characterized in that, described survey Example on probation is the set of the instruction to system under test (SUT) practical operation, and test case includes use-case attribute, use-case test data, use-case Testing procedure, use-case constraint;Attribute is used for all properties for describing test case;Use-case test data is the phase that the use-case is used Close data;Use-case testing procedure is the basic operation in test process, including use-case attribute and use-case data;Use-case constraint refers to survey The executive mode and order for the testing procedure that example on probation is included.
4. a kind of software test case test system of Reuse-Oriented according to Claims 2 or 3 any one, its feature It is that described executive mode includes performing test and automated execution test by hand;Tester is needed to prepare when performing by hand Test precondition well, precondition needs according to business, use-case runs succeeded necessary condition;
Described execution sequence is foundation dependence condition to perform current use-case.
5. a kind of software test case test system of Reuse-Oriented according to claim 1, it is characterized in that, described survey Try is the basic operation in test process suddenly, including attribute and data.
6. a kind of software test case test system of Reuse-Oriented according to claim 1, it is characterized in that, described survey All data needed for data test are tried, are made up of attribute.
7. a kind of software test case test system of Reuse-Oriented according to claim 6, it is characterized in that, described category Property for title be worth it is corresponding.
8. a kind of software test case test system of Reuse-Oriented according to claim 1, it is characterized in that, described draws The test scene for being multiplexed test case library with directly being quoted for test elements, or/and test case, or/and testing procedure, or/ And test data;
Different test cases in described combination i.e. combination multiplexing test case library are new test scene;Combination is different Testing procedure is new test case;The different test data of combination is new test data;
The test scene in multiplexing test case library, or/and test case, or/and testing procedure are inherited in described succession, Or/and test data, and it is perfect according to system under test (SUT) progress, form new test case.
9. a kind of software test case test system of Reuse-Oriented according to claim 1, it is characterized in that, described need The comparison is asked to be:The test elements of current version and the test elements of a upper version are contrasted, and judge demand.
10. a kind of software test case method of testing of Reuse-Oriented, utilizes a kind of face described in claim 1-9 any one To the software test case test system of multiplexing, it is characterized in that, specifically include following steps:
1), the current version and a upper version of test elements are contrasted, demand is judged;
2), if test elements need to quote, step 3 is performed) operation;If test elements need combination, step is performed 4) operate;If test elements need to inherit, step 5 is performed) operation;
3), test elements directly quote multiplexing test case library according to demand, carry out the direct multiplexing of test elements;
4), the specific granularity tissue for being multiplexed test case library is combined by test elements according to demand, carries out test elements Direct multiplexing;
5), test elements carry out inheriting original granularity tissue according to demand, improve already present test elements, form new survey Try element multiplexing;
6), multiplexing test case terminates.
CN201710369035.6A 2017-05-23 2017-05-23 The software test case test system and method for a kind of Reuse-Oriented Pending CN107193740A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710369035.6A CN107193740A (en) 2017-05-23 2017-05-23 The software test case test system and method for a kind of Reuse-Oriented

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710369035.6A CN107193740A (en) 2017-05-23 2017-05-23 The software test case test system and method for a kind of Reuse-Oriented

Publications (1)

Publication Number Publication Date
CN107193740A true CN107193740A (en) 2017-09-22

Family

ID=59874540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710369035.6A Pending CN107193740A (en) 2017-05-23 2017-05-23 The software test case test system and method for a kind of Reuse-Oriented

Country Status (1)

Country Link
CN (1) CN107193740A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844421A (en) * 2017-10-31 2018-03-27 平安科技(深圳)有限公司 Interface test method, device, computer equipment and storage medium
CN108255718A (en) * 2018-01-11 2018-07-06 郑州云海信息技术有限公司 A kind of method for being multiplexed software use-case
CN108984410A (en) * 2018-07-18 2018-12-11 郑州云海信息技术有限公司 A kind of method for test examples design of high multiplexing
CN110275829A (en) * 2019-06-13 2019-09-24 惠州市德赛西威汽车电子股份有限公司 A kind of software hierarchy test method
CN110442522A (en) * 2019-08-05 2019-11-12 广州小鹏汽车科技有限公司 The method for generating test case and test method of functional requirement based on electric car
CN112069068A (en) * 2020-09-03 2020-12-11 中国平安财产保险股份有限公司 Automatic test data processing method, device, equipment and readable storage medium
CN112363942A (en) * 2020-11-17 2021-02-12 浪潮云信息技术股份公司 System and method for realizing reusable unit test
CN112699036A (en) * 2020-12-29 2021-04-23 中国航空工业集团公司西安飞机设计研究所 Multi-partition multi-version airborne application software test case multiplexing method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080244321A1 (en) * 2007-03-08 2008-10-02 Tim Kelso Program Test System
CN103605609A (en) * 2013-12-10 2014-02-26 浪潮电子信息产业股份有限公司 Automatic test framework applicable to cloud computing
CN105302718A (en) * 2015-10-26 2016-02-03 浪潮电子信息产业股份有限公司 Design method of multiplexing software-oriented test model
CN106021093A (en) * 2016-05-05 2016-10-12 北京思特奇信息技术股份有限公司 Test case reuse method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080244321A1 (en) * 2007-03-08 2008-10-02 Tim Kelso Program Test System
CN103605609A (en) * 2013-12-10 2014-02-26 浪潮电子信息产业股份有限公司 Automatic test framework applicable to cloud computing
CN105302718A (en) * 2015-10-26 2016-02-03 浪潮电子信息产业股份有限公司 Design method of multiplexing software-oriented test model
CN106021093A (en) * 2016-05-05 2016-10-12 北京思特奇信息技术股份有限公司 Test case reuse method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MUFENG_慕枫: ""JAVA复用类之组合语法的使用(附源码)"", 《CSDN:HTTPS://BLOG.CSDN.NET/U013693649/ARTICLE/DETAILS/51799152》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844421A (en) * 2017-10-31 2018-03-27 平安科技(深圳)有限公司 Interface test method, device, computer equipment and storage medium
CN108255718A (en) * 2018-01-11 2018-07-06 郑州云海信息技术有限公司 A kind of method for being multiplexed software use-case
CN108984410A (en) * 2018-07-18 2018-12-11 郑州云海信息技术有限公司 A kind of method for test examples design of high multiplexing
CN110275829A (en) * 2019-06-13 2019-09-24 惠州市德赛西威汽车电子股份有限公司 A kind of software hierarchy test method
CN110442522A (en) * 2019-08-05 2019-11-12 广州小鹏汽车科技有限公司 The method for generating test case and test method of functional requirement based on electric car
CN112069068A (en) * 2020-09-03 2020-12-11 中国平安财产保险股份有限公司 Automatic test data processing method, device, equipment and readable storage medium
CN112363942A (en) * 2020-11-17 2021-02-12 浪潮云信息技术股份公司 System and method for realizing reusable unit test
CN112699036A (en) * 2020-12-29 2021-04-23 中国航空工业集团公司西安飞机设计研究所 Multi-partition multi-version airborne application software test case multiplexing method
CN112699036B (en) * 2020-12-29 2023-03-14 中国航空工业集团公司西安飞机设计研究所 Multi-partition multi-version airborne application software test case multiplexing method

Similar Documents

Publication Publication Date Title
CN107193740A (en) The software test case test system and method for a kind of Reuse-Oriented
CN106294120B (en) Method, apparatus and computer program product for testing code
CN102902621B (en) Application performance measurement and reporting
CN111159049B (en) Automatic interface testing method and system
US8230401B2 (en) Performing regression tests based on test case effectiveness
CN106339312A (en) API (application programming interface) testing method and system
Sengupta et al. Engineering multi-tenant software-as-a-service systems
NO20064177L (en) Process, device and program storage equipment that has an integrated management system for the workflow in resource planning with process dependency
JP2013507675A (en) Generate automated test execution plans
US20100153087A1 (en) Techniques for generating a reusable test script for a single user performance test
CN108598013A (en) A kind of test method of wafer
CN105279196B (en) The generation method and device of test script
CN103530209B (en) A kind of code keypad automated testing method
Gambi et al. Automated testing of cloud-based elastic systems with AUToCLES
CN106093897B (en) A kind of the test system and test method of radar system
CN106484613A (en) A kind of interface automated test frame based on fitnese
CN108874649A (en) Generation method, device and its computer equipment of automatic test script
Nidagundi et al. New method for mobile application testing using lean canvas to improving the test strategy
CN105096104A (en) Form operation authority control method, apparatus and office automation system
CN103699478A (en) Test case generation system and test case generation method
US20100242024A1 (en) User Interface System and Method for Controlling Conversion of a Source Job Control Language File into a Test Job Control Language File
CN106776284B (en) A kind of method for testing software and system
US8126931B2 (en) Method and apparatus for displaying the composition of a data structure during runtime
CN112527312A (en) Test method and test device for embedded system
CN109857576A (en) RPC interface call method and device

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

Application publication date: 20170922

RJ01 Rejection of invention patent application after publication