Test case snapshot generation method, device, equipment and readable storage medium

The method addresses the challenge of managing test case updates by generating snapshots through version comparison and tree establishment, reducing storage pressure and facilitating efficient historical version management.

CN114238356BActive Publication Date: 2024-12-10CCB FINTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111575457.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-21
Publication Date
2024-12-10
Estimated Expiration
2041-12-21

AI Technical Summary

Technical Problem

In the financial IT field, test cases frequently need updating due to agile development, leading to complexity and the need for managing version changes and quickly identifying snapshots of specific versions, which is not efficiently addressed by traditional methods.

Method used

A method for generating test case snapshots by sorting and comparing version information, summarizing modified field information, and establishing a version tree to efficiently manage historical versions, reducing database storage pressure.

Benefits of technology

The method reduces database storage requirements by saving only version information and changes, enabling easy management of historical test case versions and quick retrieval of snapshots.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114238356B_ABST
    Figure CN114238356B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, equipment and readable storage medium for generating a test case snapshot, which relates to the field of computer technology, including obtaining all version information of the test case; sorting and comparing all version information of the test case to obtain field information modified between adjacent versions; summarizing and processing the field information modified between adjacent versions to obtain a test case modification history record table; and obtaining a test case snapshot of all version information according to the test case modification history record table and all version information of the test case. The present invention reduces the storage pressure of the database by establishing test case snapshots and other operations, and for historical versions of the test case, the present invention only saves version information and changes between versions, so that historical version information can be easily managed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and readable storage medium for generating a test case snapshot. Background Art

[0002] Currently in the financial IT field, due to the complexity of the business, test cases often need to be updated. In addition, with the widespread use of agile development in the financial IT field, business iterations are accelerating, and the corresponding test cases are also being iteratively updated. The traditional method is to continuously create different versions of cases as the test cases are iteratively updated. In this case, we must find a way to record version change information, the differences between different versions, and quickly find a snapshot of a test case for a certain version. Summary of the invention

[0003] The purpose of the present invention is to provide a method, device, equipment and readable storage medium for generating a test case snapshot to improve the above-mentioned problem. In order to achieve the above-mentioned purpose, the technical solution adopted by the present invention is as follows:

[0004] In a first aspect, the present application provides a method for generating a test case snapshot, comprising:

[0005] Obtain all version information of the test case; sort and compare all version information of the test case to obtain field information modified between adjacent versions; summarize the field information modified between adjacent versions to obtain a test case modification history table; obtain a test case snapshot of all version information based on the test case modification history table and all version information of the test case.

[0006] Optionally, all version information of the test case is sorted and compared to obtain field information modified between adjacent versions, including:

[0007] Call the update history records in all version information of the test case; sort all version information of the test case in sequence according to the update time in the update history records from front to back to obtain a sorting table of all version information of the test case; match the update information in the update history records with adjacent versions in the sorting table of all version information of the test case to obtain field information modified between each adjacent version.

[0008] Optionally, the field information modified between the adjacent versions is aggregated to obtain a test case modification history record table, including:

[0009] Keywords are extracted from the field information modified between the adjacent versions to determine the keywords of the field information modified between the adjacent versions; preset classification tags are matched and marked according to the keywords of the field information modified between the adjacent versions to obtain the field information marked with tags; the field information marked with tags is summarized to generate a test case modification history record table.

[0010] Optionally, obtaining a test case snapshot of all version information according to the test case modification history record table and all version information of the test case includes:

[0011] Call the original version information in the test case modification history record table, where the original version information is the unmodified version information in the case modification history record table; aggregate the change information between the original version and each other version in the test case modification history record table to obtain the change set between the original version and each other version; generate a test case snapshot of all version information based on all version information of the test case and the change set between the original version and each other version.

[0012] Optionally, after generating a test case snapshot of all version information of the test case and a change set between the original version and each other version, the method further includes:

[0013] A version tree is established based on the original version information and each other version information; the original version information is used as the root node of the version tree, and each other version information is used as a child node of the version tree according to the test case modification history record table; and the test case snapshots of all version information are inserted into each node in the version tree.

[0014] Optionally, after obtaining the test case snapshot of all version information, it also includes:

[0015] Send the test case snapshot of all version information to the local database for storage to obtain snapshot saved data; send the snapshot saved data to the backup database for mirroring processing to obtain a mirror file of the snapshot saved data; set random token login information for the backup database, and send the random token login information to the administrator's communication device, and prompt the administrator that the random token login information is the random token login information of the backup database.

[0016] In a second aspect, the present application also provides a test case snapshot generation device, including:

