CN110221952B - Service data processing method and device and service data processing system - Google Patents

Service data processing method and device and service data processing system Download PDF

Info

Publication number
CN110221952B
CN110221952B CN201910314174.8A CN201910314174A CN110221952B CN 110221952 B CN110221952 B CN 110221952B CN 201910314174 A CN201910314174 A CN 201910314174A CN 110221952 B CN110221952 B CN 110221952B
Authority
CN
China
Prior art keywords
service data
data
service
database
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910314174.8A
Other languages
Chinese (zh)
Other versions
CN110221952A (en
Inventor
杨爱宁
刘若琪
李帆
李智远
许浩然
杨梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Hujin Xinrong Technology Co ltd
Original Assignee
Beijing Hujin Xinrong Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Hujin Xinrong Technology Co ltd filed Critical Beijing Hujin Xinrong Technology Co ltd
Priority to CN201910314174.8A priority Critical patent/CN110221952B/en
Publication of CN110221952A publication Critical patent/CN110221952A/en
Application granted granted Critical
Publication of CN110221952B publication Critical patent/CN110221952B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software

Abstract

The invention discloses a method and a device for processing service data and a service data processing system. Wherein, the method comprises the following steps: acquiring first characteristic data to be tested, wherein the first characteristic data is generated by a user through triggering an operation object on a first interface; sending the first characteristic data to a second interface, wherein the second interface is used for creating a scheduling task according to the first characteristic data, and the scheduling task carries a first service data path corresponding to the first characteristic data; and calling target service data according to the first service data path through the second interface, and modifying a first database corresponding to the appointed preset service in the first characteristic data by using the target service data. The invention solves the technical problem of lower efficiency in testing the service system in the related art.

Description

Service data processing method and device and service data processing system
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for processing service data and a service data processing system.
Background
At present, in order to facilitate the development of services, different service systems are respectively constructed in various fields according to different services, and the service systems may have problems such as instability in the use process, so that the service systems need to be tested regularly or irregularly in order to avoid inconvenience caused by instability of the service systems to the services. However, most service systems may have multiple functions, so that multiple subsystems may be developed for the multiple functions, and in the process of testing the service systems, sometimes, it is not necessary to test the entire service system, but only a certain frequently used or important subsystem is tested. However, the subsystems in the whole business system are mostly related and not independent. Therefore, when a certain subsystem is tested, the service data of the whole service system or other subsystems in the whole service system may be needed, in this case, because only the service data of the subsystem is stored in the subsystem to be tested, and in addition, the scheduling platform for testing the subsystem does not have the service data of the whole service system, when only a certain subsystem is tested, the process of the whole service system needs to be performed once, and the test of the certain subsystem can be realized, which may result in a long test period and waste of a large amount of time.
For example, in the financial field, if a is a financial service platform, the service platform has a plurality of functions, such as borrowing and returning money. If the money returning function of the financial service platform A needs to be tested to determine whether the money returning function is normal, borrowing data before money returning needs to be called to construct a test scene, so that the test scene is very complicated, the test period is prolonged, and the experience of a user using the financial service platform A is reduced.
Aiming at the problem of low efficiency in the test of the service system in the related technology, no effective solution is provided at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for processing service data and a service data processing system, which are used for at least solving the technical problem of low efficiency in testing the service system in the related art.
According to an aspect of the embodiments of the present invention, a method for processing service data is provided, including: acquiring first characteristic data to be tested, wherein the first characteristic data is generated by a user through triggering an operation object on a first interface; sending the first characteristic data to a second interface, wherein the second interface is used for creating a scheduling task according to the first characteristic data, and the scheduling task carries a first service data path corresponding to the first characteristic data; and calling target service data according to the first service data path through the second interface, and modifying a first database corresponding to the appointed preset service in the first characteristic data by using the target service data.
Optionally, the second interface is an interface corresponding to a scheduling platform, and service data for optimizing a database of a predetermined environment is stored in the scheduling platform.
Optionally, before the target service data is called according to the service data path through the second interface, the method for processing the service data further includes: and performing data recording on the scheduling platform to obtain total service data including the target service data, wherein the total service data is service data corresponding to each subsystem in a service system corresponding to the scheduled service.
Optionally, the data recording is performed on the scheduling platform, and obtaining total service data including the target service data includes: starting a binary log file binlog of a mysql database of the scheduling platform; acquiring a second service data path of each subsystem, and calling service data corresponding to each subsystem through the second service data path; and after the calling of the service data corresponding to each subsystem through the second service data path is finished, closing the binary log file binlog, and updating the called service data corresponding to each subsystem to a second database of the scheduling platform to obtain the total service data.
Optionally, before the service data corresponding to the called subsystems is updated to the second database of the scheduling platform, the method for processing the service data further includes: and filtering the service data corresponding to each subsystem according to a preset rule to obtain second service data meeting a preset condition, and updating the second service data to the second database.
Optionally, the method for processing service data further includes: determining third service data which are the same as the second service data in the original service data in the second database; and deleting the third business data from the second database.
According to another aspect of the embodiments of the present invention, there is provided a device for processing service data, including: the device comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring first characteristic data to be tested, and the first characteristic data is generated by a user through triggering an operation object on a first interface; a sending unit, configured to send the first feature data to a second interface, where the second interface is configured to create a scheduling task according to the first feature data, and the scheduling task carries a first service data path corresponding to the first feature data; and the calling unit is used for calling target service data according to the first service data path through the second interface and modifying a first database corresponding to the appointed preset service in the first characteristic data by using the target service data.
Optionally, the second interface is an interface corresponding to a scheduling platform, and service data for optimizing a database of a predetermined environment is stored in the scheduling platform.
Optionally, the device for processing service data further includes: and the recording unit is used for recording data of the scheduling platform before the target service data is called through the second interface according to the service data path to obtain total service data comprising the target service data, wherein the total service data is service data corresponding to each subsystem in a service system corresponding to the predetermined service.
Optionally, the recording unit includes: the starting module is used for starting a binary log file binlog of the mysql database of the scheduling platform; the acquisition module is used for acquiring a second service data path of each subsystem and calling service data corresponding to each subsystem through the second service data path; and the updating module is used for closing the binary log file binlog after the calling of the service data corresponding to each subsystem through the second service data path is finished, and updating the called service data corresponding to each subsystem to a second database of the scheduling platform to obtain the total service data.
Optionally, the apparatus for processing service data further includes: and the filtering unit is used for filtering the service data corresponding to each subsystem according to a preset rule before updating the called service data corresponding to each subsystem to a second database of the scheduling platform to obtain second service data meeting a preset condition, and updating the second service data to the second database.
Optionally, the device for processing service data further includes: a determining unit, configured to determine a third service data that is the same as the second service data in the original service data in the second database; and the deleting unit is used for deleting the third service data from the second database.
According to another aspect of the embodiment of the present invention, a service data processing system is further provided, where the service data processing system uses the service data processing method described in any one of the above.
According to another aspect of the embodiment of the present invention, a storage medium is further provided, where the storage medium includes a stored program, and the program executes the service data processing method described in any one of the foregoing descriptions.
According to another aspect of the embodiment of the present invention, there is further provided a processor, where the processor is configured to execute a program, where the program executes the method for processing the service data when running.
In the embodiment of the invention, first characteristic data to be tested is acquired, wherein the first characteristic data is data generated by a user through triggering an operation object on a first interface; then sending the first characteristic data to a second interface, wherein the second interface is used for creating a scheduling task according to the first characteristic data, and the scheduling task carries a first service data path corresponding to the first characteristic data; in the embodiment of the application, a scheduling task can be created according to the acquired first characteristic data, the interface is called to call the service data to modify the designated database (namely the first database), and the called service data is updated into the designated database, so that when a certain subsystem in the service system is tested, the service data can be directly acquired from the designated database, the technical effect of improving the testing efficiency of the service system is achieved, and the technical problem of lower efficiency in testing the service system in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention and do not constitute a limitation of the invention. In the drawings:
fig. 1 is a flowchart of a method for processing service data according to an embodiment of the present invention;
fig. 2 is a preferred flowchart of a method for processing service data according to an embodiment of the present invention;
fig. 3 is a flowchart of a service data recording according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a service data processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided a method embodiment of a method for processing business data, it is noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that presented herein.
Fig. 1 is a flowchart of a method for processing service data according to an embodiment of the present invention, and as shown in fig. 1, the method for processing service data includes the following steps:
step S102, first characteristic data to be tested are obtained, wherein the first characteristic data are generated by a user through triggering an operation object on a first interface.
In step S102, the first interface may be a web page, and when it is necessary to test whether a subsystem of a certain service system is normal, a recovery button on the web page may be clicked to obtain information such as a product type, a service scene, and a destination environment selected by an operator. Before the operator selects information such as a product type, a service scene, a target environment and the like, the scheduling platform sends some labels to the web page according to the functions of the scheduling platform, so that the operator can clearly know the functions of the scheduling platform. And under the condition of failed transmission, displaying error information on the web page, and waiting for callback if the transmission is successful.
Taking financial services platform a as an example, the main product types include but are not limited to: paying and borrowing after consuming; the borrowing business scenario may include: before, during and after loan; wherein, before loan may include: information acquisition, contract signing and the like; the loan may include: checking funds, issuing funds and the like; after loan, the method comprises the following steps: and repayment of funds. The target environment is mainly suitable for testers, and the testers can directly enter the target environment if the testers want to modify fonts, pictures, colors and the like in the interface of a certain subsystem of the business system.
And step S104, sending the first characteristic data to a second interface, wherein the second interface is used for creating a scheduling task according to the first characteristic data, and the scheduling task carries a first service data path corresponding to the first characteristic data.
In step S104, when the operator determines that the data includes but is not limited to: and after the first characteristic data of the product type and the service scene, creating a scheduling task according to the first characteristic data, obtaining a corresponding data file from the git, executing an automatic script, and calling an interface to modify a specified database so as to achieve the purpose of recovering the service scene.
Fig. 2 is a preferred flowchart of a service data processing method according to an embodiment of the present invention, and as shown in fig. 2, a tag sent by a scheduling platform is obtained from a web page, first feature data is determined according to the obtained tag, and the first feature data is sent to the scheduling platform, and the scheduling platform may create a scheduling task according to the first feature data, obtain a corresponding data file from git, execute an automation script, and recover service data, that is, modify a database of a service system or a subsystem of the service system.
Wherein git is an open source distributed version control system, which can effectively process the version management of the project from very small to very large at high speed.
And step S106, calling target service data through the second interface according to the first service data path, and modifying a first database corresponding to the appointed preset service in the first characteristic data by using the target service data.
Through the steps, first characteristic data to be tested can be obtained, wherein the first characteristic data is data generated by a user through triggering an operation object on a first interface; sending the first characteristic data to a second interface, wherein the second interface is used for creating a scheduling task according to the first characteristic data, and the scheduling task carries a first service data path corresponding to the first characteristic data; and calling target service data according to the first service data path through the second interface, and modifying a first database corresponding to the appointed preset service in the first characteristic data by using the target service data. In the embodiment of the application, a scheduling task can be created according to the acquired first characteristic data, an interface is called to call service data to modify a specified database (namely, a first database), and the called service data is updated into the specified database, so that when a certain subsystem in a service system is tested, the service data can be directly acquired from the specified database, the technical effect of improving the testing efficiency of the service system is achieved, and the technical problem of low efficiency in testing the service system in the related art is solved.
In step S104, the second interface is an interface corresponding to the scheduling platform, and the scheduling platform stores service data for optimizing the database of the predetermined environment.
As an optional embodiment, before the target service data is called according to the service data path through the second interface, the method for processing the service data may further include: and recording data on the scheduling platform to obtain total service data including the target service data, wherein the total service data is service data corresponding to each subsystem in a service system corresponding to the predetermined service.
For example, when testing whether each function of the financial service platform a is normal for the first time, business data recording is required, that is, business data of the whole financial service platform a is copied to the scheduling platform. Therefore, when the financial service platform A or a subsystem therein is tested through the dispatching platform, the whole business process does not need to be carried out, and the business data can be directly dispatched from the preset file of the dispatching platform, so that the testing efficiency can be improved.
Specifically, the data recording is performed on the scheduling platform, and obtaining total service data including the target service data may include: starting a binary log file binlog of a mysql database of a scheduling platform; acquiring a second service data path of each subsystem, and calling service data corresponding to each subsystem through the second service data path; and after the service data corresponding to each subsystem is called through the second service data path, closing the binlog of the binary log file, and updating the called service data corresponding to each subsystem to a second database of the scheduling platform to obtain total service data.
Fig. 3 is a flowchart of recording service data according to an embodiment of the present invention, and as shown in fig. 3, when recording service data, a start point of a binary log file binlog may be set first, then an interface (i.e., a second service data path) is called to acquire service data of each subsystem in a service system, and when determining to acquire service data of all subsystems in the entire service system, it is determined that the acquisition of service data is completed, and the binary log file binlog is ended; and meanwhile, searching the qualified service data in the database, and storing the qualified service data into a preset file. It should be noted that the above-mentioned service data recording process is implemented on a scheduling platform.
Specifically, before the service data corresponding to each called subsystem is updated to the second database of the scheduling platform, the method for processing the service data may further include: and filtering the service data corresponding to each subsystem according to a preset rule to obtain second service data meeting a preset condition, and updating the second service data to a second database.
As an optional embodiment, the method for processing service data further includes: determining the third service data which is the same as the second service data in the original service data in the second database; and deleting the service data III from the second database.
In addition, the embodiment of the invention also provides a service data processing system, and the service data processing system uses any one of the service data processing methods.
The embodiment of the invention can achieve the following effective effects through the service data processing method and the service data processing system: 1. the recovery of the service data is realized by automatically recording the service data, wherein the recovery of the service data is to update or modify a database of a certain subsystem in a service system; 2. when the data is recovered, the service data which is in the database and is the same as the main key of the service data to be recovered is removed, so that the problem of storage resources can be solved; 3. the integrity of the service data is ensured by calling an interface; 4. the adoption of the web interface reduces the use difficulty of operators and increases the applicability of the service data modification system.
Example 2
The embodiment of the present invention further provides a device for processing service data, and it should be noted that the device for processing service data of the embodiment of the present invention may be used to execute the method for processing service data provided by the embodiment of the present invention. The following describes a device for processing service data according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of a service data processing apparatus according to an embodiment of the present invention, and as shown in fig. 4, the service data processing apparatus includes: a first acquisition unit 41, a transmission unit 43 and a retrieval unit 45. The following describes the processing apparatus of the service data in detail.
The first obtaining unit 41 is configured to obtain first feature data to be tested, where the first feature data is data generated by a user by triggering an operation object on a first interface.
A sending unit 43, configured to send the first feature data to a second interface, where the second interface is configured to create a scheduling task according to the first feature data, and the scheduling task carries a first service data path corresponding to the first feature data.
And the invoking unit 45 is configured to invoke the target service data according to the first service data path through the second interface, and modify the first database corresponding to the predetermined service specified in the first feature data by using the target service data.
It should be noted that the first obtaining unit 41 in this embodiment may be configured to execute step S102 in this embodiment of the present invention, the sending unit 43 in this embodiment may be configured to execute step S104 in this embodiment of the present invention, and the invoking unit 45 in this embodiment may be configured to execute step S106 in this embodiment of the present invention. The modules are the same as the corresponding steps in the realized examples and application scenarios, but are not limited to the disclosure of the above embodiments.
In this embodiment, the first obtaining unit 41 may be used to obtain first feature data to be tested, where the first feature data is data generated by a user by triggering an operation object on a first interface; then, the sending unit 43 is utilized to send the first feature data to a second interface, where the second interface is used to create a scheduling task according to the first feature data, and the scheduling task carries a first service data path corresponding to the first feature data; and the target service data is called through the second interface by using the calling unit 45 according to the first service data path, and the first database corresponding to the predetermined service specified in the first feature data is modified by using the target service data. In the embodiment of the application, a scheduling task can be created according to the acquired first characteristic data, an interface is called to call service data to modify a specified database (namely, a first database), and the called service data is updated into the specified database, so that when a certain subsystem in a service system is tested, the service data can be directly acquired from the specified database, the technical effect of improving the testing efficiency of the service system is achieved, and the technical problem of low efficiency in testing the service system in the related art is solved.
As an optional embodiment, the second interface is an interface corresponding to a scheduling platform, and service data used for optimizing a database of a predetermined environment is stored in the scheduling platform.
As an optional embodiment, the apparatus for processing service data further includes: and the recording unit is used for recording data of the scheduling platform before the target service data is scheduled through the second interface according to the service data path to obtain total service data including the target service data, wherein the total service data is service data corresponding to each subsystem in a service system corresponding to the scheduled service.
As an alternative embodiment, the recording unit includes: the starting module is used for starting a binary log file binlog of the mysql database of the scheduling platform; the acquisition module is used for acquiring a second service data path of each subsystem and calling service data corresponding to each subsystem through the second service data path; and the updating module is used for closing the binary log file binlog after the service data corresponding to each subsystem is called through the second service data path, and updating the called service data corresponding to each subsystem to the second database of the scheduling platform to obtain the total service data.
As an optional embodiment, the apparatus for processing service data further includes: and the filtering unit is used for filtering the service data corresponding to each subsystem according to a preset rule before updating the called service data corresponding to each subsystem to a second database of the scheduling platform to obtain second service data meeting a preset condition, and updating the second service data to the second database.
As an optional embodiment, the apparatus for processing service data further includes: the determining unit is used for determining third service data which are the same as the second service data in the original service data in the second database; and the deleting unit is used for deleting the third service data from the second database.
The processing device of the service data includes a processor and a memory, the first obtaining unit 41, the sending unit 43, the retrieving unit 45, and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls a corresponding program unit from the memory. The kernel can be set to be one or more, target service data is called through adjusting kernel parameters according to the first service data path through the second interface, and a first database corresponding to the appointed preset service in the first characteristic data is modified through the target service data.
The memory may include volatile memory in a computer readable medium, random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
According to another aspect of the embodiment of the present invention, there is also provided a storage medium including a stored program, where the program executes the method for processing the service data in any one of the above.
According to another aspect of the embodiment of the present invention, there is provided a processor, where the processor is configured to execute a program, where the program executes the method for processing the service data in any one of the foregoing embodiments when running.
The embodiment of the present invention further provides an apparatus, which includes a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, the following steps are implemented: acquiring first characteristic data to be tested, wherein the first characteristic data is generated by a user through triggering an operation object on a first interface; sending the first characteristic data to a second interface, wherein the second interface is used for creating a scheduling task according to the first characteristic data, and the scheduling task carries a first service data path corresponding to the first characteristic data; and calling target service data through the second interface according to the first service data path, and modifying a first database corresponding to the appointed preset service in the first characteristic data by using the target service data.
There is also provided in an embodiment of the invention a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: acquiring first characteristic data to be tested, wherein the first characteristic data is generated by a user through triggering an operation object on a first interface; sending the first characteristic data to a second interface, wherein the second interface is used for creating a scheduling task according to the first characteristic data, and the scheduling task carries a first service data path corresponding to the first characteristic data; and calling target service data through the second interface according to the first service data path, and modifying a first database corresponding to the appointed preset service in the first characteristic data by using the target service data.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the description of each embodiment has its own emphasis, and reference may be made to the related description of other embodiments for parts that are not described in detail in a certain embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (11)

1. A method for processing service data is characterized by comprising the following steps:
acquiring first characteristic data to be tested, wherein the first characteristic data is generated by a user through triggering an operation object on a first interface;
sending the first characteristic data to a second interface, wherein the second interface is used for creating a scheduling task according to the first characteristic data, the scheduling task carries a first service data path corresponding to the first characteristic data, the second interface is corresponding to a scheduling platform, and service data used for optimizing a database of a predetermined environment is stored in the scheduling platform;
performing data recording on the scheduling platform to obtain total service data including target service data, wherein the total service data are service data corresponding to each subsystem in a service system corresponding to a predetermined service;
and calling target service data according to the first service data path through the second interface, and modifying a first database corresponding to the appointed preset service in the first characteristic data by using the target service data.
2. The method of claim 1, wherein performing data recording on the scheduling platform to obtain total service data including the target service data comprises:
starting a binary log file binlog of a mysql database of the scheduling platform;
obtaining a second service data path of each subsystem, and calling each subsystem through the second service data path
Service data corresponding to the subsystem;
and after the calling of the service data corresponding to each subsystem through the second service data path is finished, closing the binary log file binlog, and updating the called service data corresponding to each subsystem to a second database of the scheduling platform to obtain the total service data.
3. The method according to claim 2, before updating the service data corresponding to the called subsystem to the second database of the scheduling platform, further comprising:
and filtering the service data corresponding to each subsystem according to a preset rule to obtain second service data meeting a preset condition, and updating the second service data to the second database.
4. The method of claim 3, further comprising:
determining the third service data which is the same as the second service data in the original service data in the second database;
and deleting the third service data from the second database.
5. A device for processing service data, comprising:
the device comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring first characteristic data to be tested, and the first characteristic data is generated by a user through triggering an operation object on a first interface;
a sending unit, configured to send the first feature data to a second interface, where the second interface is used to create a scheduling task according to the first feature data, the scheduling task carries a first service data path corresponding to the first feature data, the second interface is an interface corresponding to a scheduling platform, and service data used for optimizing a database in a predetermined environment is stored in the scheduling platform;
the recording unit is used for recording data of the scheduling platform before target service data is called through the second interface according to the service data path to obtain total service data including the target service data, wherein the total service data are service data corresponding to each subsystem in a service system corresponding to a preset service;
and the calling unit is used for calling target service data according to the first service data path through the second interface and modifying a first database corresponding to the appointed preset service in the first characteristic data by using the target service data.
6. The apparatus of claim 5, wherein the recording unit comprises:
the starting module is used for starting a binary log file binlog of the mysql database of the scheduling platform;
the acquisition module is used for acquiring a second service data path of each subsystem and calling service data corresponding to each subsystem through the second service data path;
and the updating module is used for closing the binary log file binlog after the calling of the service data corresponding to each subsystem through the second service data path is finished, and updating the called service data corresponding to each subsystem to a second database of the scheduling platform to obtain the total service data.
7. The apparatus of claim 6, further comprising:
and the filtering unit is used for filtering the service data corresponding to each subsystem according to a preset rule before updating the called service data corresponding to each subsystem to a second database of the scheduling platform to obtain second service data meeting a preset condition, and updating the second service data to the second database.
8. The apparatus of claim 7, further comprising:
a determining unit, configured to determine a third service data that is the same as the second service data in the original service data in the second database;
and the deleting unit is used for deleting the third service data from the second database.
9. A service data processing system, characterized in that it uses the service data processing method of any one of claims 1 to 4.
10. A storage medium characterized by comprising a stored program, wherein the program executes the method of processing service data according to any one of claims 1 to 4.
11. A processor, characterized in that the processor is configured to execute a program, wherein the program executes the method for processing the service data according to any one of claims 1 to 4.
CN201910314174.8A 2019-04-18 2019-04-18 Service data processing method and device and service data processing system Active CN110221952B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910314174.8A CN110221952B (en) 2019-04-18 2019-04-18 Service data processing method and device and service data processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910314174.8A CN110221952B (en) 2019-04-18 2019-04-18 Service data processing method and device and service data processing system

Publications (2)

Publication Number Publication Date
CN110221952A CN110221952A (en) 2019-09-10
CN110221952B true CN110221952B (en) 2023-04-07

Family

ID=67819816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910314174.8A Active CN110221952B (en) 2019-04-18 2019-04-18 Service data processing method and device and service data processing system

Country Status (1)

Country Link
CN (1) CN110221952B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110895509B (en) * 2019-11-15 2023-04-18 泰康保险集团股份有限公司 Test processing method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108959041A (en) * 2017-05-18 2018-12-07 腾讯科技(深圳)有限公司 Method, server and the computer readable storage medium that information is sent
CN109542657A (en) * 2018-10-16 2019-03-29 深圳壹账通智能科技有限公司 The processing method and server of system exception

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100346308C (en) * 2005-11-24 2007-10-31 华为技术有限公司 Automatic test method based on database operation
CN102999554B (en) * 2012-10-15 2016-04-06 北京京东世纪贸易有限公司 Business data processing method and device
CN102999610A (en) * 2012-11-22 2013-03-27 用友软件股份有限公司 Data access system and data access method
CN107995242A (en) * 2016-10-27 2018-05-04 北京京东尚科信息技术有限公司 A kind of method for processing business and system
CN107220044B (en) * 2017-05-10 2020-08-11 北京数码大方科技股份有限公司 Method and device for driving business object based on meta-model
CN107315776B (en) * 2017-05-27 2020-06-23 国网安徽省电力公司信息通信分公司 Data management system based on cloud computing
CN107894953A (en) * 2017-11-21 2018-04-10 中国银行股份有限公司 A kind of generation method and device of Bank application test data
CN108196876B (en) * 2017-11-29 2020-07-07 贝壳找房(北京)科技有限公司 PHP service configuration method based on file and central server
CN108876445A (en) * 2018-05-31 2018-11-23 华北电力大学 A kind of data interoperation application based on battalion's distribution end-equipment common information model

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108959041A (en) * 2017-05-18 2018-12-07 腾讯科技(深圳)有限公司 Method, server and the computer readable storage medium that information is sent
CN109542657A (en) * 2018-10-16 2019-03-29 深圳壹账通智能科技有限公司 The processing method and server of system exception

Also Published As

Publication number Publication date
CN110221952A (en) 2019-09-10

Similar Documents

Publication Publication Date Title
US9170921B2 (en) Application testing automation
US10204125B2 (en) Method, apparatus, and application platform for updating application object attribute
CN108776643B (en) Target code merging control method and system based on version control process
CN113448862B (en) Software version testing method and device and computer equipment
US20170371641A1 (en) Multi-tenant upgrading
CN110032568B (en) Data structure reading and updating method and device, and electronic equipment
CN111538659B (en) Interface testing method, system, electronic equipment and storage medium of business scene
CN110442371A (en) A kind of method, apparatus of release code, medium and computer equipment
US11422917B2 (en) Deriving software application dependency trees for white-box testing
CN108650123B (en) Fault information recording method, device, equipment and storage medium
CN110716804A (en) Method and device for automatically deleting useless resources, storage medium and electronic equipment
CN110221952B (en) Service data processing method and device and service data processing system
CN106529281A (en) Executable file processing method and device
CN111930633A (en) Data testing method, platform, electronic device and storage medium
CN115237441A (en) Upgrade test method, device and medium based on cloud platform
CN114936152A (en) Application testing method and device
CN114756224A (en) Activity execution method and device
JP6336919B2 (en) Source code review method and system
CN111597119A (en) Test script updating method and device, storage medium and processor
CN111770080A (en) Method and device for recovering device fingerprint
CN110517010A (en) A kind of data processing method, system and storage medium
CN113127056B (en) Information processing method, device, equipment and readable storage medium
US20230376280A1 (en) Methods, systems and computer program products for optimizing computer programming for workflow development
US20230385056A1 (en) Removing inactive code to facilitate code generation
CN110046055B (en) Application flash backing processing method and device, terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant