Test case management method, terminal and storage medium

By obtaining and auditing the update instructions for test cases, the problems of incomplete coverage and confusion in test case management are solved, and timely updates of test cases and management efficiency are improved.

CN112069073BActive Publication Date: 2024-12-03SHENZHEN SKYWORTH RGB ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010933235.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-07
Publication Date
2024-12-03
Estimated Expiration
2040-09-07

AI Technical Summary

Technical Problem

The existing test case management methods have problems such as incomplete coverage, multiple different versions at the same time, and information confusion, which leads to the inability to synchronize test case updates in time, affecting management efficiency.

Method used

Ensure that all relevant personnel obtain the latest version of the test cases by obtaining update instructions for test cases, performing update operations, and auditing and storing updated test cases in the database.

Benefits of technology

Improve the efficiency of test case management, save testers time and costs, and avoid information confusion and version conflict.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112069073B_ABST
    Figure CN112069073B_ABST
Patent Text Reader

Abstract

The present application discloses a test case management method, terminal and storage medium, the method comprising: obtaining an update instruction for a test case; determining the test case to be updated and the content to be updated corresponding to the test case to be updated according to the update instruction, and performing an update operation on the test case to be updated based on the content to be updated; obtaining the updated test case obtained by the update operation, performing an audit operation on the updated test case, and storing the updated test case that has passed the audit operation in a database. The method solves the problems of incomplete test case coverage, coexistence of multiple different test case versions and information confusion caused by the imperfect management of existing test cases, and improves the management efficiency of test cases and saves the time and cost of testers by timely storing the updated and audited test cases in the database.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of testing technology, and in particular to a test case management method, terminal and storage medium. Background Art

[0002] With the advancement of science and technology, various fields are developing rapidly. Regardless of the industry, new functions are increasing. For testers, not only the number of functional items increases, but also the number of test cases increases, even up to thousands of cases. However, the current management of test cases still remains in the manual operation of Excel spreadsheets and manual backup. When test cases are added, deleted, modified, etc., the updated information cannot be synchronized to all relevant personnel in time, resulting in incomplete test case coverage, multiple different test case versions coexisting, and information confusion. Summary of the invention

[0003] The embodiments of the present application provide a test case management method, terminal and storage medium, aiming to solve the problems of imperfect existing test case management, which leads to incomplete test case coverage, coexistence of multiple different test case versions and information confusion.

[0004] To achieve the above object, the present application provides a test case management method, which includes the following steps:

[0005] Get the update instructions for the test case;

[0006] Determine the test case to be updated and the content to be updated corresponding to the test case to be updated according to the update instruction, and perform an update operation on the test case to be updated based on the content to be updated;

[0007] The updated test case obtained by the update operation is obtained, a review operation of the updated test case is performed, and the updated test case that passes the review operation is stored in a database.

[0008] Optionally, the step of obtaining the updated test case obtained by the update operation and performing the review operation on the updated test case includes:

[0009] When the updated test case is obtained, a review process for the updated test case is started;

[0010] Based on the review process, a review instruction is sent to the reviewer, so that the reviewer reviews the updated test case according to the review instruction.

[0011] Optionally, after the step of sending a review instruction to a reviewer based on the review process so that the reviewer reviews the updated test case according to the review instruction, the following steps are included:

[0012] Obtaining the updated test cases that failed the review and the review result information;

[0013] The updated test case that has not passed the review and the review result information are sent to the corresponding tester, so that the tester can modify the updated test case that has not passed the review according to the review result information.

[0014] Optionally, after the steps of obtaining the updated test case obtained by the update operation, performing the review operation on the updated test case, and storing the updated test case that passes the review operation in a database, the following steps are included:

[0015] Acquire information of the project to be tested, and acquire a target test case matching the information of the project to be tested in the database, wherein the target test case is an updated and audited test case pre-stored in the database;

[0016] A test operation of the item to be tested is performed based on the target test case to generate a test report.

[0017] Optionally, the step of obtaining the information of the item to be tested and obtaining in the database a target test case matching the information of the item to be tested includes:

[0018] Obtaining project requirements in the information of the project to be tested, and generating corresponding test requirements according to the project requirements;

[0019] Based on the test requirement, a target test case matching the information of the item to be tested is obtained in the database.