[0017] The first acquisition unit is used to acquire all version information of the test case; the first comparison unit is used to sort and compare all version information of the test case to obtain field information modified between adjacent versions; the first aggregation unit is used to aggregate and process the field information modified between adjacent versions to obtain a test case modification history record table; the first processing unit is used to obtain a test case snapshot of all version information based on the test case modification history record table and all version information of the test case.

[0018] Optionally, the device comprises:

[0019] The first calling subunit is used to call the update history records in all version information of the test case; the first sorting subunit is used to sort all version information of the test case in sequence according to the update time in the update history records from front to back, so as to obtain a sorting table of all version information of the test case; the first matching subunit is used to match the update information in the update history records with adjacent versions in the sorting table of all version information of the test case, so as to obtain field information modified between each adjacent version.

[0020] Optionally, the device comprises:

[0021] The first extraction sub-unit is used to extract keywords from the field information modified between the adjacent versions and determine the keywords of the field information modified between the adjacent versions; the first processing sub-unit is used to match and mark the preset classification tags according to the keywords of the field information modified between the adjacent versions to obtain the field information marked with the tags; the second processing sub-unit is used to summarize the field information marked with the tags and generate a test case modification history record table.

[0022] Optionally, the device comprises:

[0023] The second calling sub-unit is used to call the original version information in the test case modification history record table, where the original version information is the unmodified version information in the case modification history record table; the third processing sub-unit is used to aggregate the change information between the original version and each other version in the test case modification history record table to obtain the change set between the original version and each other version; the fourth processing sub-unit is used to generate a test case snapshot of all version information based on all version information of the test case and the change set between the original version and each other version.

[0024] Optionally, the device further comprises:

[0025] The fifth processing sub-unit is used to establish a version tree based on the original version information and each other version information; the sixth processing sub-unit is used to use the original version information as the root node of the version tree, and use each other version information as a child node of the version tree according to the test case modification history record table; the seventh processing sub-unit is used to insert the test case snapshot of all version information into each node in the version tree.

[0026] Optionally, the device further comprises:

[0027] The second processing unit is used to send the test case snapshot of all version information to the local database for storage, and obtain the snapshot saved data; the third processing unit is used to send the snapshot saved data to the backup database for mirroring processing, and obtain the mirror file of the snapshot saved data; the first sending unit is used to set the random token login information of the backup database, and send the random token login information to the communication device of the administrator, and prompt the administrator that the random token login information is the random token login information of the backup database.

[0028] In a third aspect, the present application also provides a test case snapshot generation device, including:

[0029] Memory for storing computer programs;

[0030] A processor is used to implement the steps of the test case snapshot generation method when executing the computer program.

[0031] In a fourth aspect, the present application further provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned test case snapshot-based generation method are implemented.

[0032] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it is used to load and execute the steps of the method for generating a test case snapshot.

[0033] The beneficial effects of the present invention are:

[0034] The present invention reduces the storage pressure of the database by establishing test case snapshots and comparing and sorting the test cases. For historical versions of the test cases, the present invention only saves the version information and the changes between versions, and can easily manage the historical version information. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0036] Figure 1 A schematic diagram of a method for generating a test case snapshot according to an embodiment of the present invention;

[0037] Figure 2 It is a schematic diagram of the structure of a device for generating a test case snapshot according to an embodiment of the present invention;

[0038] Figure 3 It is a schematic diagram of the structure of a device for generating a test case snapshot according to an embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0040] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0041] Example 1

[0042] like Figure 1 As shown, this embodiment provides a method for generating a test case snapshot, and the method includes step S1, step S2, step S3 and step S4.

[0043] Step S1, obtaining all version information of the test case;

[0044] Step S2: sort and compare all version information of the test case to obtain field information modified between adjacent versions;

[0045] Step S3, summarizing the field information modified between the adjacent versions to obtain a test case modification history record table;

[0046] Step S4: Obtain a test case snapshot of all version information according to the test case modification history record table and all version information of the test case.

[0047] It can be understood that the present invention reduces the storage pressure of the database by establishing test case snapshots and comparing and sorting test cases, and for historical versions of test cases, the present invention only saves version information and changes between versions, and can easily manage historical version information.

[0048] It can be understood that the test case in the present invention is structured data used to describe information such as test steps, expected results, and test requirements during the test process.

[0049] In a specific implementation of the present disclosure, step S2 includes step S21, step S22 and step S23.

[0050] Step S21, calling the update history records in all version information of the test case;

[0051] Step S22, sorting all version information of the test case in order from front to back according to the update time in the update history record, to obtain a sorting table of all version information of the test case;

