Batch job testing method and device, equipment and storage medium

Through automated batch job testing methods, initial parameter files are obtained from the database, batch jobs are determined based on configuration information, and processed in a designated environment, which solves the problem of low testing efficiency in the existing technology and realizes efficient batch job testing and Accurate result output.

CN118939551APending Publication Date: 2024-11-12CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411059054.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In the prior art, testers need to spend a lot of time preparing data and checking test results during regression testing batch operations, resulting in low efficiency in batch operations.

Method used

By obtaining the user's initial parameter file from the database, determining batch jobs based on preset configuration information, and processing batch jobs in the specified environment, automatically comparing the test results with the expected results, outputting prompts of passing or not passing, reducing manual preparation and Check the time.

Benefits of technology

Improve batch operation testing efficiency, avoid manual errors, and ensure the accuracy of test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939551A_ABST
    Figure CN118939551A_ABST
Patent Text Reader

Abstract

The invention provides a batch job testing method and device, equipment and a storage medium, and relates to the field of data processing, and the method comprises the steps: obtaining an initial parameter file of each user from a database; obtaining test data corresponding to the users from the initial parameter files according to preset configuration information, and determining corresponding batch jobs according to the test data; in response to a trigger operation of a tester on the test starting device, generating a starting instruction so as to execute the following steps: calling a specified environment according to a preset configuration file, and processing batch jobs in the specified environment to obtain a test result; comparing a test result with an expected result; if the test result is consistent with the expected result, outputting a prompt that the batch job test is passed; and if the test result is inconsistent with the expected result, outputting a prompt that the batch job test is not passed, so that the batch job test efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a batch job testing method, device, equipment and storage medium. Background Art

[0002] Batch job testing is a testing method for data processing, mainly used in computer host application processing mode. It involves the process of accessing, calculating, classifying, analyzing and summarizing a large amount of data, and finally outputting a large number of business analysis reports.

[0003] In the prior art, the traditional batch job testing method mainly relies on testers to prepare input data and check output results to determine the test results of the batch jobs.

[0004] However, in the prior art, when regression testing of batch jobs is required, testers need to spend a lot of time preparing data and checking test results, which makes the batch job testing efficiency low. Summary of the invention

[0005] The present application provides a batch job testing method, apparatus, device and storage medium to solve the problem that when regression testing of batch jobs is required, testers need to spend a lot of time preparing data and checking test results, resulting in low batch job testing efficiency.

[0006] In a first aspect, the present application provides a batch job testing method, applied to a computer device, comprising:

[0007] Get each user's initial parameter file from the database;

[0008] Acquire each test data corresponding to each user from each initial parameter file according to preset configuration information, and determine a corresponding batch job according to each test data;

[0009] In response to the tester's triggering operation on the test initiation device, a start instruction is generated to execute the following steps:

[0010] Calling a specified environment according to a preset configuration file, and processing the batch job in the specified environment to obtain a test result;

[0011] comparing the test results with expected results;

[0012] If the test result is consistent with the expected result, a prompt is outputted indicating that the batch job test has passed; if the test result is inconsistent with the expected result, a prompt is outputted indicating that the batch job test has failed.

[0013] In a possible design, determining the corresponding batch job according to each test data includes: performing data embedding processing on each test data to obtain each embedded test data; and determining each embedded test data as the batch job.

[0014] In one possible design, processing the batch job in the specified environment to obtain the test result includes: calling the batch job in the specified environment, and changing the test data after each embedding in the batch job to obtain each changed test data; and determining each changed test data as the test result.

[0015] In a possible design, the expected result is the test data; accordingly, the test result is compared with the expected result, including: comparing the test result with the test data; accordingly, if the test result is consistent with the expected result, a prompt is output that the batch job test has passed; if the test result is inconsistent with the expected result, a prompt is output that the batch job test has failed, including: if the corresponding test values ​​in the test result are consistent with the test data, a prompt is output that the batch job test has passed; if the corresponding test values ​​in the test result are inconsistent with the test data, a prompt is output that the batch job test has failed.

[0016] In a possible design, the expected result is an expected value; accordingly, the test result is compared with the expected result, including: a control result check script extracts a value to be checked from the test result, and compares the value to be checked with the expected value; accordingly, if the test result is consistent with the expected result, a prompt that the batch job test has passed is output; if the test result is inconsistent with the expected result, a prompt that the batch job test has failed is output, including: if the value to be checked is consistent with the expected value, a prompt that the batch job test has passed is output; if the value to be checked is inconsistent with the expected value, a prompt that the batch job test has failed is output.

[0017] In a possible design, after outputting a prompt that the batch job test failed if the test result is inconsistent with the expected result, it also includes: generating a retest instruction in response to a tester's triggering operation on a retest device; re-executing the steps of "obtaining an initial parameter file for each user from a database; obtaining each test data corresponding to each user from the initial parameter file according to preset configuration information, and determining a corresponding batch job according to each test data; generating a start instruction in response to a tester's triggering operation on a test start device to execute the following steps: calling a specified environment according to a preset configuration file, and processing the batch job in the specified environment to obtain a test result; comparing the test result with the expected result; if the test result is consistent with the expected result, outputting a prompt that the batch job test passed; if the test result is inconsistent with the expected result, outputting a prompt that the batch job test failed" according to the retest instruction.

[0018] In a second aspect, the present application provides a batch job testing device, applied to a computer device, comprising:

[0019] The acquisition module is used to obtain the initial parameter file of each user from the database;

[0020] A determination module, used for obtaining each test data corresponding to each user from each initial parameter file according to preset configuration information, and determining a corresponding batch job according to each test data;

[0021] The first generating module is used to generate a start instruction in response to a tester's triggering operation on the test start device to execute the following steps:

[0022] A processing module, used for calling a specified environment according to a preset configuration file, and processing the batch job in the specified environment to obtain a test result;

[0023] A comparison module, used for comparing the test result with the expected result;

[0024] The output module is used to output a prompt that the batch job test has passed if the test result is consistent with the expected result; and to output a prompt that the batch job test has failed if the test result is inconsistent with the expected result.

[0025] In a third aspect, the present application provides a computer device, comprising: at least one processor and a memory;

[0026] The memory stores computer-executable instructions;

[0027] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the batch job testing method described in the first aspect and various possible designs of the first aspect.

[0028] In a fourth aspect, the present application provides a computer storage medium storing computer execution instructions. When a processor executes the computer execution instructions, the batch job testing method described in the first aspect and various possible designs of the first aspect is implemented.

[0029] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the batch job testing method described in the first aspect and various possible designs of the first aspect.

[0030] The batch job testing method, device, equipment and storage medium provided by the present application obtain the initial parameter file of each user from the database; obtain the test data corresponding to each user from each initial parameter file according to the preset configuration information, and determine the corresponding batch job; generate a startup instruction in response to the test personnel's triggering operation on the test startup device to execute the following steps: process the batch job in the called specified job environment to obtain the test result; compare the test result with the expected result; if the test result is consistent with the expected result, output a prompt that the batch job test passed; if not, output a prompt that the batch job test failed. Batch job testing no longer requires test personnel to spend time preparing data and checking test results, thereby improving the efficiency of batch job testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0032] Figure 1 A schematic diagram of an application scenario of the batch job testing method provided in an embodiment of the present application;

[0033] Figure 2 Schematic diagram of the batch job testing method provided in the embodiment of the present application Figure 1 ;

[0034] Figure 3 Schematic diagram of the batch job testing method provided in the embodiment of the present application Figure 2 ;

[0035] Figure 4A schematic diagram of the structure of a batch operation testing device provided in an embodiment of the present application;