[0020] Optionally, after the step of acquiring a target test case matching the information of the item to be tested in the database based on the test requirement, the following steps are included:

[0021] If a target test case matching the information of the item to be tested is not obtained in the database based on the test requirement, sending a request for obtaining the target test case;

[0022] The target test case is obtained based on the acquisition request and stored in the database.

[0023] Optionally, the step of executing a test operation of the item to be tested based on the target test case to generate a test report includes:

[0024] Generate a list to be tested based on the target test case, and obtain test data for each item in the list to be tested;

[0025] A test operation of the item to be tested is performed based on the test data of each item to generate a test report.

[0026] Optionally, after the step of executing the test operation of the item to be tested based on the target test case to generate a test report, the step further includes:

[0027] Obtain the test results in the test report, and determine whether the test results are consistent with the preset results;

[0028] If the test result is consistent with the preset result, the data corresponding to the test result is stored in the test case table in the database;

[0029] If the test result is inconsistent with the preset result, data inconsistent with the preset result is recorded.

[0030] In addition, to achieve the above-mentioned purpose, the present application also provides a terminal on the other hand, which includes a memory, a processor, and a test case management program stored in the memory and running on the processor, and when the processor executes the test case management program, it implements the steps of the test case management method as described above.

[0031] In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium on the other hand, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the test case management method as described above are implemented.

[0032] This embodiment obtains the update instruction of the test case, performs the update operation on the test case to be updated according to the update instruction, further performs the review operation on the updated test case, and stores the updated and reviewed test case in the database. By timely storing the updated and reviewed test cases in the database, the test cases obtained by the user in the database are the latest versions. Therefore, the problems of incomplete test case coverage, coexistence of multiple different test case versions, and information confusion caused by the imperfect management of existing test cases are solved, the management efficiency of test cases is improved, and the time and cost of testers are saved. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present application;

[0034] Figure 2 This is a flowchart of the first embodiment of the test case management method of the present application;

[0035] Figure 3 This is a flow chart of a second embodiment of the test case management method of the present application;

[0036] Figure 4 A flowchart of a third embodiment of the test case management method of the present application;

[0037] Figure 5 This is a flowchart of a fourth embodiment of the test case management method of the present application;

[0038] Figure 6 A flowchart of a fifth embodiment of a method for managing test cases of the present application;

[0039] Figure 7 A flowchart of obtaining an updated test case obtained by the update operation in the test case management method of the present application and performing a review operation on the updated test case;

[0040] Figure 8 A flowchart of obtaining the information of the item to be tested in the test case management method of the present application, and obtaining the target test case matching the information of the item to be tested in the database;

[0041] Fig. 9 This is a flow chart of executing the test operation of the item to be tested based on the target test case in the test case management method of the present application to generate a test report.

[0042] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0043] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0044] The main solution of the embodiment of the present application is: obtain an update instruction for a test case; determine the test case to be updated and the content to be updated corresponding to the test case to be updated according to the update instruction, and perform an update operation on the test case to be updated based on the content to be updated; obtain the updated test case obtained by the update operation, perform an audit operation on the updated test case, and store the updated test case that passes the audit operation in a database.

[0045] At present, the management of test cases still stays in the manual operation of Excel tables, manual backup, etc. When the test cases are added, deleted, modified, etc., the updated information cannot be synchronized to all relevant personnel in time, resulting in incomplete test case coverage, multiple different test case versions coexisting, and information confusion. However, the present application obtains the update instruction of the test case, performs an update operation on the test case to be updated according to the update instruction, further audits the updated test case, and stores the updated and audited test case in the database. By timely storing the updated and audited test cases in the database in time, the test cases obtained by the user in the database are the latest versions. Therefore, the existing imperfect test case management is solved, resulting in incomplete test case coverage, multiple different test case versions coexisting, and information confusion, improving the management efficiency of the test case and saving the time and cost of the testers.

[0046] like Figure 1 As shown, Figure 1 This is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present application.

[0047] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0048] Optionally, the terminal may also include a camera, an RF (Radio Frequency) circuit, a sensor, a remote controller, an audio circuit, a WiFi module, a detector, etc. Of course, the terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a temperature sensor, etc., which will not be described in detail here.

