CN113485902A - Method, device, equipment and computer readable medium for testing service platform - Google Patents

Method, device, equipment and computer readable medium for testing service platform Download PDF

Info

Publication number
CN113485902A
CN113485902A CN202110774747.2A CN202110774747A CN113485902A CN 113485902 A CN113485902 A CN 113485902A CN 202110774747 A CN202110774747 A CN 202110774747A CN 113485902 A CN113485902 A CN 113485902A
Authority
CN
China
Prior art keywords
data
message
service platform
analog data
encrypted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110774747.2A
Other languages
Chinese (zh)
Other versions
CN113485902B (en
Inventor
顾晓丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202110774747.2A priority Critical patent/CN113485902B/en
Publication of CN113485902A publication Critical patent/CN113485902A/en
Application granted granted Critical
Publication of CN113485902B publication Critical patent/CN113485902B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3457Performance evaluation by simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3414Workload generation, e.g. scripts, playback

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method, a device, equipment and a computer readable medium for testing a service platform, and relates to the technical field of automatic program design. One embodiment of the method comprises: according to preset configuration parameters and a data simulator, constructing simulation data to obtain encrypted simulation data; converting the encrypted analog data into an analog data message according to a preset message protocol, wherein the analog data message comprises the encrypted analog data; and sending the simulation data message, and analyzing the issuing result of the simulation data message to test a service platform. The embodiment can improve the efficiency of testing the service platform.

Description

Method, device, equipment and computer readable medium for testing service platform
Technical Field
The present invention relates to the field of automatic programming technology, and in particular, to a method, an apparatus, a device, and a computer readable medium for testing a service platform.
Background
When a system pricing and quotation platform is tested, a measured business scene is often lack of quotation sources. Particularly, when the trade of financial market services such as foreign exchanges, precious metals, bulk commodities, derivatives and the like is tested, prices from different channels and different products need to be obtained so as to test the stability of the verification platform.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art: because the platform testing process also depends on the price of the product in the external market, and the real data accessed in the external market cannot meet the testing requirement, the efficiency of the testing service platform is low.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, a device, and a computer readable medium for testing a service platform, which can improve efficiency of testing the service platform.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method for testing a service platform, including:
according to preset configuration parameters and a data simulator, constructing simulation data to obtain encrypted simulation data;
converting the encrypted analog data into an analog data message according to a preset message protocol, wherein the analog data message comprises the encrypted analog data;
and sending the simulation data message, and analyzing the issuing result of the simulation data message to test a service platform.
The method for constructing the simulation data according to the preset configuration parameters and the data simulator to obtain the encrypted simulation data comprises the following steps:
inputting the preset configuration parameters into the data simulator to construct the simulation data;
and encrypting the analog data to obtain the encrypted analog data.
The inputting the preset configuration parameters into the data simulator to construct the simulation data includes:
and inputting the preset configuration parameters into the data simulator in an XML file format to construct the simulation data.
The preset configuration parameters also comprise an morning field configuration parameter and an afternoon field configuration parameter;
inputting the preset configuration parameters into the data simulator in an XML file format to construct the simulation data, wherein the method comprises the following steps:
and respectively inputting the morning field configuration parameters and the afternoon field configuration parameters into the data simulator in an XML file format to construct the simulation data.
The preset configuration parameters include one or more of the following: push time, push frequency interval, quoted quantity, quoted upper limit and quoted lower limit.
And the difference value between the upper quotation limit and the lower quotation limit is smaller than a preset threshold value.
The encrypting the analog data to obtain encrypted analog data includes:
and encrypting the analog data according to an encryption algorithm of a provider to which the analog data belongs to obtain the encrypted analog data.
The converting the encrypted analog data into an analog data message according to a preset message protocol, where the analog data message includes the encrypted analog data, includes:
and converting the encrypted simulation data into a simulation data message according to a preset message protocol of a data source, wherein the simulation data message comprises the encrypted simulation data.
The converting the encrypted analog data into an analog data message according to a preset message protocol includes:
mapping and converting the encrypted analog data into message data according to the data type of the preset message protocol;
and assembling the message data to obtain the simulation data message based on the message structure of the preset message protocol.
The analyzing the issuing result of the simulation data message to test the service platform comprises the following steps:
and analyzing the issuing result of the simulation data message, and sending the analysis result to a test service platform so as to improve the test efficiency of the test service platform.
The publication result includes one or more of the following: the pushing quantity per second, the access system throughput and the sending success rate of the analog data message.
According to a second aspect of the embodiments of the present invention, there is provided an apparatus for testing a service platform, including:
the service control module is used for constructing analog data according to preset configuration parameters and the data simulator so as to obtain encrypted analog data;
a message assembly module, configured to convert the encrypted analog data into an analog data message according to a preset message protocol, where the analog data message includes the encrypted analog data;
and the analysis and statistics module is used for sending the simulation data message and analyzing the issuing result of the simulation data message so as to test the service platform.
According to a third aspect of the embodiments of the present invention, there is provided an electronic device for testing a service platform, including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method as described above.
According to a fourth aspect of embodiments of the present invention, there is provided a computer readable medium, on which a computer program is stored, which when executed by a processor, implements the method as described above.
One embodiment of the above invention has the following advantages or benefits: according to preset configuration parameters and a data simulator, constructing simulation data to obtain encrypted simulation data; converting the encrypted analog data into an analog data message according to a preset message protocol, wherein the analog data message comprises the encrypted analog data; and sending the simulation data message, and analyzing the issuing result of the simulation data message to test a service platform. Because the test of the platform is realized according to the simulation data, the efficiency of testing the service platform can be improved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of a main flow of a method of testing a service platform according to an embodiment of the invention;
FIG. 2 is a schematic flow chart for constructing simulation data according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating default configuration parameters according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart illustrating conversion to an analog data message according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of the main structure of an apparatus for testing a service platform according to an embodiment of the present invention;
FIG. 6 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 7 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the platform testing process, the product price is obtained through the external connection real simulation environment, a large amount of time and manpower are wasted in the period, and the testing process also depends on the release period of the product price of the external market. If the quotation is not issued during the platform test period, the related test can only be stopped, and the test is continued after the quotation of the external market is recovered.
Meanwhile, in order to accurately obtain the pressure resistance of the platform, for the price of products connected to the external market, the result of the gradient pressure test is expected to be obtained and used as the reference of subsequent operation and maintenance. Besides relying on price access of external market products, the test has higher requirements on the magnitude or frequency of data source access, and actual access data cannot meet the test requirements, so that the condition of quotation source loss occurs.
Specifically, for the case of a missing quote source, the following problems exist in manual testing:
1) verifying the integrity of the multi-way quote: the collections come from different financial product offer providers. Such as: UBS, Deutsche Bank, JP Morgan, road lens, EBS or Penbo. If one of the offer sources is missing from the test, it needs to communicate with the offer provider to push the corresponding price. On the one hand, additional communication time cost is increased; on the other hand, the corresponding test period is also extended, which may result in failure to complete the planned schedule within a prescribed time.
2) Gradient testing relies on the magnitude of the price push source: for the product price of the access, a gradient pressure test is required. Such limit tests, which can only communicate with the supplier of the financial product quotes, are generally difficult to facilitate in simulation.
Therefore, the efficiency of the service testing platform is low because the access real-time data of the external market cannot meet the testing requirement.
In order to solve the problem of low efficiency of the test service platform, the following technical scheme in the embodiment of the invention can be adopted.
Referring to fig. 1, fig. 1 is a schematic diagram of a main flow of a method for testing a service platform according to an embodiment of the present invention, and the service platform is tested by using constructed simulation data. As shown in fig. 1, the method specifically comprises the following steps:
s101, according to preset configuration parameters and a data simulator, constructing simulation data to obtain encrypted simulation data.
In embodiments of the invention, data is required for the service platform to implement the test. And testing the service platform by establishing the simulation data. The creation of the simulation data requires the involvement of a parameter and data simulator.
A data simulator is software for simulating real data. In an embodiment of the invention, the data simulator is operative to simulate transactional data in a financial market. As one example, the data simulator is used to simulate a transaction price for the foreign exchange over a preset time period. As another example, a data simulator is used to simulate the transaction price of precious metals over a preset time period.
It is difficult to construct simulation data from only the data simulator because simulation data involves various parameters, and therefore simulation data needs to be constructed from preset configuration parameters and the data simulator.
As an example, the preset configuration parameters include one or more of: push time, push frequency interval, quoted quantity, quoted upper limit and quoted lower limit. The pushing time refers to a time period for pushing the simulation data. Such as: the push time is determined by a start time point (starttime) and an end time point (endtime). The push frequency interval (speedrate) is the frequency interval at which analog data is pushed. The quote amount (valuenums) is the number of analog data per push. The upper limit of the offer (highvalue) is the maximum value of the simulation data at the current time period. The lower price limit (lowvalue) is the minimum value of the simulation data in the current time period.
In one embodiment of the invention, it is contemplated that in some transactions, the difference in the limit offers may be too large. That is, the difference between the upper limit of the quotation and the lower limit of the quotation is less than the preset threshold. Therefore, the upper price limit and the lower price limit need to be limited by preset threshold values. As an example, the preset threshold is a price floating deviation (flowvalue).
Referring to fig. 2, fig. 2 is a schematic flow chart of building simulation data according to an embodiment of the present invention, which specifically includes the following steps:
s201, inputting preset configuration parameters into a data simulator to construct simulation data.
To construct the simulation data, preset configuration parameters may be input into the data simulator to obtain the simulation data. Generally, real data is often input in a preset file format. As one example, preset configuration parameters are input into a data simulator in an XML file format to construct simulation data. Wherein the preset file format is an XML file format.
In the XML file format, in addition to the preset configuration parameters, a scene name, a provider name, and a provider push product name are included. The scene name (scenname) is a name of a specific scene of the test service platform. As one example, the scene name is a first scene. The provider name (providenname) is the name of the provider that simulates the real data. The provider push product name (productname) is a push product name that simulates real data.
Referring to fig. 3, fig. 3 is a schematic diagram of preset configuration parameters according to an embodiment of the present invention, and the preset configuration parameters in an actual transaction scenario may specifically include an morning field configuration parameter and an afternoon field configuration parameter.
That is, the configuration parameters are for different periods of time. Then, the morning field configuration parameters and the afternoon field configuration parameters are respectively input into the data simulator in an XML file format to construct simulation data.
It will be appreciated that the simulation data is an XML file. The analog data includes two parts. One part is the XML file for the morning field and the other part is the XML file for the afternoon field. The reality of the simulation data can be improved by constructing the simulation data aiming at different time periods. Of course, in embodiments of the present invention, the simulation data may also be constructed for smaller time periods. Such as: simulation data was constructed over an hour.
In one embodiment of the present invention, the preset configuration parameters may be expanded in number and type according to actual situations. And automatically loading preset configuration parameters when the data simulator runs.
S202, encrypting the analog data to obtain the encrypted analog data.
For real data, each provider of data needs to encrypt the data. In order to improve the authenticity of the analog data, it is also necessary to encrypt the analog data and obtain the encrypted analog data.
Specifically, the analog data is encrypted according to an encryption algorithm of a provider to which the analog data belongs, and the encrypted analog data is obtained. That is, the analog data may have different encryption algorithms depending on the provider.
In the embodiment of fig. 2, the simulation data is constructed by using the preset configuration parameters and the data simulator, so that the similarity between the simulation data and the real data is improved.
S102, converting the encrypted simulation data into a simulation data message according to a preset message protocol, wherein the simulation data message comprises the encrypted simulation data.
And sending the encrypted analog data to a server where the service platform is located in a message mode. Then, an analog data message needs to be established based on the encrypted analog data.
In an embodiment of the present invention, the encrypted analog data is converted into an analog data packet according to a preset packet protocol of the data source, where the analog data packet includes the encrypted analog data. That is, the basis for conversion into an analog data packet is: and (4) presetting a message protocol of a data source. For different data sources, the corresponding preset message protocols may be different. The data source may be understood as a provider of data.
As an example, if the data source is a pass-through, the predetermined message protocol is an RFA message protocol. If the data source is P5AP, the predetermined messaging protocol is FIX messaging protocol. That is, the predetermined message protocol includes an RFA message protocol and a FIX message protocol.
Referring to fig. 4, fig. 4 is a schematic flowchart of a process of converting into an analog data packet according to an embodiment of the present invention, which specifically includes the following steps:
s401, according to the data type of a preset message protocol, mapping and converting the encrypted analog data into message data.
And converting the encrypted analog data, which relates to data conversion and format conversion. Specifically, according to the data type of the preset message protocol, the encrypted analog data is mapped and converted into message data. As an example, the encrypted analog data belongs to a type a, and the data type of the preset packet protocol is a type B, the data of the type a needs to be mapped and converted into the type B. And the data after mapping conversion is used as message data.
S402, based on the message structure of the preset message protocol, assembling the message data to obtain an analog data message.
And assembling the obtained message data according to the message structure of the preset message protocol to further obtain the analog data message.
In the embodiment of fig. 4, the encrypted analog data is converted into an analog data message.
S103, sending the simulation data message, and analyzing the issuing result of the simulation data message to test the service platform.
After the analog data message is determined, the analog data message can be sent to a server of the test service platform. In consideration of this, the similarity between the simulation data message and the real data message is improved. Generally, different providers correspond to different API interfaces, and for a provider to which an analog data packet belongs, the API interface of the provider is called to send the analog data packet. And further improve the authenticity of the analog data message. That is, the API interface of the provider is called to send the analog data packet.
Besides different API interfaces, different providers may use different communication protocols. The analog data message may then be sent using the provider's communication protocol. As an example, the communication protocols of the providers include http connection, TCP long connection and TCP short connection. It can be understood that the analog data message is sent by using one of http connection, TCP long connection and TCP short connection. The selected communication protocol is determined by the provider.
In one embodiment of the present invention, in the case where the analog data message is determined, the analog data message is sent in the following two ways. One way is that: under the condition that the analog data message is determined, the analog data message is sent at the first time, namely the analog data message is synchronously sent; the other mode is as follows: and under the condition that the analog data message is determined, transmitting the analog data message at preset time, namely asynchronously transmitting the analog data message.
The issuing result of the simulation data message is statistical data after the simulation data message is issued. As one example, the results of the publishing of the simulation data include one or more of: the number of pushes per second, the throughput of the access system and the sending success rate of the analog data message.
In an embodiment of the present invention, the issuing result of the analog data packet is analyzed, and the analysis result is sent to the test service platform, so as to improve the test efficiency of the test service platform. The purpose of analyzing the simulation data message is to provide the relevant parameters of the test data to the test service platform so as to improve the test efficiency and the test items.
In the embodiment, according to the preset configuration parameters and the data simulator, the simulation data is constructed to obtain the encrypted simulation data; converting the encrypted analog data into an analog data message according to a preset message protocol, wherein the analog data message comprises the encrypted analog data; and sending the simulation data message, and analyzing the issuing result of the simulation data message to test a service platform. Because the test of the platform is realized according to the simulation data, the efficiency of testing the service platform can be improved.
Referring to fig. 5, fig. 5 is a schematic diagram of a main structure of a device for testing a service platform according to an embodiment of the present invention, where the device for testing a service platform can implement a method for testing a service platform, and as shown in fig. 5, the device for testing a service platform specifically includes:
the service control module 501 is configured to construct analog data according to preset configuration parameters and a data simulator to obtain encrypted analog data;
a message assembly module 502, configured to convert the encrypted analog data into an analog data message according to a preset message protocol, where the analog data message includes the encrypted analog data;
the analysis and statistics module 503 is configured to send the analog data packet, and analyze a distribution result of the analog data packet to test a service platform.
In an embodiment of the present invention, the service control module 501 is specifically configured to input the preset configuration parameter into the data simulator, and construct the simulation data;
and encrypting the analog data to obtain the encrypted analog data.
In an embodiment of the present invention, the service control module 501 is specifically configured to input the preset configuration parameters into the data simulator in an XML file format, so as to construct the simulation data.
In an embodiment of the present invention, the preset configuration parameters further include an morning field configuration parameter and an afternoon field configuration parameter;
the service control module 501 is specifically configured to input the morning field configuration parameters and the afternoon field configuration parameters into the data simulator in an XML file format, respectively, to construct the simulation data.
In an embodiment of the present invention, the preset configuration parameters include one or more of the following: push time, push frequency interval, quoted quantity, quoted upper limit and quoted lower limit.
In one embodiment of the present invention, a difference between the upper price quotation limit and the lower price quotation limit is smaller than a preset threshold.
In an embodiment of the present invention, the service control module 501 is specifically configured to encrypt the analog data according to an encryption algorithm of a provider to which the analog data belongs, so as to obtain encrypted analog data.
In an embodiment of the present invention, the message assembling module 502 is specifically configured to convert the encrypted analog data into an analog data message according to a preset message protocol of a data source, where the analog data message includes the encrypted analog data.
In an embodiment of the present invention, the predetermined message protocol includes an RFA message protocol and a FIX message protocol.
In an embodiment of the present invention, the packet assembling module 502 is specifically configured to map and convert the encrypted analog data into packet data according to a data type of the preset packet protocol;
and assembling the message data to obtain the simulation data message based on the message structure of the preset message protocol.
In an embodiment of the present invention, the analysis statistics module 503 is specifically configured to call an API interface of a provider to send the analog data packet.
In an embodiment of the present invention, the analysis and statistics module 503 is specifically configured to send the analog data packet by using a communication protocol of a provider.
In one embodiment of the invention, the communication protocols of the providers comprise http connection, TCP long connection and TCP short connection.
In an embodiment of the present invention, the analysis statistic module 503 is specifically configured to send the analog data packet synchronously.
In an embodiment of the present invention, the analysis statistics module 503 is specifically configured to asynchronously send the analog data packet.
In an embodiment of the present invention, the analysis and statistics module 503 is specifically configured to analyze a distribution result of the analog data packet, and send the analysis result to a test service platform, so as to improve the test efficiency of the test service platform.
In one embodiment of the invention, the publication result includes one or more of the following: the pushing quantity per second, the access system throughput and the sending success rate of the analog data message.
Fig. 6 illustrates an exemplary system architecture 600 of a method of testing a business platform or an apparatus for testing a business platform to which embodiments of the present invention may be applied.
As shown in fig. 6, the system architecture 600 may include terminal devices 601, 602, 603, a network 604, and a server 605. The network 604 serves to provide a medium for communication links between the terminal devices 601, 602, 603 and the server 605. Network 604 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 601, 602, 603 to interact with the server 605 via the network 604 to receive or send messages or the like. The terminal devices 601, 602, 603 may have installed thereon various communication client applications, such as shopping applications, web browser applications, search applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 601, 602, 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 605 may be a server providing various services, such as a background management server (for example only) providing support for shopping websites browsed by users using the terminal devices 601, 602, 603. The backend management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (for example, target push information, product information — just an example) to the terminal device.
It should be noted that the method for testing the service platform provided by the embodiment of the present invention is generally executed by the server 605, and accordingly, the apparatus for testing the service platform is generally disposed in the server 605.
It should be understood that the number of terminal devices, networks, and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 7, shown is a block diagram of a computer system 700 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU)701, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 701.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor comprises a service control module, a message assembly module and an analysis and statistics module. The names of these modules do not limit the modules themselves in some cases, for example, the service control module may also be described as "configured to convert the encrypted analog data into an analog data packet according to a preset packet protocol, where the analog data packet includes the encrypted analog data".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise:
according to preset configuration parameters and a data simulator, constructing simulation data to obtain encrypted simulation data;
converting the encrypted analog data into an analog data message according to a preset message protocol, wherein the analog data message comprises the encrypted analog data;
and sending the simulation data message, and analyzing the issuing result of the simulation data message to test a service platform.
According to the technical scheme of the embodiment of the invention, analog data are constructed according to preset configuration parameters and a data simulator to obtain encrypted analog data; converting the encrypted analog data into an analog data message according to a preset message protocol, wherein the analog data message comprises the encrypted analog data; and sending the simulation data message, and analyzing the issuing result of the simulation data message to test a service platform. Because the test of the platform is realized according to the simulation data, the efficiency of testing the service platform can be improved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (14)

