CN112069073A - Test case management method, terminal and storage medium - Google Patents

Test case management method, terminal and storage medium Download PDF

Info

Publication number
CN112069073A
CN112069073A CN202010933235.1A CN202010933235A CN112069073A CN 112069073 A CN112069073 A CN 112069073A CN 202010933235 A CN202010933235 A CN 202010933235A CN 112069073 A CN112069073 A CN 112069073A
Authority
CN
China
Prior art keywords
test
test case
updated
tested
audit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010933235.1A
Other languages
Chinese (zh)
Inventor
董飞洋
程志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202010933235.1A priority Critical patent/CN112069073A/en
Publication of CN112069073A publication Critical patent/CN112069073A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a management method, a terminal and a storage medium of a test case, wherein the method comprises the following steps: acquiring an updating instruction of a test case; determining a test case to be updated and content to be updated corresponding to the test case to be updated according to the updating instruction, and executing an updating operation on the test case to be updated based on the content to be updated; and acquiring the updated test case obtained by the updating operation, executing the auditing operation of the updated test case, and storing the updated test case passing the auditing operation into a database. The problems that the existing test cases are not managed completely, so that the test cases are not covered completely, a plurality of different test case versions exist simultaneously, and information is disordered are solved, and the updated and audited test cases are stored in the database in time, so that the management efficiency of the test cases is improved, and the time and cost of testers are saved.

Description