[0052] Step S23: Match the update information in the update history record with adjacent versions in the sorted table of all version information of the test case to obtain field information modified between each adjacent version.

[0053] It can be understood that the present invention determines which version is updated to which version by determining the update time and update method of different versions, wherein adjacent versions refer to the versions before the update and after the update being adjacent.

[0054] It is understandable that by sorting the version information, the update sequence between versions can be known, and then the field information modified by the updated version can be obtained.

[0055] In a specific implementation of the present disclosure, step S3 includes step S31, step S32 and step S33.

[0056] Step S31, extracting keywords from the field information modified between the adjacent versions, and determining keywords of the field information modified between the adjacent versions;

[0057] Step S32: matching and marking preset classification tags according to keywords of the field information modified between the adjacent versions to obtain the field information marked with tags;

[0058] Step S33: Summarize the field information marked with tags to generate a test case modification history record table.

[0059] It is understandable that in the above steps, one version may have multiple identical field information. The above steps are for classifying different modified field information to prevent not knowing where the modified field information is modified.

[0060] In a specific implementation of the present disclosure, step S4 includes step S41, step S42 and step S43.

[0061] Step S41, calling the original version information in the test case modification history record table, wherein the original version information is the unmodified version information in the case modification history record table;

[0062] Step S42: aggregate the change information between the original version and each other version in the test case modification history record table to obtain a set of changes between the original version and each other version;

[0063] Step S43: generating a test case snapshot of all version information based on all version information of the test case and a set of changes between the original version and each other version.

[0064] It can be understood that the present invention generates a test case snapshot through the original version and the modified field information set, thereby reducing the database storage content, which helps to reduce the storage pressure of the database.

[0065] In a specific implementation of the present disclosure, step S43 further includes step S431, step S432 and step S433.

[0066] Step S431, establishing a version tree according to the original version information and each other version information;

[0067] Step S432: taking the original version information as the root node of the version tree, and taking each other version information as a child node of the version tree according to the test case modification history record table;

[0068] Step S433: insert the test case snapshots of all version information into each node in the version tree.

[0069] It can be understood that the above steps insert the test case snapshot into the version tree, so that the version snapshot can be queried directly and quickly, and the field information modified between each version can be found.

[0070] In a specific implementation of the present disclosure, step S4 further includes step S5, step S6 and step S7.

[0071] Step S5: Send the test case snapshots of all version information to the local database for storage, and obtain snapshot storage data;

[0072] Step S6: Send the snapshot saved data to the backup database for mirroring, and obtain a mirror file of the snapshot saved data;

[0073] Step S7: setting random token login information in the backup database, sending the random token login information to the communication device of the administrator, and prompting the administrator that the random token login information is the random token login information of the backup database.

[0074] It can be understood that the above steps back up and encrypt the test cases to prevent the test cases from being lost or tampered with.

[0075] Example 2

[0076] like Figure 2 As shown, this embodiment provides a device for generating a test case snapshot, and the device includes a first acquisition unit 701 , a first comparison unit 702 , a first aggregation unit 703 and a first processing unit 704 .

[0077] The first acquisition unit 701 is used to acquire all version information of the test case;

[0078] A first comparison unit 702 is used to sort and compare all version information of the test case to obtain field information modified between adjacent versions;

[0079] The first summarizing unit 703 is used to summarize the field information modified between the adjacent versions to obtain a test case modification history table;

[0080] The first processing unit 704 is configured to obtain a test case snapshot of all version information according to the test case modification history record table and all version information of the test case.

[0081] In a specific implementation of the present disclosure, the first comparison unit 702 includes a first calling subunit 7021 , a first sorting subunit 7022 and a first matching subunit 7023 .

[0082] The first calling subunit 7021 is used to call the update history records in all version information of the test case;

[0083] The first sorting subunit 7022 is used to sort all the version information of the test case in order from the beginning to the end according to the update time in the update history record, so as to obtain a sorting table of all the version information of the test case;

[0084] The first matching subunit 7023 is used to match the update information in the update history record with adjacent versions in the sorted table of all version information of the test case to obtain field information modified between each adjacent version.

[0085] In a specific implementation of the present disclosure, the first aggregation unit 703 includes a first extraction subunit 7031 , a first processing subunit 7032 , and a second processing subunit 7033 .

[0086] The first extraction subunit 7031 is used to extract keywords from the field information modified between the adjacent versions, and determine keywords of the field information modified between the adjacent versions;

[0087] The first processing subunit 7032 is used to match and mark preset classification tags according to keywords of the field information modified between the adjacent versions to obtain the field information marked with tags;