1. A method for testing a service platform, comprising:
according to preset configuration parameters and a data simulator, constructing simulation data to obtain encrypted simulation data;
converting the encrypted analog data into an analog data message according to a preset message protocol, wherein the analog data message comprises the encrypted analog data;
and sending the simulation data message, and analyzing the issuing result of the simulation data message to test a service platform.
2. The method for testing a service platform according to claim 1, wherein the constructing simulation data according to the preset configuration parameters and the data simulator to obtain the encrypted simulation data comprises:
inputting the preset configuration parameters into the data simulator to construct the simulation data;
and encrypting the analog data to obtain the encrypted analog data.
3. The method for testing a service platform according to claim 2, wherein said inputting said preset configuration parameters into said data simulator to construct said simulation data comprises:
and inputting the preset configuration parameters into the data simulator in an XML file format to construct the simulation data.
4. The method of testing a service platform according to claim 3, wherein said preset configuration parameters further comprise morning field configuration parameters and afternoon field configuration parameters;
inputting the preset configuration parameters into the data simulator in an XML file format to construct the simulation data, wherein the method comprises the following steps:
and respectively inputting the morning field configuration parameters and the afternoon field configuration parameters into the data simulator in an XML file format to construct the simulation data.
5. The method of testing a service platform according to claim 1, wherein the preset configuration parameters include one or more of: push time, push frequency interval, quoted quantity, quoted upper limit and quoted lower limit.
6. The method for testing a service platform according to claim 5, wherein the difference between the upper price quote limit and the lower price quote limit is smaller than a preset threshold.
7. The method for testing a service platform according to claim 2, wherein said encrypting the simulation data to obtain the encrypted simulation data comprises:
and encrypting the analog data according to an encryption algorithm of a provider to which the analog data belongs to obtain the encrypted analog data.
8. The method for testing a service platform according to claim 1, wherein said converting the encrypted analog data into an analog data packet according to a predetermined packet protocol, the analog data packet including the encrypted analog data comprises:
and converting the encrypted simulation data into a simulation data message according to a preset message protocol of a data source, wherein the simulation data message comprises the encrypted simulation data.
9. The method for testing a service platform according to claim 1, wherein said converting the encrypted analog data into an analog data packet according to a predetermined packet protocol comprises:
mapping and converting the encrypted analog data into message data according to the data type of the preset message protocol;
and assembling the message data to obtain the simulation data message based on the message structure of the preset message protocol.
10. The method for testing a service platform according to claim 1, wherein the analyzing the distribution result of the simulation data packet to test the service platform comprises:
and analyzing the issuing result of the simulation data message, and sending the analysis result to a test service platform so as to improve the test efficiency of the test service platform.
11. The method for testing a service platform according to claim 1, wherein the release result comprises one or more of the following: the pushing quantity per second, the access system throughput and the sending success rate of the analog data message.
12. An apparatus for testing a service platform, comprising:
the service control module is used for constructing analog data according to preset configuration parameters and the data simulator so as to obtain encrypted analog data;
a message assembly module, configured to convert the encrypted analog data into an analog data message according to a preset message protocol, where the analog data message includes the encrypted analog data;
and the analysis and statistics module is used for sending the simulation data message and analyzing the issuing result of the simulation data message so as to test the service platform.
13. An electronic device for testing a service platform, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-11.
14. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-11.
CN202110774747.2A 2021-07-08 2021-07-08 Method, device, equipment and computer readable medium for testing service platform Active CN113485902B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110774747.2A CN113485902B (en) 2021-07-08 2021-07-08 Method, device, equipment and computer readable medium for testing service platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110774747.2A CN113485902B (en) 2021-07-08 2021-07-08 Method, device, equipment and computer readable medium for testing service platform