[0049] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the terminal device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0050] like Figure 1 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a test case management program.

[0051] exist Figure 1 In the terminal shown, the network interface 1004 is mainly used to connect to the backend server and perform data communication with the backend server; the user interface 1003 is mainly used to connect to the client (user end) and perform data communication with the client; and the processor 1001 can be used to call the management program of the test case stored in the memory 1005 and perform the following operations:

[0052] Get the update instructions for the test case;

[0053] Determine the test case to be updated and the content to be updated corresponding to the test case to be updated according to the update instruction, and perform an update operation on the test case to be updated based on the content to be updated;

[0054] The updated test case obtained by the update operation is obtained, a review operation of the updated test case is performed, and the updated test case that passes the review operation is stored in a database.

[0055] refer to Figure 2 , Figure 2 This is a flowchart of the first embodiment of the test case management method of the present application.

[0056] The embodiments of the present application provide embodiments of a method for managing test cases. It should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that shown here.

[0057] Test case management methods include:

[0058] Step S10, obtaining an update instruction of the test case;

[0059] During the life cycle of a software product, from the first creation of the product to the final offline, a large number of test cases will be generated in the test case database during this period, and due to test requirements or test management, the test cases in the database need to be updated. Before performing the update operation, it is necessary to obtain the update instructions of the test cases. For example: based on the change of test project requirements, the test cases in the database also need to be modified, deleted, added or re-imported with new test cases, that is, it is necessary to obtain the modification instructions, deletion instructions, addition instructions and import instructions of the test cases. Further, since the test cases in the database correspond to different test projects, and each test project includes multiple test cases, for example, taking an APP test as an example, in the development process of the APP, regression test cases, UI test cases, interface test cases, critical path test cases and other test cases are needed. However, these test cases used by the APP may also be needed in other test projects, such as the development test project of the payment platform; since there are many test cases in the database and the types are different, it is necessary to obtain the classification management instructions of the test cases, and classify and manage the test cases in the database based on the classification management instructions. Among them, the test case is a very important type of document in the testing process. It is the core of the testing work, a set of input and output standards during testing, and a specific comparison of software requirements. Errors in the program can be discovered by running the test case.

[0060] Step S20, determining the test case to be updated and the content to be updated corresponding to the test case to be updated according to the update instruction, and performing an update operation on the test case to be updated based on the content to be updated;

[0061] Since there are many types and numbers of test cases in the database, when the update instruction of the test case is obtained, the update instruction needs to be parsed to determine the test case to be updated and the content to be updated corresponding to the test case to be updated, and further perform the update operation on the test case to be updated based on the content to be updated. For example: What is currently obtained is the modification instruction of the UI test case in the payment platform page, then it is necessary to determine which payment platform's UI test case is to be modified based on the modification instruction, and what content is to be modified. If the modification instruction is to add a balance display field to the display interface of the WeChat payment platform, it is necessary to find the UI test case corresponding to the WeChat payment platform test project in the database, and add the code of the balance display field to the UI test case to complete the modification operation of the UI test case.

[0062] Step S30, obtaining the updated test case obtained by the update operation, performing the review operation on the updated test case, and storing the updated test case that passes the review operation in a database.

[0063] The test case management system obtains the updated test cases obtained by the update operation, performs the review operation of the updated test cases, and stores the updated test cases that pass the review operation in the database; wherein the updated test cases refer to the test cases obtained after completing the conventional update operations such as the writing of new test cases, the modification of test cases, the deletion of test cases, the import of test cases, and the export of test cases. In order to ensure the accuracy and effectiveness of the updated test cases, it is necessary to perform a review operation on the updated test cases, and the review operation refers to the actual test inspection of the updated test cases by the auditor. Specifically, the updated test cases are used to perform multiple tests on at least one object to be tested, and the test accuracy of the updated test cases is counted according to the test results of the multiple tests. If the test accuracy reaches the set threshold, the current updated test cases are recorded as valid test cases. For example: if the updated test case is used to test the problem of screen flashing on a mobile terminal, the updated test case can be used to test the screen flashing case event of the mobile terminal multiple times. If the mobile terminal does not flash after the user turns on the machine, the test result is recorded as passed or correct; if the mobile terminal flashes, the test result is recorded as failed or wrong. Further obtain updated test cases whose test results are passed or correct, and store the updated test cases in the database. It should be noted that if the test accuracy of the updated test case is 98% after multiple tests, and the threshold is set to 95%, and the test accuracy is higher than the set threshold, it means that the updated test case is a valid test case.

[0064] Further, refer to Figure 7 The step of obtaining the updated test case obtained by the update operation and performing the review operation on the updated test case includes:

[0065] Step S31, when the updated test case is obtained, start the review process of the updated test case;

[0066] Step S32: sending a review instruction to a reviewer based on the review process, so that the reviewer reviews the updated test case according to the review instruction.

[0067] When the test case management system obtains the updated test case, it initiates the review process of the updated test case, and further sends the review instructions to each reviewer according to the review process, so that the reviewer reviews the updated test case according to the received review instructions. Among them, the reviewers include relevant reviewers such as the test team leader, product manager, development designer, etc., and can also conduct peer review, group review, department review and third-party review. Specifically, when the test management system detects the updated test case, it initiates the review process of the test case and automatically sends the review instructions to each reviewer, wherein the review instructions can be sent in the form of email or text message, and need to be accompanied by the relevant documents of the test case. After receiving the review instructions, the reviewer verifies the updated test case, such as judging whether the structural arrangement of the test case design is clear and reasonable, whether it is conducive to efficient coverage of requirements, whether the priority arrangement is reasonable, whether all functional points on the test requirements are covered, and whether the test case has good executability. After the audit is completed, a corresponding audit report is generated and uploaded to the test management system, wherein the audit report includes the audit basis, audit results, relevant information of the auditor, test case modification information, etc.

[0068] This embodiment obtains the update instruction of the test case, performs the update operation on the test case to be updated according to the update instruction, further performs the review operation on the updated test case, and stores the updated and reviewed test case in the database. By timely storing the updated and reviewed test cases in the database, the test cases obtained by the user in the database are the latest versions. Therefore, the problems of incomplete test case coverage, coexistence of multiple different test case versions, and information confusion caused by the imperfect management of existing test cases are solved, the management efficiency of test cases is improved, and the time and cost of testers are saved.

[0069] Further, refer to Figure 3 , a second embodiment of the test case management method of the present application is proposed.

[0070] The difference between the second embodiment of the test case management method and the first embodiment of the test case management method is that after the step of sending a review instruction to the reviewer based on the review process so that the reviewer reviews the updated test case according to the review instruction, the method further comprises:

[0071] Step S320, obtaining the updated test cases that have not passed the review and the review result information;

[0072] Step S321, sending the updated test case that has not passed the review and the review result information to the corresponding tester, so that the tester can modify the updated test case that has not passed the review according to the review result information.

[0073] When the test case management system obtains an updated test case that has not passed the review, it further obtains the corresponding review result information, sends a modification instruction for the test case to the tester, and sends the updated test case that has not passed the review and the review result information to the corresponding tester; wherein the tester is the user who updates the test case in the test management system. After receiving the modification instruction, the tester re-modifies the updated test case that has not passed the review according to the review result information. For example, when the communication connection test case is currently obtained and fails to pass the review, the corresponding updated tester of the communication connection test case is further obtained, and the modification instruction and the review result information are sent to the tester; if the tester obtains in the review result information that the communication connection test case fails to successfully test whether the communication connection of the mobile phone is successful, the communication connection test case needs to be modified.

[0074] This embodiment ensures the validity and accuracy of the test cases by resending the test cases that have not passed the review to the testers for modification.

[0075] Further, refer to Figure 4 , a third embodiment of the test case management method of the present application is proposed.

[0076] The third embodiment of the test case management method is different from the first and second embodiments of the test case management method in that, after the steps of obtaining the updated test case obtained by the update operation, performing the review operation on the updated test case, and storing the updated test case that passes the review operation in a database, the method further comprises:

[0077] Step S40, obtaining information of the project to be tested, and obtaining a target test case matching the information of the project to be tested in the database, wherein the target test case is an updated and audited test case pre-stored in the database;

[0078] The software product in the test project needs to be tested and the performance of the software product needs to be verified before the software product can be put into use. For different test requirements, it is necessary to select test cases that meet the test requirements. Therefore, when the information of the project to be tested is obtained, it is necessary to obtain the target test case that matches the information of the project to be tested in the database; wherein the information of the project to be tested includes the project name, project identification, software version, storage path, etc.; the target test case is a test case that has been updated and passed the review and stored in the database in advance. Specifically, a filling template for the test project information is set in the test management system, and the user fills in the relevant information of the project to be tested in the filling template, such as the project name, project logo, project requirements, project attributes, project tags, etc.; further obtain the information of the project to be tested from the filling template, and match the information of the project to be tested with the test case information stored in the database, and the test case information includes: case identification, case name, test purpose, test level, reference information, test environment, prerequisites, test steps, expected results, designers, etc. For example, the project name and project mark in the project information to be tested can be matched with the test case name and test case mark in the test case information, so as to obtain a test case that matches the project information to be tested, that is, a target test case. Optionally, if multiple similar test cases are matched based on the matching operation, test case selection information is sent to the user, or a test case with the highest test level or the latest update time is selected from multiple test cases.

[0079] Further, refer to Figure 8 The step of obtaining the information of the project to be tested and obtaining the target test case matching the information of the project to be tested in the database includes:

[0080] Step S41, obtaining the project requirements in the information of the project to be tested, and generating corresponding test requirements according to the project requirements;

[0081] Step S42: acquiring a target test case matching the information of the item to be tested in the database based on the test requirement.

[0082] The project requirements in the project information are obtained, and corresponding test requirements are generated according to the project requirements; wherein the project requirements include software test requirement information submitted by the user, software function requirement documents, and expected output result information. Specifically, the user needs to fill in the template in the test case management system and provide the above necessary information according to the system prompts, and other detailed requirement information is included in the software test requirement information document. Among them, each document includes multiple test tasks, for example: the project to be tested is a test of a mobile phone APP, and its test tasks are: browsing local data without a network; when the client has a new version, there is an update prompt; where the location service and camera service are used, it is necessary to perform a front-end and back-end switching test to check whether the application is normal; check whether the push message is sent according to the specified business rules, etc. Further, the corresponding test requirements are generated according to the project requirements of the project to be tested, and the test requirements correspond to the project requirements one by one, so as to facilitate the identification of the test case management system. Based on the test requirements, the target test case matching the information of the project to be tested is obtained in the database, such as obtaining the matching test case in the database according to the project name.

[0083] Step S50: executing a test operation of the item to be tested based on the target test case to generate a test report.

[0084] Obtain the target test case, perform the test operation on the item to be tested based on the target test case, and generate a test report based on the test operation; specifically, if there are 10 test cases corresponding to the item to be tested, then these 10 test cases need to be run once respectively, so the item to be tested needs to run 10 test operations. For example, these 10 test cases include 3 connection tests, 2 interface tests and 5 firewall tests. When executing the test, the test operation of each test case is executed in sequence according to the built-in test sequence. Further, obtain the test report obtained after executing each test operation, and store the test report generated by the same test content in the same location, such as pre-establishing different folders for different test contents, and the folders are used to store the test reports obtained by the test operation; wherein, the test report records the test content in a table or other document form. Optionally, the test report can be generated in the form of a hyperlink. When the hyperlink is clicked, the user can enter a document that records the test content in a table or other form. The test content recorded in the test report includes each step of the test, the time taken for each test step, the total time taken, the execution status of a single step, the test method, the name of the tester, the number of tests, etc.

[0085] Further, refer to Fig. 9 The step of executing the test operation of the item to be tested based on the target test case to generate a test report includes:

[0086] Step S51, generating a list to be tested based on the target test case, and obtaining test data for each item in the list to be tested;

[0087] Step S52: performing a test operation of the item to be tested based on the test data of each item to generate a test report.

