Batch operation testing method, device, electronic equipment and storage medium
By generating test cases based on historical test data and using test job templates, the problems in COBOL language batch testing are solved, and cases do not support direct calls, data does not support reuse, and test processes do not support reuse, and automated batch job testing is realized. Improves testing efficiency and reduces costs.
Patent Information
- Application Number
- CN202110590048.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-28
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2041-05-28
AI Technical Summary
The batch testing of the existing COBOL language cannot achieve continuous integration and automation, resulting in low testing efficiency and high cost. The main problem is that cases do not support direct calls, data does not support reuse, and test processes do not support reuse.
By generating test cases based on pre-set case comparison information and historical test data, generating test jobs using test job templates, and recording test logs when executing batch job tests are triggered to achieve automated batch job tests.
It effectively improves the efficiency of batch program testing, saves batch testing costs, and realizes multiple executions of automated tests and the accumulation and management of test data.
Smart Images

Figure CN113204490B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence, and in particular to a batch job testing method, device, electronic equipment and storage medium. Background Art
[0002] At present, large traditional banks in China generally use IBM mainframes (mainframes) and the coding language used is COBOL (Common Business-Oriented Language). COBOL is a process-oriented high-level programming language, mainly used for data processing. It is one of the preferred languages for commercial computing, with the characteristics of being easy to understand and large in computation. In actual work, COBOL's powerful computing function is most often used to process various online and batch functions such as complex logical operations.
[0003] When developers finish writing a COBOL program, they need to verify the program results on a mainframe (host), that is, to perform case testing. However, the currently written cases do not support direct calls, and data does not support reuse. Test data must be prepared manually for each case, and the test data will become invalid after use. In addition, the test process does not support reuse, all of which make it impossible to achieve continuous integration of testing and automation of batch testing, which in turn leads to low efficiency and high cost of batch program testing. Summary of the invention
[0004] In view of this, the present invention provides a batch operation testing method, device, electronic device and storage medium to solve at least one of the above-mentioned problems.
[0005] According to a first aspect of the present invention, a batch job testing method is provided, the method comprising:
[0006] Generate a test case for the job to be tested based on preset case comparison information and backup information corresponding to the job to be tested, wherein the backup information includes: historical test data;
[0007] According to the test case, a test job is generated based on a preset test job template;
[0008] In response to triggering the batch job test, the test operation is performed according to the preset test execution time of each job to be tested, and the corresponding test log is recorded according to the test operation process of each job to be tested.
[0009] According to a second aspect of the present invention, there is provided a batch job testing device, the device comprising:
[0010] A test case generating unit, configured to generate a test case for the job to be tested based on preset case comparison information and backup information corresponding to the job to be tested, wherein the backup information includes: historical test data;
[0011] A test job generating unit, configured to generate a test job according to the test case and based on a preset test job template;
[0012] A test unit, used for executing batch job tests in response to a trigger, and performing test operations according to a preset test execution time of each job to be tested;
[0013] The log recording unit is used to record the corresponding test log according to the test operation process of each job to be tested.
[0014] According to a third aspect of the present invention, there is provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the program.
[0015] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0016] It can be seen from the above technical solution that a test case for the job to be tested is generated based on the historical test data and case comparison information corresponding to the job to be tested, and then a test job is generated based on the test case and the test job template. When the batch job test is triggered, the test operation is performed according to the pre-set test execution time of each job to be tested, and the corresponding test log is recorded according to the test operation process of each job to be tested. In this way, automated batch job testing can be achieved. Compared with the existing technology, it can effectively improve the efficiency of batch program testing and save batch testing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 is a flow chart of a batch job testing method according to an embodiment of the present invention;
[0019] Figure 2 is a schematic diagram of a test job template according to an embodiment of the present invention;
[0020] Figure 3is a schematic diagram of a process flow of a batch test operation according to an embodiment of the present invention;
[0021] Figure 4 is a structural block diagram of a batch job testing device according to an embodiment of the present invention;
[0022] Figure 5 It is a schematic block diagram of the system structure of the electronic device 600 according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] At present, case testing based on COBOL language cannot achieve continuous integration of testing and automation of batch testing, which leads to low efficiency and high cost of batch testing. Specifically, case batch testing based on COBOL language has the following problems:
[0025] 1. Cases do not support direct calls
[0026] The writing of test cases for each version of the host batch is heavy, and the cases are highly descriptive and have great guiding value. The cases in Excel format do not support direct calls. From the perspective of automated testing, we must find a form of test case that can clearly show the test branches and support direct calls.
[0027] 2. Data does not support reuse
[0028] Testers prepare test cases one by one according to the test cases, and constantly enrich and modify the test data during the test process. Test data for each case needs to be prepared manually, and the test data will be invalid once it is used up. As a result, a large amount of test data needs to be prepared for each test, and the data is not accumulated. If the test data can be saved every time, it can lay the foundation for multiple executions of each case.
[0029] 3. The test process does not support reuse
[0030] Currently, batch testing is generally performed by manually submitting test jobs to verify program logic functions. Another form is to use upstream to prepare test data and use TWS to batch verify the business logic of long processes. Technical verification is combined with business verification. Both are one-time verification processes and cannot be reused. Among them, TWS large-scale execution meets the requirements of multiple rounds of testing, but the cycle is too long and the opportunities are limited. If a mechanism for automatic case execution can be designed, the test process can be reused many times.
[0031] Based on the above reasons, an embodiment of the present invention provides a batch job testing solution, which saves test data and uses the test data as execution cases to compile test jobs to support automatic multiple executions, thereby effectively improving batch program testing efficiency and saving batch testing costs. The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0032] Figure 1 is a flow chart of a batch job testing method according to an embodiment of the present invention. Figure 1 As shown, the method includes:
[0033] Step 101 : generating a test case for the job to be tested based on preset case comparison information and backup information corresponding to the job to be tested, wherein the backup information includes: historical test data.
[0034] In actual operation, in response to executing the host table recovery operation, a test case of the job to be tested is generated based on the case comparison information (for example, which may exist in the form of a table) and the backup information.
[0035] Step 102: Generate a test job according to the test case and based on a preset test job template.
[0036] Step 103 , in response to triggering the batch job test execution, executing the test operation according to the preset test execution time of each job to be tested, and recording the corresponding test log according to the test operation process of each job to be tested.
[0037] By generating a test case for the job to be tested based on the historical test data and case comparison information corresponding to the job to be tested, and then generating a test job based on the test case and the test job template, when the batch job test is triggered, the test operation is performed according to the pre-set test execution time of each job to be tested, and the corresponding test log is recorded according to the test operation process of each job to be tested. In this way, automated batch job testing can be achieved. Compared with the existing technology, it can effectively improve the efficiency of batch program testing and save batch testing costs.
[0038] In step 101, the generated test case also includes current test data. To facilitate subsequent batch job testing, the test case can be saved in the form of test data, that is, saved as corresponding backup information.
[0039] In actual operation, before triggering the batch job test in step 103, a trigger program (or called an opening job) may be set according to a predetermined rule, wherein the trigger program indicates the batch test start time and the test execution time of each job to be tested.
[0040] The predetermined rule here may be a rule determined based on actual tests, and the present invention is not limited to this.
[0041] In one embodiment, the backup information further includes: historical test operation results.
[0042] After step 103 is completed, a test verification operation can be performed based on the test operation results of the job to be tested and the historical test operation results in the backup information. In this way, it can be determined whether the test data of this automated test is consistent with the historical test data. If they are inconsistent, an alarm can be issued to facilitate processing by the staff.
[0043] In order to better understand the present invention, the following takes the batch job test based on COBOL language as an example to describe the embodiment of the present invention in detail.
[0044] In this embodiment, an automated testing method for implementing COBOL batch jobs is constructed. The method can configure the use case information in the case comparison table (corresponding to the above-mentioned case comparison information) shown in Table 1 below, and realize the functions of scheduled running of test jobs, automatic data recovery of jobs, automatic running of COBOL batch functions, automatic verification of test results, and automatic recording of test execution.
[0045] The method specifically includes the following four steps:
[0046] Step 1, write a case according to the case comparison table shown in Table 1. The case comparison table is used to define the data source table used by each tested program, and uniquely identify a test data through the index of the data source table. The case comparison table can be a general table, and each field is set based on different jobs, such as case number, whether to execute SQL (Structured Query Language), etc.
[0047]
[0048] Table 1
[0049] Step 2, obtain the test data backup table (corresponding to the above backup information) that corresponds to the data source table name of the COBOL program being tested, save the specific test data, and use it to store the test case in the form of test data in the future. One piece of test data corresponds to one test scenario.
[0050] Step 3, based on the pre-set common test job template, complete the recovery of test data from the test data table to the data source table, read the test file data, and complete the call execution of the job to be tested, execution result comparison, and execution log recording.
[0051] The test operation template here may use an existing test operation template, and the present invention does not limit this.
[0052] Step 4: Based on the COBOL program functions and branch functions being tested, corresponding test data are formulated and saved in the test data backup table and case comparison table.
[0053] An example is given below.
[0054] In this example, the version needs to verify the test of the newly added COBOL program A. The data source tables of program A are tables D, E, and F. The functional logic of program A includes two test cases:
[0055] Test case 1: If the data in table D meets the conditions of test case 1, update table D;
[0056] Test case 2: When the data in table D meets the conditions of test case 2, update tables E and F.
[0057] The following is the automated testing process:
[0058] Step 1: According to the three source tables D, E, and F involved in program A, create corresponding test data backup tables D1, E1, and F1. The backup table structure is consistent with the source data table. Import the data prepared for verification test case 1 and test case 2 into D1, E1, and F1 for saving, and use it to backup the prepared data for test case 1 and test case 2 later.
[0059] Step 2: Prepare a case comparison table, and match the data prepared in step 1 with the test case number one by one. That is, find the data in table D that meets test case 1, for example, the unique key is JCSEQNO (application number) is 2002165360000032, PDCODE (product code) is 80020000501, and insert the relevant case information into the case comparison table.
[0060] Step 3: Write a test job according to the test job template. Figure 2 This is a schematic diagram of a test job template. Figure 2 As shown, the test job template includes:
[0061] 1. Back up the host files (optional if necessary, this step is optional for files involved in the tested job)
[0062] Back up the hosts file that the program needs to read to the test directory.
[0063] 2. Copy the test file (optional if necessary, this step is optional for files involved in the tested job)
[0064] Copy the prepared test data file to be consistent with the source file structure.
[0065] 3. Host table recovery
[0066] This step is implemented by the public program, which reads the test case set in the case comparison table, including: test job name, table name, environment name, test table name, test table environment name, data unique key and key value, deletion flag, etc. to locate the table that needs to be restored in the job, and read the test data from the test table to the source data table. That is, in this case, the data of the D1, E1, and F1 backup tables are restored to the D, E, and F tables, and the deletion flag in the table can be used to confirm whether to delete the data with the same primary key of the source data table, or delete the data of the test table.
[0067] 4. Host operation
[0068] Call the tested job during the test job.
[0069] 5. Test log registration
[0070] Register the test log and record the test case number, test job name, tested job name and other information as job running information, which can be used for data analysis and statistics of test case coverage later.
[0071] 6. Restore host files (optional if necessary, this step is optional for files involved in the tested job)
[0072] If so, restore the host file backed up in the first step to the source host file.
[0073] 7. Test verification
[0074] Compare the test results. After the above steps, you can compare the data before and after. The data before the program runs exists in the test data backup table, and the data after the program runs exists in the source data table. You can write a comparison SQL and add it to the last step of the test job to verify the test data. In the case of unsuccessful verification, such as test case 1 should update table D, but updates tables E and F, an alarm can be issued and the cause of the problem can be confirmed through manual intervention.
[0075] 8. Collect to test operation library
[0076] Set the automatic running time, Figure 3 The flowchart of batch test operation is as follows: Figure 3 As shown, each test job can be called through the opening job. In actual operation, it is also necessary to confirm whether a 911 fault will occur if each job step DEL (deletes) or INS (writes) the same table at the same time, that is, a resource locking fault.
[0077] From the above description, we can see that the batch job testing method based on COBOL language has the following advantages:
[0078] 1. It can be automatically executed multiple times, achieving the purpose of automated testing. It can be used for continuous integration and saves repeated testing work.
[0079] 2. The completeness of the test data can be reviewed intuitively and conveniently.
[0080] 3. Centralized and unified management of test data. After the accumulation of various versions, the test data for a batch of functions will become more and more complete, and can be used directly in both the development process and the testing process.
[0081] 4. Test operations are centrally managed and open to everyone. Developers and testers can check out tests anytime and anywhere.
[0082] 5. Test execution logs are traceable.
[0083] 6. It is easy to promote various applications. You only need to prepare data according to requirements and compile test jobs for automatic execution.
[0084] Based on similar inventive concepts, an embodiment of the present invention further provides a batch job testing device, which can preferably be used to implement the process in the above method embodiment.
[0085] Figure 4 This is the structural diagram of the batch operation test device, such as Figure 4 As shown, the device includes: a test case generation unit 1, a test job generation unit 2, a test unit 3 and a log recording unit 4, wherein:
[0086] The test case generating unit 1 is used to generate a test case for the job to be tested based on preset case comparison information and backup information corresponding to the job to be tested, wherein the backup information includes: historical test data.
[0087] Specifically, in response to executing the host table recovery operation, the test case generating unit 1 generates a test case of the job to be tested based on the case comparison information and the backup information.
[0088] The test job generating unit 2 is used to generate a test job according to the test case and based on a preset test job template.
[0089] The testing unit 3 is used to execute the batch job test in response to the trigger, and to perform the test operation according to the preset test execution time of each job to be tested.
[0090] The log recording unit 4 is used to record the corresponding test log according to the test operation process of each job to be tested.
[0091] The test case generation unit 1 generates a test case for the job to be tested based on the historical test data and case comparison information corresponding to the job to be tested. Then the test job generation unit 2 generates a test job according to the test case and the test job template. When the batch job test is triggered, the test unit 3 performs the test operation according to the pre-set test execution time of each job to be tested. The log recording unit 4 records the corresponding test log according to the test operation process of each job to be tested. In this way, automated batch job testing can be achieved. Compared with the existing technology, it can effectively improve the efficiency of batch program testing and save batch testing costs.
[0092] In actual operation, the above device also includes: a trigger program setting unit, which is used to set a trigger program (ie, the above-mentioned opening operation) according to a predetermined rule, and the trigger program indicates the batch test start time and the test execution time of each job to be tested.
[0093] The test case generated by the test case generating unit 1 includes: test data.
[0094] The above device also includes: a storage unit, which is used to save the test case in the form of test data.
[0095] The above backup information also includes: historical test operation results.
[0096] The device further comprises: a test verification unit, configured to perform a test verification operation according to the test operation result of the job to be tested and the historical test operation result.
[0097] The specific execution process of each of the above units can be found in the description of the above method embodiment, which will not be repeated here.
[0098] In actual operation, the above-mentioned units may be provided in combination or individually, and the present invention is not limited thereto.
[0099] This embodiment also provides an electronic device, which can be a desktop computer, a tablet computer, a mobile terminal, etc., but this embodiment is not limited thereto. In this embodiment, the electronic device can be implemented with reference to the above method embodiment and the batch operation test device embodiment, the contents of which are incorporated herein, and the repeated parts are not repeated.
[0100] Figure 5 FIG. 6 is a schematic block diagram of a system structure of an electronic device 600 according to an embodiment of the present invention. Figure 5 As shown, the electronic device 600 may include a central processor 100 and a memory 140; the memory 140 is coupled to the central processor 100. It should be noted that this figure is exemplary; other types of structures may also be used to supplement or replace this structure to implement telecommunication functions or other functions.
[0101] In one embodiment, the batch job test function may be integrated into the central processing unit 100. The central processing unit 100 may be configured to perform the following control:
[0102] Step 101 : generating a test case for the job to be tested based on preset case comparison information and backup information corresponding to the job to be tested, wherein the backup information includes: historical test data.
[0103] Step 102: Generate a test job according to the test case and based on a preset test job template.
[0104] Step 103 , in response to triggering the batch job test execution, executing the test operation according to the preset test execution time of each job to be tested, and recording the corresponding test log according to the test operation process of each job to be tested.
[0105] From the above description, it can be seen that the electronic device provided in the embodiment of the present application generates a test case for the job to be tested based on the historical test data and case comparison information corresponding to the job to be tested, and then generates a test job based on the test case and the test job template. When the batch job test is triggered, the test operation is performed according to the pre-set test execution time of each job to be tested, and the corresponding test log is recorded according to the test operation process of each job to be tested. In this way, automated batch job testing can be implemented. Compared with the existing technology, it can effectively improve the efficiency of batch program testing and save batch testing costs.
[0106] In another embodiment, the batch operation test device may be configured separately from the central processor 100. For example, the batch operation test device may be configured as a chip connected to the central processor 100, and the batch operation test function is implemented under the control of the central processor.
[0107] like Figure 5As shown, the electronic device 600 may further include: a communication module 110, an input unit 120, an audio processing unit 130, a display 160, and a power supply 170. It is worth noting that the electronic device 600 does not necessarily have to include Figure 5 In addition, the electronic device 600 may also include Figure 5 For components not shown, reference may be made to the prior art.
[0108] like Figure 5 As shown, the central processor 100 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor devices and / or logic devices. The central processor 100 receives inputs and controls the operations of various components of the electronic device 600.
[0109] The memory 140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices. The above-mentioned information related to the failure may be stored, and a program for executing the relevant information may also be stored. The CPU 100 may execute the program stored in the memory 140 to implement information storage or processing.
[0110] The input unit 120 provides input to the CPU 100. The input unit 120 is, for example, a key or a touch input device. The power supply 170 is used to provide power to the electronic device 600. The display 160 is used to display display objects such as images and text. The display may be, for example, an LCD display, but is not limited thereto.
[0111] The memory 140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), a SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased, and is provided with more data, examples of which are sometimes referred to as EPROMs, etc. The memory 140 may also be some other type of device. The memory 140 includes a buffer memory 141 (sometimes referred to as a buffer). The memory 140 may include an application / function storage unit 142, which is used to store application programs and function programs or processes for executing the operation of the electronic device 600 through the central processor 100.
[0112] The memory 140 may also include a data storage unit 143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 144 of the memory 140 may include various drivers for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).
[0113] The communication module 110 is a transmitter / receiver 110 that transmits and receives signals via an antenna 111. The communication module (transmitter / receiver) 110 is coupled to the central processor 100 to provide input signals and receive output signals, which may be the same as the case of a conventional mobile communication terminal.
[0114] Based on different communication technologies, multiple communication modules 110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module and / or a wireless LAN module. The communication module (transmitter / receiver) 110 is also coupled to a speaker 131 and a microphone 132 via an audio processor 130 to provide an audio output via the speaker 131 and receive an audio input from the microphone 132, thereby realizing a common telecommunication function. The audio processor 130 may include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 130 is also coupled to the central processor 100, so that the sound can be recorded on the local machine through the microphone 132, and the sound stored on the local machine can be played through the speaker 131.
[0115] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned batch job testing method are implemented.
[0116] To sum up, in order to effectively improve the efficiency of batch program testing, save batch testing costs, and promote the level of batch program self-testing, the embodiment of the present invention has formulated a test data preservation plan, using test data as execution cases, and compiling test jobs to support automatic multiple executions. Based on the current status of the testing environment, without increasing the workload of testers, the development tool job realizes the functions of batch automatic data recovery, automatic execution, and automatic verification of test results.
[0117] The preferred embodiments of the present invention are described above with reference to the accompanying drawings. Many features and advantages of these embodiments are clear from this detailed description, and therefore the claims are intended to cover all such features and advantages of these embodiments that fall within their true spirit and scope. In addition, since many modifications and changes are easily conceivable to those skilled in the art, it is not intended to limit the embodiments of the present invention to the precise structure and operation illustrated and described, but all suitable modifications and equivalents falling within its scope may be covered.
[0118] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0119] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0120] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0121] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0122] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A batch job testing method, characterized in that: The method comprises: In response to executing the host table recovery operation, a test case of the job to be tested is generated based on pre-set case comparison information and backup information corresponding to the job to be tested, wherein the backup information includes: historical test data; According to the test case, a test job is generated based on a preset test job template; In response to triggering the batch job test, the test operation is performed according to the preset test execution time of each job to be tested, and the corresponding test log is recorded according to the test operation process of each job to be tested; The backup information also includes: historical test operation results. After recording the test log according to the test operation process, the method further includes: Perform a test verification operation according to the test operation result of the job to be tested and the historical test operation result; The performing a test verification operation according to the test operation result of the job to be tested and the historical test operation result includes: Determine whether the test data of this automated test is consistent with the historical test data. If not, issue an alarm to facilitate staff processing.
2. The method according to claim 1, characterized in that: Before triggering the batch job test, the method further includes: A triggering program is set according to a predetermined rule, wherein the triggering program indicates a batch test start time and a test execution time of each job to be tested.
3. The method according to claim 1, characterized in that The test case includes: test data, and the method further includes: The test case is saved in the form of test data.
4. The method according to claim 3, characterized in that Generating a test case for the job to be tested based on the preset case comparison information and the backup information corresponding to the job to be tested includes: In response to executing the host table recovery operation, a test case of the job to be tested is generated based on the case comparison information and the backup information.
5. A batch operation testing device, characterized in that: The device comprises: A test case generating unit, configured to generate a test case for the job to be tested based on preset case comparison information and backup information corresponding to the job to be tested, wherein the backup information includes: historical test data; A test job generating unit, configured to generate a test job according to the test case and based on a preset test job template; A test unit, used for executing batch job tests in response to a trigger, and performing test operations according to a preset test execution time of each job to be tested; A log recording unit, used to record corresponding test logs according to the test operation process of each job to be tested; The backup information also includes: historical test operation results, and the device also includes: A test verification unit, used to perform a test verification operation according to the test operation result of the job to be tested and the historical test operation result; The performing a test verification operation according to the test operation result of the job to be tested and the historical test operation result includes: Determine whether the test data of this automated test is consistent with the historical test data. If not, issue an alarm to facilitate staff processing.
6. The device according to claim 5, characterized in that The device also includes: The trigger program setting unit is used to set the trigger program according to a predetermined rule, wherein the trigger program indicates the batch test start time and the test execution time of each job to be tested.
7. The device according to claim 5, characterized in that The test case includes: test data, and the device also includes: The storage unit is used to store the test case in the form of test data.
8. The device according to claim 7, characterized in that The test case generation unit is specifically used for: In response to executing the host table recovery operation, a test case of the job to be tested is generated based on the case comparison information and the backup information.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 4 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