Publications (2)

Publication Number Publication Date
CN113485902A true CN113485902A (en) 2021-10-08
CN113485902B CN113485902B (en) 2024-05-28

Family

ID=77938140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110774747.2A Active CN113485902B (en) 2021-07-08 2021-07-08 Method, device, equipment and computer readable medium for testing service platform

Country Status (1)

Country Link
CN (1) CN113485902B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114491265A (en) * 2022-01-28 2022-05-13 北京乐开科技有限责任公司 Construction method of operation service system of business space platform

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857393A (en) * 2012-09-11 2013-01-02 中国电力科学研究院 Message simulation based non-public cryptographic algorithm SSL (secure sockets layer) VPN (virtual private network) equipment performance testing method
WO2016082476A1 (en) * 2014-11-25 2016-06-02 中兴通讯股份有限公司 Service testing method and apparatus
CN108564456A (en) * 2018-02-28 2018-09-21 中国电力科学研究院有限公司 A kind of the automation exchange method and system of power market transaction bidding data
CN109670803A (en) * 2018-10-25 2019-04-23 深圳壹账通智能科技有限公司 Method, apparatus, medium and the electronic equipment tested before online trading
CN111221739A (en) * 2020-01-10 2020-06-02 中国建设银行股份有限公司 Service testing method, device and system
CN111274157A (en) * 2020-02-27 2020-06-12 平安医疗健康管理股份有限公司 Test data simulation method and device, computer equipment and storage medium
CN112634047A (en) * 2020-12-30 2021-04-09 平安证券股份有限公司 Foreign exchange transaction simulation test method and device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857393A (en) * 2012-09-11 2013-01-02 中国电力科学研究院 Message simulation based non-public cryptographic algorithm SSL (secure sockets layer) VPN (virtual private network) equipment performance testing method
WO2016082476A1 (en) * 2014-11-25 2016-06-02 中兴通讯股份有限公司 Service testing method and apparatus
CN108564456A (en) * 2018-02-28 2018-09-21 中国电力科学研究院有限公司 A kind of the automation exchange method and system of power market transaction bidding data
CN109670803A (en) * 2018-10-25 2019-04-23 深圳壹账通智能科技有限公司 Method, apparatus, medium and the electronic equipment tested before online trading
CN111221739A (en) * 2020-01-10 2020-06-02 中国建设银行股份有限公司 Service testing method, device and system
CN111274157A (en) * 2020-02-27 2020-06-12 平安医疗健康管理股份有限公司 Test data simulation method and device, computer equipment and storage medium
CN112634047A (en) * 2020-12-30 2021-04-09 平安证券股份有限公司 Foreign exchange transaction simulation test method and device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114491265A (en) * 2022-01-28 2022-05-13 北京乐开科技有限责任公司 Construction method of operation service system of business space platform
CN114491265B (en) * 2022-01-28 2022-08-23 北京乐开科技有限责任公司 Construction method of operation service system of business space platform