Test case management method, terminal and storage medium
Technical Field
The present application relates to the field of test technologies, and in particular, to a method, a terminal, and a storage medium for managing test cases.
Background
With the development of science and technology, various fields are rapidly developed, no matter in any industry, new functions are more and more, and for testers, not only are functional items increased, but also test cases are increased, and even thousands of cases are used. However, at present, the management of test cases still remains in manual operation of excel forms, manual backup and the like, and after the test cases are changed such as newly added, deleted, modified and the like, updated information cannot be synchronized to all related personnel in time, so that the problems of incomplete test case coverage, simultaneous existence of a plurality of different test case versions and information confusion are caused.
Disclosure of Invention
The embodiment of the application aims to solve the problems of incomplete test case coverage, simultaneous existence of a plurality of different test case versions and information confusion caused by incomplete management of the conventional test case.
In order to achieve the above object, an aspect of the present application provides a method for managing test cases, where the method for managing test cases includes the following steps:
acquiring an updating instruction of a test case;
determining a test case to be updated and content to be updated corresponding to the test case to be updated according to the updating instruction, and executing an updating operation on the test case to be updated based on the content to be updated;
and acquiring the updated test case obtained by the updating operation, executing the auditing operation of the updated test case, and storing the updated test case passing the auditing operation into a database.
Optionally, the step of obtaining the updated test case obtained by the update operation, and executing an audit operation of the updated test case, includes:
when the updated test case is obtained, starting an auditing process of the updated test case;
and sending an auditing instruction to an auditor based on the auditing process so that the auditor can audit the updated test case according to the auditing instruction.
Optionally, after the step of sending an audit instruction to an auditor based on the audit process, so that the auditor performs an audit on the updated test case according to the audit instruction, the method includes:
acquiring the updated test cases which do not pass the examination and the examination result information;
and sending the updated test case which does not pass the audit and the result information of the audit to corresponding testers so that the testers can modify the updated test case which does not pass the audit according to the result information of the audit.
Optionally, after the step of obtaining the updated test case obtained by the update operation, executing an audit operation of the updated test case, and storing the updated test case passing through the audit operation in a database, the method includes:
acquiring information of items to be tested, and acquiring a target test case matched with the information of the items to be tested in the database, wherein the target test case is an updated and approved test case which is stored in the database in advance;
and executing the test operation of the item to be tested based on the target test case to generate a test report.
Optionally, the step of obtaining the item information to be tested and obtaining the target test case matched with the item information to be tested in the database includes:
acquiring a project requirement in the to-be-tested project information, and generating a corresponding test requirement according to the project requirement;
and acquiring a target test case matched with the to-be-tested project information in the database based on the test requirement.
Optionally, after the step of obtaining the target test case matched with the information of the item to be tested in the database based on the test requirement, the method includes:
if a target test case matched with the to-be-tested item information is not obtained in the database based on the test requirement, sending an obtaining request of the target test case;
and acquiring the target test case based on the acquisition request, and storing the target test case in the database.
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:
generating a to-be-tested list based on the target test case, and acquiring test data of each item in the to-be-tested list;
and executing the test operation of the item to be tested based on the test data of each item to generate a test report.
Optionally, after the step of executing a test operation of the item to be tested based on the target test case to generate a test report, the method includes:
obtaining a test result in the test report, and judging whether the test result is consistent with a preset result;
if the test result is consistent with the preset result, storing the data corresponding to the test result into a test case table in the database;
and if the test result is inconsistent with the preset result, recording data inconsistent with the preset result.
In addition, in order to achieve the above object, another aspect of the present application further provides a terminal, where the terminal includes a memory, a processor, and a management program of a test case stored in the memory and running on the processor, and the processor implements the steps of the method for managing the test case when executing the management program of the test case.
In addition, to achieve the above object, another aspect of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the method for managing test cases as described above.
In this embodiment, by obtaining the update instruction of the test case, the update operation is performed on the test case to be updated according to the update instruction, the updated test case is further subjected to an audit operation, and the updated test case that passes the audit is stored in the database. The updated and approved test cases are timely stored in the database, so that the test cases acquired by the user in the database are the latest version. Therefore, the problems of incomplete test case coverage, simultaneous existence of a plurality of different test case versions and disordered information caused by incomplete management of the conventional test case are solved, the management efficiency of the test case is improved, and the time and the cost of a tester are saved.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a first embodiment of a test case management method according to the present application;
FIG. 3 is a flowchart illustrating a second embodiment of a test case management method according to the present application;
FIG. 4 is a flowchart illustrating a third embodiment of a test case management method according to the present application;
FIG. 5 is a flowchart illustrating a fourth embodiment of a test case management method according to the present application;
FIG. 6 is a flowchart illustrating a fifth embodiment of a test case management method according to the present application;
fig. 7 is a schematic flowchart of a process of acquiring an updated test case obtained by the updating operation and executing an auditing operation of the updated test case in the test case management method of the present application;
fig. 8 is a schematic flow chart of a target test case which is obtained by obtaining information of items to be tested and matched with the information of the items to be tested in the management method of the test case of the present application;
fig. 9 is a schematic flowchart of a process of executing a test operation of a to-be-tested item based on the target test case to generate a test report in the test case management method of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The main solution of the embodiment of the application is as follows: acquiring an updating instruction of a test case; determining a test case to be updated and content to be updated corresponding to the test case to be updated according to the updating instruction, and executing an updating operation on the test case to be updated based on the content to be updated; and acquiring the updated test case obtained by the updating operation, executing the auditing operation of the updated test case, and storing the updated test case passing the auditing operation into a database.
At present, the management of test cases still remains in manual operation of excel tables, manual backup and the like, and after the test cases are subjected to changes such as addition, deletion, modification and the like, updated information cannot be synchronized to all related personnel in time, so that the problems of incomplete test case coverage, simultaneous existence of a plurality of different test case versions and disordered information are caused. According to the method and the device, the updating instruction of the test case is obtained, the updating operation is carried out on the test case to be updated according to the updating instruction, the updated test case is further subjected to verification operation, and the updated test case which passes the verification is stored in the database. The updated and approved test cases are timely stored in the database, so that the test cases obtained by the user in the database are the latest version. Therefore, the problems of incomplete test case coverage, simultaneous existence of a plurality of different test case versions and disordered information caused by incomplete management of the conventional test case are solved, the management efficiency of the test case is improved, and the time and the cost of a tester are saved.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present application.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective 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, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, a remote controller, an audio circuit, a WiFi module, a detector, and the like. Of course, the terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer and a temperature sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 does not constitute a limitation of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a management program of test cases.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call a hypervisor of the test cases stored in the memory 1005, and perform the following operations:
acquiring an updating instruction of a test case;
determining a test case to be updated and content to be updated corresponding to the test case to be updated according to the updating instruction, and executing an updating operation on the test case to be updated based on the content to be updated;
and acquiring the updated test case obtained by the updating operation, executing the auditing operation of the updated test case, and storing the updated test case passing the auditing operation into a database.
Referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of a test case management method according to the present application.
The embodiments of the present application provide an embodiment of a method for managing test cases, and it should be noted that, although a logical order is shown in a flowchart, in some cases, the steps shown or described may be performed in an order different from that here.
The management method of the test case comprises the following steps:
step S10, acquiring an updating instruction of the test case;
during the life cycle of the software product, from the first new creation to the final offline of the product, during this period, a large number of test cases are generated in the database of the test cases, and due to the test requirements or test management and other reasons, the test cases in the database need to be updated, and before the update operation is executed, the update instruction of the test cases needs to be acquired. For example: based on the change of the test item requirements, the test cases in the database also need to be modified, deleted, added, or re-imported correspondingly, i.e. modification instructions, deletion instructions, addition instructions, import instructions, and the like of the test cases need to be obtained correspondingly. Further, because the test cases in the database correspond to different test items, and each test item includes a plurality of test cases, for example, taking an APP test as an example, in the development process of the APP, test cases such as a regression test case, a UI test case, an interface test case, and a critical path test case need to be used. However, the test cases used by the APP may also be required to be used in other test projects, such as development test projects of a payment platform; because the test cases in the database are many and different in type, the classification management instruction of the test cases needs to be acquired, and the test cases in the database are subjected to classification management based on the classification management instruction. The test case is a type of document which is important in the test process, is the core of test work, is a group of input and output standards during test, is a specific contrast of software requirements, and can find errors in a program by running the test case.
Step S20, determining a test case to be updated and content to be updated corresponding to the test case to be updated according to the updating instruction, and executing updating operation on the test case to be updated based on the content to be updated;
because the types and the number of the test cases in the database are large, when the update instruction of the test case is obtained, the update instruction needs to be analyzed to determine the test case to be updated and the content to be updated corresponding to the test case to be updated, and further, the update operation is executed on the test case to be updated based on the content to be updated. For example: if the modification instruction of the UI test case in the payment platform page is currently acquired, it needs to be determined which payment platform UI test case is modified based on the modification instruction, and what is modified is what content. If the balance display field is added to the display interface of the WeChat payment platform based on the modification instruction, a UI test case corresponding to the testing item of the WeChat payment platform needs to be searched in the database, and a code of the balance display field is added to the UI test case to complete the modification operation of the UI test case.
Step S30, obtaining the updated test case obtained by the updating operation, executing an auditing operation of the updated test case, and storing the updated test case that passes the auditing operation in a database.
The test case management system acquires an updated test case obtained by updating operation, executes the auditing operation of the updated test case, and stores the updated test case passing the auditing operation into a database; the updated test case refers to a test case obtained after conventional updating operations such as writing of a new case, modification of the test case, deletion of the test case, import of the test case, export of the test case and the like are completed. In order to ensure the accuracy and the validity of the updated test case, an auditing operation is required to be performed on the updated test case, wherein the auditing operation refers to that an auditor performs actual test inspection on the updated test case. Specifically, the updated test case is used for testing at least one object to be tested for multiple times, the test accuracy of the updated test case is counted according to the test results of the multiple tests, and if the test accuracy reaches a set threshold value, the current updated test case is marked as an effective test case. For example: if the updated test case is used for testing the problem of screen flashing of the mobile terminal, the updated test case can be used for testing the screen flashing case event of the mobile terminal for multiple times, and if the screen flashing phenomenon does not occur in the mobile terminal after the user starts up and operates, the test result is recorded as pass verification or correct; if the screen flashing phenomenon occurs on the mobile terminal, the test result is recorded as not-approved or error. And further acquiring that the test result is an updated test case which passes the audit or is correct, and storing the updated test case into a database. It should be noted that, if the test accuracy of the updated test case after multiple tests is 98%, the set threshold is 95%, and the test accuracy is higher than the set threshold, the updated test case is an effective test case.
Further, referring to fig. 7, the step of obtaining the updated test case obtained by the updating operation, and executing the auditing operation of the updated test case includes:
step S31, when the updated test case is obtained, opening the auditing flow of the updated test case;
and step S32, sending an audit instruction to an auditor based on the audit process, so that the auditor can audit the updated test case according to the audit instruction.
When the test case management system obtains the updated test case, an auditing process of the updated test case is initiated, and an auditing instruction is further sent to each auditor according to the auditing process, so that the auditor can audit the updated test case according to the received auditing instruction. The auditors comprise auditors related to a test group leader, a product manager, a development designer and the like, and meanwhile, the auditors can also perform peer audit, group audit, department audit, third party audit and the like. Specifically, when detecting an updated test case, the test management system initiates an audit process of the test case, and automatically sends an audit instruction to each auditor, where the audit instruction may be sent by an email or by a short message and needs to be accompanied by a related document of the test case. After receiving the audit command, the auditor performs verification operations on the updated test case, for example, whether the structural arrangement of the test case design is clear and reasonable, whether the requirement is covered efficiently, whether the priority arrangement is reasonable, whether all the function points on the test requirement are covered, whether the test case has good performability, and the like are judged. And after the audit is finished, generating a corresponding audit report, and uploading the audit report to a test management system, wherein the audit report comprises audit basis, audit result, relevant information of an auditor, test case modification information and the like.
In this embodiment, by obtaining the update instruction of the test case, the update operation is performed on the test case to be updated according to the update instruction, the updated test case is further subjected to an audit operation, and the updated test case that passes the audit is stored in the database. The updated and approved test cases are timely stored in the database, so that the test cases acquired by the user in the database are the latest version. Therefore, the problems of incomplete test case coverage, simultaneous existence of a plurality of different test case versions and disordered information caused by incomplete management of the conventional test case are solved, the management efficiency of the test case is improved, and the time and the cost of a tester are saved.
Further, referring to fig. 3, a second embodiment of the management method of the test case of the present application is provided.
The second embodiment of the test case management method is different from the first embodiment of the test case management method in that, after the step of sending an audit instruction to an auditor based on the audit process so that the auditor audits the updated test case according to the audit instruction, the method includes:
step S320, obtaining the updated test case which does not pass the examination and the examination result information;
step S321, sending the updated test case that fails to pass the audit and the result information of the audit to a corresponding tester, so that the tester modifies the updated test case that fails to pass the audit according to the result information of the audit.
When the test case management system obtains the updated test case which does not pass the examination, further obtaining corresponding examination result information, sending a modification instruction of the test case to a tester, and sending the updated test case which does not pass the examination and the examination result information to the corresponding tester; the test personnel are users who update the test cases in the test management system. And after receiving the modification instruction, the tester modifies the updated test case which does not pass the examination again according to the examination result information. For example, when the currently obtained communication connection test case does not pass the verification, a tester updated correspondingly to the communication connection test case is further obtained, and a modification instruction and verification result information are sent to the tester; and if the tester obtains the result information of the audit that the communication connection test case can not successfully test whether the communication connection of the mobile phone is successful, the communication connection test case needs to be modified.
According to the embodiment, the test cases which do not pass the examination and verification are sent to the tester again to be modified, so that the effectiveness and the accuracy of the test cases are guaranteed.
Further, referring to fig. 4, a third embodiment of the management method of the test case of the present application is provided.
The third embodiment of the test case management method is different from the first embodiment and the second embodiment of the test case management method in that, after the steps of obtaining the updated test case obtained by the update operation, executing the audit operation of the updated test case, and storing the updated test case passing the audit operation in a database, the method comprises:
step S40, acquiring information of items to be tested, and acquiring a target test case matched with the information of the items to be tested in the database, wherein the target test case is an updated and approved test case stored in the database in advance;
software products in a test project can be put into use only after being tested and the performance of the software products is verified, and test cases meeting test requirements need to be selected according to different test requirements. Therefore, when the information of the item to be tested is obtained, a target test case matched with the information of the item to be tested needs to be obtained in the database; the to-be-tested project information comprises a project name, a project identifier, a software version, a storage path and the like; the target test case is an updated and approved test case which is stored in a database in advance. Specifically, a filling template of test item information is set in the test management system, and a user fills relevant information of an item to be tested, such as an item name, an item mark, an item requirement, an item attribute, an item label and the like, in the filling template; further acquiring information of items to be tested from the filling template, and matching the information of the items to be tested with test case information stored in a database, wherein the test case information comprises: example identification, example name, test purpose, test level, reference information, test environment, preconditions, test steps, expected results, designers, etc. For example, the project name and the project mark in the to-be-tested project information can be respectively matched with the case name and the case mark in the test case information, so that a test case, namely a target test case, matched with the to-be-tested project information is obtained. Optionally, if a plurality of similar test cases are matched based on the matching operation, sending selection information of the test cases to a user, or selecting a test case with the highest test level or the latest update time from the plurality of test cases.
Further, referring to fig. 8, the step of obtaining the information of the item to be tested and obtaining the target test case matched with the information of the item to be tested in the database includes:
step S41, acquiring the project requirements in the project information to be tested, and generating corresponding test requirements according to the project requirements;
and step S42, acquiring a target test case matched with the to-be-tested project information in the database based on the test requirement.
Acquiring project requirements in the project information, and generating corresponding test requirements according to the project requirements; the project requirements comprise software testing requirement information submitted by a user, a software function requirement document and result information expected to be output. Specifically, the user needs to provide the necessary information in a filling template in the test case management system according to the system prompt, and other detailed requirement information is contained in the software test requirement information document. Wherein each document includes a plurality of test tasks, such as: the item to be tested is the test of the mobile phone APP, and the test task is as follows: local data can be browsed without a network; when the client has a new version, an update prompt is given; the method comprises the following steps that a place with positioning service and camera service needs to be subjected to switching test of a foreground and a background, and whether application is normal is checked; checking whether the push message is sent according to a specified business rule, and the like. And further generating corresponding test requirements according to the project requirements of the project to be tested, wherein the test requirements correspond to the project requirements one by one so as to facilitate the identification of the test case management system. And acquiring a target test case matched with the information of the item to be tested in the database based on the test requirement, such as acquiring the matched test case in the database according to the name of the item.
And step S50, executing the test operation of the item to be tested based on the target test case to generate a test report.
Acquiring a target test case, executing test operation on the item to be tested based on the target test case, and generating a test report based on the test operation; specifically, if 10 test cases corresponding to the item to be tested are currently obtained, the 10 test cases need to be run once respectively, so that the item to be tested needs to be run for 10 test operations. For example, the 10 test cases include 3 connection tests, 2 interface tests, and 5 firewall tests, and when the test is executed, the test operation of each test case is executed in sequence according to the built-in test sequence. Further, obtaining a test report obtained after each test operation is executed, and storing the test report generated by the same test content to the same position, for example, establishing different folders aiming at different test contents in advance, wherein the folders are used for storing the test report obtained by the test operation; wherein, the test report documents the test content in a table or other forms. Optionally, the test report may generate a hyperlink form, and when the hyperlink is clicked, the test content may be entered into a table or other form document, where the test content recorded in the test report includes each step of the test and the time consumed by each test step, the total time consumed by each test step, the execution condition of each step, the test method, the name of the tester, the number of tests, and the like.
Further, referring to fig. 9, 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:
step S51, generating a list to be tested based on the target test case, and acquiring test data of each item in the list to be tested;
step S52, executing the test operation of the item to be tested based on the test data of each item to generate a test report.
When determining a target test case corresponding to a to-be-tested item, the test case management system generates a to-be-tested list according to the target test case, further obtains test data of each item in the to-be-tested list, executes test operation of the to-be-tested item based on the test data of each item, and generates a corresponding test report. Because the content of the item to be tested, which needs to be tested, includes many contents, the corresponding matched target test case may include a plurality of cases. Specifically, taking testing a mobile phone APP as an example, when testing the mobile phone APP, the content to be tested includes: the method comprises the following steps of installing and uninstalling tests, function case tests, user experience tests, updating and upgrading tests, database design tests and the like, wherein each test content comprises different test requirements, and the different test requirements are required to be recorded in a table form to generate a list to be tested; all test requirements in the items to be tested can be read in the list to be tested, and each test requirement is matched with a corresponding test case. For example, the database design test comprises general addition, deletion, modification and search tests; when the service needs to retrieve the data from the server and store the data in the client, whether the client can store the data in the local area or not is judged; after the data is modified and deleted by the service, whether the client and the server have corresponding test requirements such as updating and the like is determined. When the test operation is executed, the list to be tested is traversed from beginning to end to obtain the test data of each item, the test operation of the item to be tested is further executed according to the test data of each item, for example, the test step in the test data is obtained, and the test operation of each step is executed according to the test step, wherein the test data of each item can be tested for multiple times. And recording the test result corresponding to each item of test data, and generating a corresponding test report.
In the embodiment, a test report is generated by acquiring a project requirement in a project to be tested, generating a corresponding test requirement according to the project requirement, acquiring a target test case matched with the test requirement, and further executing a test operation according to a list to be tested generated by the target test case. Different test cases are configured for different projects based on project requirements, a tester does not need to blindly search files, automatic matching of project test cases is achieved, test conclusions can be synchronously managed, working efficiency is improved, and labor cost is saved.
Further, referring to fig. 5, a fourth embodiment of the management method of the test case of the present application is provided.
The fourth embodiment of the test case management method is different from the first, second, and third embodiments of the test case management method in that, after the step of obtaining the target test case matching with the information of the item to be tested in the database based on the test requirement, the method includes:
step S420, if a target test case matched with the to-be-tested item information is not obtained in the database based on the test requirement, sending an obtaining request of the target test case;
step S421, acquiring the target test case based on the acquisition request, and storing the target test case in the database.
And if the test case management system does not acquire the target test case matched with the information of the item to be tested in the database based on the test requirement, sending an acquisition request of the target test case to a tester, wherein the acquisition request comprises the test requirement of the item to be tested, the expected effect and the like. When receiving an acquisition request of a target test case, a tester compiles the test case according to request information in the acquisition request, uploads the compiled test case to a test management system, and when the test case passes the audit and reaches an expected test result, the tester stores the test case to a database. Optionally, the tester can search the test case similar to the target test case in the test management system, and modify the similar test case to form the required target test case, so that the tester is prevented from rewriting the test case, and the time of the tester is saved.
In this embodiment, when a completely matched target test case is not obtained, an obtaining instruction for sending the target test case to a tester is obtained, so that the tester can timely feed back the corresponding target test case based on the obtaining instruction, and the test requirements of the item to be tested are ensured.
Further, referring to fig. 6, a fifth embodiment of the test case management method of the present application is provided.
The fifth embodiment of the method for managing test cases is different from the other embodiments of the method for managing test cases in that, after the step of executing the test operation of the item to be tested based on the target test case to generate the test report, the method for managing test cases includes:
step S53, obtaining the test result in the test report, and judging whether the test result is consistent with a preset result;
step S54, if the test result is consistent with the preset result, storing the data corresponding to the test result into a test case table in the database;
and step S55, if the test result is inconsistent with the preset result, recording data inconsistent with the preset result.
When the test management system finishes the test operation, the test management system can automatically acquire the test result in the test report and judge whether the test result is consistent with the preset result. And respectively judging whether the obtained test result of each test case is consistent with the corresponding preset result. For example, if the expected result corresponding to the test case a in the item to be tested is "abc", the actually obtained test result is "abc", which indicates 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', the current test result is inconsistent with the preset result, the test management system sends a test failure notification and marks the test case with the test failure when the test case fails, and records data inconsistent with the preset result in the test case with the test failure, so that a tester can modify the data conveniently.
The embodiment judges whether the test result is consistent with the preset result, and if so, stores the data corresponding to the successful test case in the test case table; and if the data are inconsistent with the preset result, recording the data inconsistent with the preset result. By judging whether the test result is consistent with the preset result or not, the failed test case can be found in time, and the management efficiency is improved.
In addition, the application also provides a terminal which comprises a memory, a processor and a management program of the test cases, wherein the management program of the test cases is stored in the memory and runs on the processor, and the terminal does not need testers to compile the test cases through excel forms by operating newly added test cases, modifying the test cases, leading in the test cases in batches, reviewing the test cases, warehousing and backing up the test cases, classifying and matching the test cases and the like, so that the test cases are synchronously updated to all relevant personnel in real time, and the test cases taken by all the personnel are guaranteed to be the latest same version; furthermore, the terminal configures different test cases for different projects according to project requirements, a tester does not need to search files blindly, when the tester tests a specific project, the tester only needs to select information such as the project name, the project identification and the like to automatically match the project test cases, test conclusions can be synchronously managed, the working efficiency is improved, and the labor cost is saved.
In addition, the present application also provides a computer readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the management method of the test case are implemented.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While alternative embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following appended claims be interpreted as including alternative embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such 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 intended to include such modifications and variations as well.

