CN105117333A - Method and system for management of test cases - Google Patents
Method and system for management of test cases Download PDFInfo
- Publication number
- CN105117333A CN105117333A CN201510522463.9A CN201510522463A CN105117333A CN 105117333 A CN105117333 A CN 105117333A CN 201510522463 A CN201510522463 A CN 201510522463A CN 105117333 A CN105117333 A CN 105117333A
- Authority
- CN
- China
- Prior art keywords
- test case
- case
- new product
- existing
- test
- 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
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to a method and a system for management of test cases. The method comprises the following steps of: selecting an existing product most similar to a new product, and selecting the corresponding existing test cases according to the existing product; according to the needs of the new product, selecting some test cases from the existing test cases or adding new test cases in a case database, and selecting the new test cases and the existing test cases as the cases for the new product; selecting a new test strategy corresponding to the new test cases in the case database; binding the test strategy to the corresponding new test cases, after completing binding, importing the new test cases in the case database for storage. When the new product needs to use the test cases, the database can be directly opened to call the new product test cases and output the test cases in standard format, thus, efficiency of writing the test cases is improved.
Description
Technical field
The present invention relates to the field tests of electronic product, more particularly, relate to a kind of management method and system of test case.
Background technology
Generally, the tester of ordinary enterprises completes the method for test case: understand product work process, and understand instructions, the experience with oneself takes up to carry out writing product test use-case.First write basic function, performance, according to design input relevant documentation, as operation instructions, all departments' designing requirement, consumer product demand, more progressively carry out every content augmentation, expect that some then increase again.First set about from large test class, as hardware, software, environment for use; Again from equipment use piecemeal: web terminal, pc client, android client, ISO client etc. is set about; And then segment according to each part, as web terminal correlation function item etc.
But these traditional methods completing test case, test write test case to other products before causing to manage concentratedly, thus cannot be re-used, and then cause when writing test case next time, because the content of test case is various, thus allowing people easily omit relevant content measurement, the efficiency of writing test case is low.
Summary of the invention
The technical problem to be solved in the present invention is, a kind of management method and system of test case are provided, the test case of having write can be managed concentratedly, when writing other test cases next time, can revise on the existing test case basis of having preserved, form new test case, improve the efficiency of the test case of writing.
The technical solution adopted for the present invention to solve the technical problems is: the management method constructing a kind of test case, comprises the steps:
Existing test case corresponding in use-case database is selected according to the existing product the most similar with new product;
Receive the decision instruction of user's input, judge in the test case needed for new product, whether have not by test case that described existing test case comprises;
When in the test case needed for described new product, when having the test case do not comprised by described existing test case, in use-case database, add new test case, and add the catalogue of new test case the administration interface of use-case database to;
Select described new test case, the new Test Strategy that input is corresponding;
After the described new test case of described new Test Strategy binding, import in described use-case database and preserve.
Preferably, also comprise the steps:
When in the test case needed for described new product, when having the test case do not comprised by described existing test case, select described existing test case and described new test case;
Receive the new product name of input, and described existing test case, described new test case and described new product are bound, generate the test case of new product.
Preferably, also comprise the steps:
When the test case needed for described new product is comprised by described existing test case completely, from described existing test case, select the test case needed for described new product;
Receive the new product name of input, and the test case needed for described new product and described new product are bound, generate the test case of described new product.
Preferably, before selecting corresponding existing test case according to the existing product the most similar with new product, also comprise the steps:
Receive the title of the described existing product of input, according to the described existing test case of described existing product inquiry.
Preferably, after the test case generating new product, also comprise the steps:
Derive the test case of described new product, and the test case of described new product is backed up.
The present invention also provides a kind of management system of test case, comprising:
Use-case database, for the test case of storage products test and the Test Strategy of correspondence, and the administration interface of described use-case database is provided with the catalogue of test case in the mode of tree derivation;
First case selection module, for selecting existing test case corresponding in described use-case database according to the existing product the most similar with new product;
Whether judge module, for receiving the decision instruction of user's input, judges in the test case needed for new product, have not by test case that described existing test case comprises;
Use-case increases module, for working as in the test case needed for described new product, when having the test case do not comprised by described existing test case, in use-case database, add new test case, and add the catalogue of new test case the administration interface of use-case database to;
Test Strategy load module, for selecting described new test case, the new Test Strategy that input is corresponding;
Use-case preserves module, for by after the described new test case of described new Test Strategy binding, imports in described use-case database and preserves.
Preferably, described test case management system also comprises:
Second case selection module, for when in the test case needed for described new product, when having the test case do not comprised by described existing test case, selects described existing test case and described new test case;
First use-case binding module, for receiving the new product name of input, and binds described existing test case, described new test case and described new product, generates the test case of new product.
Preferably, described test case management system also comprises:
3rd case selection module, for when the test case needed for described new product is comprised by described existing test case completely, selects the test case needed for described new product from described existing test case;
Second use-case binding module, for receiving the new product name of input, and binding the test case needed for described new product and described new product, generating the test case of described new product.
Preferably, described test case management system also comprises:
Use-case enquiry module, for receiving the title of the described existing product of input, according to the described existing test case of described existing product inquiry.
Preferably, described test case management system also comprises:
Use-case backup module, for deriving the test case of described new product, and backs up the test case of described new product.
Implement the present invention, there is following beneficial effect: when writing test case to new product, inquire about the existing test case of the existing product the most similar to new product, when in the test case needed for new product, have not comprise by existing test case test case time, the new test case needed for new product is increased in use-case database, and the Test Strategy binding that input is corresponding, when new product needs to use test case, directly can call the new test case of existing test case and increase, do not need again to write test case again, improve the efficiency of writing test case.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the theory diagram of the management system of test case of the present invention;
Fig. 2 is the schematic flow sheet of the management method of test case of the present invention.
Embodiment
As shown in Figure 1, in the first embodiment of the management system of test case of the present invention, the management system of this test case comprises use-case database 100, use-case increases module 101, use-case preserves module 102, Test Strategy load module 103, first case selection module 104, judge module 105, second case selection module 106, first use-case binding module 108, the 3rd case selection module 107, second use-case binding module 109, use-case enquiry module 110, use-case backup module 111.
The test case of the test case that use-case database 100 is tested for storage products and correspondence, and the administration interface of use-case database 100 is provided with the catalogue of test case in the mode of tree derivation.
First case selection module 104 is for selecting existing test case corresponding in use-case database 100 according to the existing product the most similar with new product.User is after determining existing product the most similar with it according to new product, the title of existing product is inputed to the first case selection module 104, first case selection module 104 and can select according to the title of the existing product of input the test case that existing product is corresponding.
Judge module 105 is for receiving the decision instruction of user's input, and whether the test case judging needed for new product has not by test case that existing test case comprises.User the test case needed for new product have not comprise by existing test case test case time, then input the judgement order determined to judge module 105, judge module 105 just judges in the test case needed for new product, when having the test case do not comprised by existing test case.Otherwise then input the judgement order of negative to judge module 105, judge module 105 judges that the test case needed for new product is comprised by existing test case completely.
Use-case increases module 101 for working as in the test case needed for new product, when having the test case do not comprised by existing test case, in use-case database 100, add new test case, and add the catalogue of new test case the administration interface of use-case database 100 to.
Test Strategy load module 103, for selecting new test case, inputs corresponding new Test Strategy.
Use-case preservation module 102 imports in use-case database 100 and preserves after binding new test case for just new Test Strategy.
Second case selection module 106, for when in the test case needed for new product, when having the test case do not comprised by existing test case, selects existing test case and new test case.
Existing test case, new test case and new product for receiving the new product name of input, and are bound by the first use-case binding module 108, generate the test case of new product.
3rd case selection module 107, for when the test case needed for new product is comprised by described existing test case completely, selects the test case needed for new product from existing test case.Such as, the title of input existing product, administration interface is inquired about the catalogue of the test case of existing product, selects the catalogue that needed for new product, test case is corresponding.
Test case needed for new product and new product for receiving the new product name of input, and are bound by the second use-case binding module 109, generate the test case of new product.When user needs to test new product, directly can open and call this newly-generated test case, and export in a standard format, and again need not write test case.Use-case enquiry module 110, for receiving the title of the existing product of input, inquires about existing test case according to existing product.
The test case of new product for deriving the test case of new product, and backs up by use-case backup module 111.After the test case of new product is backed up, can also be imported in other use-case databases, for other users.The management system of above-mentioned test case independently can be installed and be used on computers, and the use-case database of derivation can be shared.The mode of catalogue by tree derivation on administration interface of the test case in use-case database is listed, very clear, makes user select to be not easy during test case to omit, more wants orderliness when executing the task.Further, this management system adopts the computing machine of common configuration just can run, and does not need access network, easy to use and flexible.
As shown in Figure 2, in the first embodiment of the management method of test case of the present invention, comprise the steps:
S1, use-case enquiry module 110 receive the title of the existing product of input, inquire about existing test case according to existing product.Wherein, selected existing product should be the most similar to new product.Such as, the basis of existing product is improved, and the new product generated, so this existing product is then the most similar to this new product.
S2, the first case selection module 104, according to the existing product the most similar to new product, select corresponding existing test case in use-case database 100.
S3, judge module 105 receive the decision instruction of user's input, and whether the test case judging needed for new product has not by test case that described existing test case comprises; If in the test case needed for new product, when having the test case do not comprised by existing test case, then perform step S4-S8; If the test case needed for new product is comprised by existing test case completely, then perform step S9-S10.
S4, use-case increase module 101 and add new test case in use-case databases 100, and add the catalogue of new test case the administration interface of use-case database 100 to.Here, the new test case increased such as, the test case of device temperature and humidity alarm.
S5, Test Strategy load module 103 select new test case, the new Test Strategy that input is corresponding.Such as, corresponding with the test case that device temperature is reported to the police new Test Strategy comprises: whether temperature alarming threshold range equipment, storage, use meet designing requirement; Whether the error of the actuation of an alarm threshold value of temperature meets designing requirement; With or without the phenomenon failed to report or the order of severity failed to report whether within the limits prescribed; With or without the phenomenon misrepresented deliberately or the order of severity misrepresented deliberately whether within the limits prescribed.
After new Test Strategy is bound new test case by S6, use-case preservation module 102, import in use-case database 100 and preserve.
S7, the second case selection module 106, when in the test case needed for new product, when having the test case do not comprised by described existing test case, select existing test case and new test case.
S8, the first use-case binding module 108 receive the new product name of input, and existing test case, new test case and new product are bound, and generate the test case of new product, then perform step S11.
S9, the 3rd case selection module 107 select the test case needed for new product from existing test case.
S10, the second use-case binding module 109 receive the new product name of input, and the test case needed for new product and new product are bound, and generate the test case of new product, then perform step S11.
S11, use-case backup module 111 derive the test case of new product, and the test case of new product are backed up.
In another embodiment, concrete step is as following:
Fresh content is increased: the use-case of temperature and humid control test in use-case database.
Open use-case data base administration interface, select " the equipment alarm parameter-warning input " of tree-structured directory, add " device temperature warning " and " equipment humidity alarm ".
In tree-structured directory menu, select " device temperature warning " item, and the Test Strategy that input is corresponding, the strategy of such as temperature and humidity test.
After completing, Test Strategy is exported in use-case database and retain, now in use-case storehouse, added the use-case of temperature and humidity test, freely can use as resource.
Select the title " B " of the most similar to new product A existing product B: input product B, and import to use-case library management interface.
Click tree-structured directory, select the use-case " device temperature warning " newly increased in use-case database, and determine to select this setting.
The use-case " equipment humidity alarm " that same click newly increases, and determine to select this setting.
The title " B " of input changed into " A ", then select to derive product use-case, now the test case of B has been backed up, and now as wanted the use-case table producing this product, only needs to select " derivation use-case " to complete.New use-case table is exactly on the use-case basis of product B, adds new use-case table.
In sum, the management method of test case of the present invention and system, carry out the new product tested as required, determine existing product similarly, inquire about the existing test case corresponding with existing product, judge whether the test case needed for new product is greater than the test case of existing product, when new product also needs to increase new test case on the basis of existing test case, new test case is increased in use-case database, and the input Test Strategy corresponding with new test case is bound, again existing test case and new test case and new product are bound, as the test case of new product.When new product needs to reduce some test cases on the basis of existing test case, only required test case and new product need be selected on the basis of existing test case to bind, as the test case of new product.
Tester writes for product test use-case, and current scheme mainly edits EXCEL, the general utility tools such as WORD.Although such instrument can write these documents, using and managing of test case is at random, is unfavorable for the accumulation of test case, if but use the present invention, then substantially increase efficiency.
In addition, also have the use-case of many specialties to write administrating system on the market, function is extremely powerful, but learns and operate more difficult, and the present invention and these professional system ratios, use extremely simple, easy meeting easy to learn.Simultaneously, the method and system take full advantage of the existing test case of having write, only need on the basis of existing test case, increase required test case or only select required test case, avoiding tester in order to new product writes test case again, thus improve the efficiency of writing test case, also there is the functional characteristics such as convenient management.
Understandable, above embodiment only have expressed the preferred embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention; It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can carry out independent assortment to above-mentioned technical characterstic, can also make some distortion and improvement, these all belong to protection scope of the present invention; Therefore, all equivalents of doing with the claims in the present invention scope and modification, all should belong to the covering scope of the claims in the present invention.
Claims (10)
1. a management method for test case, is characterized in that, comprises the steps:
Existing test case corresponding in use-case database is selected according to the existing product the most similar with new product;
Receive the decision instruction of user's input, judge in the test case needed for new product, whether have not by test case that described existing test case comprises;
When in the test case needed for described new product, when having the test case do not comprised by described existing test case, in use-case database (100), add new test case, and the catalogue of new test case is added to the administration interface of use-case database (100);
Select described new test case, the new Test Strategy that input is corresponding;
After the described new test case of described new Test Strategy binding, import in described use-case database (100) and preserve.
2. the management method of test case according to claim 1, is characterized in that, also comprises the steps:
When in the test case needed for described new product, when having the test case do not comprised by described existing test case, select described existing test case and described new test case;
Receive the new product name of input, and described existing test case, described new test case and described new product are bound, generate the test case of new product.
3. the management method of test case according to claim 1, is characterized in that, also comprises the steps:
When the test case needed for described new product is comprised by described existing test case completely, from described existing test case, select the test case needed for described new product;
Receive the new product name of input, and the test case needed for described new product and described new product are bound, generate the test case of described new product.
4. the management method of test case according to claim 2, is characterized in that, before selecting corresponding existing test case according to the existing product the most similar with new product, also comprises the steps:
Receive the title of the described existing product of input, according to the described existing test case of described existing product inquiry.
5. the management method of the test case according to Claims 2 or 3, is characterized in that, after the test case generating new product, also comprises the steps:
Derive the test case of described new product, and the test case of described new product is backed up.
6. a management system for test case, is characterized in that, comprising:
Use-case database (100), for the test case of storage products test and the Test Strategy of correspondence, and the administration interface of described use-case database (100) is provided with the catalogue of test case in the mode of tree derivation;
First case selection module (104), for selecting existing test case corresponding in described use-case database (100) according to the existing product the most similar with new product;
Whether judge module (105), for receiving the decision instruction of user's input, judges in the test case needed for new product, have not by test case that described existing test case comprises;
Use-case increases module (101), for working as in the test case needed for described new product, when having the test case do not comprised by described existing test case, in use-case database (100), add new test case, and the catalogue of new test case is added to the administration interface of use-case database (100);
Test Strategy load module (103), for selecting described new test case, the new Test Strategy that input is corresponding;
Use-case preserves module (102), for by after the described new test case of described new Test Strategy binding, imports in described use-case database (100) and preserves.
7. the management system of test case according to claim 6, is characterized in that, described test case management system also comprises:
Second case selection module (106), for when in the test case needed for described new product, when having the test case do not comprised by described existing test case, selects described existing test case and described new test case;
First use-case binding module (108), for receiving the new product name of input, and binds described existing test case, described new test case and described new product, generates the test case of new product.
8. the management system of test case according to claim 6, is characterized in that, described test case management system also comprises:
3rd case selection module (107), for when the test case needed for described new product is comprised by described existing test case completely, selects the test case needed for described new product from described existing test case;
Second use-case binding module (109), for receiving the new product name of input, and binding the test case needed for described new product and described new product, generating the test case of described new product.
9. the management system of test case according to claim 7, is characterized in that, described test case management system also comprises:
Use-case enquiry module (110), for receiving the title of the described existing product of input, according to the described existing test case of described existing product inquiry.
10. the management system of the test case according to claim 7 or 8, is characterized in that, described test case management system also comprises:
Use-case backup module (111), for deriving the test case of described new product, and backs up the test case of described new product.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510522463.9A CN105117333A (en) | 2015-08-24 | 2015-08-24 | Method and system for management of test cases |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510522463.9A CN105117333A (en) | 2015-08-24 | 2015-08-24 | Method and system for management of test cases |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105117333A true CN105117333A (en) | 2015-12-02 |
Family
ID=54665331
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510522463.9A Pending CN105117333A (en) | 2015-08-24 | 2015-08-24 | Method and system for management of test cases |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105117333A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107341080A (en) * | 2017-07-07 | 2017-11-10 | 郑州云海信息技术有限公司 | A kind of test case management system and method |
CN107885660A (en) * | 2017-10-31 | 2018-04-06 | 平安科技(深圳)有限公司 | Fund system automatic test management method, device, equipment and storage medium |
CN109992497A (en) * | 2017-12-29 | 2019-07-09 | 中国电力科学研究院有限公司 | A kind of distribution power automation terminal standard testing use-case updates the method and system of publication |
CN111124883A (en) * | 2019-11-15 | 2020-05-08 | 苏州浪潮智能科技有限公司 | Test case library introduction method, system and equipment based on tree form |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100306590A1 (en) * | 2009-06-02 | 2010-12-02 | Rajan Anand | Automated Testing Platform for Event Driven Systems |
CN104461908A (en) * | 2014-12-31 | 2015-03-25 | 中国科学院软件研究所 | Regression test case reusing method based on software combination test |
CN104850490A (en) * | 2014-02-18 | 2015-08-19 | 国际商业机器公司 | Method and system for software testing |
-
2015
- 2015-08-24 CN CN201510522463.9A patent/CN105117333A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100306590A1 (en) * | 2009-06-02 | 2010-12-02 | Rajan Anand | Automated Testing Platform for Event Driven Systems |
CN104850490A (en) * | 2014-02-18 | 2015-08-19 | 国际商业机器公司 | Method and system for software testing |
CN104461908A (en) * | 2014-12-31 | 2015-03-25 | 中国科学院软件研究所 | Regression test case reusing method based on software combination test |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107341080A (en) * | 2017-07-07 | 2017-11-10 | 郑州云海信息技术有限公司 | A kind of test case management system and method |
CN107885660A (en) * | 2017-10-31 | 2018-04-06 | 平安科技(深圳)有限公司 | Fund system automatic test management method, device, equipment and storage medium |
CN107885660B (en) * | 2017-10-31 | 2020-04-03 | 平安科技(深圳)有限公司 | Fund system automatic test management method, device, equipment and storage medium |
CN109992497A (en) * | 2017-12-29 | 2019-07-09 | 中国电力科学研究院有限公司 | A kind of distribution power automation terminal standard testing use-case updates the method and system of publication |
CN111124883A (en) * | 2019-11-15 | 2020-05-08 | 苏州浪潮智能科技有限公司 | Test case library introduction method, system and equipment based on tree form |
CN111124883B (en) * | 2019-11-15 | 2023-01-10 | 苏州浪潮智能科技有限公司 | Test case library introduction method, system and equipment based on tree form |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Liao et al. | Intuitionistic fuzzy hybrid weighted aggregation operators | |
US8782039B2 (en) | Generating a semantic graph relating information assets using feedback re-enforced search and navigation | |
US10162892B2 (en) | Identifying information assets within an enterprise using a semantic graph created using feedback re-enforced search and navigation | |
CN101651576B (en) | Alarm information processing method and system | |
US20210286827A1 (en) | Collaboration activity summaries | |
US20120284262A1 (en) | Managing information assets using feedback re-enforced search and navigation | |
EP2990965B1 (en) | Versatile data model | |
US10922282B2 (en) | On-demand collaboration user interfaces | |
CN110472068A (en) | Big data processing method, equipment and medium based on heterogeneous distributed knowledge mapping | |
CN110032886A (en) | The method and apparatus of access authorization for resource management | |
CN105117333A (en) | Method and system for management of test cases | |
CN104182405A (en) | Method and device for connection query | |
CN106649242A (en) | Method and system for generating report | |
KR20150022585A (en) | Method of designing business logic, server performing the same and storage media storing the same | |
CN103092996A (en) | Document data acquisition device and document data acquisition method | |
CN108388623A (en) | ER relationships generation method, device, computer equipment and storage medium | |
CN106886568A (en) | One kind point table method, device and electronic equipment | |
US10963963B2 (en) | Rule based hierarchical configuration | |
CN109753573A (en) | A kind of processing method and processing device based on chart database building preset model | |
CN105894193A (en) | Index configuration method and device | |
CN106682180B (en) | Data query method and device | |
US9159052B2 (en) | Generalizing formats of business data queries and results | |
Al-Kateb et al. | Adding a temporal dimension to the TPC-H benchmark | |
US20140019410A1 (en) | Using Database Content for Multiple Business Data Systems Connected to One Database | |
CN106651183A (en) | Communication data security audit method and device for industrial control system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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: 20151202 |