[0036] Figure 5 A schematic diagram of the hardware structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0038] In the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of financial data or user data and other information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals. It should be noted that in the embodiments of this application, some existing solutions in the industry such as certain software, components, models, etc. may be mentioned, and they should be considered as exemplary. Their purpose is only to illustrate the feasibility of the implementation of the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.

[0039] Since batch jobs are often required to be run in computer systems to achieve preset functions, and the accuracy of batch jobs will also affect the corresponding preset functions, it is extremely important to test batch jobs. Among them, batch job testing is a testing method for data processing processes, which is mainly used in computer host application processing modes. It involves the process of accessing, calculating, classifying, analyzing and summarizing a large amount of data, and finally outputting a large number of business analysis reports. In the prior art, the traditional batch job testing method mainly requires testers to prepare input data and check output results to determine the test results of batch jobs. However, in the prior art, when regression testing of batch jobs is required, testers need to spend more time preparing data and checking test results, which makes the batch job testing efficiency low.

[0040] In order to solve the above technical problems, the embodiments of the present application propose the following technical concepts: Taking into account the low efficiency of batch job testing, the inventor determines the batch job based on each test data, uses a specified environment to process the batch job to obtain test results, and compares the test results with the expected results to output prompts for whether the batch job test passed or failed, so that the batch job test does not require testers to spend too much time preparing data and checking test results, thereby improving the efficiency of batch job testing.

[0041] Figure 1 It is a schematic diagram of an application scenario of the batch job testing method provided in an embodiment of the present application.

[0042] like Figure 1 As shown, the scene includes: a display terminal 101 and a computer device 102.

[0043] The display terminal 101 may be a display screen or a terminal such as a personal computer.

[0044] The computer device 102 may be an independent device or a cluster consisting of multiple devices.

[0045] The display terminal 101 obtains the initial parameter file of each user from the database according to the process configuration of the operator, and transmits the initial parameter file to the computer device 102 through the wireless network. The computer device 102 obtains each test data corresponding to each user from the initial parameter file according to the preset configuration information, and determines the corresponding batch job according to each test data, and generates a start instruction in response to the tester's triggering operation on the test start device on the computer device 102 to perform the following steps: calling the specified environment according to the preset configuration file, and processing the batch job in the specified environment to obtain the test result, and comparing the test result with the expected result to output a prompt of whether the batch job test passed or failed.

[0046] Figure 2 Schematic diagram of the batch job testing method provided in the embodiment of the present application Figure 1 , the execution subject of this embodiment can be Figure 1 The computer device in the embodiment shown is not particularly limited in this embodiment. Figure 2 As shown, the method includes:

[0047] S201: Acquire the initial parameter file of each user from the database.

[0048] In this embodiment, the database includes data files and database tables.

[0049] In this embodiment, the initial parameter file may be a file of all information data about the user, or may be other files.

[0050] Specifically, all information data files of each user are obtained from the data in the data file or the database table.

[0051] S202: Acquire each test data corresponding to each user from each initial parameter file according to preset configuration information, and determine a corresponding batch job according to each test data.

[0052] In this embodiment, the preset configuration information may be identity card configuration information and telephone configuration information, or other identity configuration information.

[0053] Exemplarily, the ID card number and telephone number corresponding to each user are obtained from all information data files of each user according to preset configuration information.

[0054] For example, each test data is the ID card number and phone number of each user:

[0055] Table 1 Test data

[0056] ID number telephone number 110101XXX123 138XXX123 110101XXX234 138XXX234 110101XXX345 138XXX345

[0057] Specifically, in step S202, "determining a corresponding batch job according to each test data" specifically includes:

[0058] S2021: Perform data embedding processing on each test data to obtain each embedded test data.

[0059] Exemplarily, each test data is subjected to data embedding processing to obtain each test data after data embedding:

[0060] Table 2 Test data after each burial number

[0061] ID number telephone number 110101XXX123 138XXX888 110101XXX234 138XXX888 110101XXX345 138XXX888

[0062] S2022: Determine the test data after each embedding as a batch job.