[0088] When determining the target test case corresponding to the project to be tested, the test case management system generates a list to be tested according to the target test case, further obtains the test data of each item in the list to be tested, performs the test operation of the project to be tested based on the test data of each item, and generates a corresponding test report. Among them, since the content to be tested for the project to be tested includes a lot, the corresponding matching target test cases may include multiple. Specifically, taking the test of a mobile phone APP as an example, when testing the mobile phone APP, the content to be tested includes: installation and uninstallation test, functional case test, user experience test, update and upgrade test, and database design test, etc., and each test content includes different test requirements, and different test requirements need to be recorded in the form of a table to generate a list to be tested; all test requirements in the project to be tested can be read in the list to be tested, and each test requirement has been matched with a corresponding test case. For example, in the database design test, general add, delete, modify, and check tests are included; when the business needs to retrieve data from the server and save it to the client, can the client save the data locally; when the business modifies and deletes the data, will the client and the server have corresponding updates and other test requirements. When executing the test operation, the list of items to be tested is traversed from beginning to end, the test data of each item is obtained, and the test operation of the items to be tested is further performed according to the test data of each item, such as obtaining the test steps in the test data, and performing each step of the test operation according to the test steps, wherein each item of test data can be tested multiple times. The test results corresponding to each item of test data are recorded, and the corresponding test report is generated.

[0089] This embodiment obtains the project requirements in the project to be tested, generates corresponding test requirements according to the project requirements, obtains the target test cases that match the test requirements, and further performs the test operation according to the list to be tested generated by the target test cases to generate a test report. Different test cases are configured for different projects based on project requirements, and testers do not need to blindly search for files, and can automatically match project test cases, and can synchronously manage test conclusions, thereby improving work efficiency and saving labor costs.

[0090] Further, refer to Figure 5 , a fourth embodiment of the test case management method of the present application is proposed.

[0091] The fourth embodiment of the test case management method is different from the first embodiment, the second embodiment and the third embodiment of the test case management method in that, after the step of acquiring the target test case matching the information of the item to be tested in the database based on the test requirement, the method includes:

[0092] Step S420: If a target test case matching the information of the item to be tested is not obtained in the database based on the test requirement, a request for obtaining the target test case is sent;

[0093] Step S421, obtaining the target test case based on the acquisition request, and storing it in the database.

[0094] If the test case management system fails to obtain the target test case that matches the information of the project to be tested in the database based on the test requirements, a request for obtaining the target test case is sent to the tester, wherein the request includes the test requirements of the project to be tested and the expected effect, etc. When the tester receives the request for obtaining the target test case, he writes the test case according to the request information in the request, and uploads the written test case to the test management system. When the test case is reviewed and passes and achieves the expected test results, the test case is stored in the database. Optionally, the tester can retrieve test cases similar to the target test case in the test management system, and then modify the similar test cases to form the required target test case, thereby avoiding the tester from rewriting the test case and saving the tester's time.

[0095] When a completely matching target test case is not obtained, this embodiment obtains an instruction to obtain the target test case and sends it to the tester, so that the tester can promptly feedback the corresponding target test case based on the instruction, thereby ensuring the test requirements of the project to be tested.

[0096] Further, refer to Figure 6 , a fifth embodiment of the test case management method of the present application is proposed.

[0097] The fifth embodiment of the test case management method is different from the other embodiments of the test case management method in that after the step of executing the test operation of the item to be tested based on the target test case to generate a test report, the method further comprises:

[0098] Step S53, obtaining the test result in the test report, and determining whether the test result is consistent with the preset result;

[0099] Step S54, if the test result is consistent with the preset result, storing the data corresponding to the test result in the test case table in the database;

[0100] Step S55: if the test result is inconsistent with the preset result, then record the data inconsistent with the preset result.

[0101] When the test management system completes the test operation, it will automatically obtain the test results in the test report and determine whether the test results are consistent with the preset results. Among them, each test case generates a test result, that is, it is determined whether the test results of each test case obtained are consistent with the corresponding preset results. For example, the expected result corresponding to the test case A in the project to be tested is "abc" and the actual test result obtained is "abc", which means that the current test result is consistent with the preset result; at this time, the test management system will automatically save the successful test data to the test case table in the database. If the currently obtained test result is "abcd", it means that the current test result is inconsistent with the preset result. When the test case fails, the test management system will issue a test failure notification and mark the test case that failed the test, and record the data in the test failed case that is inconsistent with the preset result, so that the tester can make modifications.

[0102] This embodiment determines whether the test result is consistent with the preset result. If it is consistent, the data corresponding to the successful test case is stored in the test case table; if it is inconsistent, the data inconsistent with the preset result is recorded. By determining whether the test result is consistent with the preset result, failed test cases can be discovered in time, thereby improving management efficiency.

