A data processing method, system and device
By obtaining functional requirements, generating test cases, and establishing relationships, the problem of insufficient demand and test case management capabilities in the existing technology is solved, efficient test case management and change processing are achieved, and testing efficiency and quality are improved.
Patent Information
- Application Number
- CN202010949911.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-10
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-09-10
AI Technical Summary
Existing software systems have weak requirements and test case management capabilities, which results in cumbersome requirements tracing and test case tracking processes that consume a lot of time and manpower. They are unable to quickly respond to demand changes and have low testing efficiency.
By obtaining functional requirements, generate corresponding test cases, establish the correlation between functional requirements and test cases, display the associated data to achieve intuitive management, execute the test cases to generate actual test results, and convert them into a specific format to facilitate statistics and traceability .
It achieves effective correlation between functional requirements and test cases, improves test case coverage and change efficiency, and improves test quality and work efficiency.
Smart Images

Figure CN112084111B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a data processing method, a data processing system and a data processing device. Background Art
[0002] At present, the software systems on the market have weak management capabilities for requirements and test cases, and cannot effectively associate and manage requirements and test cases. During the project development and testing process, the requirements tracing and test case tracking process is cumbersome, requiring a lot of time and manpower for statistics, aggregation, and compilation and release, resulting in an inability to quickly respond to changes in requirements and low testing efficiency. Summary of the invention
[0003] In view of the above problems, embodiments of the present invention are proposed to provide a data processing method, a corresponding data processing system, and a corresponding data processing device that overcome the above problems or at least partially solve the above problems.
[0004] In order to solve the above problem, an embodiment of the present invention discloses a data processing method, including:
[0005] Obtain functional requirements;
[0006] Generate corresponding test cases according to the functional requirements;
[0007] An association relationship between the first data in the functional requirement and the second data in the test case is established to obtain associated data.
[0008] Optionally, it also includes:
[0009] The associated data is displayed in a user interface to achieve intuitive management of the functional requirements and the test cases.
[0010] Optionally, after the step of generating a test case according to the functional requirement, the method further includes:
[0011] Execute the test cases to generate actual test results.
[0012] Optionally, the second data includes at least one of the following: an identification code of a test case, test execution steps, expected output results, and actual test results; the first data includes an identification code and keywords of a functional requirement;
[0013] The step of establishing an association relationship between the first data in the functional requirement and the second data in the test case to obtain associated data includes:
[0014] The identification code and / or keyword of the functional requirement, and the association relationship between the identification code, test execution steps, expected output results, and actual test results of the test case are established to obtain associated data.
[0015] Optionally, after the step of establishing an association relationship between the first data in the functional requirement and the second data in the test case to obtain associated data, the step further includes:
[0016] The associated data is converted into a specific format.
[0017] Optionally, the specific format includes any one of the following:
[0018] CSV format, HTML format, XML format, XLS format and TXT format.
[0019] The embodiment of the present invention also discloses a data processing system, including a data management tool and a software testing tool, wherein:
[0020] The software testing tool is used to obtain functional requirements and generate corresponding test cases according to the functional requirements;
[0021] The data management tool is used to establish an association relationship between the first data in the functional requirement and the second data in the test case to obtain associated data.
[0022] The embodiment of the present invention further discloses a data processing device, including:
[0023] Requirements acquisition module, used to obtain functional requirements;
[0024] A test case generation module, used to generate corresponding test cases according to the functional requirements;
[0025] The data association module is used to establish an association relationship between the first data in the functional requirement and the second data in the test case to obtain associated data.
[0026] The embodiment of the present invention further discloses an electronic device, including:
[0027] one or more processors; and
[0028] One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the electronic device to execute the method as described in any one of the embodiments of the present invention.
[0029] An embodiment of the present invention further discloses a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, enables the processors to execute the method described in any one of the embodiments of the present invention.
[0030] The embodiments of the present invention include the following advantages:
[0031] In the embodiment of the present invention, by obtaining the functional requirements, generating the corresponding test cases according to the functional requirements, and establishing the association relationship between the first data in the functional requirements and the second data in the test cases, the associated data is obtained. The functional requirements and the test cases can be associated, so that the coverage of the test cases can be effectively counted through the obtained associated data, and the test cases corresponding to the functional requirements can be traced. When the functional requirements are changed, the changes and tests can be efficiently performed on the relevant test cases, thereby improving the test efficiency, thereby improving the test quality and the work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 is a flow chart of steps of an embodiment of a data processing method of the present invention;
[0033] Figure 2 is a schematic diagram of displaying associated data in a user interface of the present invention;
[0034] Figure 3 A structural block diagram of a data processing system embodiment of the present invention
[0035] Figure 4 It is a structural block diagram of an embodiment of a data processing device of the present invention. DETAILED DESCRIPTION
[0036] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0037] Reference Figure 1 , shows a flow chart of steps of a data processing method embodiment of the present invention, which may specifically include the following steps:
[0038] Step 101, obtaining functional requirements;
[0039] Functional requirements are used to specify the software features that developers implement in the product, which users can use to complete tasks to meet business needs.
[0040] In the embodiment of the present invention, multiple functional requirements can be obtained, and each functional requirement can have a corresponding identification code and keyword. The identification code is used to uniquely identify the functional requirement; the keyword can refer to the value of a specific data item used to identify each functional requirement, which is input by the user when using the search engine and can best summarize the information content that the user wants to find.
[0041] In a specific implementation, the user can edit each functional requirement in some applications that can create tables. For example, the user can edit the functional requirements in EXCEL spreadsheet software to obtain a functional requirement file in XLS format.
[0042] Step 102, generating corresponding test cases according to the functional requirements;
[0043] A test case may refer to a description of a test task for a software product, which is used to verify whether the product functions meet the functional requirements. Its content may include test objectives, test environment, input data, test steps, expected results, test scripts, etc.
[0044] Specifically, a software testing tool may be used to obtain a preset test template, which is used to specify the data required for the test case. Furthermore, the software testing tool may be used to automatically generate corresponding test cases in accordance with the provisions and functional requirements in the preset test template.
[0045] As an example, the software testing tool may be TPT (Time Partition Testing) software, and a preset test template may be obtained through the TPT software, and the functional requirements in the above step 101 may be imported, and then the TPT software may automatically generate test cases according to the preset test template and the functional requirements. In addition, the generated test cases may be executed in the TPT software to obtain actual test results, and a test report may be obtained by analyzing the actual test results.
[0046] Step 103, establishing an association relationship between the first data in the functional requirement and the second data in the test case to obtain associated data;
[0047] The first data may be data used to associate with the test case in the functional requirement, for example, the first data may be an identification code and / or a keyword of the functional requirement. The second data may be data used to associate with the functional requirement in the test case, for example, the second data may be an identification code, test execution steps, expected output results, actual test results, etc. of the test case. In a specific implementation, the data included in the first data and the second data may be freely set as needed, and the embodiment of the present invention does not limit this.
[0048] Specifically, a data management tool may be used to extract first data in the functional requirements and second data in the test cases, and then an association relationship between the first data in the functional requirements and the second data in the test cases is established to obtain associated data.
[0049] As an example, the data management tool may be an EXCEL spreadsheet software, and a pre-made data management plug-in may be loaded into the EXCEL spreadsheet software, and the data management plug-in may include a logic program for extracting data and a logic program for associating data. In the EXCEL spreadsheet software, the first data in the functional requirements and the second data in the test case are extracted through the data management plug-in, and an association relationship between the first data in the functional requirements and the second data in the test case is established to obtain the associated data.
[0050] In a preferred embodiment of the present invention, the method may further include the following steps:
[0051] The associated data is displayed in a user interface to achieve intuitive management of the functional requirements and the test cases.
[0052] In an embodiment of the present invention, after establishing the association relationship between functional requirements and test cases, the association data can be loaded in the test case management system to display the association data in the user interface provided by the test case management system, thereby achieving intuitive management of the functional requirements and the test cases, facilitating users to review test cases and trace functional requirements, etc.
[0053] Specifically, a test case management tool may be used, for example, the test case management tool may be TestLink, which is a web-based test case management tool whose main function is to create, manage and execute test cases. A user interface is obtained by running the test case management tool on a terminal device, and then the associated data is loaded in the test case management tool to display the associated data in the user interface.
[0054] In a preferred embodiment of the present invention, after step 102, the following steps may also be included:
[0055] Execute the test case to generate actual test results.
[0056] Specifically, after the test case is generated by the software testing tool, the test case can be executed by the software testing tool to generate actual test results. In addition, the software testing tool can also be used to analyze the actual test results to obtain a test report.
[0057] In a preferred embodiment of the present invention, the second data includes at least one of the following:
[0058] The test case identification code, test execution steps, expected output results and actual test results.
[0059] The identification code of the test case can be used to uniquely identify the test case, and each test case has a one-to-one corresponding identification code. The test execution steps can refer to the steps that the test case needs to execute. The expected output result can refer to the output data that is expected to be obtained after executing the test case. The actual test result can refer to the output data actually obtained after executing the steps in the test case.
[0060] It should be noted that, when implementing the embodiment of the present invention, the second data may be set to include other data according to actual needs, and the embodiment of the present invention is not limited to this.
[0061] In a preferred embodiment of the present invention, the first data may include an identification code and / or a keyword of the functional requirement.
[0062] The identification code is used to uniquely identify the functional requirement. The keyword may refer to the value of a specific data item used to identify each functional requirement.
[0063] It should be noted that, when implementing the embodiment of the present invention, the second data may be set to include other data according to actual needs, and the embodiment of the present invention is not limited to this.
[0064] In a preferred embodiment of the present invention, step 103 may include the following sub-steps:
[0065] Establish the identification code and / or keyword of the functional requirement, and the association relationship between the identification code, test execution steps, expected output results, and actual test results of the test case to obtain associated data.
[0066] In an embodiment of the present invention, when associating functional requirements and test cases, the identification code and / or keyword of the functional requirement, the identification code of the test case, the test execution steps, the expected output results and the actual test results can be associated to obtain associated data.
[0067] In a preferred embodiment of the present invention, the following steps may be further included after step 103:
[0068] The associated data is converted into a specific format.
[0069] Specifically, after using the data management tool to associate the first data in the functional requirement and the second data in the test case to obtain the associated data, the data management tool can also be used to convert the associated data into a specific format, which can be a pre-set format. For example, the specific format can be a format that can be recognized by the test case management tool.
[0070] In the embodiment of the present invention, the specific format may include any of the following:
[0071] CSV format, HTML format, XML format, XLS format and TXT format.
[0072] After the associated data is converted into a specific format, the associated data in the specific format can be further imported into the test case management tool to display the associated data in a user interface provided by the test case management tool. Figure 2 A schematic diagram of displaying associated data in a user interface of the present invention is shown. The user interface includes functional requirements of a product and its corresponding test cases, so that users can manage the test cases easily.
[0073] In the embodiment of the present invention, by obtaining the functional requirements, generating the corresponding test cases according to the functional requirements, and establishing the association relationship between the first data in the functional requirements and the second data in the test cases, the associated data is obtained. The functional requirements and the test cases can be associated, so that the coverage of the test cases can be effectively counted through the obtained associated data, and the test cases corresponding to the functional requirements can be traced. When the functional requirements are changed, the changes and tests can be efficiently performed on the relevant test cases, thereby improving the test efficiency, thereby improving the test quality and the work efficiency.
[0074] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0075] Reference Figure 3 , shows a structural block diagram of a data processing system embodiment of the present invention, the data processing system may include a software testing tool 301 and a data management tool 302, wherein,
[0076] The software testing tool 301 is used to obtain functional requirements and generate corresponding test cases according to the functional requirements;
[0077] The data management tool 302 is used to establish an association relationship between the first data in the functional requirement and the second data in the test case to obtain associated data.
[0078] In an embodiment of the present invention, a software testing tool 301 may be used to obtain functional requirements and generate corresponding test cases according to the functional requirements. For example, if the software testing tool is TPT software, a functional requirement document may be imported into the TPT software, and corresponding test cases may be generated according to the functional requirements through the TPT software.
[0079] The data management tool 302 is used to establish the association relationship between the first data in the functional requirement and the second data in the test case to obtain the associated data. For example, the data management tool is an EXCEL spreadsheet software. By loading a pre-made data management plug-in in the EXCEL spreadsheet software, the data management plug-in may include a logic program for extracting data and a logic program for associating data. In the EXCEL spreadsheet software, the first data in the functional requirement and the second data in the test case are extracted through the data management plug-in, and the association relationship between the first data in the functional requirement and the second data in the test case is established to obtain the associated data.
[0080] In a preferred embodiment of the present invention, the data processing system may further include a test case management tool 303, wherein:
[0081] The test case management tool 303 is used to display the associated data in a user interface to achieve intuitive management of the functional requirements and the test cases.
[0082] In an embodiment of the present invention, a test case management tool 303 may be used to display associated data in a user interface to achieve intuitive management of functional requirements and test cases. For example, the test case management tool may be TestLink, which is a web-based test case management tool whose main function is to create, manage, and execute test cases. The user interface is obtained by running the test case management tool on a terminal device, and then the associated data is loaded in the test case management tool to display the associated data in the user interface.
[0083] In a preferred embodiment of the present invention, the software testing tool 301 is also used for:
[0084] Execute the test cases to generate actual test results.
[0085] Specifically, after the test case is generated by the software testing tool, the test case can be executed by the software testing tool to generate actual test results. In addition, the software testing tool can also be used to analyze the actual test results to obtain a test report.
[0086] In a preferred embodiment of the present invention, the second data includes at least one of the following: an identification code of a test case, test execution steps, expected output results, and actual test results; the first data includes an identification code and / or a keyword of a functional requirement;
[0087] In a preferred embodiment of the present invention, the data management tool 302 is specifically used to establish the identification code and / or keyword of the functional requirement, as well as the association relationship between the identification code, test execution steps, expected output results, and actual test results of the test case to obtain associated data.
[0088] In a preferred embodiment of the present invention, the data management tool 302 is also used to:
[0089] The associated data is converted into a specific format.
[0090] Specifically, the associated data may be converted into a specific format through a data management tool, and the specific format may be a pre-set format, for example, the specific format may be a format that can be recognized by a test case management tool.
[0091] In this embodiment of the present invention, the specific format includes any one of the following:
[0092] CSV format, HTML format, XML format, XLS format and TXT format.
[0093] The functional requirements are obtained through the software testing tool 301 in the data processing system, and the corresponding test cases are generated according to the functional requirements. The association relationship between the first data in the functional requirements and the second data in the test cases is established through the data management tool 302 to obtain the associated data. The functional requirements and the test cases can be associated, so that the coverage of the test cases can be effectively counted through the associated data, and the test cases corresponding to the functional requirements can be traced. When the functional requirements are changed, the changes and tests can be efficiently performed on the relevant test cases, thereby improving the test efficiency, thereby improving the test quality and the work efficiency.
[0094] Reference Figure 4 , shows a structural block diagram of a data processing device embodiment of the present invention, which may specifically include the following modules:
[0095] The requirement acquisition module 401 is used to acquire functional requirements;
[0096] A test case generation module 402 is used to generate corresponding test cases according to the functional requirements;
[0097] The data association module 403 is used to establish an association relationship between the first data in the functional requirement and the second data in the test case to obtain associated data.
[0098] In a preferred embodiment of the present invention, the device further comprises:
[0099] The data loading module is used to display the associated data in a user interface to achieve intuitive management of the functional requirements and the test cases.
[0100] In a preferred embodiment of the present invention, the device further comprises:
[0101] The test case execution module is used to execute the test case and generate actual test results.
[0102] In a preferred embodiment of the present invention, the second data includes at least one of the following: an identification code of a test case, test execution steps, expected output results, and actual test results; the first data includes an identification code and / or a keyword of a functional requirement;
[0103] The data association module 403 is specifically used to establish the identification code and / or keyword of the functional requirement, and the association relationship between the identification code, test execution steps, expected output results, and actual test results of the test case to obtain associated data.
[0104] In a preferred embodiment of the present invention, the device further comprises:
[0105] The format conversion module is used to convert the associated data into a specific format.
[0106] In a preferred embodiment of the present invention, the specific format includes any one of the following:
[0107] CSV format, HTML format, XML format, XLS format and TXT format.
[0108] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0109] An embodiment of the present invention provides an electronic device, including:
[0110] One or more processors; and one or more machine-readable media having instructions stored thereon, which, when executed by the one or more processors, enable the electronic device to execute the method as described in any one of the embodiments of the present invention.
[0111] An embodiment of the present invention discloses a computer-readable storage medium having instructions stored thereon. When executed by one or more processors, the processors are enabled to execute a method as described in any one of the embodiments of the present invention.
[0112] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0113] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0114] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0115] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0116] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0117] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0118] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal 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 terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0119] The data processing method, the data processing system and the data processing device provided by the present invention are introduced in detail above. The principle and implementation mode of the present invention are explained by using specific examples in this article. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation mode and the scope of application. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A data processing method, characterized in that: include: Obtaining functional requirements; the functional requirements are obtained by editing through spreadsheet software; Generate corresponding test cases according to the functional requirements; Establishing an association relationship between the first data in the functional requirement and the second data in the test case to obtain associated data; the first data includes a keyword; the keyword is used to identify the value of a specific data item of the functional requirement; the second data includes at least one of the following: a test execution step, an expected output result, and an actual test result of the test case; the keyword is used to summarize the information content of the functional requirement to be searched by the user through a preset search engine; Wherein, after the step of establishing the association relationship between the first data in the functional requirement and the second data in the test case to obtain the associated data, the step further includes: Convert the associated data into a specific format; the specific format includes any one of the following: CSV format, HTML format, XML format, XLS format and TXT format; Importing the associated data in a specific format into a preset test case management tool; the test case management tool has the ability to recognize the associated data in the specific format; The associated data in the specific format is displayed in the user interface of the test case management tool to achieve intuitive management of the functional requirements and the test cases.
2. The method according to claim 1, characterized in that After the step of generating a test case according to the functional requirements, the method further includes: Execute the test cases to generate actual test results.
3. The method according to claim 2, characterized in that The second data includes an identification code of a test case; the first data includes an identification code of a functional requirement; The step of establishing an association relationship between the first data in the functional requirement and the second data in the test case to obtain associated data includes: Establish the identification code and / or keyword of the functional requirement, and the association relationship between the identification code, test execution steps, expected output results, and actual test results of the test case to obtain associated data.
4. A data processing system, characterized in that: Including data management tools, software testing tools, and test case management tools, among which: The software testing tool is used to obtain functional requirements and generate corresponding test cases according to the functional requirements; the functional requirements are obtained by editing the spreadsheet software; The data management tool is used to establish an association relationship between the first data in the functional requirement and the second data in the test case to obtain associated data; the first data includes a keyword; the keyword is used to identify the value of a specific data item of the functional requirement; the second data includes at least one of the following: a test execution step, an expected output result, and an actual test result of the test case; the keyword is used to summarize the information content of the functional requirement to be searched by the user through a preset search engine; The data management tool is used to convert the associated data into a specific format; the specific format includes any one of the following: CSV format, HTML format, XML format, XLS format and TXT format; The data management tool is used to import the associated data in a specific format into the test case management tool; the test case management tool has the ability to recognize the associated data in the specific format; The test case management tool is used to display the associated data in the specific format in the user interface of the test case management tool to achieve intuitive management of the functional requirements and the test cases.
5. A data processing device, characterized in that: include: Requirements acquisition module, used to obtain functional requirements; The functional requirements are obtained by editing with spreadsheet software; A test case generation module, used to generate corresponding test cases according to the functional requirements; A data association module is used to establish an association relationship between the first data in the functional requirement and the second data in the test case to obtain associated data; the first data includes a keyword; the keyword is used to identify the value of a specific data item of the functional requirement; the second data includes at least one of the following: a test execution step, an expected output result, and an actual test result of the test case; the keyword is used to summarize the information content of the functional requirement to be searched by the user through a preset search engine; A conversion module, used for converting the associated data into a specific format; the specific format includes any one of the following: CSV format, HTML format, XML format, XLS format and TXT format; An import module, used for importing the associated data in a specific format into a preset test case management tool; The test case management tool has the ability to recognize the associated data in the specific format; A display module is used to display the associated data in the specific format in the user interface of the test case management tool to achieve intuitive management of the functional requirements and the test cases.
6. An electronic device, characterized in that: include: one or more processors; and One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, cause the electronic device to perform the method as claimed in any one of claims 1-3.
7. A computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 3.