[0063] Exemplarily, Table 2 is determined as a batch job.

[0064] S203: In response to the tester's triggering operation on the test initiation device, a start instruction is generated to execute the following steps:

[0065] In this embodiment, the test initiation device may be a virtual key on a display screen, or a button, a pulley or other device on a device, and there is no particular limitation on this.

[0066] S2031: Calling a specified environment according to a preset configuration file, and processing a batch job in the specified environment to obtain a test result.

[0067] In this embodiment, the preset configuration file may indicate a preset designated operating environment, or may indicate different designated operating environments according to different operating situations.

[0068] Specifically, in step S2031, “processing batch jobs in a specified environment to obtain test results” specifically includes:

[0069] S20311: Calling a batch job in a specified environment, and performing a change process on each buried test data in the batch job to obtain each changed test data.

[0070] Exemplarily, each of the buried test data in the batch job is changed to obtain each of the changed test data as follows:

[0071] Table 3 Test data after each change

[0072] ID number telephone number 110101XXX123 138XXX123 110101XXX234 138XXX234 110101XXX345 138XXX345

[0073] S20312: Determine each changed test data as a test result.

[0074] For example, Table 3 is used as the test result.

[0075] S2032: Compare the test result with the expected result.

[0076] In this embodiment, the expected result is each test data; accordingly, step S2032 specifically includes: comparing the test result with each test data.

[0077] In this embodiment, the expected result is the expected value; accordingly, step S2032 is specifically: controlling the result check script to extract the value to be checked from the test result, and comparing the value to be checked with the expected value.

[0078] The expected value may be each test data, or may be part of each test data; or the expected value may be independent of each test data.

[0079] Exemplarily, if the expected value is part of the test data, the test result is compared with the expected result as follows:

[0080] If the expected values ​​are telephone numbers 138XXX123, 138XXX234, and 138XXX345, and the control result check script extracts the values ​​to be checked from the test results as telephone numbers 138XXX123, 138XXX234, and 138XXX345.

[0081] S2033: If the test result is consistent with the expected result, a prompt indicating that the batch job test has passed is output; if the test result is inconsistent with the expected result, a prompt indicating that the batch job test has failed is output.

[0082] Specifically, step S2033 is as follows: if the corresponding test values ​​in the test results are consistent with the test data, a prompt indicating that the batch job test has passed is output; if the corresponding test values ​​in the test results are inconsistent with the test data, a prompt indicating that the batch job test has failed is output.

[0083] Specifically, step S2033 is as follows: if the value to be verified is consistent with the expected value, a prompt indicating that the batch job test has passed is output; if the value to be verified is inconsistent with the expected value, a prompt indicating that the batch job test has failed is output.

[0084] The prompt may be a pop-up window on a display screen, a voice broadcast on a device, or other prompting methods.

[0085] The pop-up window may be located at any position of the top, bottom, left, or right of the display screen, or at any other position.

[0086] Exemplarily, if the expected values ​​are the test values ​​in each test data, the batch job test results are: if the expected values ​​are the telephone numbers 138XXX123, 138XXX234 and 138XXX345, and the values ​​to be verified are also the telephone numbers 138XXX123, 138XXX234 and 138XXX345, a pop-up window indicating that the batch job test passed is output in the center of the display screen.

[0087] In summary, the batch job testing method provided in this embodiment obtains the initial parameter file of each user from the database; obtains each test data corresponding to each user from each initial parameter file according to the preset configuration information, and determines the corresponding batch job; generates a start instruction in response to the test personnel's triggering operation on the test start device to execute the following steps: processes the batch job in the called specified job environment to obtain the test result; compares the test result with the expected result; if the test result is consistent with the expected result, outputs a prompt that the batch job test passed; if not, outputs a prompt that the batch job test failed. Batch job testing no longer requires test personnel to spend time preparing data and checking test results, thereby improving the efficiency of batch job testing.