[0103] In addition, the present application also provides a terminal, which includes a memory, a processor, and a test case management program stored in the memory and running on the processor. By operating new test cases, modifying test cases, batch importing test cases, test case reviews, test case storage backup, test case classification and matching management, etc. on the terminal, there is no need for testers to write test cases through Excel spreadsheets, and real-time synchronization of test cases to all relevant personnel is achieved to ensure that all personnel receive the latest and same version of the test cases; further, the terminal configures different test cases for different projects according to project requirements, and there is no need for testers to blindly search for files. When the tester tests a specific project, he only needs to select the project name, project ID and other information to automatically match the project test case, and can synchronously manage the test conclusions, thereby improving work efficiency and saving labor costs.

[0104] In addition, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the test case management method as described above are implemented.

[0105] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0106] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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 device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing 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.

[0107] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture 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.

[0108] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing 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.

[0109] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The present application may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.

[0110] Although the optional embodiments of the present application have been described, those skilled in the art, once informed of the basic creative concept, may make additional changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including optional embodiments and all changes and modifications falling within the scope of the present application.

[0111] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A test case management method, characterized in that: The method comprises: Get the update instructions for the test case; Parsing the update instruction to determine the test case to be updated and the content to be updated corresponding to the test case to be updated, and performing an update operation on the test case to be updated based on the content to be updated; Acquire the updated test case obtained by the update operation, perform a review operation on the updated test case, and store the updated test case that passes the review operation in a database; Obtaining the information of the project to be tested filled in by the user through a preset filling template, wherein the information of the project to be tested includes the project name, project requirements and project tags; Obtain the project requirements in the project information to be tested, and generate corresponding test requirements according to the project requirements, wherein the project requirements correspond to the test requirements one by one, and the project requirements include software test requirement information submitted by the user, software functional requirement documents, and expected output result information; According to the project name and the project tag in the project information to be tested, respectively matching with the use case name and the use case identifier of the test case information stored in the database, and acquiring a target test case matching the project information to be tested in the database based on the test requirements, wherein the test case information includes the use case identifier and the use case name; If a target test case matching the information of the item to be tested is not obtained in the database based on the test requirement, a request for obtaining the target test case is sent, and the target test case is obtained based on the acquisition request, and stored in the database, wherein the tester obtains an approximate test case of the target test case by retrieval, and modifies the approximate test case to form the target test case; A test operation of the item to be tested is performed based on the target test case to generate a test report.

2. The test case management method according to claim 1, characterized in that: The step of obtaining the updated test case obtained by the update operation and performing the review operation on the updated test case includes: When the updated test case is obtained, a review process for the updated test case is started; Based on the review process, a review instruction is sent to the reviewer, so that the reviewer reviews the updated test case according to the review instruction.

3. The test case management method according to claim 2, characterized in that: After the step of sending a review instruction to a reviewer based on the review process so that the reviewer reviews the updated test case according to the review instruction, the method further includes: Obtaining the updated test cases that failed the review and the review result information; The updated test case that has not passed the review and the review result information are sent to the corresponding tester, so that the tester can modify the updated test case that has not passed the review according to the review result information.

4. The test case management method according to claim 1, characterized in that: The step of executing the test operation of the item to be tested based on the target test case to generate a test report comprises: Generate a list to be tested based on the target test case, and obtain test data for each item in the list to be tested; A test operation of the item to be tested is performed based on the test data of each item to generate a test report.

5. The test case management method according to claim 1, characterized in that: After the step of executing the test operation of the item to be tested based on the target test case to generate a test report, the method further comprises: Obtain the test results in the test report, and determine whether the test results are consistent with the preset results; If the test result is consistent with the preset result, the data corresponding to the test result is stored in the test case table in the database; If the test result is inconsistent with the preset result, data inconsistent with the preset result is recorded.

6. A terminal, characterized in that: The method comprises a memory, a processor and a test case management program stored in the memory and running on the processor, wherein the processor implements the steps of the method described in any one of claims 1 to 5 when executing the test case management program.

7. A computer-readable storage medium, characterized in that: A computer program is stored thereon, characterized in that when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Method and system for testing software

    CN101661580A

  • Automated testing management method, automated testing management device, terminal equipment and storage medium

    CN107908566A