CN113220563A - Test case generation method and system, storage medium and computer equipment - Google Patents

Test case generation method and system, storage medium and computer equipment Download PDF

Info

Publication number
CN113220563A
CN113220563A CN202110388361.8A CN202110388361A CN113220563A CN 113220563 A CN113220563 A CN 113220563A CN 202110388361 A CN202110388361 A CN 202110388361A CN 113220563 A CN113220563 A CN 113220563A
Authority
CN
China
Prior art keywords
test
test case
template
points
case template
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
Application number
CN202110388361.8A
Other languages
Chinese (zh)
Other versions
CN113220563B (en
Inventor
宋晓亮
何世伟
田野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Anyixun Technology Co ltd
Original Assignee
Chengdu Anyixun 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 Chengdu Anyixun Technology Co ltd filed Critical Chengdu Anyixun Technology Co ltd
Priority to CN202110388361.8A priority Critical patent/CN113220563B/en
Publication of CN113220563A publication Critical patent/CN113220563A/en
Application granted granted Critical
Publication of CN113220563B publication Critical patent/CN113220563B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

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 application discloses a test case generation method, a test case generation system, a storage medium and computer equipment, wherein the method comprises the following steps: the method comprises the steps that a test terminal sends a test case template downloading request to a test case template public platform, wherein the test case template downloading request comprises a target test item, any test case template prestored in the test case template public platform comprises a plurality of editable test points, and the editable test points comprise public test points matched with the test item; and receiving a target test case template corresponding to the target test item fed back by the common platform of the test case templates, and editing the target test case template to generate a target test case. The method and the device have the advantages that the common test points in the related test items of the test case compiling personnel can be reminded, careless omission in the process of compiling the test case can be effectively avoided, the complexity degree of compiling the test case is reduced, and the reuse rate of the existing test points is improved.

Description

Test case generation method and system, storage medium and computer equipment
Technical Field
The present application relates to the field of computers, and in particular, to a method, a system, a storage medium, and a computer device for generating test cases.
Background
With the continuous development of the software industry, various kinds of software are developed endlessly. The software test is used as an important way for testing the software quality, and the perfection degree of the software test directly influences the testing result of the software quality. The core of the software test is a test case, which includes test points of the software test, and each test point corresponds to a part of functions of the software. Therefore, in order to check the quality of the software, all test points corresponding to the functions of the software to be checked need to be included in the test case.
In the existing test case generation method, test case writers often write test cases according to own experiences, but many test case writers have carelessness in writing the test cases due to the limit of self levels and the difference of function importance, and further neglect the tests of certain aspects of software products. In addition, the repeated writing of the test cases usually needs to consume a great amount of time for test case writers, and the complexity is high.
Therefore, when designing a test case, how to avoid the omission of test points in the test case, reduce the complexity of writing the test case, and improve the reuse rate of the test points becomes a problem to be solved urgently in the field.
Disclosure of Invention
In view of this, the present application provides a test case generation method, a test case generation system, a storage medium, and a computer device, which are helpful for avoiding omission of test points when writing test cases, reducing the writing complexity of test cases, and improving the reuse rate of test points.
According to an aspect of the present application, there is provided a test case generation method, including:
the method comprises the steps that a test terminal sends a test case template downloading request to a test case template public platform, wherein the test case template downloading request comprises a target test item, any test case template prestored in the test case template public platform comprises a plurality of editable test points, and the editable test points comprise public test points matched with the test item;
and receiving a target test case template corresponding to the target test item fed back by the common platform of the test case templates, and editing the target test case template to generate a target test case.
Optionally, the editing the target test case template to generate the target test case specifically includes:
the test terminal receives an editing request for the target test case template;
and editing the target test case template according to the editing request to generate a target test case, wherein the editing request comprises a modification request and/or a deletion request for the editable test points and a new test point request.
Optionally, after the target test case template is edited and a target test case is generated, the method further includes:
the test terminal sends the target test case to the common platform of the test case template;
and the test case template common platform stores the target test case in a test project database, and the test project database is used for updating the test case template in the test case template common platform.
Optionally, the method further comprises:
counting the number of each type of test points corresponding to any test item according to the test case corresponding to any test item in the test item database;
and when the number of any type of test points is larger than the preset number, embedding the test points of any type larger than the preset number into a test case template matched with any test item as common test points.
Optionally, any test item corresponds to multiple test versions, and a test case template corresponds to the test item and the test versions, where the test versions include a mmap version, a mindmaster version, and an excel version;
the embedding of the test points of any type larger than the preset number as common test points into a test case template matched with any test item specifically includes:
and searching the test versions corresponding to the test items, and respectively embedding the test versions of any type, which are larger than the preset number, into the test case template corresponding to each test version as common test points.
Optionally, before the test terminal sends a test case template downloading request to the common test case template platform, the method further includes:
the test case template common platform receives a sample test case and counts the types of test items corresponding to the sample test case;
counting the number of various types of test points corresponding to any kind of test items according to sample test cases corresponding to the test items of any kind;
and when the number of the test points of any type is larger than the preset number, embedding the test points of any type larger than the preset number into a basic test case template matched with the test items of any type as common test points to generate the test case template.
Optionally, the embedding the test points of any type larger than the preset number as common test points into a basic test case template matched with the test items of any type specifically includes:
according to a sample test case corresponding to any kind of test item, counting the kind of a test version corresponding to any kind of test item and the number of test points of each kind in all test versions contained in any kind of test item, wherein any kind of test item corresponds to various test versions, a test case template corresponds to the test item and the test versions, and the test versions comprise a mmap version, a mindmaster version and an excel version;
and when the number of any type of test points is larger than the preset number, using the test points of any type larger than the preset number as public test points, respectively embedding the public test points into a basic test case template corresponding to each test version, and generating the test case templates corresponding to the test versions and the test items.
According to another aspect of the present application, a test case generation system is provided, where the test case generation system includes a test terminal and a test case template common platform, and the test terminal includes a request sending unit and a template receiving unit;
the test case template downloading unit is used for downloading a test case template to a test case template public platform, wherein the test case template downloading request comprises a target test item, any test case template prestored in the test case template public platform comprises a plurality of editable test points, and the editable test points comprise public test points matched with the test item;
the template receiving unit is used for receiving a target test case template corresponding to the target test item and fed back by the common platform of the test case templates, editing the target test case template and generating a target test case.
Optionally, the request sending unit specifically includes:
the editing request receiving module is used for receiving an editing request for the target test case template;
and the template editing execution module is used for editing the target test case template according to the editing request to generate a target test case, wherein the editing request comprises a modification request and/or a deletion request for the editable test point and a new test point request.
Optionally, the test terminal further includes: a test case transmitting unit;
the test case sending unit is used for sending the target test case to the common platform of the test case template after the target test case template is edited and the target test case is generated;
the test case template common platform further comprises: a storage unit;
the storage unit is used for storing the target test case in a test item database, and the test item database is used for updating the test case template in the test case template common platform.
Optionally, the common platform for test case templates further includes:
the statistical unit is used for counting the number of each type of test points corresponding to any test item according to the test case corresponding to any test item in the test item database;
and the template updating unit is used for embedding the test points of any type larger than the preset number into a test case template matched with any test item as common test points when the number of the test points of any type is larger than the preset number.
Optionally, any test item corresponds to multiple test versions, and a test case template corresponds to the test item and the test versions, where the test versions include a mmap version, a mindmaster version, and an excel version;
the template updating unit is specifically configured to: and searching the test versions corresponding to the test items, and respectively embedding the test versions of any type, which are larger than the preset number, into the test case template corresponding to each test version as common test points.
Optionally, the statistical unit is further configured to receive a sample test case, and perform statistics on the type of a test item corresponding to the sample test case; counting the number of various types of test points corresponding to any kind of test items according to sample test cases corresponding to the test items of any kind;
and the template updating unit is used for embedding the test points of any type larger than the preset number into a basic test case template matched with the test items of any type as common test points to generate the test case template when the number of the test points of any type is larger than the preset number.
Optionally, the template updating unit is specifically configured to:
according to a sample test case corresponding to any kind of test item, counting the kind of a test version corresponding to any kind of test item and the number of test points of each kind in all test versions contained in any kind of test item, wherein any kind of test item corresponds to various test versions, a test case template corresponds to the test item and the test versions, and the test versions comprise a mmap version, a mindmaster version and an excel version;
and when the number of any type of test points is larger than the preset number, using the test points of any type larger than the preset number as public test points, respectively embedding the public test points into a basic test case template corresponding to each test version, and generating the test case templates corresponding to the test versions and the test items.
According to yet another aspect of the application, a storage medium is provided, on which a computer program is stored, which program, when being executed by a processor, carries out the above-mentioned method.
According to yet another aspect of the present application, there is provided a computer device comprising a storage medium, a processor and a computer program stored on the storage medium and executable on the processor, the processor implementing the above method when executing the program.
By means of the technical scheme, the test terminal sends the test case template downloading request triggered by the tester to the test case template public platform, receives the target test case template which is fed back by the test case template public platform and is wanted by the tester, and then opens the target test case template under the operation of the tester and edits the target test case template to generate the target test case. According to the method and the device, the target test case template containing the common test points is used as the editing basis of the test cases, so that the test case writer can be reminded of which common test points exist in related test items, carelessness in writing of the test cases can be effectively avoided, the writing complexity of the test cases is reduced, and the reuse rate of the existing test points is improved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 shows a flowchart of a test case generation method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating a test terminal interface provided in an embodiment of the present application;
fig. 3 shows a schematic structural diagram of a test case generation system according to an embodiment of the present application.
Detailed Description
The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
In this embodiment, a test case generation method is provided, as shown in fig. 1, the method includes:
101, a test terminal sends a test case template downloading request to a test case template public platform, wherein the test case template downloading request comprises a target test item, any test case template prestored in the test case template public platform comprises a plurality of editable test points, and the editable test points comprise public test points matched with the test item;
in the embodiment of the application, the test terminal can be an electronic device such as a notebook computer, a desktop computer, a tablet computer, a smart phone and the like; the test case template common platform can be a server device in communication connection with the test terminal. When a tester wants to obtain a test case template through a test terminal, a template downloading button on the test terminal can be clicked to trigger a test case template downloading request, so that the test terminal sends the request to a common platform of the test case template, and the test case template downloading request can specifically carry identification information of a target test item selected by the tester, wherein the test item comprises a PC (personal computer) item, a web item, an android item, an overseas item and the like. For example, when a tester wants to download a test case template corresponding to a PC project, the tester clicks a template download button corresponding to the PC project, and at this time, a test case template download request sent to the common platform of the test case templates contains relevant data information of the PC project. The common platform of the test case template stores test case templates corresponding to different test items in advance, each test case template comprises a plurality of editable test points, the editable test points contained in the corresponding templates may be different for different types of test items, the editable test points comprise common test points which are more common in some test items and are easily ignored by testers, and the common test points are related to the test items. For example, for a web project, a common test point for browser compatibility is included in the test case template, whereas a PC project does not need to include this test point. Herein, the common test point refers to a test point which is often used by a tester when testing the same type of test items. For example, for the testing of pop-up ads in a web project, regardless of the type of pop-up ad, a tester will use some of the same test points, i.e., common test points, when conducting the test. The editable test points in the test case template may only include the common test points, or may include other test points besides the common test points.
And 102, receiving a target test case template corresponding to the target test item fed back by the common platform of the test case templates, editing the target test case template, and generating a target test case.
In the above embodiment, after the test case template common platform receives the test case template downloading request from the test terminal, the test case template common platform feeds back to the test terminal a target test case template corresponding to the target test item, and after the test terminal receives the target test case template, a tester can open the template on the test terminal, edit the editable test points in the template, generate the target test case for software testing, and store and use the target test case. For example, after the tester opens the target test case template, the tester finds that some editable test points are not needed by the software test project, and then the tester can select to delete the editable test points and generate the target test case according to the own requirements.
By applying the technical scheme of the embodiment, the test terminal sends the test case template downloading request triggered by the tester to the test case template public platform, receives the target test case template which is fed back by the test case template public platform and is desired by the tester, and then opens the target test case template under the operation of the tester and edits the target test case template to generate the target test case. According to the method and the device, the target test case template containing the common test points is used as the editing basis of the test cases, so that the test case writer can be reminded of which common test points exist in related test items, carelessness in writing of the test cases can be effectively avoided, the writing complexity of the test cases is reduced, and the reuse rate of the existing test points is improved.
In addition, in the above embodiment, the test terminal may further be provided with an authority verification system. Before using the test terminal, a tester needs to input own authority verification information, directly determines a test item group to which the tester belongs according to the input authority verification information, and directly displays test case templates of multiple test versions of corresponding test items after verification passes. For example, the test item group to which the tester a belongs is an android item group, and then after the tester a inputs the own authority verification information into the authority verification system of the test terminal, the test terminal can display test case templates of different versions corresponding to the android item, and the tester a only needs to select a corresponding test version according to the own use habit.
In this embodiment of the present application, optionally, step 102 may specifically include:
102-1, the test terminal receives an editing request for the target test case template;
and 102-2, editing the target test case template according to the editing request to generate a target test case, wherein the editing request comprises a modification request and/or a deletion request for the editable test point and a new test point request.
In this embodiment, when a tester wants to edit a target test case template, a target test case template editing request is triggered on a test terminal, and the test terminal allows the tester to edit the target test case template after receiving the editing request. The target test case template editing request comprises a modification request, a deletion request and a new test point request. For example, after a tester opens a target test case template on a test terminal, some editable test points existing in the target test case template are found not to be needed, and then the editable test points can be selected to be deleted; when a tester finds that corresponding programs in some editable test points exist at perfectable positions, the tester can select to modify the test points; in addition, the tester needs to add some new test points required by the test item to the target test case template. By modifying and/or requesting the editable test points in the target test case template and adding new test points, the compiling work of test case writers is more convenient, the working efficiency is improved, and meanwhile the problem of test point omission caused by insufficient experience of the testers can be avoided.
In this embodiment of the present application, optionally, after step 102, the method further includes:
103, the test terminal sends the target test case to the common platform of the test case template;
and 104, storing the target test case in a test item database by the common test case template platform, wherein the test item database is used for updating the test case template in the common test case template platform.
105, counting the number of each type of test points corresponding to any test item according to a test case corresponding to any test item in the test item database;
and 106, when the number of the test points of any type is larger than the preset number, embedding the test points of any type larger than the preset number into a test case template matched with any test item as common test points.
In this embodiment, in the process of editing the test case by using the test case template on the test case template common platform, a tester may add the same test points to the target for multiple times, and at this time, the tester may embed the new same test points into the test case template to update the original template. The method comprises the following specific steps: the test terminal sends the target test case to the test case template common platform, wherein the test terminal can send the stored target test case to the test case template common platform under the operation of any person, and can also send the stored target test case to the test case template common platform under the control of a program at regular intervals; after receiving the target test cases, the test case template common platform stores the target test cases in a corresponding test item database according to test items of the target test cases, wherein the target test cases comprise editable test points newly added on the target test case template by testers, and the test case template in the test case template common platform can be updated by using the test cases stored in the test item database; then respectively counting the number of each type of test points in all target test cases corresponding to each test item according to the target test cases contained in each test item in the test item database, counting the test points when the number of the test points of a certain type is larger than a preset number, comparing the counting result with editable test points in a test case template corresponding to the test item, directly embedding the test points which do not exist in the test case template into the test case template as common test points, and updating the original test case template. Here, in the process of updating the original test case template, only the updated test case template may be retained, or the test case template may include both the test case version 1.0 before the update and the test case version 2.0 after the update. By updating the original test case template, the template downloaded by a tester on the common platform of the test case template is the latest, and meanwhile, the original test case template can be perfected at any time, so that the common test points contained in the test case template are more comprehensive.
In the embodiment of the present application, optionally, any test item corresponds to multiple test versions, and the test case template corresponds to the test item and the test versions, where the test versions include a mmap version, a mindmaster version, and an excel version.
Optionally, step 106 may specifically include: and searching the test versions corresponding to the test items, and respectively embedding the test versions of any type, which are larger than the preset number, into the test case template corresponding to each test version as common test points.
In this embodiment, the test case template corresponding to each test item may also correspond to different test versions, and when a tester wants to download the test case template from the common platform of the test case template, the tester may download the test case template according to the test item and the test version as needed, as shown in fig. 2, the test version includes a mmap (method of memory mapping file) version, a mindmaster (thinking guide diagram) version, and an excel version. For example, when a tester wants to download a test case template corresponding to a PC project and the test version that the tester is accustomed to use is the mindmaster version, the tester should select the test case template corresponding to both the PC project and the mindmaster version. After the number of the various types of test points corresponding to any test item is counted, all test versions corresponding to the test item are searched, the test points of any type larger than the preset number are counted, the counting result is compared with editable test points in the test case template corresponding to the test item, and test points which do not exist in the test case template are used as new common test points and are respectively embedded into the test case templates corresponding to the versions. When the quantity statistics is carried out on various types of test points in the target test case, the quantity statistics of the test points is carried out by putting all the target test cases of different test versions together, and then the common test points which need to be embedded into the test case template are extracted. The extracted common test points are embedded into the test case templates of different test versions corresponding to the same test item, so that the newly added common test points in the test case templates corresponding to the different versions can be ensured to be the same, and the situation that editable test points in the test case templates are different due to different test versions is avoided. The test case templates of different test versions in the embodiment can meet different use habits of testers, and the template use efficiency of the testers is improved.
In this embodiment of the present application, optionally, before step 101, the method further includes:
step 201, the common platform of the test case template receives a sample test case and counts the types of test items corresponding to the sample test case;
step 202, counting the number of each type of test point corresponding to any type of test item according to a sample test case corresponding to any type of test item;
step 203, when the number of any type of test points is larger than a preset number, embedding any type of test points larger than the preset number into a basic test case template matched with any type of test items as common test points to generate the test case template.
In this embodiment, before the tester downloads the test case template from the common platform of test case templates, the test case template needs to be stored on the platform in advance. The method comprises the following specific steps: and the common platform of the test case template receives the sample test case and counts the types of the test items corresponding to the sample test case. Here, the sample test case may be sent by the test terminal, or may be sent by other devices, where the sample test case includes an editable test point pre-programmed by a test case writer. After the types of the test items corresponding to the sample test cases are counted, the number of the test points of each type in each type of test items is counted on the basis of the sample test cases corresponding to each type of test items. When the number of the test points of a certain type is larger than the preset number, the test points of the type are determined as the common test points of the corresponding test items, and the common test points are embedded into the basic test case template corresponding to the test items, so that the test case template is generated. The basic test case template may specifically be a test template designed in advance by a tester, and may include some editable test points, and after extracting the common test points in combination with the test points in the sample test case, the common test points are embedded in the basic test case template, so that the test points that are omitted when the tester designs the template can be supplemented and perfected.
In this embodiment of the present application, optionally, step 203 specifically includes:
step 203-1, according to a sample test case corresponding to any kind of test item, counting the kind of a test version corresponding to any kind of test item and the number of test points of each kind in all test versions contained in any kind of test item, wherein any kind of test item corresponds to various test versions, a test case template corresponds to the test item and the test version, and the test versions comprise a mmap version, a mindmaster version and an excel version;
step 203-2, when the number of the test points of any type is larger than the preset number, using the test points of any type larger than the preset number as common test points, respectively embedding the common test points into a basic test case template corresponding to each test version, and generating the test case templates corresponding to the test versions and the test items.
In this embodiment, before generating the test case template, the test versions of all sample test cases corresponding to any test item need to be counted, and meanwhile, the number of each type of test point included in all sample test cases corresponding to the test item needs to be counted. Because the daily test case use habits of testers are different, the testers often select test cases of different test versions, and the common test case versions comprise a mmap version, a mindmaster version and an excel version. When the number of the test points is counted, sample test cases of all test versions such as a mmap version, a mindmaster version, an excel version and the like need to be counted. After counting the number of the test points of each type corresponding to any test item, if the number of the test points of a certain type is larger than the preset number, the test points are used as common test points, the common test points are respectively embedded into basic test case templates of a mmap version, a mindmaster version, an excel version and the like, and test case templates corresponding to the test versions and the test items are generated. Here, when different testers use test case templates of different test versions corresponding to the same test item, in order to prevent the problem that editable test points contained in the test case templates are different, the editable test points embedded in the basic test case templates of different test versions need to be unified, and it is ensured that the editable test points contained in the test case templates of different test versions corresponding to the same test item are the same under any circumstances.
Further, as a specific implementation of the method in fig. 1, an embodiment of the present application provides a test case generation system, as shown in fig. 3, where the test case generation system includes a test terminal and a test case template common platform, and the test terminal includes a request sending unit and a template receiving unit;
the test case template downloading unit is used for downloading a test case template to a test case template public platform, wherein the test case template downloading request comprises a target test item, any test case template prestored in the test case template public platform comprises a plurality of editable test points, and the editable test points comprise public test points matched with the test item;
the template receiving unit is used for receiving a target test case template corresponding to the target test item and fed back by the common platform of the test case templates, editing the target test case template and generating a target test case.
In this embodiment of the application, optionally, the request sending unit specifically includes:
the editing request receiving module is used for receiving an editing request for the target test case template;
and the template editing execution module is used for editing the target test case template according to the editing request to generate a target test case, wherein the editing request comprises a modification request and/or a deletion request for the editable test point and a new test point request.
In this embodiment of the present application, optionally, the test terminal further includes: a test case transmitting unit;
the test case sending unit is used for sending the target test case to the common platform of the test case template after the target test case template is edited and the target test case is generated;
the test case template common platform further comprises: a storage unit;
the storage unit is used for storing the target test case in a test item database, and the test item database is used for updating the test case template in the test case template common platform.
In this embodiment of the application, optionally, the common platform for test case templates further includes:
the statistical unit is used for counting the number of each type of test points corresponding to any test item according to the test case corresponding to any test item in the test item database;
and the template updating unit is used for embedding the test points of any type larger than the preset number into a test case template matched with any test item as common test points when the number of the test points of any type is larger than the preset number.
In the embodiment of the application, optionally, any test item corresponds to multiple test versions, a test case template corresponds to the test item and the test versions, and the test versions include a mmap version, a mindmaster version and an excel version;
the template updating unit is specifically configured to: and searching the test versions corresponding to the test items, and respectively embedding the test versions of any type, which are larger than the preset number, into the test case template corresponding to each test version as common test points.
In this embodiment of the application, optionally, the statistical unit is further configured to receive a sample test case, and perform statistics on a type of a test item corresponding to the sample test case; counting the number of various types of test points corresponding to any kind of test items according to sample test cases corresponding to the test items of any kind;
and the template updating unit is used for embedding the test points of any type larger than the preset number into a basic test case template matched with the test items of any type as common test points to generate the test case template when the number of the test points of any type is larger than the preset number.
In this embodiment of the application, optionally, the template updating unit is specifically configured to:
according to a sample test case corresponding to any kind of test item, counting the kind of a test version corresponding to any kind of test item and the number of test points of each kind in all test versions contained in any kind of test item, wherein any kind of test item corresponds to various test versions, a test case template corresponds to the test item and the test versions, and the test versions comprise a mmap version, a mindmaster version and an excel version;
and when the number of any type of test points is larger than the preset number, using the test points of any type larger than the preset number as public test points, respectively embedding the public test points into a basic test case template corresponding to each test version, and generating the test case templates corresponding to the test versions and the test items.
It should be noted that other corresponding descriptions of the functional units related to the test case generation system provided in the embodiment of the present application may refer to the corresponding descriptions in the method in fig. 1, and are not described herein again.
Based on the method shown in fig. 1, correspondingly, an embodiment of the present application further provides a storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the test case generation method shown in fig. 1.
Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the implementation scenarios of the present application.
Based on the method shown in fig. 1 and the system embodiment shown in fig. 3, in order to achieve the above object, the present application further provides a computer device, which may specifically be a personal computer, a server, a network device, and the like, where the computer device includes a storage medium and a processor; a storage medium for storing a computer program; and a processor for executing the computer program to implement the test case generation method shown in fig. 1.
Optionally, the computer device may also include a user interface, a network interface, a camera, Radio Frequency (RF) circuitry, sensors, audio circuitry, a WI-FI module, and so forth. The user interface may include a Display screen (Display), an input unit such as a keypad (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (e.g., a bluetooth interface, WI-FI interface), etc.
It will be appreciated by those skilled in the art that the present embodiment provides a computer device architecture that is not limiting of the computer device, and that may include more or fewer components, or some components in combination, or a different arrangement of components.
The storage medium may further include an operating system and a network communication module. An operating system is a program that manages and maintains the hardware and software resources of a computer device, supporting the operation of information handling programs, as well as other software and/or programs. The network communication module is used for realizing communication among components in the storage medium and other hardware and software in the entity device.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present application can be implemented by software plus a necessary general hardware platform, and can also be implemented by hardware. The test terminal sends a test case template downloading request triggered by a tester to the test case template public platform, receives a target test case template which is fed back by the test case template public platform and is desired by the tester, and then opens the target test case template under the operation of the tester and edits the target test case template to generate a target test case. According to the method and the device, the target test case template containing the common test points is used as the editing basis of the test cases, so that the test case writer can be reminded of which common test points exist in related test items, carelessness in writing of the test cases can be effectively avoided, the writing complexity of the test cases is reduced, and the reuse rate of the existing test points is improved.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario may be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above application serial numbers are for description purposes only and do not represent the superiority or inferiority of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of the present application, but the present application is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present application.

Claims (10)

1. A test case generation method is characterized by comprising the following steps:
the method comprises the steps that a test terminal sends a test case template downloading request to a test case template public platform, wherein the test case template downloading request comprises a target test item, any test case template prestored in the test case template public platform comprises a plurality of editable test points, and the editable test points comprise public test points matched with the test item;
and receiving a target test case template corresponding to the target test item fed back by the common platform of the test case templates, and editing the target test case template to generate a target test case.
2. The method for generating a test case according to claim 1, wherein the editing the target test case template to generate a target test case specifically includes:
the test terminal receives an editing request for the target test case template;
and editing the target test case template according to the editing request to generate a target test case, wherein the editing request comprises a modification request and/or a deletion request for the editable test points and a new test point request.
3. The method according to claim 1, wherein after the target test case template is edited and the target test case is generated, the method further comprises:
the test terminal sends the target test case to the common platform of the test case template;
and the test case template common platform stores the target test case in a test project database, and the test project database is used for updating the test case template in the test case template common platform.
4. The method of test case generation according to claim 3, the method further comprising:
counting the number of each type of test points corresponding to any test item according to the test case corresponding to any test item in the test item database;
and when the number of any type of test points is larger than the preset number, embedding the test points of any type larger than the preset number into a test case template matched with any test item as common test points.
5. The method according to claim 4, wherein any test item corresponds to a plurality of test versions, and a test case template corresponds to the test item and the test versions, and the test versions include a mmap version, a mindmaster version, and an excel version;
the embedding of the test points of any type larger than the preset number as common test points into a test case template matched with any test item specifically includes:
and searching the test versions corresponding to the test items, and respectively embedding the test versions of any type, which are larger than the preset number, into the test case template corresponding to each test version as common test points.
6. The method for generating test cases according to claim 1, wherein before the test terminal sends a request for downloading a test case template to the common platform for test case templates, the method further comprises:
the test case template common platform receives a sample test case and counts the types of test items corresponding to the sample test case;
counting the number of various types of test points corresponding to any kind of test items according to sample test cases corresponding to the test items of any kind;
and when the number of the test points of any type is larger than the preset number, embedding the test points of any type larger than the preset number into a basic test case template matched with the test items of any type as common test points to generate the test case template.
7. The method for generating the test case according to claim 6, wherein the embedding the test points of any type larger than the preset number as common test points into a basic test case template matched with the test items of any type specifically includes:
according to a sample test case corresponding to any kind of test item, counting the kind of a test version corresponding to any kind of test item and the number of test points of each kind in all test versions contained in any kind of test item, wherein any kind of test item corresponds to various test versions, a test case template corresponds to the test item and the test versions, and the test versions comprise a mmap version, a mindmaster version and an excel version;
and when the number of any type of test points is larger than the preset number, using the test points of any type larger than the preset number as public test points, respectively embedding the public test points into a basic test case template corresponding to each test version, and generating the test case templates corresponding to the test versions and the test items.
8. A test case generation system is characterized by comprising a test terminal and a test case template common platform, wherein the test terminal comprises a request sending unit and a template receiving unit;
the test case template downloading unit is used for downloading a test case template to a test case template public platform, wherein the test case template downloading request comprises a target test item, any test case template prestored in the test case template public platform comprises a plurality of editable test points, and the editable test points comprise public test points matched with the test item;
the template receiving unit is used for receiving a target test case template corresponding to the target test item and fed back by the common platform of the test case templates, editing the target test case template and generating a target test case.
9. A storage medium on which a computer program is stored, the program implementing the test case generation method of any one of claims 1 to 7 when executed by a processor.
10. A computer device comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the test case generation method of any one of claims 1 to 7 when executing the program.
CN202110388361.8A 2021-04-12 2021-04-12 Test case generation method, system, storage medium and computer equipment Active CN113220563B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110388361.8A CN113220563B (en) 2021-04-12 2021-04-12 Test case generation method, system, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110388361.8A CN113220563B (en) 2021-04-12 2021-04-12 Test case generation method, system, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN113220563A true CN113220563A (en) 2021-08-06
CN113220563B CN113220563B (en) 2023-11-17

Family

ID=77086970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110388361.8A Active CN113220563B (en) 2021-04-12 2021-04-12 Test case generation method, system, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN113220563B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113190434A (en) * 2021-04-12 2021-07-30 成都安易迅科技有限公司 Test case generation method and device, storage medium and computer equipment
CN114978368A (en) * 2022-05-17 2022-08-30 北京智网信测科技有限公司 Multiplexing method and device for 5G radio frequency test cases
CN116107914A (en) * 2023-04-12 2023-05-12 北京尽微致广信息技术有限公司 Test case management system and method

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7496876B1 (en) * 2008-05-21 2009-02-24 International Business Machines Corporation Method for generating integrated functional testcases for multiple boolean algorithms from a single generic testcase template
CN102968373A (en) * 2012-11-29 2013-03-13 安科智慧城市技术(中国)有限公司 Method and device for maintaining test system
CN103186457A (en) * 2011-12-29 2013-07-03 阿里巴巴集团控股有限公司 Method and device for automatically generating test case
EP2913757A1 (en) * 2014-02-26 2015-09-02 FMC Feindt Management Consulting GmbH Method, system, and computer software product for test automation
CN105824753A (en) * 2016-03-17 2016-08-03 浪潮通用软件有限公司 Method for designing object-oriented test case
CN107678941A (en) * 2017-08-31 2018-02-09 深圳市小牛在线互联网信息咨询有限公司 Method and device, storage medium and the computer equipment of Application testing
CN107783901A (en) * 2017-09-26 2018-03-09 深圳市牛鼎丰科技有限公司 Method for generating test case, device, computer equipment and storage medium
CN109614312A (en) * 2018-10-23 2019-04-12 中国平安人寿保险股份有限公司 Method for generating test case, device, electronic equipment and storage medium
CN110955593A (en) * 2019-10-28 2020-04-03 北京三快在线科技有限公司 Client test method and device, electronic equipment and readable storage medium
CN111124917A (en) * 2019-12-23 2020-05-08 平安国际智慧城市科技股份有限公司 Public test case management and control method, device, equipment and storage medium
CN112527630A (en) * 2020-11-18 2021-03-19 平安消费金融有限公司 Test case generation method and device, computer equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7496876B1 (en) * 2008-05-21 2009-02-24 International Business Machines Corporation Method for generating integrated functional testcases for multiple boolean algorithms from a single generic testcase template
CN103186457A (en) * 2011-12-29 2013-07-03 阿里巴巴集团控股有限公司 Method and device for automatically generating test case
CN102968373A (en) * 2012-11-29 2013-03-13 安科智慧城市技术(中国)有限公司 Method and device for maintaining test system
EP2913757A1 (en) * 2014-02-26 2015-09-02 FMC Feindt Management Consulting GmbH Method, system, and computer software product for test automation
CN105824753A (en) * 2016-03-17 2016-08-03 浪潮通用软件有限公司 Method for designing object-oriented test case
CN107678941A (en) * 2017-08-31 2018-02-09 深圳市小牛在线互联网信息咨询有限公司 Method and device, storage medium and the computer equipment of Application testing
CN107783901A (en) * 2017-09-26 2018-03-09 深圳市牛鼎丰科技有限公司 Method for generating test case, device, computer equipment and storage medium
CN109614312A (en) * 2018-10-23 2019-04-12 中国平安人寿保险股份有限公司 Method for generating test case, device, electronic equipment and storage medium
CN110955593A (en) * 2019-10-28 2020-04-03 北京三快在线科技有限公司 Client test method and device, electronic equipment and readable storage medium
CN111124917A (en) * 2019-12-23 2020-05-08 平安国际智慧城市科技股份有限公司 Public test case management and control method, device, equipment and storage medium
CN112527630A (en) * 2020-11-18 2021-03-19 平安消费金融有限公司 Test case generation method and device, computer equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
李文锋 等: "软件内建自测试中的模板库及测试路径分析", vol. 30, no. 12, pages 243 - 245 *
海里一尾鱼: "测试点编写(2020-09-10)", pages 1 - 3, Retrieved from the Internet <URL:https://blog.csdn.net/miniRe/article/details/108490928> *
罗顶林 等: "软件内建自测试系统中模板的研究及系统构建", 《装甲兵工程学院学报》, vol. 18, no. 2, pages 17 - 22 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113190434A (en) * 2021-04-12 2021-07-30 成都安易迅科技有限公司 Test case generation method and device, storage medium and computer equipment
CN113190434B (en) * 2021-04-12 2024-03-08 成都安易迅科技有限公司 Test case generation method and device, storage medium and computer equipment
CN114978368A (en) * 2022-05-17 2022-08-30 北京智网信测科技有限公司 Multiplexing method and device for 5G radio frequency test cases
CN116107914A (en) * 2023-04-12 2023-05-12 北京尽微致广信息技术有限公司 Test case management system and method

Also Published As

Publication number Publication date
CN113220563B (en) 2023-11-17

Similar Documents

Publication Publication Date Title
CN113220563A (en) Test case generation method and system, storage medium and computer equipment
CN109901834B (en) Document page generation method, device, computer equipment and storage medium
US20210117210A1 (en) Methods and Systems for Integrated Development Environment Editor Support with a Single Code Base
CN108399072B (en) Application page updating method and device
CN110825619A (en) Automatic generation method and device of interface test case and storage medium
CN113467868B (en) Method and device for creating equipment resources
CN110647322B (en) List rendering method and device, electronic equipment and computer readable medium
CN111506300A (en) Applet generation method, device, equipment and storage medium
US20200356469A1 (en) Test automation systems and methods using logical identifiers
CN104050161A (en) Dynamic bridging of application and data servers
CN109947624A (en) Method for monitoring state and device
CN114610286A (en) Development document generation method and device, computer equipment and storage medium
CN114691132A (en) ARXML file generation method, device, equipment and storage medium
CN111159040A (en) Test data generation method, device, equipment and storage medium
CN113741860A (en) Data processing method and device based on RPA robot
CN111125205B (en) Signboard data display method, terminal and storage medium
CN108845857A (en) A kind of icon management method and device based on cloud platform
JP6717140B2 (en) Analysis program, analysis method, and analysis device
CN115130442A (en) Report generation method and device, storage medium and computer equipment
CN114090002A (en) Front-end interface construction method and device, electronic equipment and storage medium
CN111737784A (en) Board card type selection configuration method and device based on digital three-dimensional ZXMP S385 subframe
CN102801749A (en) Method and device for deploying J2ME (Java 2 Micro Edition) application programs
CN112667502A (en) Page testing method, device and medium
KR101351079B1 (en) Method and system for providing service for controlling program linked to database
CN112540747A (en) Platform development method, device and computer readable storage medium

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
GR01 Patent grant
GR01 Patent grant