[0088] In addition, automated batch job testing avoids errors caused by manual operations, making the test results of batch jobs more accurate.

[0089] Figure 3 Schematic diagram of the batch job testing method provided in the embodiment of the present application Figure 2 In the embodiment of the present application, Figure 2 Based on the embodiment provided, a specific implementation method for repeated testing of batch jobs after S2033 is described in detail. Figure 3 As shown, the method includes:

[0090] S301: Obtaining the initial parameter file of each user from the database.

[0091] In this embodiment, the discussion about the database and the initial parameter file has been described in detail in step S201 and will not be repeated here.

[0092] S302: Acquire each test data corresponding to each user from the initial parameter file according to the preset configuration information, and determine the corresponding batch job according to each test data.

[0093] In this embodiment, the discussion on the preset configuration information has been described in detail in step S202 and will not be repeated here.

[0094] S303: In response to the tester's triggering operation on the test initiation device, a start instruction is generated to execute the following steps:

[0095] In this embodiment, the discussion on the test initiation device has been described in detail in step S203, which will not be repeated here.

[0096] S3031: Calling a specified environment according to a preset configuration file, and processing a batch job in the specified environment to obtain a test result.

[0097] In this embodiment, the discussion on the preset configuration file has been described in detail in step S2031 and will not be repeated here.

[0098] S3032: Compare the test results with the expected results.

[0099] In this embodiment, the discussion on the test results and expected results has been described in detail in step S2032 and will not be repeated here.

[0100] S3033: If the test result is consistent with the expected result, a prompt indicating that the batch job test has passed is output; if the test result is inconsistent with the expected result, a prompt indicating that the batch job test has failed is output.

[0101] In this embodiment, the discussion on the prompt has been described in detail in step S2033 and will not be repeated here.

[0102] S304: In response to the tester's triggering operation on the retest device, a retest instruction is generated.

[0103] In this embodiment, the retesting device may be a virtual key on a display screen, or a button, a pulley or other device on a device, and there is no particular limitation on this.

[0104] S305: According to the retest instruction, re-execute the steps of "obtaining the initial parameter file of each user from the database; obtaining each test data corresponding to each user from the initial parameter file according to the preset configuration information, and determining the corresponding batch job according to each test data; generating a start instruction in response to the tester's triggering operation on the test start device to execute the following steps: calling the specified environment according to the preset configuration file, and processing the batch job in the specified environment to obtain the test result; comparing the test result with the expected result; if the test result is consistent with the expected result, outputting a prompt that the batch job test passed; if the test result is inconsistent with the expected result, outputting a prompt that the batch job test failed".

[0105] In summary, the batch job testing method provided in this embodiment generates a retest instruction in response to the tester's triggering operation on the retest device; according to the retest instruction, re-executes the steps of "obtaining the initial parameter file of each user from the database; obtaining each test data corresponding to each user from the initial parameter file according to the preset configuration information, and determining the corresponding batch job according to each test data; in response to the tester's triggering operation on the test start device, generating a start instruction to perform the following steps: calling the specified environment according to the preset configuration file, and processing the batch job in the specified environment to obtain the test result; comparing the test result with the expected result; if the test result is consistent with the expected result, outputting a prompt that the batch job test passed; if the test result is inconsistent with the expected result, outputting a prompt that the batch job test failed", and completing the test and repeated test in a one-click manner, making it more convenient to perform regression testing of large batch jobs.

[0106] In addition, before repeating the batch job test, the operation of determining the corresponding batch job is automatically performed, so that the batch job detection can be directly repeated.

[0107] Figure 4 This is a schematic diagram of the structure of a batch operation test device provided in an embodiment of the present application. Figure 4 As shown, the batch job testing device includes: an acquisition module 401 , a determination module 402 , a first generation module 403 , a processing module 404 , a comparison module 405 and an output module 406 .

[0108] The acquisition module 401 is used to acquire the initial parameter file of each user from the database;