Also Published As

Publication number Publication date
CN113485902B (en) 2024-05-28

Similar Documents

Publication Publication Date Title
CN112184154A (en) Business approval method and device
CN108810047B (en) Method and device for determining information push accuracy rate and server
CN111857888B (en) Transaction processing method and device
CN111881329A (en) Account balance management method and system
CN110427304A (en) O&M method, apparatus, electronic equipment and medium for banking system
CN110866040A (en) User portrait generation method, device and system
CN111861745A (en) Service wind control method and device
CN112381453A (en) Information processing method, information processing apparatus, electronic device, and medium
CN111984234A (en) Method and device for processing work order
CN114781351A (en) Bidding file analysis method, device, equipment and medium based on electric power data
CN112947919A (en) Method and device for constructing service model and processing service request
CN114500640A (en) Message generation method, message transmission device, electronic equipment and medium
CN113485902B (en) Method, device, equipment and computer readable medium for testing service platform
CN112990991B (en) Method and device for combined invoicing
CN111144694B (en) Operation flow management method and device based on contact analysis
CN113378346A (en) Method and device for model simulation
EP4390815A1 (en) Smart contract execution method and apparatus
CN111275542A (en) Loan request processing method, device and system
CN111526184B (en) Business auditing method and device
CN111130984A (en) Method and apparatus for processing information
CN113778959B (en) Method, apparatus, device and computer readable medium for data processing
CN115391343A (en) Bill data processing method and device, electronic equipment and storage medium
CN112579428B (en) Interface testing method, device, electronic equipment and storage medium
CN108898446B (en) Method and apparatus for outputting information
CN114997977B (en) Data processing method, device, electronic equipment and computer readable medium

Legal Events

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