Test case processing method and device, electronic equipment and storage medium
By analyzing the test case file data written by mind map software and converting it into a standardized format of Zen templates, the problem of low efficiency in writing traditional test cases is solved, and the standardized management of test cases and team collaboration is improved.
Patent Information
- Application Number
- CN202311261562.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2025-04-04
AI Technical Summary
Traditional software test cases are inefficient in writing, difficult to quickly locate and manage test items and test points, and are not conducive to team collaboration and newcomers familiar with the business.
By obtaining the test case file data written by the mind map software and the Zen Tao template of the Zen Tao management system, analyzing the test case file data, extracting the target fields in the Zen Tao template, matching information to form a table, and writing the table to the Zen Tao template, realizing the standardized format conversion of the test cases.
Convert test cases into standardized formats, which facilitates management and maintenance, improves the standardization and consistency of test cases, promotes team collaboration and communication, and improves work efficiency.
Smart Images

Figure CN119759744A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of software technology, and in particular to a test case processing method, device, electronic device and storage medium. Background Art
[0002] With the development of software and information industry, software testing for improving software quality has become an increasingly important field. Traditional software test cases are written and formatted in Word or Excel. Due to different tools and habits, writing test cases is an inefficient task, which is not conducive to the rapid location of test items and test points and the detection and rectification of deficiencies. It is also not conducive to newcomers joining the team to familiarize themselves with the business, and the management of test cases is not convenient. Summary of the invention
[0003] In response to the above problems, the present application provides a test case processing method, device, electronic device and storage medium, which can convert test cases into a standardized format to facilitate management.
[0004] This application provides a test case processing method, including:
[0005] Get the test case file data written by mind mapping software and ZenTao templates of ZenTao management system;
[0006] Parsing the test case file data to obtain an information set corresponding to the test case file data;
[0007] Extracting the target field in the ZenTao template;
[0008] Matching information from the information set based on the target field to obtain a table corresponding to the target field;
[0009] Write the table corresponding to the target field into the ZenTao template.
[0010] In some embodiments, the method further comprises:
[0011] Import the ZenTao template into the ZenTao management system.
[0012] In some embodiments, the parsing of the test case file data to obtain an information set corresponding to the test case file data includes:
[0013] Use the conversion tool to parse the test case file data to obtain the information set corresponding to the test case file data.
[0014] In some embodiments, the matching information from the information set based on the target field to obtain a table corresponding to the target field includes:
[0015] storing the target field in a data structure;
[0016] matching information from the information set based on the data structure;
[0017] The information matching the data structure is formed into a table to obtain a table corresponding to the target field.
[0018] In some embodiments, the information set includes: node hierarchical relationships, comments and / or summaries, and the format of the ZenTao template is a spreadsheet format.
[0019] The present application provides a test case processing device, including:
[0020] The acquisition module is used to obtain the test case file data written by the mind mapping software and the ZenTao template of the ZenTao management system;
[0021] A parsing module, used to parse the test case file data to obtain an information set corresponding to the test case file data;
[0022] An extraction module, used for extracting target fields in the ZenTao template;
[0023] A matching module, used for matching information from the information set based on the target field to obtain a table corresponding to the target field;
[0024] The writing module is used to write the table corresponding to the target field into the ZenTao template.
[0025] In some embodiments, the test case processing device is further used to:
[0026] Import the ZenTao template into the ZenTao management system.
[0027] In some embodiments, the parsing of the test case file data to obtain an information set corresponding to the test case file data includes:
[0028] Use the conversion tool to parse the test case file data to obtain the information set corresponding to the test case file data.
[0029] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processing method of any one of the test cases described above is executed.
[0030] An embodiment of the present application provides a storage medium, which stores a computer program that can be executed by one or more processors and can be used to implement any of the test case processing methods described above.
[0031] The present application provides a test case processing method, device, electronic device and storage medium, which obtain test case file data written by mind mapping software and the ZenTao template of the ZenTao management system; parse the test case file data to obtain an information set corresponding to the test case file data; extract the target field in the ZenTao template; match information from the information set based on the target field to obtain a table corresponding to the target field; write the table corresponding to the target field into the ZenTao template, so as to convert the test case into a standardized format, thereby facilitating management. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Hereinafter, the present application will be described in more detail based on embodiments and with reference to the accompanying drawings.
[0033] Figure 1 A schematic diagram of an implementation flow of a method for processing a test case provided in an embodiment of the present application;
[0034] Figure 2 A schematic diagram of an information collection of software test case data provided in an embodiment of the present application;
[0035] Figure 3 A schematic diagram of a written ZenTao template provided in an embodiment of the present application;
[0036] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0037] In the drawings, the same reference numerals are used for the same components, and the drawings are not drawn to scale. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0039] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0040] If similar descriptions of "first\second\third" appear in the application documents, the following instructions will be added. In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0041] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0042] Based on the problems existing in the related art, the embodiment of the present application provides a method for processing a test case, which is applied to an electronic device, which may be a computer, a mobile terminal, etc. The electronic device may be a controller of a computing cluster, and the function implemented by the method for processing a test case provided in the embodiment of the present application may be implemented by calling a program code by a processor of the electronic device, wherein the program code may be stored in a computer storage medium.
[0043] Embodiment 1
[0044] The present application embodiment provides a method for processing a test case. Figure 1 A schematic diagram of the implementation flow of a test case processing method provided in an embodiment of the present application is shown as follows: Figure 1 As shown, including:
[0045] Step S101, obtaining test case file data written by mind mapping software and ZenTao templates of ZenTao management system.
[0046] In the embodiment of the present application, mind mapping software, as a widely used tool for organizing thoughts, can provide a clear hierarchical structure and association relationship, which is helpful for sorting and organizing test cases. It is currently widely used by many test teams to write test cases. At the same time, with the advancement of the localization of information technology, more and more domestic mind mapping software has become more and more comprehensive. In the embodiment of the present application, Mindmanager with good compatibility is selected as a test case writing tool.
[0047] In an embodiment of the present application, the format of the test case file data is .mmap format.
[0048] In the embodiment of the present application, the ZenTao management system is an open source project management software that integrates product management, project management, document management, organization management and transaction management.
[0049] In the embodiment of the present application, the target field in the ZenTao template can be set, and the field can be set through the ZenTao management system, and then the ZenTao template is generated. Exemplarily, the fields in the ZenTao template may include: module, related requirements, use case title, priority, use case type, applicable stage, precondition, step, expectation, etc. The format of the ZenTao template may be .xls format.
[0050] In the embodiments of the present application, the electronic device can obtain the test case file data and the ZenTao template of the ZenTao management system through the Internet. In some embodiments, the user can input the test case file data and the ZenTao template of the ZenTao management system through an input device. The input device may include: a mobile phone, a computer, a USB flash drive, and other devices.
[0051] Step S102, parsing the test case file data to obtain an information set corresponding to the test case file data.
[0052] In an embodiment of the present application, the electronic device can call a conversion tool to parse the test case file data. During the parsing, the node hierarchy relationship, comments and / or summary information in the test case file data can be traversed. The conversion tool can be a conversion tool developed in python - Mind2zd.
[0053] In the embodiment of the present application, the information set includes: node hierarchical relationships, comments and / or summaries and other information.
[0054] In the embodiment of the present application, Figure 2 A schematic diagram of an information collection of software test case data provided by an embodiment of the present application, such as Figure 2 As shown, the node hierarchical relationships, comments and / or summaries may include: modules, related requirements, use case titles, priorities, use case types, applicable phases, prerequisites, steps, expectations, etc.
[0055] Step S103, extracting the target field in the ZenTao template.
[0056] In an embodiment of the present application, the target fields in the ZenTao template can be identified by identification software, and the target fields can be configured. For example, the target fields can include: module, related requirements, use case title, priority, use case type, applicable stage, preconditions, steps, expectations, etc.
[0057] Step S104, matching information from the information set based on the target field to obtain a table corresponding to the target field.
[0058] In the embodiment of the present application, the information in the information set can be matched through the target field, so as to generate a table corresponding to the target field.
[0059] In the embodiment of the present application, the target field can be stored in a data structure. The data structure is a set of data elements with certain logical relationships, a certain storage structure applied in a computer, and encapsulating corresponding operations. It contains three aspects: logical relationships, storage relationships, and operations. Based on the data structure, information is matched from the information set; the information matched by the data structure is formed into a table to obtain a table corresponding to the target field.
[0060] Step S105, writing the table corresponding to the target field into the ZenTao template.
[0061] Figure 3 A schematic diagram of a written ZenTao template provided in an embodiment of the present application, such as Figure 3 As shown, the table corresponding to the target field is written into the ZenTao template, and the written template can be obtained.
[0062] In the embodiment of the present application, since the target format is fixed and the information of the template is determined, the test case file data is converted into a standardized format. This ensures that the converted test case format meets the requirements of ZenTao, including necessary fields and structures, avoids manual adjustments and editing and adding in the later stage, and improves the standardization and consistency of the test cases.
[0063] The present application provides a method for processing a test case, which comprises obtaining test case file data written by a mind mapping software and a ZenTao template of a ZenTao management system; parsing the test case file data to obtain an information set corresponding to the test case file data; extracting a target field in the ZenTao template; matching information from the information set based on the target field to obtain a table corresponding to the target field; and writing the table corresponding to the target field into the ZenTao template, thereby converting the test case into a standardized format for easy management.
[0064] Embodiment 2
[0065] Based on the problems existing in the related art, the embodiment of the present application provides a method for processing a test case, and the method is applied to an electronic device, and the electronic device can be a computer, a mobile terminal, etc. The function implemented by the fracture prediction method provided in the embodiment of the present application can be implemented by calling a program code by a processor of the electronic device, wherein the program code can be stored in a computer storage medium, and the method includes:
[0066] Step S201, obtaining test case file data written by mind mapping software and ZenTao templates of ZenTao management system.
[0067] In the embodiment of the present application, mind mapping software, as a widely used tool for organizing thoughts, can provide a clear hierarchical structure and association relationship, which is helpful for sorting and organizing test cases. It is currently widely used by many test teams to write test cases. At the same time, with the advancement of the localization of information technology, more and more domestic mind mapping software has become more and more comprehensive. In the embodiment of the present application, Mindmanager with good compatibility is selected as a test case writing tool.
[0068] In an embodiment of the present application, the format of the test case file data is .mmap format.
[0069] In the embodiment of the present application, the ZenTao management system is an open source project management software that integrates product management, project management, document management, organization management and transaction management.
[0070] In the embodiment of the present application, the target field in the ZenTao template can be set, and the field can be set through the ZenTao management system, and then the ZenTao template is generated. Exemplarily, the fields in the ZenTao template may include: module, related requirements, use case title, priority, use case type, applicable stage, precondition, step, expectation, etc. The format of the ZenTao template may be .xls format.
[0071] In the embodiments of the present application, the electronic device can obtain the test case file data and the ZenTao template of the ZenTao management system through the Internet. In some embodiments, the user can input the test case file data and the ZenTao template of the ZenTao management system through an input device. The input device may include: a mobile phone, a computer, a USB flash drive, and other devices.
[0072] Step S202: parsing the test case file data to obtain an information set corresponding to the test case file data.
[0073] In an embodiment of the present application, the electronic device can call a conversion tool to parse the test case file data. During the parsing, the node hierarchy relationship, comments and / or summary information in the test case file data can be traversed. The conversion tool can be a conversion tool developed in python - Mind2zd.
[0074] In the embodiment of the present application, the information set includes: node hierarchical relationships, comments and / or summaries and other information.
[0075] In an embodiment of the present application, node hierarchical relationships, annotations and / or summaries may include: modules, related requirements, use case titles, priorities, use case types, applicable stages, preconditions, steps, expectations, etc.
[0076] Step S203, extracting the target field in the ZenTao template.
[0077] In an embodiment of the present application, the target fields in the ZenTao template can be identified by identification software, and the target fields can be configured. For example, the target fields can include: module, related requirements, use case title, priority, use case type, applicable stage, preconditions, steps, expectations, etc.
[0078] Step S204, matching information from the information set based on the target field to obtain a table corresponding to the target field.
[0079] In the embodiment of the present application, the information in the information set can be matched through the target field, so as to generate a table corresponding to the target field.
[0080] In the embodiment of the present application, the target field can be stored in a data structure. The data structure is a set of data elements with certain logical relationships, a certain storage structure applied in a computer, and encapsulating corresponding operations. It contains three aspects: logical relationships, storage relationships, and operations. Based on the data structure, information is matched from the information set; the information matched by the data structure is formed into a table to obtain a table corresponding to the target field.
[0081] Step S205, writing the table corresponding to the target field into the ZenTao template.
[0082] In the embodiment of the present application, the table corresponding to the target field is written into the ZenTao template, and a written template can be obtained.
[0083] Step S206: import the ZenTao template into the ZenTao management system.
[0084] The present application provides a method for processing a test case, which comprises the following steps: obtaining test case file data written by a mind mapping software and a ZenTao template of a ZenTao management system; parsing the test case file data to obtain an information set corresponding to the test case file data; extracting a target field in the ZenTao template; matching information from the information set based on the target field to obtain a table corresponding to the target field; and writing the table corresponding to the target field into the ZenTao template. The test case can be converted into a standardized format and managed through the ZenTao management system. Team members can view, edit and share the test cases more conveniently, thereby promoting team collaboration and communication and improving work efficiency.
[0085] Embodiment 3
[0086] Based on the aforementioned embodiments, the embodiments of the present application further provide a test case processing method, which is based on the Mindmanager test case writing and conversion method, and realizes the writing, conversion and generation of a mind map Mindmananger to a specific test case template, thereby improving the efficiency and standardization of test case management, and enabling the team to more conveniently import the test cases written by Mindmanager directly into ZenTao for management.
[0087] Step 1: Read the .mmap format test case file data written in Mindmanager.
[0088] Step 2: Use Mind2zd, a conversion tool developed in Python, to parse and traverse the node hierarchical relationships, comments or summaries, including: modules, related requirements, use case titles, priorities, use case types, applicable stages, preconditions, steps, expectations, etc., to form a data set;
[0089] Step 3: Read the downloaded ZenTao template .xls format, identify the fields of the template and temporarily store them in the data structure.
[0090] Step 4: Read the title and information from the data set, match and concatenate the itinerary into a use case and a list according to the identified data structure;
[0091] Step 5: Write the list into the ZenTao template file;
[0092] Step 6: Use the batch import function of ZenTao to import the written template successfully.
[0093] The method provided in the embodiment of the present application has the following effects:
[0094] Improve test case management efficiency: Use the automated conversion tool Mind2zd to convert .mmap test cases written in Mindmanager into .xls format that can be directly viewed and imported by ZenTao, avoiding the tedious steps of manual copying, pasting and re-entering, saving time and effort.
[0095] Ability to standardize test case formats: The conversion method can ensure that the converted test case formats meet ZenTao's requirements, including necessary fields and structures, to avoid manual adjustments and editing and additions in the later stage, and improve the standardization and consistency of test cases.
[0096] Can improve team collaboration and communication: By using a unified test case management tool, team members can more easily view, edit and share test cases, promote team collaboration and communication, and improve work efficiency.
[0097] Embodiment 4
[0098] Based on the foregoing embodiments, the embodiments of the present application provide a test case processing device, wherein the modules included in the device and the units included in the modules can be implemented by a processor in a computer device; of course, they can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Microprocessor Unit), a digital signal processor (DSP, Digital Signal Processing) or a field programmable gate array (FPGA, Field Programmable Gate Array), etc.
[0099] The present application provides a test case processing device, the test case processing device comprising:
[0100] The acquisition module is used to obtain the test case file data written by the mind mapping software and the ZenTao template of the ZenTao management system;
[0101] A parsing module, used to parse the test case file data to obtain an information set corresponding to the test case file data;
[0102] An extraction module, used for extracting target fields in the ZenTao template;
[0103] A matching module, used for matching information from the information set based on the target field to obtain a table corresponding to the target field;
[0104] The writing module is used to write the table corresponding to the target field into the ZenTao template.
[0105] In some embodiments, the test case processing device is further used to:
[0106] Import the ZenTao template into the ZenTao management system.
[0107] In some embodiments, the parsing of the test case file data to obtain an information set corresponding to the test case file data includes:
[0108] Use the conversion tool to parse the test case file data to obtain the information set corresponding to the test case file data.
[0109] In some embodiments, the matching information from the information set based on the target field to obtain a table corresponding to the target field includes:
[0110] storing the target field in a data structure;
[0111] matching information from the information set based on the data structure;
[0112] The information matching the data structure is formed into a table to obtain a table corresponding to the target field.
[0113] In some embodiments, the information set includes: node hierarchical relationships, comments and / or summaries, and the format of the ZenTao template is a spreadsheet format.
[0114] In the embodiment of the present application, mind mapping software, as a widely used tool for organizing thoughts, can provide a clear hierarchical structure and association relationship, which is helpful for sorting and organizing test cases. It is currently widely used by many test teams to write test cases. At the same time, with the advancement of the localization of information technology, more and more domestic mind mapping software has become more and more comprehensive. In the embodiment of the present application, Mindmanager with good compatibility is selected as a test case writing tool.
[0115] In an embodiment of the present application, the format of the test case file data is .mmap format.
[0116] In the embodiment of the present application, the ZenTao management system is an open source project management software that integrates product management, project management, document management, organization management and transaction management.
[0117] In the embodiment of the present application, the target field in the ZenTao template can be set, and the field can be set through the ZenTao management system, and then the ZenTao template is generated. Exemplarily, the fields in the ZenTao template may include: module, related requirements, use case title, priority, use case type, applicable stage, precondition, step, expectation, etc. The format of the ZenTao template may be .xls format.
[0118] In the embodiments of the present application, the electronic device can obtain the test case file data and the ZenTao template of the ZenTao management system through the Internet. In some embodiments, the user can input the test case file data and the ZenTao template of the ZenTao management system through an input device. The input device may include: a mobile phone, a computer, a USB flash drive, and other devices.
[0119] In an embodiment of the present application, the electronic device can call a conversion tool to parse the test case file data. During the parsing, the node hierarchy relationship, comments and / or summary information in the test case file data can be traversed. The conversion tool can be a conversion tool developed in python - Mind2zd.
[0120] In the embodiment of the present application, the information set includes: node hierarchical relationships, comments and / or summaries and other information.
[0121] In an embodiment of the present application, node hierarchical relationships, annotations and / or summaries may include: modules, related requirements, use case titles, priorities, use case types, applicable stages, preconditions, steps, expectations, etc.
[0122] In an embodiment of the present application, the target fields in the ZenTao template can be identified by identification software, and the target fields can be configured. For example, the target fields can include: module, related requirements, use case title, priority, use case type, applicable stage, preconditions, steps, expectations, etc.
[0123] In the embodiment of the present application, the information in the information set can be matched through the target field, so as to generate a table corresponding to the target field.
[0124] In the embodiment of the present application, the target field can be stored in a data structure. The data structure is a set of data elements with certain logical relationships, a certain storage structure applied in a computer, and encapsulating corresponding operations. It contains three aspects: logical relationships, storage relationships, and operations. Based on the data structure, information is matched from the information set; the information matched by the data structure is formed into a table to obtain a table corresponding to the target field.
[0125] Embodiment 5
[0126] An embodiment of the present application provides an electronic device; Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the electronic device 700 includes: a processor 701, at least one communication bus 702, a user interface 703, at least one external communication interface 704, and a memory 705. The communication bus 702 is configured to realize the connection and communication between these components. The user interface 703 may include a display screen, and the external communication interface 704 may include a standard wired interface and a wireless interface. The processor 701 is configured to execute the program of the test case processing method stored in the memory to implement the steps in the test case processing method provided in the above embodiment.
[0127] This application provides a test case processing method, including:
[0128] Get the test case file data written by mind mapping software and ZenTao templates of ZenTao management system;
[0129] Parsing the test case file data to obtain an information set corresponding to the test case file data;
[0130] Extracting the target field in the ZenTao template;
[0131] Matching information from the information set based on the target field to obtain a table corresponding to the target field;
[0132] Write the table corresponding to the target field into the ZenTao template.
[0133] In some embodiments, the method further comprises:
[0134] Import the ZenTao template into the ZenTao management system.
[0135] In some embodiments, the parsing of the test case file data to obtain an information set corresponding to the test case file data includes:
[0136] Use the conversion tool to parse the test case file data to obtain the information set corresponding to the test case file data.
[0137] In some embodiments, the matching information from the information set based on the target field to obtain a table corresponding to the target field includes:
[0138] storing the target field in a data structure;
[0139] matching information from the information set based on the data structure;
[0140] The information matching the data structure is formed into a table to obtain a table corresponding to the target field.
[0141] In some embodiments, the information set includes: node hierarchical relationships, comments and / or summaries, and the format of the ZenTao template is a spreadsheet format.
[0142] Embodiment 6
[0143] In the embodiment of the present application, if the processing method of the above-mentioned test case is implemented in the form of a software function module, and when it is sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM, Read Only Memory), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0144] Accordingly, an embodiment of the present application provides a storage medium on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps in the test case processing method provided in the above embodiment are implemented.
[0145] This application provides a test case processing method, including:
[0146] Get the test case file data written by mind mapping software and ZenTao templates of ZenTao management system;
[0147] Parsing the test case file data to obtain an information set corresponding to the test case file data;
[0148] Extracting the target field in the ZenTao template;
[0149] Matching information from the information set based on the target field to obtain a table corresponding to the target field;
[0150] Write the table corresponding to the target field into the ZenTao template.
[0151] In some embodiments, the method further comprises:
[0152] Import the ZenTao template into the ZenTao management system.
[0153] In some embodiments, the parsing of the test case file data to obtain an information set corresponding to the test case file data includes:
[0154] Use the conversion tool to parse the test case file data to obtain the information set corresponding to the test case file data.
[0155] In some embodiments, the matching information from the information set based on the target field to obtain a table corresponding to the target field includes:
[0156] storing the target field in a data structure;
[0157] matching information from the information set based on the data structure;
[0158] The information matching the data structure is formed into a table to obtain a table corresponding to the target field.
[0159] In some embodiments, the information set includes: node hierarchical relationships, comments and / or summaries, and the format of the ZenTao template is a spreadsheet format.
[0160] The description of the above electronic device and storage medium embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the computer device and storage medium embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0161] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0162] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0163] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0164] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0165] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0166] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read Only Memory), disks or optical disks, etc. Various media that can store program codes.
[0167] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a controller to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0168] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for processing a test case, characterized in that: include: Get the test case file data written by mind mapping software and ZenTao templates of ZenTao management system; Parsing the test case file data to obtain an information set corresponding to the test case file data; Extracting the target field in the ZenTao template; Matching information from the information set based on the target field to obtain a table corresponding to the target field; Write the table corresponding to the target field into the ZenTao template.
2. The method according to claim 1, characterized in that The method further comprises: Import the ZenTao template into the ZenTao management system.
3. The method according to claim 1, characterized in that The test case file data is parsed to obtain an information set corresponding to the test case file data, including: Use the conversion tool to parse the test case file data to obtain the information set corresponding to the test case file data.
4. The method according to claim 1, characterized in that: The step of matching information from the information set based on the target field to obtain a table corresponding to the target field includes: storing the target field in a data structure; matching information from the information set based on the data structure; The information matching the data structure is formed into a table to obtain a table corresponding to the target field.
5. The method according to claim 1, characterized in that: The information set includes: node hierarchical relationships, comments and / or summaries, and the format of the ZenTao template is a spreadsheet format.
6. A test case processing device, characterized in that: include: The acquisition module is used to obtain the test case file data written by the mind mapping software and the ZenTao template of the ZenTao management system; A parsing module, used to parse the test case file data to obtain an information set corresponding to the test case file data; An extraction module, used for extracting target fields in the ZenTao template; A matching module, used for matching information from the information set based on the target field to obtain a table corresponding to the target field; The writing module is used to write the table corresponding to the target field into the ZenTao template.
7. The test case processing device according to claim 6, characterized in that: The test case processing device is also used for: Import the ZenTao template into the ZenTao management system.
8. The test case processing device according to claim 6, characterized in that: The test case file data is parsed to obtain an information set corresponding to the test case file data, including: Use the conversion tool to parse the test case file data to obtain the information set corresponding to the test case file data.
9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method for processing a test case according to any one of claims 1 to 5 is executed.
10. A storage medium, characterized in that: The computer program stored in the storage medium can be executed by one or more processors and can be used to implement the test case processing method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
A method and a device for processing a test case in a mind map
CN109726125A
Test case execution management method and device, equipment and storage medium
CN112905467A
Method for converting Xmind test case into meditation case
CN114924983A
Method and system based on test case multi-format conversion and automatic process management
CN115495386A
Format conversion method and device of test case document, computer equipment and storage medium
CN116126721A