Large batch data verification method, device, computer equipment and storage medium
Through the method of automated processing and verification of worksheets, the problem of tedious and time-consuming manual verification in user acceptance testing is solved, rapid verification of large batches of data and efficient verification of results are achieved, and work efficiency and accuracy are improved.
Patent Information
- Application Number
- CN201910604967.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-05
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
During the user acceptance testing phase, large batches of data need to be verified manually, which is cumbersome and time-consuming, wastes human resources, is prone to errors, and results in low work efficiency.
By obtaining the worksheet to be processed, reading and preprocessing the data, creating the worksheet to be verified, processing the data using preset formulas, and checking it with the expected worksheet, generating a worksheet of verification results to achieve automated verification.
It achieves rapid verification of large batches of data, saves time, improves work efficiency, reduces manual errors, and improves verification accuracy.
Smart Images

Figure CN110457362B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, computer equipment and storage medium for checking large quantities of data. Background Art
[0002] With the development of science and technology, the amount of data continues to grow, and the requirements for data processing are also increasing. After the product development is completed, it is usually necessary to test the product during the user acceptance test phase. During the test process, large amounts of data often need to be checked. In the existing user acceptance test phase, data verification requires manual verification, which is very cumbersome and time-consuming, wastes human resources, and is prone to errors, resulting in low work efficiency. Summary of the invention
[0003] The embodiments of the present invention provide a method, apparatus, computer device and storage medium for checking large quantities of data, aiming to solve the problems in the existing user acceptance test phase, where data checking needs to be done manually, the checking of data is very cumbersome and time-consuming, wastes human resources, is prone to errors and has low work efficiency.
[0004] In a first aspect, an embodiment of the present invention provides a method for verifying large quantities of data, comprising: obtaining a plurality of worksheets to be processed according to a plurality of first preset path addresses, wherein each first preset path is used to obtain a worksheet to be processed; reading the data to be processed in the plurality of worksheets to be processed and obtaining the data to be processed corresponding to the preset fields from the data to be processed according to preset fields as target data to be processed; creating a worksheet to be verified and writing the target data to be processed into the worksheet to be verified, processing the target data to be processed by a preset formula to output the data to be verified; obtaining a desired worksheet according to a second preset path address and verifying the desired worksheet with the worksheet to be verified to obtain a verification result worksheet.
[0005] In the second aspect, an embodiment of the present invention further provides a large-scale data verification device, which includes: an acquisition unit, used to acquire multiple worksheets to be processed according to multiple first preset path addresses, wherein each first preset path is used to acquire a worksheet to be processed; a reading unit, used to read the data to be processed in the multiple worksheets to be processed and acquire the data to be processed corresponding to the preset field from the data to be processed as the target data to be processed according to the preset field; a creation unit, used to create a worksheet to be verified and write the target data to be processed into the worksheet to be verified, process the target data to be processed by a preset formula to output the data to be verified; a verification unit, used to acquire the expected worksheet according to the second preset path address and verify the expected worksheet with the worksheet to be verified to obtain a verification result worksheet.
[0006] In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.
[0007] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program can implement the above method when executed by a processor.
[0008] The embodiment of the present invention provides a method, device, computer equipment and storage medium for checking large quantities of data. The method includes: obtaining multiple worksheets to be processed according to multiple first preset path addresses, wherein each first preset path is used to obtain a worksheet to be processed; reading the data to be processed in the multiple worksheets to be processed and obtaining the data to be processed corresponding to the preset field from the data to be processed according to the preset field as the target data to be processed; creating a worksheet to be checked and writing the target data to be processed into the worksheet to be checked, processing the target data to be processed by a preset formula to output the data to be checked; obtaining an expected worksheet according to a second preset path address and checking the expected worksheet with the worksheet to be checked to obtain a check result worksheet. The embodiment of the present invention can achieve the effect of fast checking of large quantities of data, saving time and improving work efficiency by creating a worksheet to be checked according to the target data to be processed and checking the worksheet to be checked with the expected worksheet to obtain a check result worksheet. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0010] Figure 1 A schematic diagram of a flow chart of a method for checking large amounts of data provided by an embodiment of the present invention;
[0011] Figure 2 A schematic diagram of a sub-process of a method for checking large amounts of data provided by an embodiment of the present invention;
[0012] Figure 3 A schematic diagram of a sub-process of a method for checking large amounts of data provided by an embodiment of the present invention;
[0013] Figure 4 A schematic diagram of a sub-process of a method for checking large amounts of data provided by an embodiment of the present invention;
[0014] Figure 5 A schematic flow chart of a method for checking large amounts of data provided by another embodiment of the present invention;
[0015] Figure 6 A schematic block diagram of a large batch data checking device provided by an embodiment of the present invention;
[0016] Figure 7 A schematic block diagram of specific units of a large batch data checking device provided by an embodiment of the present invention;
[0017] Figure 8 A schematic block diagram of a checking unit of a large batch data checking device provided by an embodiment of the present invention;
[0018] Fig. 9 A schematic block diagram of a large batch data checking device provided by another embodiment of the present invention; and
[0019] Fig.10 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0020] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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.
[0021] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0022] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0023] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0024] See also Figure 1 , Figure 1A schematic flow chart of a bulk data verification method provided by an embodiment of the present invention. The bulk data verification method is applied in a terminal. The present invention proposes a bulk data verification method, which is applied in the user acceptance test phase, i.e., the UAT phase, and is implemented by an automated script written in Python. Python is a computer programming language, and is a dynamic, object-oriented scripting language. The bulk data verification method proposed by the present invention can realize rapid verification of bulk data, save time, and improve work efficiency.
[0025] Figure 1 1 is a flow chart of a method for checking large amounts of data provided by an embodiment of the present invention. As shown in the figure, the method includes the following steps S110-S140.
[0026] S110 . Acquire a plurality of to-be-processed work lists according to a plurality of first preset path addresses, wherein each first preset path is used to acquire a to-be-processed work list.
[0027] In one embodiment, the worksheet to be processed refers to a worksheet storing the data to be processed, which is specifically a file in CSV format. The CSV (Comma-Separated Values) file consists of any number of records, and the records are separated by some kind of line break character; each record consists of fields, and the separator between the fields is other characters or strings, the most common being commas or tabs; usually all records have exactly the same field sequence and are usually plain text files. The data to be processed refers to the data that needs to be tested in the UAT (User Acceptance Test) stage after the product development is completed, for example, business data. The first preset path refers to the path address where the worksheet to be processed is stored, and the worksheet to be processed is pre-stored in the terminal by the tester. Due to the large amount of data tested in the UAT stage, there are usually multiple worksheets to be processed that need to be tested, and each worksheet to be processed has a corresponding first preset path address. The first preset path address is read, and multiple worksheets to be processed are called one by one according to the first preset path.
[0028] After obtaining the pending worklist, it is necessary to preprocess the pending worklist. Preprocessing refers to the process of converting multiple pending worklists into a pending checklist through a series of processing. Since the pending worklist cannot be checked directly in the UAT stage of testing, it is necessary to preprocess the pending worklist. After preprocessing multiple pending worklists, a pending checklist is output. After obtaining the pending checklist, it can be checked.
[0029] S120, reading the data to be processed in the plurality of worksheets to be processed and acquiring the data to be processed corresponding to the preset fields from the data to be processed as the target data to be processed according to the preset fields.
[0030] In one embodiment, since the worksheet to be processed is a file in CSV format, all records in the file in CSV format have exactly the same field sequence, so the worksheet to be processed based on CSV format can quickly summarize data according to the fields and process the data through algorithms. Specifically, after calling the worksheet to be processed, first read the data to be processed in each worksheet to be processed; then traverse the field rows in the worksheet to be processed to find the preset field, obtain the data to be processed under the preset field as the target data to be processed, and then traverse the field rows of another worksheet to be processed to find the same preset field, obtain the data to be processed under the preset field as the target data to be processed, until all the data to be processed corresponding to the preset field in all worksheets to be processed are completely obtained.
[0031] S130, creating a work table to be checked and writing the target data to be processed into the work table to be checked, processing the target data to be processed by a preset formula to output the data to be checked.
[0032] In one embodiment, if Figure 2 As shown, the step S130 may include steps: S131-S132.
[0033] S131, creating a worksheet to be checked and setting a preset formula in the worksheet to be checked, wherein the preset formula includes a calculation formula and a calculation range.
[0034] S132, writing the target data to be processed into the calculation range of the preset formula and processing it through the calculation formula to output the data to be checked.
[0035] In one embodiment, a worksheet to be checked is created, in which the acquired target data to be processed are summarized, and a preset formula is set in the worksheet to be checked, wherein the preset formula includes a calculation formula and a calculation range, and the calculation range is specifically composed of rows and columns, for example, A1-A10. The acquired target data to be processed is written into the data calculation range corresponding to the preset formula, and the calculation formula of the preset formula is used to calculate the target data to be processed to output the data to be checked. For example, the preset field is the pageviews, the worksheet to be processed is the user data table for July, August, and September, and the preset formula is a summation formula. First, the pageviews of the corresponding pageviews field are obtained from the worksheet to be processed in July, August, and September, respectively, and then the pageviews of July, August, and September are summed by the summation formula to obtain the data to be checked. It should be noted that since there are a lot of data to be tested, there are usually multiple preset fields, such as login volume, insurance addition volume, and insurance cancellation volume, wherein the preset formula is set according to the required data to be checked, and the preset formula can also be other formulas such as the summation average formula.
[0036] S140: Acquire an expected work list according to the second preset path address, and compare the expected work list with the work list to be checked to obtain a check result work list.
[0037] Specifically, the second preset path refers to the path address for storing the expected worksheet, which is pre-stored in the terminal. The expected worksheet is derived by the tester based on the actual data of the product operation. In the UAT test phase, the ultimate goal is that the verified data is the same as the data in the expected worksheet, indicating that there are no loopholes in the operation of the product and the product can be accepted.
[0038] In one embodiment, if Figure 3 As shown, the step S140 may include steps: S141-S143.
[0039] S141. Acquire an expected working table according to a second preset path address and read expected data in the expected working table.
[0040] S142, reading the data to be checked in the worksheet to be checked.
[0041] S143, creating a verification result worksheet and comparing the data to be verified with the expected data in the verification result worksheet to output a verification result.
[0042] In one embodiment, the correctness of the data is verified by comparing the data to be verified with the expected data. Specifically, the second preset path address is first read, the expected worksheet is called according to the second preset path address, and the expected data in the expected worksheet is read, and then the data to be verified in the worksheet to be verified is read. After reading the data to be verified, a verification result worksheet is created, and a comparison formula, such as an IF formula, is set in the verification result worksheet. The read data to be verified and the expected data are written into the data comparison range of the comparison formula. Finally, the comparison formula compares the data to be verified with the expected data one by one and outputs the verification result. For example, as shown in Table 1, the data to be verified is the page views in July, August, and September, and the expected data is the total page views in the third quarter derived from the product's operating background. The data to be verified and the expected data are both written into the verification result worksheet for comparison, and the verification result is finally output.
[0043] Preset fields Data to be verified Expected data Verification results Views 1384 1384 correct Insured quantity 530 525 mistake
[0044] Table 1
[0045] In one embodiment, if Figure 4 As shown, the step S143 may include steps: S1431-S1432.
[0046] S1431. If the data to be checked is the same as the expected data, output a correct checking result.
[0047] S1432: If the data to be checked is different from the expected data, an erroneous checking result is output.
[0048] In one embodiment, the verification results output after comparing the data to be verified with the expected data include correct and incorrect. When the data to be verified is the same as the expected data, it means that the data is running normally and no loopholes have occurred, and the verification result is correct; when the data to be verified is different from the expected data, it means that the data is running abnormally and loopholes have occurred, and the verification result is incorrect.
[0049] In one embodiment, if Figure 5 As shown, the step S140 further includes steps S144-S145.
[0050] S144, obtaining the preset field corresponding to the erroneous verification result;
[0051] S145, setting a field to be checked in the checking result worksheet and writing the preset field corresponding to the acquired erroneous checking result into the field to be checked.
[0052] In one embodiment, during the UAT stage, based on the output verification results, the tester can know which data has errors, and then find out the product vulnerabilities and repair them according to the erroneous data. Specifically, in the verification worksheet, search for records with erroneous values under the verification result field, obtain the value of the corresponding preset field in the record, set the field to be verified in the field row, and write the value to the field to be verified corresponding to the record. For example, as shown in Table 2, the preset field corresponding to the erroneous verification result is the warranty amount. In the verification result worksheet, add the field to be verified, and write the warranty amount to the field to be verified, so that the tester can quickly obtain the data type of the error, so as to find out the cause of the error in time and repair it.
[0053] Preset fields Data to be verified Expected data Verification results Fields to be checked Views 1384 1384 correct Insured quantity 530 525 mistake Insured quantity
[0054] Table 2
[0055] The present invention shows a method for checking large quantities of data, which obtains multiple worksheets to be processed according to multiple first preset path addresses, wherein each first preset path is used to obtain a worksheet to be processed; reads the data to be processed in the multiple worksheets to be processed and obtains the data to be processed corresponding to the preset fields from the data to be processed according to the preset fields as target data to be processed; creates a worksheet to be checked and writes the target data to be processed into the worksheet to be checked, processes the target data to be processed by a preset formula to output the data to be checked; obtains an expected worksheet according to a second preset path address and checks the expected worksheet with the worksheet to be checked to obtain a checking result worksheet, which can improve the checking accuracy, save time, save human resources, and improve work efficiency.
[0056] Figure 6 is a schematic block diagram of a large batch data checking device 200 provided by an embodiment of the present invention. Figure 6 As shown, corresponding to the above bulk data verification method, the present invention also provides a bulk data verification device 200. The bulk data verification device 200 includes a unit for executing the above bulk data verification method, and the device can be configured in a desktop computer, a tablet computer, a laptop computer, etc. Specifically, please refer to Figure 6 The bulk data checking device 200 includes: an acquisition unit 210, a reading unit 220, a creation unit 230 and a checking unit 240.
[0057] The acquisition unit 210 is used to acquire a plurality of to-be-processed work lists according to a plurality of first preset path addresses, wherein each first preset path is used to acquire a to-be-processed work list.
[0058] The reading unit 220 is used to read the to-be-processed data in the plurality of to-be-processed worksheets and obtain the to-be-processed data corresponding to the preset field from the to-be-processed data as the to-be-processed target data according to the preset field.
[0059] The creation unit 230 is used to create a work table to be checked and write the target data to be processed into the work table to be checked, and process the target data to be processed by a preset formula to output the data to be checked.
[0060] In one embodiment, if Figure 7 As shown, the creation unit 230 includes: a creation subunit 231 and a processing unit 232.
[0061] The creation subunit 231 is used to create a worksheet to be checked and set a preset formula in the worksheet to be checked, wherein the preset formula includes a calculation formula and a calculation range.
[0062] The processing unit 232 is used to write the target data to be processed into the calculation range of the preset formula, process it through the calculation formula, and output the data to be checked.
[0063] The checking unit 240 is used to obtain the expected work list according to the second preset path address and check the expected work list with the work list to be checked to obtain a check result work list.
[0064] In one embodiment, if Figure 7 As shown, the checking unit 240 includes: a second acquiring subunit 241 , a second reading subunit 242 and a checking subunit 243 .
[0065] A second acquisition subunit 241 is used to acquire a desired work table according to a second preset path address and read desired data in the desired work table;
[0066] The second reading subunit 242 is used to read the data to be checked in the worksheet to be checked;
[0067] The checking subunit 243 is used to create a checking result worksheet and compare the to-be-checked data with the expected data in the checking result worksheet to output a checking result.
[0068] In one embodiment, if Figure 8 As shown, the checking unit 240 includes: a correct unit 2401 and an error unit 2402 .
[0069] The correct unit 2401 is used to output a correct verification result if the data to be verified is the same as the expected data.
[0070] The error unit 2402 is used to output an error verification result if the data to be verified is different from the expected data.
[0071] In one embodiment, if Fig. 9 As shown, the bulk data checking device 200 further includes: a third acquiring unit 244 and a writing unit 245 .
[0072] The third obtaining unit 244 is used to obtain the preset field corresponding to the erroneous checking result.
[0073] The writing unit 245 is used to set a field to be checked in the checking result worksheet and write the preset field corresponding to the obtained erroneous checking result into the field to be checked.
[0074] The present invention shows a large-volume data verification device, which obtains multiple worksheets to be processed according to multiple first preset path addresses, wherein each first preset path is used to obtain a worksheet to be processed; reads the data to be processed in the multiple worksheets to be processed and obtains the data to be processed corresponding to the preset fields from the data to be processed as target data to be processed according to preset fields; creates a worksheet to be verified and writes the target data to be processed into the worksheet to be verified, processes the target data to be processed by a preset formula to output the data to be verified; obtains an expected worksheet according to a second preset path address and verifies the expected worksheet with the worksheet to be verified to obtain a verification result worksheet, which can improve the verification accuracy, save time, save human resources, and improve work efficiency.
[0075] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned large-scale data verification device 200 and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.
[0076] The above-mentioned large batch data checking device can be implemented in the form of a computer program, which can be used in Fig.10 Runs on the computer device shown.
[0077] See also Fig.10 , Fig.10 500 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 may be a terminal, wherein the terminal may be an electronic device with communication function such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device.
[0078] See also Fig.10 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .
[0079] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, and when the program instructions are executed, the processor 502 can execute a large batch data verification method.
[0080] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0081] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a large batch data verification method.
[0082] The network interface 505 is used to communicate with other devices over the network. Fig.10 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0083] The processor 502 is used to run a computer program 5032 stored in a memory to implement the following steps: obtaining a plurality of worksheets to be processed according to a plurality of first preset path addresses, wherein each first preset path is used to obtain a worksheet to be processed; reading the data to be processed in the plurality of worksheets to be processed and obtaining the data to be processed corresponding to the preset field from the data to be processed according to the preset field as the target data to be processed; creating a worksheet to be verified and writing the target data to be processed into the worksheet to be verified, processing the target data to be processed by a preset formula to output the data to be verified; obtaining the expected worksheet according to the second preset path address and verifying the expected worksheet with the worksheet to be verified to obtain a verification result worksheet.
[0084] In one embodiment, when the processor 502 implements the step of creating a worksheet to be checked and writing the target data to be processed into the worksheet to be checked and processing the target data to be processed by a preset formula to output the data to be checked, it specifically implements the following steps: creating a worksheet to be checked and setting a preset formula in the worksheet to be checked, wherein the preset formula includes a calculation formula and a calculation range; writing the target data to be processed into the calculation range of the preset formula and processing it by the calculation formula to output the data to be checked.
[0085] In one embodiment, when the processor 502 implements the step of obtaining the expected worksheet according to the second preset path address and comparing the expected worksheet with the worksheet to be checked to obtain the verification result worksheet, it specifically implements the following steps: obtaining the expected worksheet according to the second preset path address and reading the expected data in the expected worksheet; reading the data to be checked in the worksheet to be checked; creating a verification result worksheet and comparing the data to be checked with the expected data in the verification result worksheet to output the verification result.
[0086] In one embodiment, when the processor 502 implements the step of creating a verification result worksheet and comparing the data to be verified with the expected data in the verification result worksheet and outputting the verification result, it specifically implements the following steps: if the data to be verified is the same as the expected data, output a correct verification result; if the data to be verified is not the same as the expected data, output an incorrect verification result.
[0087] In one embodiment, after implementing the steps of creating a verification result worksheet and comparing the data to be verified with the expected data in the verification result worksheet to output the verification result, the processor 502 further implements the following steps: obtaining the preset field corresponding to the erroneous verification result; setting the field to be verified in the verification result worksheet and writing the preset field corresponding to the obtained erroneous verification result into the field to be verified.
[0088] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0089] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.
[0090] Therefore, the present invention also provides a storage medium. The storage medium can be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by the processor, the processor executes the following steps: obtaining multiple worksheets to be processed according to multiple first preset path addresses, wherein each first preset path is used to obtain a worksheet to be processed; reading the data to be processed in the multiple worksheets to be processed and obtaining the data to be processed corresponding to the preset field from the data to be processed according to the preset field as the target data to be processed; creating a worksheet to be checked and writing the target data to be processed into the worksheet to be checked, processing the target data to be processed by a preset formula to output the data to be checked; obtaining the expected worksheet according to the second preset path address and checking the expected worksheet with the worksheet to be checked to obtain a check result worksheet.
[0091] In one embodiment, when the processor executes the program instructions to implement the steps of creating a worksheet to be checked and writing the target data to be processed into the worksheet to be checked, processing the target data to be processed by a preset formula to output the data to be checked, the processor specifically implements the following steps: creating a worksheet to be checked and setting a preset formula in the worksheet to be checked, wherein the preset formula includes a calculation formula and a calculation range; writing the target data to be processed into the calculation range of the preset formula and processing it by the calculation formula to output the data to be checked.
[0092] In one embodiment, when the processor executes the program instructions to implement the step of obtaining the expected worksheet according to the second preset path address and comparing the expected worksheet with the worksheet to be checked to obtain the verification result worksheet, the processor specifically implements the following steps: obtaining the expected worksheet according to the second preset path address and reading the expected data in the expected worksheet; reading the data to be checked in the worksheet to be checked; creating a verification result worksheet and comparing the data to be checked with the expected data in the verification result worksheet to output the verification result.
[0093] In one embodiment, when the processor executes the program instructions to implement the steps of creating a verification result worksheet and comparing the data to be verified with the expected data in the verification result worksheet to output the verification result, the following steps are specifically implemented: if the data to be verified is the same as the expected data, a correct verification result is output; if the data to be verified is not the same as the expected data, an incorrect verification result is output.
[0094] In one embodiment, after the processor executes the program instructions to implement the steps of creating a verification result worksheet and comparing the data to be verified with the expected data in the verification result worksheet to output the verification result, it also implements the following steps: obtaining the preset field corresponding to the erroneous verification result; setting the field to be verified in the verification result worksheet and writing the preset field corresponding to the obtained erroneous verification result into the field to be verified.
[0095] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.
[0096] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0097] In the several embodiments provided by the present invention, 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 each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0098] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0099] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.
[0100] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for checking large quantities of data, characterized in that: include: Acquire a plurality of to-be-processed work lists according to a plurality of first preset path addresses, wherein each first preset path is used to acquire a to-be-processed work list; Reading the data to be processed in the plurality of the worksheets to be processed and acquiring the data to be processed corresponding to the preset fields from the data to be processed as the target data to be processed according to the preset fields; Creating a worksheet to be checked and writing the target data to be processed into the worksheet to be checked, processing the target data to be processed by a preset formula to output the data to be checked; Acquire an expected work list according to the second preset path address and compare the expected work list with the work list to be checked to obtain a check result work list; The step of creating a worksheet to be checked and writing the target data to be processed into the worksheet to be checked, and processing the target data to be processed by a preset formula to output the data to be checked includes: creating a worksheet to be checked and setting a preset formula in the worksheet to be checked, wherein the preset formula includes a calculation formula and a calculation range; writing the target data to be processed into the calculation range of the preset formula, and processing the data to be processed by the calculation formula to output the data to be checked; The method of obtaining an expected worksheet according to a second preset path address and comparing the expected worksheet with the worksheet to be checked to obtain a check result worksheet includes: obtaining an expected worksheet according to a second preset path address and reading expected data in the expected worksheet; reading the data to be checked in the worksheet to be checked; creating a check result worksheet and comparing the data to be checked with the expected data in the check result worksheet to output a check result, wherein the correctness of the data is checked by comparing the data to be checked with the expected data, reading the second preset path address, calling the expected worksheet according to the second preset path address, reading the expected data in the expected worksheet, and then reading the data to be checked in the worksheet to be checked, creating a check result worksheet after reading the data to be checked, setting a comparison formula in the check result worksheet, writing the read data to be checked and the expected data into the data comparison range of the comparison formula, and using the comparison formula to compare the data to be checked with the expected data one by one to output a check result.
2. The method for checking large amounts of data according to claim 1, characterized in that: The step of creating a verification result worksheet and comparing the data to be verified with the expected data in the verification result worksheet to output a verification result includes: if the data to be verified is the same as the expected data, outputting a correct verification result; If the data to be checked is not the same as the expected data, an erroneous checking result is output.
3. The method for checking large amounts of data according to claim 1, characterized in that: After creating the verification result worksheet and comparing the data to be verified with the expected data in the verification result worksheet to output the verification result, the method further includes: obtaining the preset field corresponding to the erroneous verification result; A field to be checked is set in the check result worksheet, and the preset field corresponding to the acquired erroneous check result is written into the field to be checked.
4. A large batch data checking device, characterized in that: include: An acquisition unit, used for acquiring a plurality of to-be-processed work lists according to a plurality of first preset path addresses, wherein each first preset path is used for acquiring a to-be-processed work list; A reading unit, used for reading the data to be processed in the plurality of the worksheets to be processed and obtaining the data to be processed corresponding to the preset field from the data to be processed as the target data to be processed according to the preset field; A creation unit, used for creating a worksheet to be checked and writing the target data to be processed into the worksheet to be checked, processing the target data to be processed by a preset formula to output the data to be checked; the creation of the worksheet to be checked and writing the target data to be processed into the worksheet to be checked, processing the target data to be processed by a preset formula to output the data to be checked, including: creating a worksheet to be checked and setting a preset formula in the worksheet to be checked, wherein the preset formula includes a calculation formula and a calculation range; writing the target data to be processed into the calculation range of the preset formula, processing the data by the calculation formula to output the data to be checked; a checking unit, configured to obtain an expected worksheet according to a second preset path address and check the expected worksheet with the worksheet to be checked to obtain a checking result worksheet; the obtaining of the expected worksheet according to the second preset path address and checking the expected worksheet with the worksheet to be checked to obtain a checking result worksheet, comprising: obtaining the expected worksheet according to the second preset path address and reading the expected data in the expected worksheet; reading the data to be checked in the worksheet to be checked; creating a checking result worksheet and comparing the data to be checked with the expected data in the checking result worksheet Output the verification result, wherein the correctness of the data is verified by comparing the data to be verified with the expected data, reading the second preset path address, calling the expected worksheet according to the second preset path address, and reading the expected data in the expected worksheet, and then reading the data to be verified in the worksheet to be verified, after reading the data to be verified, creating a verification result worksheet, setting a comparison formula in the verification result worksheet, writing the read data to be verified and the expected data into the data comparison range of the comparison formula, and using the comparison formula to compare the data to be verified with the expected data one by one to output the verification result.
5. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 3 when executing the computer program.
6. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 3 can be implemented.
