Front-end server testing method and apparatus
By receiving and sending test messages and determining the frequency based on message type and transaction information, the dependency and availability issues of front-end server testing in the transaction system are resolved, enabling more reliable transaction system testing.
Patent Information
- Application Number
- CN202310612892.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-26
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2043-05-26
AI Technical Summary
In existing technologies, the testing of the front-end server of the trading system is highly dependent on the test environment, and the availability of the test environment is low, which makes it difficult to conduct normal test of the sending and receiving of the trading system.
By receiving test requests from the target transaction system, the system obtains the message type and transaction information of the test messages, determines the sending frequency based on this information, sends the test messages to the front-end server for testing, and receives response messages to complete the test.
This improves the reliability of front-end server testing and the availability of the testing environment, thereby enhancing the reliability of transaction system testing. It also supports availability checks for different messages, ensuring the normal operation of all functions of the front-end server.
Smart Images

Figure CN116582459B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a front-end server testing method and apparatus. Background Technology
[0002] With the continuous development of the financial industry, the number of trading systems is increasing, and the demand for testing the sending and receiving of trading systems is also increasing.
[0003] However, the message sending and receiving tests of a trading system typically rely on a front-end server. The trading system sends test messages to the front-end server and receives response messages from it. This high dependence on the front-end server means that if it malfunctions or goes down, the message sending and receiving tests of the trading system cannot proceed normally. Therefore, the message sending and receiving tests of the front-end server are crucial.
[0004] Currently, there is no technical solution for testing the front-end server of a trading system, and the testing environment also suffers from low availability. Summary of the Invention
[0005] To address at least one problem in the prior art, this application proposes a front-end server testing method and apparatus. During the front-end server testing process, message transmission can be performed according to the sending frequency corresponding to the test message. This improves the reliability of the front-end server testing, enhances the availability of the testing environment, and thus improves the reliability of the transaction system testing.
[0006] To address the aforementioned technical problems, this application provides the following technical solution:
[0007] Firstly, this application provides a front-end server testing method, including:
[0008] Receive a test request from the front-end server of the target trading system. The test request includes a test message.
[0009] Obtain the message type and transaction information corresponding to the test message;
[0010] Based on the message type and transaction information corresponding to the test message, the sending frequency corresponding to the test message is determined, and the test message is sent to the front-end server according to the sending frequency corresponding to the test message.
[0011] Receive the response message corresponding to the test message returned by the front-end server, and complete the test of the front-end server according to the response message.
[0012] In one embodiment, sending the test message to the front-end server according to the sending frequency corresponding to the test message includes:
[0013] According to the sending frequency corresponding to the test message, the test message is sent to the front-end server so that the front-end server can complete the corresponding business processing based on the test message and generate a response message.
[0014] In one embodiment, sending the test message to the front-end server according to the sending frequency corresponding to the test message includes:
[0015] Based on the currency information in the test message, determine the key corresponding to the test message;
[0016] The test message is encrypted using the key, and the currency information and the encrypted test message are sent to the front-end server at the specified sending frequency, so that the front-end server can obtain the key corresponding to the test message based on the currency information and decrypt the encrypted test message using the key.
[0017] In one embodiment, determining the sending frequency of the test message based on the message type and transaction information corresponding to the test message, and sending the test message to the front-end server according to the sending frequency of the test message, includes:
[0018] Determine whether the preset frequency switch state is off. If so, send the test message to the front-end server according to the preset sending frequency. Otherwise, determine the sending frequency corresponding to the test message according to the message type and transaction information, and send the test message to the front-end server according to the sending frequency corresponding to the test message.
[0019] In one embodiment, sending the test message to the front-end server according to the sending frequency corresponding to the test message includes:
[0020] The test message is split into multiple sub-test messages. Each sub-test message is sent to multiple intermediate servers in parallel according to the sending frequency corresponding to the test message. Each intermediate server then sends each sub-test message to the front-end server. The front-end server combines the sub-test messages to obtain the test message.
[0021] In one embodiment, the number of test messages is multiple;
[0022] Correspondingly, determining the sending frequency of the test message based on the message type and transaction information includes:
[0023] Based on the pre-stored send and receive data table and the message type of each test message, the transaction information corresponding to the test message is determined, including: transaction volume and transaction amount;
[0024] The test messages are sorted according to the transaction volume and transaction amount corresponding to each test message, and the sending frequency of each test message is determined according to its sorting position.
[0025] In one embodiment, completing the test of the front-end server based on the response message includes:
[0026] If the response message contains a success message, the test of the front-end server is considered successful. If the response message contains an error message, the error message is sent to the terminal device of the corresponding personnel.
[0027] Secondly, this application provides a front-end server testing device, comprising:
[0028] The receiving module is used to receive test requests corresponding to the front-end server of the target trading system. The test request includes a test message.
[0029] The acquisition module is used to acquire the message type and transaction information corresponding to the test message;
[0030] The determination module is used to determine the sending frequency corresponding to the test message based on the message type and transaction information corresponding to the test message, and send the test message to the front-end server according to the sending frequency corresponding to the test message;
[0031] The testing module is used to receive the response message corresponding to the test message returned by the front-end server, and to complete the testing of the front-end server based on the response message.
[0032] In one embodiment, the determining module includes:
[0033] The sending unit is used to send the test message to the front-end server according to the sending frequency corresponding to the test message, so that the front-end server can complete the corresponding business processing according to the test message and generate a response message.
[0034] In one embodiment, the determining module includes:
[0035] A key determination unit is used to determine the key corresponding to the test message based on the currency information in the test message;
[0036] An encryption unit is used to encrypt the test message using the key, and send the currency information and the encrypted test message to the front-end server according to the sending frequency, so that the front-end server can obtain the key corresponding to the test message based on the currency information and decrypt the encrypted test message using the key.
[0037] In one embodiment, the determining module includes:
[0038] The judgment unit is used to determine whether the preset frequency switch state is in the off state. If so, the test message is sent to the front-end server according to the preset transmission frequency. Otherwise, the transmission frequency corresponding to the test message is determined according to the message type and transaction information corresponding to the test message, and the test message is sent to the front-end server according to the transmission frequency corresponding to the test message.
[0039] In one embodiment, the determining module includes:
[0040] The parallel sending unit is used to split the test message into multiple sub-test messages, and send each sub-test message to multiple intermediate servers in parallel according to the sending frequency corresponding to the test message, so that each intermediate server sends each sub-test message to the front-end server, and the front-end server combines the sub-test messages to obtain the test message.
[0041] In one embodiment, the number of test messages is multiple; correspondingly, the determining module includes:
[0042] The determining unit is used to determine the transaction information corresponding to the test message based on the pre-stored send and receive data table and the message type of each test message. The transaction information includes: transaction volume and transaction amount.
[0043] The sorting unit is used to sort the test messages according to the transaction volume and transaction amount corresponding to each test message, and to determine the sending frequency of each test message according to its sorting position.
[0044] In one embodiment, the test module includes:
[0045] The notification unit is used to determine that the test of the front-end server is successful if the response message contains a success notification message, and to send the error notification message to the terminal device of the corresponding personnel if the response message contains an error notification message.
[0046] Thirdly, this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the aforementioned front-end server testing method.
[0047] Fourthly, this application provides a computer-readable storage medium storing computer instructions thereon, which, when executed by a processor, implement the aforementioned front-end server testing method.
[0048] As can be seen from the above technical solution, this application provides a front-end server testing method and apparatus. The method includes: receiving a test request corresponding to the front-end server of a target transaction system, the test request including a test message; obtaining the message type and transaction information corresponding to the test message; determining the sending frequency corresponding to the test message based on the message type and transaction information; sending the test message to the front-end server according to the sending frequency; receiving a response message corresponding to the test message returned by the front-end server; and completing the testing of the front-end server based on the response message. Message transmission according to the sending frequency corresponding to the test message can improve the reliability of the front-end server testing and the availability of the transaction system testing environment, thereby improving the reliability of the transaction system testing. It can support the detection of the availability of different messages, not only testing the normal startup of the front-end server but also checking whether various functions of the front-end server are normal, improving the stability of the front-end server's external services, and enabling timely detection of abnormal messages and timely notification for repair. It supports custom sending frequencies for different messages and automatic adjustment of sending frequencies based on transaction volume and transaction amount. This ensures that the performance of the test environment is not affected, and that the availability of different messages is automatically checked according to their importance, so that the availability of the test environment reaches a high level. Attached Figure Description
[0049] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0050] Figure 1 This is a first flowchart of the front-end server testing method in the embodiments of this application;
[0051] Figure 2 This is a second flowchart illustrating the front-end server testing method in this application embodiment;
[0052] Figure 3 This is a schematic diagram of the third process of the front-end server testing method in the embodiments of this application;
[0053] Figure 4This is a flowchart illustrating the front-end server testing method in an application example of this application;
[0054] Figure 5 This is a schematic diagram of the structure of the front-end server testing device in the embodiments of this application;
[0055] Figure 6 This is a schematic block diagram illustrating the system configuration of an electronic device according to an embodiment of this application. Detailed Implementation
[0056] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0057] It should be noted that the front-end server testing method and apparatus disclosed in this application can be used in the field of financial technology, as well as in any other field. The application areas of the front-end server testing method and apparatus disclosed in this application are not limited. The acquisition, storage, use, and processing of data in the technical solutions of each embodiment of this application all comply with relevant laws and regulations.
[0058] The following examples illustrate this in detail.
[0059] To improve the reliability of front-end server testing and the availability of the testing environment, thereby enhancing the reliability of transaction system testing, this embodiment provides a front-end server testing method whose execution entity is a front-end server testing device. This front-end server testing device includes, but is not limited to, a server, such as... Figure 1 As shown, this method specifically includes the following:
[0060] Step 100: Receive the test request corresponding to the front-end server of the target transaction system. The test request includes: test message.
[0061] Specifically, the test message can be a message used to test the bank system under test, and the message may contain message type information; the target transaction system can be a quick payment system or a bank's financial transaction system, and the front-end server can be configured with a quick payment front-end system corresponding to the quick payment system. The target transaction system can be deployed on a separate server. The front-end server testing device can act as a simulator to simulate the target transaction system. The front-end server is a server for multiple banks to connect to the quick payment system, enabling fast, small-amount interbank transfer services. It is responsible for encryption processing before sending messages within the bank and sending the messages to the quick payment system. It is also responsible for receiving messages sent from the quick payment system, decrypting them, and forwarding them to other systems within the bank. The messages can include all messages sent and received from the quick payment system, including but not limited to transfer messages.
[0062] Step 200: Obtain the message type and transaction information corresponding to the test message.
[0063] Specifically, the transaction information may include: transaction volume and transaction amount, etc.
[0064] Step 300: Determine the sending frequency of the test message according to the message type and transaction information corresponding to the test message, and send the test message to the front-end server according to the sending frequency of the test message.
[0065] Specifically, test messages can be sent multiple times based on the sending frequency to check whether various messages from the front-end server are normal, similar to a health check. Important messages will be checked more frequently. If they are not sent repeatedly, the first send may be successful, making it difficult to detect sudden anomalies in the front-end server later.
[0066] Step 400: Receive the response message corresponding to the test message returned by the front-end server, and complete the test of the front-end server according to the response message.
[0067] To test various functions of the front-end server and improve its external service stability, in one embodiment, step 300, which involves sending the test message to the front-end server according to the sending frequency corresponding to the test message, includes:
[0068] Step 301: Based on the sending frequency corresponding to the test message, send the test message to the front-end server so that the front-end server can complete the corresponding business processing based on the test message and generate a response message.
[0069] Specifically, the front-end server can encrypt the test message as a real message and send it to the quick payment system, then decrypt the result response and send it back to the front-end server test device.
[0070] To ensure compatibility with message encryption and decryption for multiple currencies and improve the reliability of message transmission, such as... Figure 2 As shown, in one embodiment, step 300, which involves sending the test message to the front-end server according to the sending frequency corresponding to the test message, includes:
[0071] Step 311: Determine the key corresponding to the test message based on the currency information in the test message.
[0072] Step 312: Encrypt the test message using the key, and send the currency information and the encrypted test message to the front-end server according to the sending frequency, so that the front-end server can obtain the key corresponding to the test message based on the currency information and decrypt the encrypted test message using the key.
[0073] To further improve the flexibility in determining the transmission frequency, in one embodiment, step 300 includes:
[0074] Step 321: Determine whether the preset frequency switch state is off. If so, send the test message to the front-end server according to the preset transmission frequency. Otherwise, determine the transmission frequency corresponding to the test message according to the message type and transaction information corresponding to the test message, and send the test message to the front-end server according to the transmission frequency corresponding to the test message.
[0075] Specifically, the preset frequency switch state and the preset transmission frequency can both be set according to actual conditions, and this application does not impose any restrictions on this. Both the preset frequency switch and transmission frequency can be stored in the local database of the front-end server testing device.
[0076] To improve the efficiency of front-end server testing while ensuring its reliability, in one embodiment, step 300, which involves sending the test message to the front-end server according to the sending frequency corresponding to the test message, includes:
[0077] Step 322: The test message is split into multiple sub-test messages. Each sub-test message is sent to multiple intermediate servers in parallel according to the sending frequency corresponding to the test message, so that each intermediate server sends each sub-test message to the front-end server. The front-end server combines the sub-test messages to obtain the test message.
[0078] Specifically, each intermediate server can communicate with the front-end server, and each intermediate server can communicate with the front-end server testing device.
[0079] To further improve the accuracy of determining transaction information, such as Figure 3 As shown, in one embodiment, the number of test messages is multiple; correspondingly, step 300, which involves determining the sending frequency of the test message based on its message type and transaction information, includes:
[0080] Step 331: Based on the pre-stored send and receive data table and the message type of each test message, determine the transaction information corresponding to the test message, including the transaction volume and transaction amount.
[0081] Specifically, the pre-stored message data table may contain the correspondence between message type, transaction volume and transaction amount, and may be pre-stored locally on the front-end server testing device.
[0082] Specifically, the message types may include: transfer payment, payment status response, payment cancellation notification, fund change notification, return / refund, and direct debit.
[0083] Step 332: Sort the test messages according to the transaction volume and transaction amount corresponding to each test message, and determine the sending frequency of each test message according to its sorting position.
[0084] Specifically, the transaction volume and transaction amount can be weighted and summed, and the test messages can be sorted from high to low based on the weighted result. The sending frequency of the test messages can be determined based on the sorting position.
[0085] Furthermore, the message type, currency, and transaction information of the test message can be input into a preset sending frequency determination model, and the sending frequency corresponding to the test message can be determined based on the output of the model. The preset sending frequency determination model can be obtained by pre-training based on a classification algorithm.
[0086] To improve the efficiency of front-end server maintenance, in one embodiment, step 400, which involves completing the front-end server test based on the response message, includes:
[0087] If the response message contains a success message, the test of the front-end server is considered successful. If the response message contains an error message, the error message is sent to the terminal device of the corresponding personnel.
[0088] Specifically, if the response message contains error message information, key information such as message type, message content and processing result in the response message can also be obtained; based on the key information and the preset error detection model, the cause of the error can be determined, which facilitates maintenance personnel to maintain the front-end server in a timely manner. The preset error detection model can be obtained by training a decision tree algorithm based on batch historical key information and its corresponding actual error cause.
[0089] To further illustrate this solution, this application provides an application example of a message testing method for a front-end server, as described in detail below:
[0090] Step 1: Prepare the test message.
[0091] Step 2: Set different sending frequencies according to message type.
[0092] Specifically, different sending frequencies can be set according to message type, and configuration files and initialization to database tables are supported. The tool initializes the sending data and sending frequency for each type of message when it starts.
[0093] Step 3: The detection tool determines the custom frequency switch. If it is off, it will send once every hour by default; if it is on, it will send according to the sending frequency of each message.
[0094] Specifically, step 3 involves the detection tool determining the automatic frequency adjustment switch. If it's off, the transmission frequency is set according to the frequency obtained in step 2 above. If it's on, the tool calculates the transaction volume and amount corresponding to the sent / received data table based on message type. Higher transaction volume and amount correspond to higher transmission frequencies. The tool supports setting transaction amount and volume weights, with a default weight of 0.7 for transaction amount and 0.3 for transaction volume. The frequency adjustment formula is: transaction amount * 0.7 + transaction volume * 0.3. The results are sorted according to the statistical calculations. If the results are below 100, transmission occurs daily; if the results are between 100 and 10,000, transmission occurs hourly; and if the results are above 10,000, transmission occurs every 10 minutes.
[0095] Step 4: The detection tool determines the automatic frequency adjustment switch. If it is off, proceed to step 3 to send; if it is on, calculate the transaction volume and transaction amount corresponding to the sent and received data table according to the message type. The larger the transaction volume and transaction amount, the higher the sending frequency.
[0096] Step 5: The detection tool sends the message to the front-end server. After receiving the message, the front-end server checks the message and processes the relevant business logic. If the processing is successful, it returns success; otherwise, it returns the corresponding error.
[0097] Step 6: The detection tool will notify the relevant personnel of the error and request system repair. The notification will include key information such as message type, message content, and reception result. The function of the detection tool is equivalent to that of the aforementioned front-end server testing device.
[0098] This solution also provides an application example of a front-end server testing method, such as... Figure 4 As shown, the specific steps include: reading the message; determining whether the custom frequency switch is enabled; if so, reading the configuration to obtain the sending frequency of each message; otherwise, sending once per hour by default; determining whether the automatic frequency adjustment switch is enabled; if so, calculating the sending frequency based on the transaction volume and transaction amount of each message; otherwise, sending the message to the corresponding server according to the frequency; determining whether the response is normal; if so, ending the process; otherwise, notifying relevant personnel of the error message to repair the system.
[0099] From a software perspective, in order to improve the reliability of front-end server testing and the availability of the testing environment, thereby improving the reliability of transaction system testing, this application provides an embodiment of a front-end server testing apparatus for implementing all or part of the aforementioned front-end server testing method. See [link to relevant documentation]. Figure 5 The front-end server testing device specifically includes the following components:
[0100] Receiver module 01 is used to receive test requests corresponding to the front-end server of the target transaction system. The test request includes: test message;
[0101] The acquisition module 02 is used to acquire the message type and transaction information corresponding to the test message;
[0102] The determining module 03 is used to determine the sending frequency corresponding to the test message based on the message type and transaction information corresponding to the test message, and send the test message to the front-end server according to the sending frequency corresponding to the test message;
[0103] Test module 04 is used to receive the response message corresponding to the test message returned by the front-end server, and complete the test of the front-end server according to the response message.
[0104] In one embodiment, the determining module includes:
[0105] The sending unit is used to send the test message to the front-end server according to the sending frequency corresponding to the test message, so that the front-end server can complete the corresponding business processing according to the test message and generate a response message.
[0106] In one embodiment, the determining module includes:
[0107] A key determination unit is used to determine the key corresponding to the test message based on the currency information in the test message;
[0108] An encryption unit is used to encrypt the test message using the key, and send the currency information and the encrypted test message to the front-end server according to the sending frequency, so that the front-end server can obtain the key corresponding to the test message based on the currency information and decrypt the encrypted test message using the key.
[0109] In one embodiment, the determining module includes:
[0110] The judgment unit is used to determine whether the preset frequency switch state is in the off state. If so, the test message is sent to the front-end server according to the preset transmission frequency. Otherwise, the transmission frequency corresponding to the test message is determined according to the message type and transaction information corresponding to the test message, and the test message is sent to the front-end server according to the transmission frequency corresponding to the test message.
[0111] In one embodiment, the determining module includes:
[0112] The parallel sending unit is used to split the test message into multiple sub-test messages, and send each sub-test message to multiple intermediate servers in parallel according to the sending frequency corresponding to the test message, so that each intermediate server sends each sub-test message to the front-end server, and the front-end server combines the sub-test messages to obtain the test message.
[0113] In one embodiment, the number of test messages is multiple; correspondingly, the determining module includes:
[0114] The determining unit is used to determine the transaction information corresponding to the test message based on the pre-stored send and receive data table and the message type of each test message. The transaction information includes: transaction volume and transaction amount.
[0115] The sorting unit is used to sort the test messages according to the transaction volume and transaction amount corresponding to each test message, and to determine the sending frequency of each test message according to its sorting position.
[0116] In one embodiment, the test module includes:
[0117] The notification unit is used to determine that the test of the front-end server is successful if the response message contains a success notification message, and to send the error notification message to the terminal device of the corresponding personnel if the response message contains an error notification message.
[0118] The embodiments of the front-end server testing device provided in this specification can be used to execute the processing flow of the embodiments of the above-described front-end server testing method. Its functions will not be repeated here, but can be referred to the detailed description of the embodiments of the above-described front-end server testing method.
[0119] From a hardware perspective, in order to improve the reliability of the front-end server testing and the availability of the testing environment, thereby improving the reliability of the transaction system testing, this application provides an embodiment of an electronic device for implementing all or part of the aforementioned front-end server testing method. The electronic device specifically includes the following components:
[0120] The device comprises a processor, memory, a communications interface, and a bus; wherein the processor, memory, and communications interface communicate with each other via the bus; the communications interface is used to realize information transmission between the front-end server testing device and related devices such as user terminals; the electronic device can be a desktop computer, tablet computer, or mobile terminal, etc., and this embodiment is not limited to these. In this embodiment, the electronic device can be implemented with reference to the embodiments for implementing the front-end server testing method and the embodiments for implementing the front-end server testing device, the content of which is incorporated herein, and repeated parts will not be described again.
[0121] Figure 6 This is a schematic block diagram illustrating the system configuration of the electronic device 9600 according to an embodiment of this application. Figure 6 As shown, the electronic device 9600 may include a central processing unit 9100 and a memory 9140; the memory 9140 is coupled to the central processing unit 9100. It is worth noting that... Figure 6 This is an example; other types of structures can also be used to supplement or replace this structure to achieve telecommunications functions or other functions.
[0122] In one or more embodiments of this application, the front-end server testing function can be integrated into the central processing unit 9100. The central processing unit 9100 can be configured to perform the following controls:
[0123] Step 100: Receive the test request corresponding to the front-end server of the target trading system. The test request includes: test message;
[0124] Step 200: Obtain the message type and transaction information corresponding to the test message;
[0125] Step 300: Determine the sending frequency of the test message according to the message type and transaction information corresponding to the test message, and send the test message to the front-end server according to the sending frequency of the test message;
[0126] Step 400: Receive the response message corresponding to the test message returned by the front-end server, and complete the test of the front-end server according to the response message.
[0127] As can be seen from the above description, the electronic equipment provided in the embodiments of this application can improve the availability of the testing environment and thus improve the reliability of the transaction system testing, based on improving the reliability of the front-end server testing.
[0128] In another embodiment, the front-end server testing device can be configured separately from the central processing unit 9100. For example, the front-end server testing device can be configured as a chip connected to the central processing unit 9100, and the front-end server testing function can be implemented through the control of the central processing unit.
[0129] like Figure 6 As shown, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily need to include these components. Figure 6 All components shown; in addition, the electronic device 9600 may also include Figure 6 For components not shown, please refer to existing technology.
[0130] like Figure 6 As shown, the central processing unit 9100, sometimes also referred to as a controller or operating control, may include a microprocessor or other processor device and / or logic device, which receives inputs and controls the operation of various components of the electronic device 9600.
[0131] The memory 9140 may be, for example, one or more of a cache, flash memory, hard drive, removable media, volatile memory, non-volatile memory, or other suitable devices. It may store the aforementioned failure-related information, and also store a program for executing that information. The central processing unit 9100 may execute the program stored in the memory 9140 to perform information storage or processing, etc.
[0132] Input unit 9120 provides input to central processing unit 9100. Input unit 9120 may be, for example, a keypad or touch input device. Power supply 9170 provides power to electronic device 9600. Display 9160 displays images and text. Display may be, for example, an LCD display, but is not limited thereto.
[0133] The memory 9140 can be a solid-state memory, such as a read-only memory (ROM), random access memory (RAM), a SIM card, etc. It can also be a memory that retains information even when power is off, can be selectively erased, and contains more data; examples of this type of memory are sometimes referred to as EPROMs. The memory 9140 can also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application / function storage unit 9142 for storing application programs and function programs or processes for executing the operation of the electronic device 9600 via the central processing unit 9100.
[0134] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various drivers for the electronic device's communication functions and / or for performing other functions of the electronic device (such as messaging applications, address book applications, etc.).
[0135] The communication module 9110 is a transmitter / receiver 9110 that transmits and receives signals via the antenna 9111. The communication module (transmitter / receiver) 9110 is coupled to the central processing unit 9100 to provide input signals and receive output signals, which can be the same as in a conventional mobile communication terminal.
[0136] Based on different communication technologies, multiple communication modules 9110 can be configured in the same electronic device, such as cellular network modules, Bluetooth modules, and / or wireless LAN modules. The communication module (transmitter / receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby realizing typical telecommunications functions. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. Additionally, the audio processor 9130 is coupled to a central processing unit 9100, enabling on-device recording via the microphone 9132 and on-device playback of stored sound via the speaker 9131.
[0137] As can be seen from the above description, the electronic equipment provided in the embodiments of this application can improve the availability of the testing environment while improving the reliability of the front-end server testing, thereby improving the reliability of the transaction system testing.
[0138] Embodiments of this application also provide a computer-readable storage medium capable of implementing all steps of the front-end server testing method in the above embodiments. The computer-readable storage medium stores a computer program that, when executed by a processor, implements all steps of the front-end server testing method in the above embodiments. For example, when the processor executes the computer program, it implements the following steps:
[0139] Step 100: Receive the test request corresponding to the front-end server of the target trading system. The test request includes: test message;
[0140] Step 200: Obtain the message type and transaction information corresponding to the test message;
[0141] Step 300: Determine the sending frequency of the test message according to the message type and transaction information corresponding to the test message, and send the test message to the front-end server according to the sending frequency of the test message;
[0142] Step 400: Receive the response message corresponding to the test message returned by the front-end server, and complete the test of the front-end server according to the response message.
[0143] As can be seen from the above description, the computer-readable storage medium provided in the embodiments of this application can improve the availability of the testing environment and thus improve the reliability of the transaction system testing, based on improving the reliability of the front-end server testing.
[0144] The various embodiments of the methods described in this application are presented in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on explaining the differences from other embodiments. Relevant details can be found in the descriptions of the method embodiments.
[0145] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0146] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0147] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0148] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0149] This application uses specific embodiments to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A front-end server testing method, characterized in that, include: Receive a test request from the front-end server of the target trading system. The test request includes a test message. Obtain the message type and transaction information corresponding to the test message; Based on the message type and transaction information corresponding to the test message, the sending frequency corresponding to the test message is determined, and the test message is sent to the front-end server according to the sending frequency corresponding to the test message. Receive the response message corresponding to the test message returned by the front-end server, and complete the test of the front-end server according to the response message; The number of test messages is multiple; Correspondingly, determining the sending frequency of the test message based on the message type and transaction information includes: Based on the pre-stored send and receive data table and the message type of each test message, the transaction information corresponding to the test message is determined, including: transaction volume and transaction amount; The test messages are sorted according to the transaction volume and transaction amount corresponding to each test message, and the sending frequency of each test message is determined according to its sorting position; wherein, the larger the transaction volume and transaction amount, the higher the sending frequency.
2. The front-end server testing method according to claim 1, characterized in that, The step of sending the test message to the front-end server according to the sending frequency corresponding to the test message includes: According to the sending frequency corresponding to the test message, the test message is sent to the front-end server so that the front-end server can complete the corresponding business processing based on the test message and generate a response message.
3. The front-end server testing method according to claim 1, characterized in that, The step of sending the test message to the front-end server according to the sending frequency corresponding to the test message includes: Based on the currency information in the test message, determine the key corresponding to the test message; The test message is encrypted using the key, and the currency information and the encrypted test message are sent to the front-end server at the specified sending frequency, so that the front-end server can obtain the key corresponding to the test message based on the currency information and decrypt the encrypted test message using the key.
4. The front-end server testing method according to claim 1, characterized in that, The step of determining the sending frequency of the test message based on the message type and transaction information corresponding to the test message, and sending the test message to the front-end server according to the sending frequency of the test message, includes: Determine whether the preset frequency switch state is off. If so, send the test message to the front-end server according to the preset sending frequency. Otherwise, determine the sending frequency corresponding to the test message according to the message type and transaction information, and send the test message to the front-end server according to the sending frequency corresponding to the test message.
5. The front-end server testing method according to claim 1, characterized in that, The step of sending the test message to the front-end server according to the sending frequency corresponding to the test message includes: The test message is split into multiple sub-test messages. Each sub-test message is sent to multiple intermediate servers in parallel according to the sending frequency corresponding to the test message. Each intermediate server then sends each sub-test message to the front-end server. The front-end server combines the sub-test messages to obtain the test message.
6. The front-end server testing method according to claim 1, characterized in that, The step of completing the test of the front-end server based on the response message includes: If the response message contains a success message, the test of the front-end server is considered successful. If the response message contains an error message, the error message is sent to the terminal device of the corresponding personnel.
7. A front-end server testing device, characterized in that, include: The receiving module is used to receive test requests corresponding to the front-end server of the target trading system. The test request includes: test messages; The acquisition module is used to acquire the message type and transaction information corresponding to the test message; The determination module is used to determine the sending frequency corresponding to the test message based on the message type and transaction information corresponding to the test message, and send the test message to the front-end server according to the sending frequency corresponding to the test message; The testing module is used to receive the response message corresponding to the test message returned by the front-end server, and to complete the test of the front-end server according to the response message; The number of test messages is multiple; correspondingly, the determining module includes: The determining unit is used to determine the transaction information corresponding to the test message based on the pre-stored send and receive data table and the message type of each test message. The transaction information includes: transaction volume and transaction amount. The sorting unit is used to sort the test messages according to the transaction volume and transaction amount corresponding to each test message, and to determine the sending frequency of each test message according to its sorting position; wherein, the larger the transaction volume and transaction amount, the higher the sending frequency.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the front-end server testing method according to any one of claims 1 to 6.
9. A computer-readable storage medium storing computer instructions thereon, characterized in that, When the instruction is executed by the processor, it implements the front-end server testing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method, device, and system for testing advanced apparatus
CN1996374A