Claims (10)

1. A management method for test cases is characterized in that the method comprises the following steps:
acquiring an updating instruction of a test case;
determining a test case to be updated and content to be updated corresponding to the test case to be updated according to the updating instruction, and executing an updating operation on the test case to be updated based on the content to be updated;
and acquiring the updated test case obtained by the updating operation, executing the auditing operation of the updated test case, and storing the updated test case passing the auditing operation into a database.
2. The method according to claim 1, wherein the step of obtaining the updated test case obtained by the update operation and executing the audit operation of the updated test case includes:
when the updated test case is obtained, starting an auditing process of the updated test case;
and sending an auditing instruction to an auditor based on the auditing process so that the auditor can audit the updated test case according to the auditing instruction.
3. The method for managing the test cases according to claim 2, wherein the step of sending an audit instruction to an auditor based on the audit flow so that the auditor performs the audit on the updated test cases according to the audit instruction includes:
acquiring the updated test cases which do not pass the examination and the examination result information;
and sending the updated test case which does not pass the audit and the result information of the audit to corresponding testers so that the testers can modify the updated test case which does not pass the audit according to the result information of the audit.
4. The method according to claim 1, wherein after the steps of 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 passes the audit operation in a database, the method comprises:
acquiring information of items to be tested, and acquiring a target test case matched with the information of the items to be tested in the database, wherein the target test case is an updated and approved test case which is stored in the database in advance;
and executing the test operation of the item to be tested based on the target test case to generate a test report.
5. The method for managing test cases according to claim 4, wherein the step of obtaining the information of the items to be tested and obtaining the target test case matched with the information of the items to be tested in the database comprises:
acquiring a project requirement in the to-be-tested project information, and generating a corresponding test requirement according to the project requirement;
and acquiring a target test case matched with the to-be-tested project information in the database based on the test requirement.
6. The method for managing test cases according to claim 5, wherein the step of obtaining the target test case matching the information of the item to be tested in the database based on the test requirement includes:
if a target test case matched with the to-be-tested item information is not obtained in the database based on the test requirement, sending an obtaining request of the target test case;
and acquiring the target test case based on the acquisition request, and storing the target test case in the database.
7. The method for managing test cases according to claim 3, wherein the step of executing a test operation of a to-be-tested item based on the target test case to generate a test report includes:
generating a to-be-tested list based on the target test case, and acquiring test data of each item in the to-be-tested list;
and executing the test operation of the item to be tested based on the test data of each item to generate a test report.
8. The method for managing test cases according to claim 3, wherein after the step of executing the test operation of the item to be tested based on the target test case to generate the test report, the method comprises:
obtaining a test result in the test report, and judging whether the test result is consistent with a preset result;
if the test result is consistent with the preset result, storing the data corresponding to the test result into a test case table in the database;
and if the test result is inconsistent with the preset result, recording data inconsistent with the preset result.
9. A terminal comprising a memory, a processor and a hypervisor of test cases stored on the memory and running on the processor, the processor implementing the steps of the method of any of claims 1 to 8 when executing the hypervisor of test cases.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN202010933235.1A 2020-09-07 2020-09-07 Test case management method, terminal and storage medium Pending CN112069073A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010933235.1A CN112069073A (en) 2020-09-07 2020-09-07 Test case management method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010933235.1A CN112069073A (en) 2020-09-07 2020-09-07 Test case management method, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN112069073A true CN112069073A (en) 2020-12-11

