Disclosure of Invention
Based on this, it is necessary to provide a business testing method, a computer device, a computer readable storage medium and a computer program product in view of the above technical problems.
In a first aspect, the present application provides a service testing method. The method comprises the steps of obtaining an original business data table, obtaining business input data from the original business data table, inputting the business input data into a business executor for processing to obtain a business processing file, obtaining an associated file structure corresponding to the business processing file, carrying out data analysis on the business processing file according to an analysis strategy corresponding to the associated file structure, writing the business processing data obtained through analysis into the business data table to obtain a target business data table, and carrying out data check according to the original business data table and the target business data table to obtain a data check result, wherein the data check result is used for determining a business test result of the business executor.
In a second aspect, the application further provides a service testing device. The device comprises a business input data acquisition module, a processing module, a target business data table acquisition module and a data check module, wherein the business input data acquisition module is used for acquiring an original business data table, acquiring business input data from the original business data table, the processing module is used for inputting the business input data into a business executor for processing to obtain a business processing file, the target business data table acquisition module is used for acquiring an associated file structure corresponding to the business processing file, carrying out data analysis on the business processing file according to an analysis strategy corresponding to the associated file structure, writing the business processing data obtained through analysis into the business data table to obtain a target business data table, and the data check module is used for carrying out data check according to the original business data table and the target business data table to obtain a data check result, and the data check result is used for determining a business test result of the business executor.
In some embodiments, the target service data table obtaining module is configured to obtain a file name of the service processing file, determine whether the file name matches a naming rule corresponding to a target file structure, and when the file name matches the naming rule, use the target file structure as an associated file structure.
In some embodiments, the target service data table obtaining module is configured to use a parent class file structure corresponding to the service processing file as an associated file structure when the file name is not matched with a naming rule corresponding to the target file structure, obtain a structure inheritance relationship between the file structure corresponding to the service processing file and the parent class file structure, and perform data analysis on the service processing file according to the structure inheritance relationship and an analysis policy corresponding to the parent class file structure.
In some embodiments, the data parsing of the service processing file according to the structure inheritance relationship and the parsing policy corresponding to the parent file structure includes determining, according to the structure inheritance relationship, a first sub-file content inheriting the parent file structure in the service processing file, where a file content other than the first sub-file content in the service processing file is used as a second sub-file content, performing data parsing of the first sub-file content according to the parsing policy corresponding to the parent file structure, and performing data parsing of the second sub-file content according to a preset field matching rule.
In some embodiments, the data checking module is configured to obtain a data identifier corresponding to target service processing data in the target service data table, obtain original service processing data corresponding to the data identifier from the original service data table, and perform consistency check on the target service processing data and the original service processing data to obtain a consistency check result.
In some embodiments, the processing module is configured to determine an associated data pair in the service input data, input the service input data to a service executor for processing, trigger to execute an interrupt instruction when it is detected that the forward processing data of the associated data pair is processed, so that the service processing procedure is interrupted, and trigger to continue to execute the instruction when the interrupt duration reaches a duration threshold, so that the service executor continues to execute the service processing procedure for the service input data, and process to obtain a service processing file.
In a third aspect, the present application also provides a computer device. The computer equipment comprises a memory and a processor, wherein the memory stores a computer program, the processor executes the computer program to realize the following steps of acquiring an original business data form, acquiring business input data from the original business data form, inputting the business input data into a business executor for processing to obtain a business processing file, acquiring an associated file structure corresponding to the business processing file, carrying out data analysis on the business processing file according to an analysis strategy corresponding to the associated file structure, writing the analyzed business processing data into the business data form to obtain a target business data form, carrying out data check according to the original business data form and the target business data form to obtain a data check result, and determining a business test result of the business executor by the data check result
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium is stored with a computer program, when the computer program is executed by a processor, the method comprises the steps of obtaining an original business data table, obtaining business input data from the original business data table, inputting the business input data into a business executor for processing to obtain business processing files, obtaining associated file structures corresponding to the business processing files, carrying out data analysis on the business processing files according to analysis strategies corresponding to the associated file structures, writing the business processing data obtained through analysis into the business data table to obtain a target business data table, and carrying out data check according to the original business data table and the target business data table to obtain a data check result, wherein the data check result is used for determining a business test result of the business executor.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program, when the computer program is executed by a processor, the method comprises the following steps of obtaining an original business data table, obtaining business input data from the original business data table, inputting the business input data into a business executor for processing to obtain business processing files, obtaining associated file structures corresponding to the business processing files, carrying out data analysis on the business processing files according to analysis strategies corresponding to the associated file structures, writing the business processing data obtained through analysis into the business data table to obtain a target business data table, and carrying out data check according to the original business data table and the target business data table to obtain a data check result, wherein the data check result is used for determining a business test result of the business executor.
The business testing method, the business testing device, the computer equipment, the storage medium and the computer program product are used for acquiring an original business data form, generating business input data according to the original business data form, inputting the business input data into a business executor for processing to obtain business processing files, acquiring associated file structures corresponding to the business processing files, carrying out data analysis on the business processing files according to analysis strategies corresponding to the associated file structures, writing the business processing data obtained through analysis into the business data form to obtain a target business data form, carrying out data check according to the original business data form and the target business data form to obtain a data check result, and determining a business testing result of the business executor by the data check result. The business input data can be obtained based on the original business data table, the business processing file can be obtained based on the business input data, the business processing file can be analyzed according to the corresponding association file structure to obtain the target business data table, and the data is checked based on the target business data table and the original business data table, so that whether the business processing logic of the business executor is correct or not can be determined based on the result of data check, an accurate business test result can be obtained, and the business test can be automatically carried out, thereby improving the efficiency of the business test.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
It should be noted that, the service testing method of the present disclosure may be used for testing a service executor for processing transaction data in a financial field, and may also be used for testing a service of a service executor in any field other than the financial field, and the application field of the service testing method is not limited in the present disclosure.
The service testing method provided by the embodiment of the application can be applied to the application environment shown in figure 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server. The terminal 102 may send a service test instruction to the server 104, where the service test instruction may carry an identifier of a service executor, and the server may determine, based on the identifier of the service executor, a service executor to be tested, obtain an original data table for testing the service executor, and execute the service test method provided by the embodiment of the present application. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart car devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In some embodiments, as shown in fig. 2, a service testing method is provided, and the method is applied to the server in fig. 1 for illustration, and includes the following steps:
Step S202, an original business data table is obtained, and business input data is obtained from the original business data table.
The original service data table may include service input data and correct service processing data obtained by inputting the service input data to the service executor for processing. The service data in the original service data table is determined according to the actual service scene. For example, assuming that the original business data table relates to a table of transaction data, the original business data table may include account names of both parties to the transaction, transaction amounts, account amounts respectively corresponding to both parties to the transaction before and after the transaction. Or the original business data table is a table about business receipts, the original business data table can comprise business receipts of each year.
The original business data table can be preset or generated in real time according to the test instruction. For example, a test data generation strategy corresponding to the service executor is preset, when a test instruction is received, the corresponding test data generation strategy is obtained according to the identification of the service executor in the test instruction, and an original service data table is generated according to the test data generation strategy. For example, a visual file template in a form is preset in the test data generation strategy, pre-stored data can be acquired, the pre-stored data is filled in the visual file template in the form of the form, and each file IP, port, directory and primary key are configured to generate an original business data form.
Specifically, the original service data table includes service input data, so the server can acquire the service input data from the original service data table. For example, when the original business data table includes the account name, the transaction amount, and the account amounts respectively corresponding to the transaction parties before and after the transaction, the account name, the transaction amount, and the account amounts of the transaction parties before the transaction may be used as business input data. For another example, the original data table includes transaction records, if abnormality detection is needed for the transaction records, the whole transaction record is service input data, and the service processing data may be an identifier for marking whether the transaction record is abnormal.
Step S204, inputting the business input data into the business executor for processing, and obtaining the business processing file.
The service executor is a program module for performing service processing, for example, an executor for performing transaction, and may also be an executor for performing blacklist detection or abnormal transaction detection. A service test needs to be performed on the service executor to determine whether the service processing logic of the service executor is normal.
Specifically, the service executor may perform data processing according to the service input data and the service processing logic to obtain a service processing file, where the service processing file includes data obtained by data processing, for example, an account amount after a transaction, a detection result of whether the transaction account is a blacklist account, or a detection result of whether the transaction record is abnormal. The service processing file is not a file in a table format, and the specific file format is different according to the settings of different service executors, for example, the json format or the xml format.
Step S206, obtaining the relevant file structure corresponding to the business processing file, carrying out data analysis on the business processing file according to the analysis strategy corresponding to the relevant file structure, and writing the business processing data obtained by analysis into a business data table to obtain a target business data table.
The file structure refers to a storage form of data in a file, for example, in a json format file, where the data may be stored in a key-value pair format, and may be stored in a preset field order. In the xml format file, the data may be arranged according to a preset arrangement order. Where xml refers to an extensible markup language, which is a markup language used to mark electronic files to be structured. The associated file structure corresponding to the service processing file may be the file structure of the service processing file itself or may be a parent structure corresponding to the service processing file, for example, according to an inheritance relationship, the file structures of some subclasses are the same as the parent part, and then the associated file structure corresponding to the service processing file may be the parent structure corresponding to the service processing file.
The server may preset an analysis policy corresponding to each file structure, where the analysis policy is used to analyze data corresponding to the file structure, for example, the analysis policy includes a location of data corresponding to each field in the file structure, so when an associated file structure corresponding to the service processing file is obtained, data analysis can be performed on data in the service data file according to the analysis policy corresponding to the associated structure, and required data is extracted from the data. The server can also acquire field characteristics corresponding to the target file structure, and analyze service processing data corresponding to corresponding fields in the service processing file according to the field characteristics. After the data is obtained through analysis, the server can write the data into a preset business data table according to a data writing rule, so that a target business data table is obtained.
For example, for transaction data, when the amount after the transaction is obtained, a transaction identifier corresponding to the transaction may be obtained, the transaction identifier is filled in a preset position in a preset service data form, and the transaction amount is correspondingly written into a cell corresponding to the transaction identifier in the service data form. For another example, for an xml format file, the file may be read sequentially, then the data corresponding to the corresponding field is intercepted according to the structure, and then the data is written into the service data table.
Step S208, data checking is carried out according to the original service data table and the target service data table to obtain a data checking result, and the data checking result is used for determining the service testing result of the service executor.
When checking, extracting correct service processing data corresponding to the service input data from the original service data table, namely the original service processing data, and comparing the original service processing data with target service processing data in the target service data table. The data checking result may be consistent or inconsistent, when the data checking result is consistent, the service execution logic test corresponding to the service executor passes, and if the data checking result is inconsistent, the service execution logic test corresponding to the service executor does not pass, that is, the service execution logic has a problem, and the reason that the data obtained by service execution is inaccurate needs to be further confirmed.
In some embodiments, performing data verification according to an original service data table and a target service data table to obtain a data verification result, wherein the data verification result comprises obtaining a data identifier corresponding to target service processing data in the target service data table, obtaining original service processing data corresponding to the data identifier from the original service data table, and performing consistency verification on the target service processing data and the original service processing data to obtain a consistency verification result.
The data identifier corresponding to the business process data may be, for example, a transaction identifier or an account identifier, which may be referred to as a primary key in the form, whose value is used to uniquely identify a record in the form, such as a transaction record. The primary key in the target service data table is the same as the primary key in the original service data table, and after the service executor processes the data, the primary key corresponding to the service input data can be obtained, and the primary key is also written into the service processing file. When data analysis is carried out, the primary key is written into the target business data table, so that the same piece of business input data is consistent with the corresponding primary key in the original business data table and the target business data table. Therefore, when data checking is performed, a data identifier corresponding to target service processing data in the target service data table can be obtained, original service processing data corresponding to the data identifier is obtained from the original service data table, consistency checking is performed on the target service processing data and the original service processing data, and a consistency checking result is obtained, wherein the consistency checking result can indicate whether expected service processing data of the same service input data is consistent with actual service processing data obtained by executing a service executor.
In the service testing method, the service input data can be obtained based on the original service data table, the service processing file can be obtained based on the service input data, the service processing file can be analyzed according to the corresponding association file structure to obtain the target service data table, and the data is checked based on the target service data table and the original service data table, so that whether the service processing logic of the service executor is correct or not can be determined based on the data checking result, an accurate service testing result can be obtained, and the service testing can be automatically performed, thereby improving the service testing efficiency.
In some embodiments, acquiring the associated file structure corresponding to the service processing file includes acquiring a file name of the service processing file, determining whether the file name matches a naming rule corresponding to the target file structure, and taking the target file structure as the associated file structure when the file name matches the naming rule.
The naming rule is a rule for naming the name of the file, and the naming rule corresponding to the target file structure is preset. For example, for the target file structure corresponding to the "xml" format, a naming rule of "NfxxxxTableInfo" is preset, which indicates that the first two letters are "Nf", and "xxxx" from the 3 rd bit to the 6 th bit indicates that the characters can be flexibly set, and the subsequent character string is "TableInfo". Assuming that the file name of the service processing file is "NfabcdTableInfo", it indicates that the file name of the service processing file matches the naming rule corresponding to the target file structure of the target file, and the file structure corresponding to "NfxxxxTableInfo" may be used as the associated file structure. Assuming that the file name of the service processing file is "abcdTableInfo", the file name of the service processing file does not match the naming rule corresponding to the target file structure. It will be appreciated that, since the file structure represents a storage structure of data in a file, for example, an arrangement manner of data or an arrangement position of data, which is specifically set according to an actual situation, the corresponding target file structures may be different for two files in the same format.
In the embodiment of the application, the naming rule of the file corresponding to each target file structure can be preset, so that the associated file structure corresponding to the service processing file can be determined according to the naming rule and the file name of the service processing file, thereby improving the efficiency of determining the associated file structure of the service processing file.
In some embodiments, as shown in fig. 3, obtaining an association file structure corresponding to a service processing file, and performing data analysis on the service processing file according to an analysis policy corresponding to the association file structure includes:
in step S302, when the file name does not match the naming rule corresponding to the target file structure, the parent file structure corresponding to the service processing file is used as the associated file structure.
Step S304, obtaining the structure inheritance relationship between the file structure corresponding to the service processing file and the parent file structure.
And step S306, carrying out data analysis on the service processing file according to the structure inheritance relationship and the analysis strategy corresponding to the parent file structure.
The file structure corresponding to the business processing file is a sub-class file structure, and the parent class file structure corresponding to the sub-class file structure is an associated file structure. The structure inheritance relationship may be pre-stored to indicate which parts of the child file structure are inherited from the parent file structure, e.g., to indicate the file location inherited from the parent file structure. For example, when the business process file corresponds to a file name other than "NfxxxxTableInfo", there is a file structure of the parent class. At this time, a program file corresponding to the read-write file, for example, 01na sewritetnfxxx. Assuming that the first half of the file structure of the child class is identical to the parent class according to the inheritance relationship, the service processing files to be processed can be read in sequence, then the first half of the file can be obtained by analyzing according to the parent class structure, and the second half of the file can be analyzed according to other analysis strategies.
In this embodiment, when the file name is not matched with the naming rule corresponding to the target file structure, that is, when the file structure of the service processing file cannot be found, data analysis can be performed according to the parent file structure corresponding to the service processing file, so that the efficiency of data analysis is improved.
In some embodiments, the data analysis of the service processing file according to the structure inheritance relationship and the analysis strategy corresponding to the parent file structure comprises determining the first sub-file content inheriting the parent file structure in the service processing file according to the structure inheritance relationship, wherein the file content except the first sub-file content in the service processing file is used as the second sub-file content, and the data analysis of the first sub-file content according to the analysis strategy corresponding to the parent file structure and the data analysis of the second sub-file content according to the preset field matching rule.
The structure in the first sub-file content is inherited by the parent class, so that the data analysis can be performed on the first sub-file content by adopting an analysis strategy corresponding to the parent class file structure. The structure in the second sub-file content is not inherited by the parent class, so a field matching rule may be preset, where a matching rule corresponding to each field is determined in the field matching rule, and if a data form corresponding to one data matches the field matching rule, it is indicated that the data is the data corresponding to the field, so the data corresponding to the field may be written into a cell corresponding to the field in the target service data table.
For example, for files transmitted by other systems, the conditions which are met by the fields can be defined and clear by establishing a field element library, which type the character string belongs to is analyzed one by one, and then automatic identification is carried out. For different types of data, corresponding field matching rules can be set according to the data form thereof.
In the embodiment of the application, for the file content of which the file name is not matched with the naming rule corresponding to the target file structure and the parent file structure is not inherited, the second sub-file content can be subjected to data analysis according to the preset field matching rule, so that the data obtained by data analysis can be more complete and accurate.
In some embodiments, the service input data comprises a plurality of data, the service input data is input into a service executor to be processed, processing to obtain a service processing file comprises determining an associated data pair in the service input data, inputting the service input data into the service executor to be processed, triggering an execution interrupt instruction to interrupt the service processing process when the forward processing data of the associated data pair is detected to be processed in the processing process, and triggering a continuous execution instruction to continuously execute the service processing process for the service input data when the interrupt duration reaches a duration threshold value to process to obtain the service processing file.
The service input data comprises a plurality of data, and the associated data pair comprises two data with an associated relation, for example, a result obtained by the service executor executing the previous data is used in the calculation of the next data, and the previous data and the next data form the associated data pair. The forward processing data of the associated data pair refers to data which is processed first in the associated data pair, when the service executor processes the service based on the service input data, if the forward processing data of the associated data pair is detected to be processed completely, the service executor can trigger to execute an interrupt instruction, so that the service processor pauses to process the service, and when the duration of the terminal reaches a preset duration threshold, for example, 5 minutes, the service executor can continue to execute the service processing process of the service input data by triggering to process the service input data, so as to obtain a service processing file. At this time, if the service execution logic of the service executor is accurate, when the execution is continued, the backward processing data of the associated data pair is processed based on the processing structure of the forward processing data.
In the embodiment of the application, for two associated data, one business processing flow corresponding to the two associated data is executed before interruption and the other business processing flow is executed after interruption, so that whether the business executor can continue the association processing can be detected, namely the association logic of the business executor can be detected, and the detection accuracy is improved.
The business testing method provided by the embodiment of the application can be applied to the testing of the batch files of the distributed system, for example, the distributed batch files distributed in each node can be tested, the obtained target business form can be sent to the testing terminal for display, and the manual check is carried out, so that the visual testing is realized.
In recent years, with the continuous progress of bank informatization, a single centralized system as a bank core system cannot meet the increasing business requirements, and the system architecture of the bank is gradually transformed into a distributed system architecture which can support high concurrency of transactions and can rapidly expand capacity. For example, 1000 tens of thousands of records are produced every day by bank account details, analysis and screening are needed for the details, and data messages in which back money laundering is needed are selected and sent to each supervision organization. For example, as shown in fig. 4, set 1-setn represent N split data, and file 1-file N represent N service processing files obtained by processing by the service executor. For example, after a distributed system is adopted, 1000 tens of thousands of data are calculated and put into 12 databases, n is equal to 12, and each database has about 83 tens of thousands of records, so that 12 databases are built in the aspect of horizontal database division, and corresponding servers are built. After receiving the data, the files are respectively imported into 12 databases through the route from the files, then the service executors of each server execute the screening logic, the data meeting the requirements of the screening logic generate the files, the files are stored in each file server, and finally the files are merged and reported to the supervision mechanism, so that the screening logic in the application program can be tested, and the accuracy of the screening logic in the application program is ensured.
As shown in FIG. 5, a schematic diagram of a distributed batch file processing system is shown. The core system generates transaction, generates a transaction detail file, can divide the transaction detail file into n parts, namely sets 1-setn, imports the n parts of data into a database, generates an original business data table based on the data in the database when business test is required, and marks whether each transaction record in the table should be screened or not manually. And for the transaction records in the original service data table, screening the transaction records to be reported through a service executor for back money laundering screening to obtain service processing files corresponding to each set, combining the service processing files corresponding to each set, and reporting the combined service processing files to a supervision system. In order to ensure the accuracy of the money laundering screening logic, the money laundering screening logic can be subjected to service test, and after the money laundering screening logic service test passes, the money laundering screening device is put on line.
In some embodiments, the step of automated testing for distributed files may include:
1. and (5) obtaining a visual file template (in a form) of the file by calling an analysis module of the file.
2. Filling the files to be tested into the form, and configuring the IP, the ports, the catalogues and the primary keys of each file so as to generate an original business data form which is a visual file in a form of a table.
3. Starting to execute the script, acquiring service input data in the original service data table, generating a file processed by a service executor based on the service input data, such as a file in a text format,
4. And calling batch executors distributed in the servers by the system, starting to acquire the files by the program, then executing file processing, and finally generating the files in the servers. When the file is successfully executed, the system automatically acquires the file for verification. Further, as shown in fig. 6, since there may be a case where the file server is disconnected or the like during execution of the job, it is necessary to perform automatic recognition of the abnormal data and verification of the setting conditions, for example, if the job is interrupted or the like, the system automatically re-extracts 3 times and collates the final file. Further, referring to FIG. 5, when a job is executed, an interrupt may be initiated manually, verifying that each breakpoint is recorded correctly when the job batch is interrupted, and then canceling the interrupt, and verifying that the subsequent flow is correct. Theoretically, the batch and manual initiation of the complete execution interrupt, and then the restoration, the final file should be the same.
5. The method comprises the steps of obtaining files from each server, merging, taking the merged files as service processing files, obtaining associated file structures corresponding to the service processing files, carrying out data analysis on the service processing files according to analysis strategies corresponding to the associated file structures, writing the analyzed service processing data into a service data table to obtain a target service data table, and then obtaining data in an original service data table according to a set main key for verification. The checking method is that the record in the original business data table is searched according to the set main key, if not, the record is checked without passing, if so, the checking is performed piece by piece according to the checking field set in the original business data table. If the verification is passed, the transaction record test is completed, if the verification is not passed, the transaction record is marked by the set color,
With the development of banking, distributed batch processing is normal. According to the bank distributed batch automatic testing method provided by the embodiment of the application, complicated files are visualized through the file analysis algorithm, so that the complexity of preparing data and checking the data is reduced, and meanwhile, the files are uniformly managed and automatically scheduled, so that efficient retrospective testing and continuous integration are realized.
It should be understood that, although the steps in the flowcharts related to the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a service testing device for realizing the service testing method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in one or more embodiments of the service testing device provided below may refer to the limitation of the service testing method hereinabove, and will not be repeated herein.
In some embodiments, as shown in fig. 7, there is provided a service testing apparatus, including:
The service input data acquiring module 702 is configured to acquire an original service data table, and acquire service input data from the original service data table;
The processing module 704 is configured to input service input data into the service executor for processing, where the service input data is processed to obtain a service processing file;
The target service data table obtaining module 706 is configured to obtain an association file structure corresponding to the service processing file, perform data analysis on the service processing file according to an analysis policy corresponding to the association file structure, and write service processing data obtained by the analysis into the service data table to obtain a target service data table;
The data checking module 708 is configured to perform data checking according to the original service data table and the target service data table, so as to obtain a data checking result, where the data checking result is used to determine a service test result of the service executor.
In some embodiments, the target service data table obtaining module is configured to obtain a file name of a service processing file, determine whether the file name matches a naming rule corresponding to a target file structure, and when the file name matches the naming rule, use the target file structure as an associated file structure.
In some embodiments, the target service data table obtaining module is configured to use a parent file structure corresponding to the service processing file as an associated file structure when the file name does not match a naming rule corresponding to the target file structure, obtain a structure inheritance relationship between the file structure corresponding to the service processing file and the parent file structure, and perform data analysis on the service processing file according to the structure inheritance relationship and an analysis policy corresponding to the parent file structure.
In some embodiments, the data analysis of the service processing file according to the structure inheritance relationship and the analysis strategy corresponding to the parent file structure comprises determining the first sub-file content inheriting the parent file structure in the service processing file according to the structure inheritance relationship, wherein the file content except the first sub-file content in the service processing file is used as the second sub-file content, and the data analysis of the first sub-file content according to the analysis strategy corresponding to the parent file structure and the data analysis of the second sub-file content according to the preset field matching rule.
In some embodiments, the data checking module is configured to obtain a data identifier corresponding to the target service processing data in the target service data table, obtain original service processing data corresponding to the data identifier from the original service data table, and perform consistency check on the target service processing data and the original service processing data to obtain a consistency check result.
In some embodiments, the processing module is configured to determine an associated data pair in service input data, input the service input data into the service executor for processing, trigger to execute an interrupt instruction to interrupt a service processing procedure when it is detected that forward processing data of the associated data pair is processed, and trigger to continue to execute the instruction when an interrupt duration reaches a duration threshold value to enable the service executor to continue to execute the service processing procedure for the service input data, and process to obtain a service processing file.
The modules in the service testing device may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In some embodiments, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 8. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store the original business data table. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a business testing method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 8 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In some embodiments, a computer device is provided, comprising a memory in which a computer program is stored, and a processor which implements the steps of the business testing method described above when the computer program is executed.
In some embodiments, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, implements the steps of a business testing method.
In some embodiments, a computer program product is provided comprising a computer program which, when executed by a processor, implements the steps of a business testing method.
The user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magneto-resistive random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (PHASE CHANGE Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.