[0109] The determination module 402 is used to obtain the test data corresponding to the users from the initial parameter files according to the preset configuration information, and determine the corresponding batch jobs according to the test data;

[0110] The first generating module 403 is used to generate a start instruction in response to the tester's triggering operation on the test start device to execute the following steps:

[0111] The processing module 404 is used to call the specified environment according to the preset configuration file, and process the batch job in the specified environment to obtain the test result;

[0112] A comparison module 405 is used to compare the test result with the expected result;

[0113] The output module 406 is configured to output a prompt indicating that the batch job test has passed if the test result is consistent with the expected result; and output a prompt indicating that the batch job test has failed if the test result is inconsistent with the expected result.

[0114] In a possible implementation, the determining module 402 specifically includes:

[0115] The processing unit 4021 is used to perform data embedding processing on each test data to obtain each embedded test data;

[0116] The determination unit 4022 is used to determine the test data after each embedding as the batch job.

[0117] In a possible implementation, the processing module 404 specifically includes:

[0118] The processing unit 4041 is used to call the batch job in the specified environment, and perform change processing on the test data after each embedding in the batch job to obtain each changed test data;

[0119] The determining unit 4042 is used to determine the changed test data as the test result.

[0120] In a possible implementation, the expected result is the test data; accordingly, the comparison module 405 is specifically used to compare the test result with the test data; accordingly, the output module 406 is specifically used to output a prompt indicating that the batch job test has passed if the corresponding test values ​​in the test result are consistent with the test data; if the corresponding test values ​​in the test result are inconsistent with the test data, output a prompt indicating that the batch job test has failed.

[0121] In a possible implementation, the expected result is an expected value; accordingly, the comparison module 405 is specifically used to: control the result check script to extract the value to be checked from the test result, and compare the value to be checked with the expected value; accordingly, the output module 406 is specifically used to: if the value to be checked is consistent with the expected value, output a prompt that the batch job test has passed; if the value to be checked is inconsistent with the expected value, output a prompt that the batch job test has failed.

[0122] In a possible implementation manner, the device further includes:

[0123] The second generating module 407 is used to generate a retest instruction in response to the triggering operation of the retest device by the tester;

[0124] The execution module 408 is used to re-execute the steps of "obtaining the initial parameter file of each user from the database; obtaining the test data corresponding to each user from the initial parameter file according to the preset configuration information, and determining the corresponding batch job according to the test data; generating a start instruction in response to the tester's triggering operation on the test start device to perform the following steps: calling the specified environment according to the preset configuration file, and processing the batch job in the specified environment to obtain the test result; comparing the test result with the expected result; if the test result is consistent with the expected result, outputting a prompt that the batch job test passed; if the test result is inconsistent with the expected result, outputting a prompt that the batch job test failed" according to the retest instruction.

[0125] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0126] Figure 5 Schematic diagram of the hardware structure of the computer device provided in the embodiment of the present application. Figure 5 As shown, the computer device of this embodiment includes: a processor 501 and a memory 502; the memory stores computer execution instructions; at least one processor executes the computer execution instructions stored in the memory, so that at least one processor executes the batch job testing method as described above.

[0127] Optionally, the memory 502 may be independent or integrated with the processor 501 .

[0128] When the memory 502 is independently provided, the computer device further includes a bus 503 for connecting the memory 502 and the processor 501 .

[0129] The embodiment of the present application further provides a computer storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the batch job testing method as described above is implemented.

[0130] An embodiment of the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the batch job testing method as described above is implemented.

[0131] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0132] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of this embodiment.

[0133] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The above-mentioned module-composed unit can be implemented in the form of hardware or in the form of hardware plus software functional units.

[0134] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present application.

[0135] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.

[0136] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.

[0137] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0138] The above storage medium 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, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0139] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device or a main control device.