Family

ID=73664189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010933235.1A Pending CN112069073A (en) 2020-09-07 2020-09-07 Test case management method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112069073A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783760A (en) * 2020-12-22 2021-05-11 深圳前海微众银行股份有限公司 Test case processing method and device and storage medium
CN113806362A (en) * 2021-08-23 2021-12-17 网易(杭州)网络有限公司 Test record information generation method and device, computer equipment and storage medium
CN114374534A (en) * 2021-12-08 2022-04-19 山石网科通信技术股份有限公司 Test sample set updating method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661580A (en) * 2009-07-22 2010-03-03 中国农业银行股份有限公司 Method and system for testing software
CN103313289A (en) * 2012-03-09 2013-09-18 腾讯科技(深圳)有限公司 Wap system automatic test system and method
CN107908566A (en) * 2017-11-27 2018-04-13 平安科技(深圳)有限公司 Automatic test management method, device, terminal device and storage medium
CN108038052A (en) * 2017-11-27 2018-05-15 平安科技(深圳)有限公司 Automatic test management method, device, terminal device and storage medium
CN109359039A (en) * 2018-09-30 2019-02-19 福建星瑞格软件有限公司 A method of promoting Sahi automatic test efficiency
WO2019218444A1 (en) * 2018-05-14 2019-11-21 平安科技(深圳)有限公司 Test report generating method, apparatus and device, and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661580A (en) * 2009-07-22 2010-03-03 中国农业银行股份有限公司 Method and system for testing software
CN103313289A (en) * 2012-03-09 2013-09-18 腾讯科技(深圳)有限公司 Wap system automatic test system and method
CN107908566A (en) * 2017-11-27 2018-04-13 平安科技(深圳)有限公司 Automatic test management method, device, terminal device and storage medium
CN108038052A (en) * 2017-11-27 2018-05-15 平安科技(深圳)有限公司 Automatic test management method, device, terminal device and storage medium
WO2019218444A1 (en) * 2018-05-14 2019-11-21 平安科技(深圳)有限公司 Test report generating method, apparatus and device, and storage medium
CN109359039A (en) * 2018-09-30 2019-02-19 福建星瑞格软件有限公司 A method of promoting Sahi automatic test efficiency

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783760A (en) * 2020-12-22 2021-05-11 深圳前海微众银行股份有限公司 Test case processing method and device and storage medium
CN112783760B (en) * 2020-12-22 2024-05-28 深圳前海微众银行股份有限公司 Processing method and device for test cases and storage medium
CN113806362A (en) * 2021-08-23 2021-12-17 网易(杭州)网络有限公司 Test record information generation method and device, computer equipment and storage medium
CN114374534A (en) * 2021-12-08 2022-04-19 山石网科通信技术股份有限公司 Test sample set updating method and device and electronic equipment
CN114374534B (en) * 2021-12-08 2024-04-02 山石网科通信技术股份有限公司 Test sample set updating method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN110413506B (en) Test case recommendation method, device, equipment and storage medium
US10565097B2 (en) Orchestrating and providing a regression test
US11366747B2 (en) Unified test automation system
US10733078B2 (en) System and method of handling complex experiments in a distributed system
US8954930B2 (en) System and method for reducing test effort by object risk analysis
US9703692B2 (en) Development supporting system
CN112069073A (en) Test case management method, terminal and storage medium
US20080120601A1 (en) Information processing apparatus, method and program for deciding priority of test case to be carried out in regression test background of the invention
CN113127347B (en) Interface testing method, device, equipment and readable storage medium
CN109840194B (en) Method and system for detecting configuration file
CN110554962A (en) Regression testing process covering method, server and computer readable storage medium
CN112241360A (en) Test case generation method, device, equipment and storage medium
CN113448862B (en) Software version testing method and device and computer equipment
CN111694612A (en) Configuration checking method, device, computer system and storage medium
CN114996127A (en) Intelligent test method and system for solid state disk firmware module
CN115617780A (en) Data import method, device, equipment and storage medium
CN111159028B (en) Webpage testing method and device
CN109508203B (en) Method, device and system for determining version consistency
CN115168217A (en) Defect discovery method and device for source code file
CN114637688A (en) Coverage rate statistical method and device based on version branches
CN113656318A (en) Software version testing method and device and computer equipment
CN109558153B (en) Method, device and system for determining version consistency
CN113326193A (en) Applet testing method and device
US20160275002A1 (en) Image capture in application lifecycle management for documentation and support
KR100775102B1 (en) Quality test result estimate system of platform based application on embedded device and method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination