Joint debugging test method, device, storage medium and electronic equipment
By obtaining and migrating transaction data and performing batch accounting processing based on the account processing files, the transaction data loss caused by the core system is solved, and the normal progress of joint debugging test is achieved.
Patent Information
- Application Number
- CN202210572114.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-24
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2042-05-24
AI Technical Summary
In the test environment, frequent daily cuts or batch skipping of core systems lead to abnormal transaction data processing in peripheral systems and some information is lost, affecting the normal progress of joint debugging tests.
By obtaining the current natural date and business date of the core system, migrating the transaction data in the natural date year and month table to the business date year and month table, and performing batch accounting processing of the transaction data in the business date year and month table based on the account processing documents of the core system to ensure data integrity.
It ensures the integrity of transaction data, avoids the loss of some information, and ensures the normal progress of joint debugging tests.
Smart Images

Figure CN114896159B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of testing technology, and in particular to a joint debugging test method, device, storage medium and electronic equipment. Background Art
[0002] In the test environment, the core system frequently switches dates or skips batches to quickly verify requirements, causing the core system's business date to far exceed the current calendar date. Peripheral systems, which process transactions by year and month, experience processing anomalies when posting transaction data in the year-month tables for the current business date, resulting in partial loss of transaction data and hindering joint debugging and testing.
[0003] Therefore, the existing technology has defects and needs to be improved and developed. Summary of the Invention
[0004] The embodiments of the present application provide a joint debugging test method, device, storage medium and electronic device, which can ensure that the peripheral system processes the transaction data in the current business date year-month table normally when recording the transaction data, the transaction data is not lost, and the normal progress of the joint debugging test is ensured.
[0005] The present invention provides a joint debugging and testing method, which includes:
[0006] Get the current natural date and current business date of the core system;
[0007] Obtaining a current natural date year-month table corresponding to the current natural date and a current business date year-month table corresponding to the current business date in the peripheral system, wherein the current natural date year-month table records transaction data generated when transactions are conducted on the current natural date;
[0008] Acquire the transaction data from the current natural date year-month table, and migrate the transaction data to the current business date year-month table;
[0009] Receive the data file sent by the core system after the transaction data is recorded, and based on the information in the file, record the transaction data in the current business date year-month table to complete the joint debugging test.
[0010] In the joint debugging test described in the embodiment of the present application, the receiving core system sends a data file after the transaction data is recorded, and based on the information in the file, the transaction data in the current business date year-month table is recorded to complete the joint debugging test, including:
[0011] Receiving a data file sent by the core system after the transaction data is recorded;
[0012] Dividing the transaction data in the current business date year-month table into batches to obtain multiple batches of transaction data;
[0013] Based on the information in the file, each batch of transaction data is recorded in turn to complete the joint debugging test.
[0014] In the joint debugging test described in the embodiment of the present application, after batching the transaction data in the current business date year-month table to obtain multiple batches of transaction data, the following is further included:
[0015] Sorting the plurality of batches of transaction data according to a preset order;
[0016] Based on the information in the file, each batch of transaction data is recorded in turn to complete the joint debugging test, including:
[0017] Based on the information in the file and the preset order, each batch of transaction data is recorded in turn to complete the joint debugging test.
[0018] In the joint debugging test described in the embodiment of the present application, obtaining the current natural date and current business date of the core system includes:
[0019] Automatically obtaining a current business date of the core system every first preset time period, and writing the current business date into a parameter file to generate a current business date table corresponding to the current business date;
[0020] Get the current natural date of the core system.
[0021] In the joint debugging test described in the embodiment of the present application, obtaining the transaction data from the current natural date year-month table and migrating the transaction data to the current business date table includes:
[0022] Obtaining the transaction data from the current natural date year-month table every second preset time period;
[0023] The transaction data is migrated to the current business date table.
[0024] In the joint debugging test described in the embodiment of the present application, the receiving core system sends a data file after the transaction data is recorded, and based on the information in the file, the transaction data in the current business date year-month table is recorded. Before completing the joint debugging test, the following is also included:
[0025] Detecting whether the core system has completed the accounting processing of the transaction data;
[0026] If so, the core system is controlled to send the data file.
[0027] In the joint debugging test described in the embodiment of the present application, the detection of whether the core system has completed the accounting processing of the transaction data includes:
[0028] Every third preset time period, the core system is checked to see whether it has completed the accounting processing of the transaction data of the relevant batch.
[0029] The present application also provides a joint debugging and testing device, comprising:
[0030] The first acquisition module is used to obtain the current natural date and current business date of the core system;
[0031] a second acquisition module configured to acquire a current natural date year-month table corresponding to the current natural date in the peripheral system, and a current business date year-month table corresponding to the current business date, wherein the current natural date year-month table records transaction data generated when transactions are conducted on the current natural date;
[0032] A third acquisition module is configured to acquire the transaction data from the current natural date year-month table and migrate the transaction data to the current business date year-month table;
[0033] The processing module is used to receive the data file sent by the core system after the transaction data is recorded, and according to the information in the file, the transaction data in the current business date year-month table is recorded to complete the joint debugging test.
[0034] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program runs on a computer, the computer is enabled to execute the joint debugging and testing method described in any embodiment.
[0035] An embodiment of the present application also provides an electronic device, which includes a processor and a memory, wherein a computer program is stored in the memory, and the processor is used to execute the joint debugging test method described in any embodiment by calling the computer program stored in the memory.
[0036] In the embodiment of the present application, before the data is recorded in the current business date year-month table according to the data file sent by the core system, the current natural date year-month table corresponding to the current natural date in the peripheral system and the current business date year-month table corresponding to the current business date are first obtained, and then the transaction data is obtained from the current natural date year-month table, and the transaction data is migrated to the current business date year-month table, thereby ensuring that the current business date year-month table contains the transaction data generated when the transaction is conducted on the current natural day, and then the transaction data in the current business date year-month table is recorded according to the data file sent by the core system, thereby ensuring the integrity of the transaction data and preventing the problem of partial loss of transaction data information affecting the normal progress of the joint debugging test. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] To more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present application. Those skilled in the art can also derive other drawings based on these drawings without inventive effort.
[0038] Figure 1 A flowchart of the joint debugging and testing method provided in an embodiment of the present application.
[0039] Figure 2 A schematic diagram of the structure of the joint debugging and testing device provided in an embodiment of the present application.
[0040] Figure 3 Another structural schematic diagram of the joint debugging and testing device provided in an embodiment of the present application.
[0041] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0043] An embodiment of the present application provides a joint debugging and testing method, which is applied to a peripheral system.
[0044] See also Figure 1 , Figure 1 A flow chart of a joint debugging and testing method provided in an embodiment of the present application. The joint debugging and testing method is applied to a peripheral system and may include the following steps:
[0045] Step 101: Obtain the current natural date and current business date of the core system.
[0046] The business date is the date on which the core system processes transaction data.
[0047] In some embodiments, obtaining the current natural date and current business date of the core system includes:
[0048] Automatically obtaining a current business date of the core system every first preset time period, and writing the current business date into a parameter file to generate a current business date table corresponding to the current business date;
[0049] Get the current natural date of the core system.
[0050] Because the business date increments with each batch data run by the core system, the current business date from the core system must be automatically retrieved at regular intervals. For example, if it's 2:00 PM and the current business date is 20250101, at 3:00 PM, after the core system finishes running the batch data for 20250101, the current business date will become 20250102. Peripheral systems don't know when the core system will finish running the batch data, so they need to query it at regular intervals. Therefore, peripheral systems need to automatically retrieve the current business date from the core system at a preset interval.
[0051] Among them, the first preset time length can be 1 hour, because according to research, obtaining once every 1 hour can not only meet the requirements, but also avoid the problem of obtaining too frequently.
[0052] Step 102, obtaining a current natural date year-month table corresponding to the current natural date in the peripheral system, and a current business date year-month table corresponding to the current business date, wherein the current natural date year-month table records transaction data generated when transactions are conducted on the current natural date.
[0053] Among them, the current business date year-month table and the current natural date year-month table have the same structure, but there is no transaction data in the current business date year-month table at this time.
[0054] Step 103: Acquire the transaction data from the current natural date year-month table, and migrate the transaction data to the current business date year-month table.
[0055] In some embodiments, obtaining the transaction data from the current natural date year-month table and migrating the transaction data to the current business date year-month table includes:
[0056] Obtaining the transaction data from the current natural date year-month table every second preset time period;
[0057] The transaction data is migrated to the current business date table.
[0058] The second preset duration can be 5 minutes, meaning that transaction data is retrieved from the current natural date year-month table every 5 minutes and then migrated to the current business date table. Because new transaction data is generated in the current natural date year-month table at regular intervals, new transaction data is retrieved from the current natural date year-month table every second preset duration.
[0059] Step 104: Receive the data file sent by the core system after the transaction data is recorded, and record the transaction data in the current business date year-month table based on the information in the file to complete the joint debugging test.
[0060] This data file is sent to the peripheral system after the core system has recorded the transaction data. The core system transmits this data to the peripheral system via a file, using the business date dimension, to inform the peripheral system which transactions have been recorded (Phase 1). The transaction data recorded in the current calendar year-month table is the transaction data transmitted to the peripheral system via MQ messages, using the calendar date dimension, at the time the transaction occurred (when the transaction occurred on the current calendar day) (Phase 2).
[0061] Among them, the transaction data in the current business date year-month table is recorded, that is, several accounting-related information is added to the current business date year-month table, that is, the data transferred from the core system to the peripheral system in the first stage is found in the current business date year-month table, and then the relevant accounting information (for example: accounting amount, accounting date, accounting serial number) is added.
[0062] In some embodiments, the receiving core system sends a data file after accounting the transaction data, and based on the information in the file, performs accounting on the transaction data in the current business date year-month table to complete the joint debugging test, including:
[0063] Receiving a data file sent by the core system after the transaction data is recorded;
[0064] Dividing the transaction data in the current business date year-month table into batches to obtain multiple batches of transaction data;
[0065] Based on the information in the file, each batch of transaction data is recorded in turn to complete the joint debugging test.
[0066] The reason why the transaction data in the current business date year-month table is divided into batches to generate multiple batches of transaction data and then recorded in the account is that the file contains many transaction records (for example, 1 million). It is impossible to record all the transaction data in the current business date year-month table at once. The transaction data in the current business date year-month table can only be divided into batches (100 records per batch) to generate multiple batches of transaction data. Then, the information corresponding to each batch of transaction data is obtained from the file and recorded in the account for each batch of transaction data in turn.
[0067] In some embodiments, after batching the transaction data in the current business date year-month table to obtain multiple batches of transaction data, the method further includes:
[0068] Sorting the plurality of batches of transaction data according to a preset order;
[0069] Based on the information in the file, each batch of transaction data is recorded in turn to complete the joint debugging test, including:
[0070] Based on the information in the file and the preset order, each batch of transaction data is recorded in turn to complete the joint debugging test.
[0071] Transaction data can be sorted by the amount of the transaction data. For example, the transaction data with larger amounts are sorted first and the transaction data with smaller amounts are sorted last. The transaction data with larger amounts are then processed first, so that the transaction data can be recorded in a more orderly manner.
[0072] In some embodiments, the receiving core system sends a data file after accounting the transaction data, and accounting the transaction data in the current business date year-month table based on the information in the file, before completing the joint debugging test, further includes:
[0073] Detecting whether the core system has completed the accounting processing of the transaction data;
[0074] If so, the core system is controlled to send the data file.
[0075] After checking whether the core system has completed all transaction data entry processing, it also checks whether the core system has packaged all transaction data into a file. If the core system has packaged all transaction data into a file, it controls the core system to send the data file. The core system sends the data file to the peripheral system based on the transaction date dimension.
[0076] In some embodiments, detecting whether the core system has completed all accounting processing of the transaction data includes:
[0077] Every third preset time period, the core system is checked to see whether it has completed the accounting processing of the transaction data of the relevant batch.
[0078] Among them, when the core system records transaction data, it records the data in batches, and each batch contains multiple transaction data. Among them, the third preset time length can be 15 minutes. Technical personnel in this field can set it according to actual conditions and no specific limitation is made here.
[0079] All of the above optional technical solutions can be combined in any way to form optional embodiments of the present application, and will not be described in detail here.
[0080] During specific implementation, the present application is not limited by the execution order of the various steps described. If no conflict occurs, some steps can be performed in other orders or simultaneously.
[0081] From the above, it can be seen that the joint debugging test method provided in the embodiment of the present application first obtains the current natural date year-month table corresponding to the current natural date in the peripheral system and the current business date year-month table corresponding to the current business date before recording the data in the current business date year-month table according to the data file sent by the core system, and then obtains the transaction data from the current natural date year-month table, and migrates the transaction data to the current business date year-month table, thereby ensuring that the current business date year-month table contains transaction data generated when the transaction is conducted on the current natural day, and then records the transaction data in the current business date year-month table according to the data file sent by the core system, thereby ensuring the integrity of the transaction data, and there will be no problem of partial loss of transaction data information affecting the normal progress of the joint debugging test.
[0082] An embodiment of the present application further provides a joint debugging and testing device, which can be integrated into an electronic device.
[0083] See also Figure 2 , Figure 2 This is a schematic diagram of the structure of the joint debugging and testing device provided in an embodiment of the present application. The joint debugging and testing device 30 may include:
[0084] The first acquisition module 31 is used to obtain the current natural date and current business date of the core system;
[0085] A second acquisition module 32 is configured to acquire a current natural date year-month table corresponding to the current natural date in the peripheral system, and a current business date year-month table corresponding to the current business date, wherein the current natural date year-month table records transaction data generated when transactions are conducted on the current natural date;
[0086] A third acquisition module 33 is configured to acquire the transaction data from the current natural date year-month table and migrate the transaction data to the current business date year-month table;
[0087] The processing module 34 is used to receive the data file sent by the core system after the transaction data is recorded, and to record the transaction data in the current business date year-month table according to the information in the file to complete the joint debugging test.
[0088] In some embodiments, the first acquisition module 31 is used to automatically obtain the current business date of the core system every first preset time period, and write the current business date into a parameter file to generate a current business date table corresponding to the current business date; obtain the current natural date of the core system.
[0089] In some embodiments, the third acquisition module 33 is configured to acquire the transaction data from the current natural date year-month table every second preset time period; and migrate the transaction data to the current business date table.
[0090] In some embodiments, the processing module 34 is used to receive a data file sent by the core system after the transaction data is recorded; batch the transaction data in the current business date year-month table to obtain multiple batches of transaction data; based on the information in the file, each batch of transaction data is recorded in turn to complete the joint debugging test.
[0091] In some embodiments, the processing module 34 is used to sequentially process each batch of the transaction data based on the information in the file and the preset order to complete the joint debugging test.
[0092] During specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same entity or several entities.
[0093] As can be seen from the above, the joint debugging and testing device 30 provided in the embodiment of the present application obtains the current natural date and the current business date of the core system through the first acquisition module 31; obtains the current natural date year-month table corresponding to the current natural date in the peripheral system, and the current business date year-month table corresponding to the current business date through the second acquisition module 32, wherein the current natural date year-month table records the transaction data generated when the transaction is conducted on the current natural day; obtains the transaction data from the current natural date year-month table through the third acquisition module 33, and migrates the transaction data to the current business date year-month table; receives the data file sent by the core system after the transaction data is recorded through the processing module 34, and records the transaction data in the current business date year-month table according to the information in the file to complete the joint debugging and testing.
[0094] See also Figure 3 , Figure 3 This is another structural diagram of a joint debugging and testing device provided in an embodiment of the present application. The joint debugging and testing device 30 includes a memory 120, one or more processors 180, and one or more applications, wherein the one or more applications are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include a first acquisition module 31, a second acquisition module 32, a third acquisition module 33, and a processing module 34. For example, the structure and connection relationship of the above components can be as follows:
[0095] The memory 120 can be used to store applications and data. The applications stored in the memory 120 include executable code. The applications can be composed of various functional modules. The processor 180 executes various functional applications and data processing by running the applications stored in the memory 120. In addition, the memory 120 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 with access to the memory 120.
[0096] Processor 180 is the control center of the device, connecting all components of the terminal using various interfaces and circuits. It executes or runs applications stored in memory 120 and accesses data stored in memory 120 to perform various device functions and process data, thereby providing overall monitoring of the device. Optionally, processor 180 may include one or more processing cores; preferably, processor 180 may integrate an application processor and a modem processor, with the application processor primarily processing the operating system, user interface, and application programs.
[0097] Specifically, in this embodiment, the processor 180 loads the executable code corresponding to one or more application processes into the memory 120 according to the following instructions, and the processor 180 runs the application stored in the memory 120 to implement various functions:
[0098] The first acquisition module 31 is used to obtain the current natural date and current business date of the core system;
[0099] A second acquisition module 32 is configured to acquire a current natural date year-month table corresponding to the current natural date in the peripheral system, and a current business date year-month table corresponding to the current business date, wherein the current natural date year-month table records transaction data generated when transactions are conducted on the current natural date;
[0100] A third acquisition module 33 is configured to acquire the transaction data from the current natural date year-month table and migrate the transaction data to the current business date year-month table;
[0101] The processing module 34 is used to receive the data file sent by the core system after the transaction data is recorded, and to record the transaction data in the current business date year-month table according to the information in the file to complete the joint debugging test.
[0102] In some embodiments, the first acquisition module 31 is used to automatically obtain the current business date of the core system every first preset time period, and write the current business date into a parameter file to generate a current business date table corresponding to the current business date; obtain the current natural date of the core system.
[0103] In some embodiments, the third acquisition module 33 is configured to acquire the transaction data from the current natural date year-month table every second preset time period; and migrate the transaction data to the current business date table.
[0104] In some embodiments, the processing module 34 is used to receive a data file sent by the core system after the transaction data is recorded; batch the transaction data in the current business date year-month table to obtain multiple batches of transaction data; based on the information in the file, each batch of transaction data is recorded in turn to complete the joint debugging test.
[0105] In some embodiments, the processing module 34 is used to sequentially process each batch of the transaction data based on the information in the file and the preset order to complete the joint debugging test.
[0106] The present application also provides an electronic device. Figure 4 , Figure 4A structural schematic diagram of an electronic device provided in an embodiment of the present application is shown, and the electronic device can be used to implement the joint debugging and testing method provided in the above embodiment.
[0107] like Figure 4 As shown, the electronic device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, and a power supply 190. Those skilled in the art will understand that Figure 4 The structure of the electronic device 1200 shown in the figure does not constitute a limitation on the electronic device 1200, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0108] RF circuit 110 is used to receive and transmit electromagnetic waves, converting them into electrical signals, thereby enabling communication with a communications network or other devices. RF circuit 110 may include various existing circuit components for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a subscriber identity module (SIM) card, and memory. RF circuit 110 can communicate with various networks, such as the Internet, an intranet, or a wireless network, or with other devices via a wireless network.
[0109] Memory 120 can be used to store software programs and modules, such as the program instructions / modules corresponding to the joint debugging and testing methods in the above-described embodiments. By running the software programs and modules stored in memory 120, processor 180 executes various functional applications and data processing, ensuring that the peripheral system processes transaction data in the current business date year-month table normally, preventing transaction data loss and ensuring the normal progress of the joint debugging and testing. Memory 120 may include high-speed random access memory (RAM) and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 120 may further include memory located remotely from processor 180, which can be connected to electronic device 1200 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0110] The input unit 130 can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical, or trackball signal input related to user settings and function control. Specifically, the input unit 130 may include a touch-sensitive surface 131 and other input devices 132. The touch-sensitive surface 131, also known as a touch display or touchpad, can detect user touch operations on or near it (for example, operations performed by a user using a finger, stylus, or any other suitable object or accessory on or near the touch-sensitive surface 131) and drive corresponding connected devices according to a pre-set program. Optionally, the touch-sensitive surface 131 may include a touch detection device and a touch controller. The touch detection device detects the user's touch position and detects signals generated by the touch operation, transmitting the signals to the touch controller. The touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 180. It can also receive and execute commands from the processor 180. In addition, the touch-sensitive surface 131 can be implemented using various types, including resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 131, the input unit 130 may further include other input devices 132. Specifically, the other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick.
[0111] The display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device 1200. These graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 131 may cover the display panel 141. When the touch-sensitive surface 131 detects a touch operation on or near it, it is transmitted to the processor 180 to determine the type of touch event. The processor 180 then provides corresponding visual output on the display panel 141 according to the type of touch event. Although in Figure 4 In the embodiment, the touch-sensitive surface 131 and the display panel 141 are implemented as two independent components to implement input and output functions. However, in some embodiments, the touch-sensitive surface 131 and the display panel 141 can be integrated to implement input and output functions.
[0112] The electronic device 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 141 and / or the backlight when the electronic device 1200 is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that recognize the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that the electronic device 1200 can also be configured with, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be described here.
[0113] The audio circuit 160, speaker 161, and microphone 162 provide an audio interface between the user and the electronic device 1200. The audio circuit 160 can convert received audio data into electrical signals and transmit them to the speaker 161, which then converts the signals into sound signals for output. Furthermore, the microphone 162 converts the collected sound signals into electrical signals, which are then received by the audio circuit 160 and converted into audio data. The audio data is then processed by the processor 180 and transmitted to, for example, another terminal via the RF circuit 110, or the audio data is output to the memory 120 for further processing. The audio circuit 160 may also include an earphone jack to allow communication between an external headset and the electronic device 1200.
[0114] The electronic device 1200 can help users send and receive emails, browse web pages, and access streaming media through the transmission module 170 (such as a Wi-Fi module), which provides users with wireless broadband Internet access. Figure 4 The transmission module 170 is shown, but it is understandable that it is not an essential component of the electronic device 1200 and can be omitted as needed without changing the essence of the invention.
[0115] Processor 180 is the control center of electronic device 1200. It connects all components of the phone using various interfaces and circuits. It executes software programs and / or modules stored in memory 120 and accesses data stored in memory 120 to perform various functions and process data. Optionally, processor 180 may include one or more processing cores. In some embodiments, processor 180 may integrate an application processor and a modem processor. The application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 180.
[0116] The electronic device 1200 also includes a power supply 190 (e.g., a battery) for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 180 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 190 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0117] Although not shown, the electronic device 1200 may further include a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically, in this embodiment, the display unit 140 of the electronic device 1200 is a touch screen display, and the electronic device 1200 further includes a memory 120 and one or more programs, wherein the one or more programs are stored in the memory 120 and are configured to be executed by the one or more processors 180. The one or more programs include instructions for performing the following operations:
[0118] Get the current natural date and current business date of the core system;
[0119] Obtaining a current natural date year-month table corresponding to the current natural date and a current business date year-month table corresponding to the current business date in the peripheral system, wherein the current natural date year-month table records transaction data generated when transactions are conducted on the current natural date;
[0120] Acquire the transaction data from the current natural date year-month table, and migrate the transaction data to the current business date year-month table;
[0121] Receive the data file sent by the core system after the transaction data is recorded, and based on the information in the file, record the transaction data in the current business date year-month table to complete the joint debugging test.
[0122] In some embodiments, the processor 180 is used to receive a data file sent by the core system after the transaction data is recorded; the transaction data in the current business date year-month table is batched to obtain multiple batches of transaction data; based on the information in the file, each batch of transaction data is recorded in turn to complete the joint debugging test.
[0123] In some embodiments, the processor 180 is used to sort multiple batches of the transaction data according to a preset order; based on the information in the file and the preset order, each batch of the transaction data is recorded in turn to complete the joint debugging test.
[0124] In some embodiments, the processor 180 is used to automatically obtain the current business date of the core system every first preset time period, and write the current business date into a parameter file to generate a current business date table corresponding to the current business date; obtain the current natural date of the core system.
[0125] In some embodiments, the processor 180 is configured to obtain the transaction data from the current natural date year-month table every second preset time period; and migrate the transaction data to the current business date table.
[0126] In some embodiments, the processor 180 is configured to detect whether the core system has completed all accounting processing of the transaction data; if so, control the core system to send the data file.
[0127] In some embodiments, the processor 180 is configured to detect whether the core system has completed the accounting processing of the transaction data of the relevant batch every third preset time period.
[0128] As can be seen from the above, an embodiment of the present application provides an electronic device 1200, which performs the following steps: obtaining the current natural date and the current business date of the core system; obtaining the current natural date year-month table corresponding to the current natural date in the peripheral system, and the current business date year-month table corresponding to the current business date, wherein the current natural date year-month table records the transaction data generated when the transaction is conducted on the current natural day; obtaining the transaction data from the current natural date year-month table, and migrating the transaction data to the current business date year-month table; receiving the data file sent by the core system after the transaction data is recorded, and according to the information in the file, recording the transaction data in the current business date year-month table to complete the joint debugging test.
[0129] An embodiment of the present application further provides a storage medium, wherein a computer program is stored in the storage medium. When the computer program is run on a computer, the computer executes the joint debugging and testing method described in any one of the above embodiments.
[0130] It should be noted that, for the joint debugging and testing method described in this application, ordinary testers in this field can understand that all or part of the process of implementing the joint debugging and testing method described in the embodiment of this application can be completed by controlling the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device. During the execution process, it may include the process of the embodiment of the joint debugging and testing method. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.
[0131] For the joint debugging and testing device of the embodiment of the present application, its various functional modules can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk.
[0132] The above is a detailed introduction to the joint debugging and testing method, device, storage medium, and electronic device provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. At the same time, for those skilled in the art, based on the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present application.
Claims
1. A joint debugging test method, applied to a peripheral system, characterized in that: The method comprises: Automatically obtaining a current business date of the core system every first preset time period, and writing the current business date into a parameter file to generate a current business date table corresponding to the current business date; Get the current natural date of the core system; Obtaining a current natural date year-month table corresponding to the current natural date and a current business date year-month table corresponding to the current business date in the peripheral system, wherein the current natural date year-month table records transaction data generated when transactions are conducted on the current natural date; Acquire the transaction data from the current natural date year-month table, and migrate the transaction data to the current business date year-month table; Receiving a data file sent by the core system after the transaction data is entered into the account; Dividing the transaction data in the current business date year-month table into batches to obtain multiple batches of transaction data; Based on the information in the file, each batch of transaction data is recorded in turn to complete the joint debugging test.
2. The joint debugging and testing method according to claim 1, wherein: After batching the transaction data in the current business date year-month table to obtain multiple batches of transaction data, the method further includes: Sorting the plurality of batches of transaction data according to a preset order; Based on the information in the file, each batch of transaction data is recorded in turn to complete the joint debugging test, including: Based on the information in the file and the preset order, each batch of transaction data is recorded in turn to complete the joint debugging test.
3. The joint debugging and testing method according to claim 1, wherein: The acquiring the transaction data from the current natural date year-month table and migrating the transaction data to the current business date year-month table includes: Obtaining the transaction data from the current natural date year-month table every second preset time period; The transaction data is migrated to the current business date year-month table.
4. The joint debugging and testing method according to claim 1, wherein: Before receiving the data file sent by the core system after the transaction data is entered into the account, the method further includes: Detecting whether the core system has completed the accounting processing of the transaction data; If so, the core system is controlled to send the data file.
5. The joint debugging and testing method according to claim 4, wherein: The detecting whether the core system has completed all accounting processing of the transaction data includes: Every third preset time period, the core system is checked to see whether it has completed the accounting processing of the transaction data of the relevant batch.
6. A joint debugging and testing device, characterized in that: The device comprises: A first acquisition module is configured to automatically acquire the current business date of the core system at a first preset time interval, write the current business date into a parameter file, and generate a current business date table corresponding to the current business date; and acquire the current natural date of the core system; A second acquisition module is configured to acquire a current natural date year-month table corresponding to the current natural date and a current business date year-month table corresponding to the current business date in a peripheral system, wherein the current natural date year-month table records transaction data generated when transactions are conducted on the current natural date; A third acquisition module is configured to acquire the transaction data from the current natural date year-month table and migrate the transaction data to the current business date year-month table; The processing module is configured to receive a data file sent by the core system after the transaction data is recorded; batch the transaction data in the current business date year-month table to obtain multiple batches of transaction data; and based on the information in the file, sequentially record each batch of transaction data to complete the joint debugging test.
7. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is run on a computer, the computer is enabled to execute the joint debugging and testing method according to any one of claims 1 to 5.
8. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein a computer program is stored in the memory, and the processor is configured to execute the joint debugging and testing method according to any one of claims 1 to 5 by calling the computer program stored in the memory.
Citation Information
Patent Citations
Transaction data recording method and device
CN110473087A
Transaction data processing method and device, computer equipment and storage medium
CN111242783A