[0088] The second processing sub-unit 7033 is used to summarize the field information marked with tags and generate a test case modification history record table.

[0089] In a specific implementation of the present disclosure, the first processing unit 704 includes a second calling subunit 7041 , a third processing subunit 7042 and a fourth processing subunit 7043 .

[0090] The second calling subunit 7041 is used to call the original version information in the test case modification history record table, where the original version information is the version information in the case modification history record table that has not been modified;

[0091] The third processing subunit 7042 is used to collect the change information between the original version and each other version in the test case modification history record table to obtain a change set between the original version and each other version;

[0092] The fourth processing subunit 7043 is configured to generate a test case snapshot of all version information according to all version information of the test case and a change set between the original version and each other version.

[0093] In a specific embodiment of the present disclosure, the fourth processing sub-unit 7043 further includes a fifth processing sub-unit 70431 , a sixth processing sub-unit 70432 and a seventh processing sub-unit 70433 .

[0094] The fifth processing sub-unit 70431 is used to establish a version tree according to the original version information and each other version information;

[0095] The sixth processing sub-unit 70432 is configured to use the original version information as the root node of the version tree, and use each other version information as a child node of the version tree according to the test case modification history record table;

[0096] The seventh processing sub-unit 70433 is used to insert the test case snapshot of all version information into each node in the version tree.

[0097] In a specific implementation of the present disclosure, the first processing unit 704 further includes a second processing unit 705 , a third processing unit 706 and a first sending unit 707 .

[0098] The second processing unit 705 is used to send the test case snapshots of all version information to the local database for storage, and obtain snapshot storage data;

[0099] The third processing unit 706 is used to send the snapshot saved data to the backup database for mirroring, and obtain a mirror file of the snapshot saved data;

[0100] The first sending unit 707 is used to set random token login information for the backup database, send the random token login information to the communication device of the administrator, and prompt the administrator that the random token login information is the random token login information of the backup database.

[0101] It should be noted that, regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.

[0102] Example 3

[0103] Corresponding to the above method embodiment, this embodiment further provides a device for generating a test case snapshot. The device for generating a test case snapshot described below and the method for generating a test case snapshot described above can refer to each other.

[0104] Figure 3 FIG. 8 is a block diagram of a test case snapshot generating device 800 according to an exemplary embodiment. Figure 3As shown, the test case snapshot generating device 800 may include: a processor 801 and a memory 802. The test case snapshot generating device 800 may also include one or more of a multimedia component 803, an I / O interface 804, and a communication component 805.

[0105] The processor 801 is used to control the overall operation of the test case snapshot generation device 800 to complete all or part of the steps in the test case snapshot generation method described above. The memory 802 is used to store various types of data to support the operation of the test case snapshot generation device 800, and these data may include, for example, instructions for any application or method operating on the test case snapshot generation device 800, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 802 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or optical disk. The multimedia component 803 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 802 or sent via the communication component 805. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 804 provides an interface between the processor 801 and other interface modules, and the above-mentioned other interface modules can be keyboards, mice, buttons, etc. These buttons can be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the test case snapshot generation device 800 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication component 805 can include: Wi-Fi module, Bluetooth module, NFC module.

[0106] In an exemplary embodiment, the test case snapshot generation device 800 can be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit, referred to as ASIC), digital signal processors (Digital Signal Processor, referred to as DSP), digital signal processing devices (Digital Signal Processing Device, referred to as DSPD), programmable logic devices (Programmable Logic Device, referred to as PLD), field programmable gate arrays (Field Programmable Gate Array, referred to as FPGA), controllers, microcontrollers, microprocessors or other electronic components, and is used to execute the above-mentioned test case snapshot generation method.

[0107] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the test case snapshot generation method described above are implemented. For example, the computer-readable storage medium may be the memory 802 including the program instructions described above, and the program instructions may be executed by the processor 801 of the test case snapshot generation device 800 to complete the test case snapshot generation method described above.

[0108] Example 4

[0109] Corresponding to the above method embodiment, this embodiment further provides a readable storage medium. The readable storage medium described below and the method for generating a test case snapshot described above can refer to each other.

[0110] A readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for generating a test case snapshot of the above method embodiment.

[0111] The readable storage medium may specifically be a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or other readable storage medium that can store program codes.

[0112] Example 5

[0113] Based on the same principle as the method provided in the embodiment of the present application, the embodiment of the present application further provides a computer program product, the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for generating a test case snapshot provided in any optional embodiment of the present application.

[0114] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

[0115] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for generating a test case snapshot, characterized in that: include: Get all version information of test cases; All version information of the test case is sorted and compared to obtain field information modified between adjacent versions, including: Calling the update history records in all version information of the test case; Sorting all version information of the test case in sequence according to the update time in the update history record from front to back to obtain a sorting table of all version information of the test case; Matching the update information in the update history record with adjacent versions in the sorted table of all version information of the test case to obtain field information modified between each adjacent version; Summarizing and processing the field information modified between the adjacent versions to obtain a test case modification history record table, including: extracting keywords from the field information modified between the adjacent versions to determine keywords for the field information modified between the adjacent versions; Matching and marking preset classification tags according to keywords of the field information modified between the adjacent versions to obtain the field information marked with the tags; Summarize the field information marked with the tag to generate a test case modification history table; According to the test case modification history record table and all version information of the test case, a test case snapshot of all version information is obtained, including: calling the original version information in the test case modification history record table, wherein the original version information is the unmodified version information in the case modification history record table; Collecting the change information between the original version and each other version in the test case modification history record table to obtain a change set between the original version and each other version; A test case snapshot of all version information generated based on all version information of the test case and a change set between the original version and each other version.

2. The method for generating a test case snapshot according to claim 1, characterized in that: After the test case snapshot of all version information of the test case and all version information generated by the change set between the original version and each other version, it also includes: Establish a version tree according to the original version information and each other version information; The original version information is used as the root node of the version tree, and each other version information is used as a child node of the version tree according to the test case modification history record table; Insert the test case snapshots of all version information into each node in the version tree.

3. The method for generating a test case snapshot according to claim 1, characterized in that: After getting the test case snapshot of all version information, it also includes; Send the test case snapshots of all version information to the local database for storage, and obtain snapshot storage data; Sending the snapshot saved data to a backup database for mirroring to obtain a mirror file of the snapshot saved data; The backup database is set with random token login information, and the random token login information is sent to the communication device of the administrator, and the administrator is prompted that the random token login information is the random token login information of the backup database.

4. A device for generating a test case snapshot, characterized in that: include: A first acquisition unit, used to acquire all version information of the test case; A first comparison unit, used to sort and compare all version information of the test case to obtain field information modified between adjacent versions; A first calling subunit is used to call the update history records in all version information of the test case; A first sorting subunit is used to sort all the version information of the test case in order from front to back according to the update time in the update history record, so as to obtain a sorting table of all the version information of the test case; A first matching subunit is used to match the update information in the update history record with adjacent versions in the sorted table of all version information of the test case to obtain field information modified between each adjacent version; A first summarizing unit is used to summarize the field information modified between the adjacent versions to obtain a test case modification history table; A first extraction subunit is used to extract keywords from the field information modified between the adjacent versions, and determine keywords of the field information modified between the adjacent versions; A first processing subunit is used to match and mark preset classification tags according to keywords of the field information modified between the adjacent versions to obtain the field information marked with tags; A second processing sub-unit is used to summarize the field information marked with the tag to generate a test case modification history record table; A first processing unit, configured to obtain a test case snapshot of all version information according to the test case modification history record table and all version information of the test case; The second calling subunit is used to call the original version information in the test case modification history record table, where the original version information is the unmodified version information in the case modification history record table; The third processing sub-unit is used to collect the change information between the original version and each other version in the test case modification history record table to obtain a change set between the original version and each other version; The fourth processing subunit is configured to generate a test case snapshot of all version information according to all version information of the test case and a set of changes between the original version and each other version.

5. The test case snapshot generating device according to claim 4, characterized in that: The device also includes: A fifth processing subunit, configured to establish a version tree according to the original version information and each other version information; A sixth processing sub-unit, configured to use the original version information as a root node of the version tree, and use each other version information as a child node of the version tree according to the test case modification history record table; The seventh processing subunit is used to insert the test case snapshot of all version information into each node in the version tree.

6. The test case snapshot generating device according to claim 4, characterized in that: The device also includes: A second processing unit is used to send the test case snapshots of all version information to a local database for storage, and obtain snapshot storage data; A third processing unit is used to send the snapshot saved data to the backup database for mirroring processing to obtain a mirror file of the snapshot saved data; The first sending unit is used to set random token login information for the backup database, send the random token login information to the communication device of the administrator, and prompt the administrator that the random token login information is the random token login information of the backup database.

7. A test case snapshot generation device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the method for generating a test case snapshot as claimed in any one of claims 1 to 3 when executing the computer program.

8. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for generating a test case snapshot according to any one of claims 1 to 3 are implemented.

9. A computer program product, characterized in that The computer program product comprises a computer program, which is used to load and execute the steps of the method for generating a test case snapshot according to any one of claims 1 to 3 when executed by a processor.