[0140] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0141] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A batch job testing method, characterized in that: Applicable to computer equipment, including: Get each user's initial parameter file from the database; Acquire each test data corresponding to each user from each initial parameter file according to preset configuration information, and determine a corresponding batch job according to each test data; In response to the tester's triggering operation on the test initiation device, a start instruction is generated to execute the following steps: Calling a specified environment according to a preset configuration file, and processing the batch job in the specified environment to obtain a test result; comparing the test results with expected results; If the test result is consistent with the expected result, a prompt is outputted indicating that the batch job test has passed; if the test result is inconsistent with the expected result, a prompt is outputted indicating that the batch job test has failed.

2. The method according to claim 1, characterized in that The determining the corresponding batch job according to each test data includes: Performing data embedding processing on each test data to obtain each embedded test data; The test data after each embedding is determined as the batch job.

3. The method according to claim 2, characterized in that The step of processing the batch job in the specified environment to obtain a test result includes: Invoke the batch job in the specified environment, and perform change processing on each of the embedded test data in the batch job to obtain each of the changed test data; The changed test data are determined as test results.

4. The method according to claim 1, characterized in that: The expected results are the test data; Accordingly, the test results are compared with expected results, including: Comparing the test result with the test data; Correspondingly, if the test result is consistent with the expected result, a prompt indicating that the batch job test has passed is output; if the test result is inconsistent with the expected result, a prompt indicating that the batch job test has failed is output, including: If the corresponding test values ​​in the test results are consistent with the test data, a prompt indicating that the batch job test has passed is output; if the corresponding test values ​​in the test results are inconsistent with the test data, a prompt indicating that the batch job test has failed is output.

5. The method according to claim 1, characterized in that Wherein the expected result is the expected value; Accordingly, comparing the test result with the expected result includes: The control result checking script extracts the value to be checked from the test result, and compares the value to be checked with the expected value; Correspondingly, if the test result is consistent with the expected result, a prompt indicating that the batch job test has passed is output; if the test result is inconsistent with the expected result, a prompt indicating that the batch job test has failed is output, including: If the value to be checked is consistent with the expected value, a prompt indicating that the batch job test has passed is output; if the value to be checked is inconsistent with the expected value, a prompt indicating that the batch job test has failed is output.

6. The method according to any one of claims 1 to 5, characterized in that: After outputting a prompt indicating that the batch job test fails if the test result is inconsistent with the expected result, the method further includes: generating a retest instruction in response to a trigger operation of a retest device by a tester; According to the retest instruction, the steps of "obtaining the initial parameter file of each user from the database; obtaining the test data corresponding to each user from the initial parameter file according to the preset configuration information, and determining the corresponding batch job according to the test data; generating a start instruction in response to the tester's triggering operation on the test start device to execute the following steps: calling the specified environment according to the preset configuration file, and processing the batch job in the specified environment to obtain the test result; comparing the test result with the expected result; if the test result is consistent with the expected result, outputting a prompt that the batch job test has passed; if the test result is inconsistent with the expected result, outputting a prompt that the batch job test has failed" are re-executed.

7. A batch operation testing device, characterized in that: Applicable to computer equipment, including: The acquisition module is used to obtain the initial parameter file of each user from the database; A determination module, used for obtaining each test data corresponding to each user from each initial parameter file according to preset configuration information, and determining a corresponding batch job according to each test data; The first generating module is used to generate a start instruction in response to a tester's triggering operation on the test start device to execute the following steps: A processing module, used for calling a specified environment according to a preset configuration file, and processing the batch job in the specified environment to obtain a test result; A comparison module, used for comparing the test result with the expected result; The output module is used to output a prompt that the batch job test has passed if the test result is consistent with the expected result; and to output a prompt that the batch job test has failed if the test result is inconsistent with the expected result.

8. A computer device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the batch job testing method according to any one of claims 1 to 6.

9. A computer storage medium, characterized in that The computer storage medium stores computer execution instructions, and when the processor executes the computer execution instructions, the batch job testing method according to any one of claims 1 to 6 is implemented.

10. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the batch job testing method according to any one of claims 1 to 6.