CN111371650B - Flow forwarding-based quasi-production equipment testing method and system - Google Patents

Flow forwarding-based quasi-production equipment testing method and system Download PDF

Info

Publication number
CN111371650B
CN111371650B CN202010150554.5A CN202010150554A CN111371650B CN 111371650 B CN111371650 B CN 111371650B CN 202010150554 A CN202010150554 A CN 202010150554A CN 111371650 B CN111371650 B CN 111371650B
Authority
CN
China
Prior art keywords
network request
key value
quasi
production
production equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010150554.5A
Other languages
Chinese (zh)
Other versions
CN111371650A (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.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202010150554.5A priority Critical patent/CN111371650B/en
Publication of CN111371650A publication Critical patent/CN111371650A/en
Application granted granted Critical
Publication of CN111371650B publication Critical patent/CN111371650B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Factory Administration (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method and a system for testing quasi-production equipment based on flow forwarding, wherein the method comprises the following steps: receiving a network request transmitted by a user terminal, and forwarding the network request to production equipment; desensitizing the network request; the network request after desensitization processing is transmitted to the production equipment to be tested to obtain a test result.

Description

Flow forwarding-based quasi-production equipment testing method and system
Technical Field
The invention relates to the technical field of equipment testing, in particular to a method and a system for testing quasi-production equipment based on flow forwarding.
Background
The financial industry has high requirements for the reliability of production equipment. Therefore, the production equipment to be put into use needs to be tested, and can be put into use in a production environment after the test is not problematic. However, the test environment of the current quasi-production equipment only tests part of white list clients, and cannot simulate the network high concurrency request condition in the real production environment, and the pressure test of the quasi-production equipment only carries out limit test on the number of connections and the like, and the business logic under the high concurrency request condition is not tested.
Disclosure of Invention
The invention aims to provide a flow forwarding-based test method for quasi-production equipment, which aims at the production equipment in a real production environment to perform high-concurrency scene test and improve the test effect. Another object of the present invention is to provide a system for testing a production ready device based on traffic forwarding. It is a further object of this invention to provide such a computer apparatus. It is a further object of this invention to provide such a readable medium.
In order to achieve the above object, the present invention discloses a method for testing a quasi-production device based on traffic forwarding, which includes:
receiving a network request transmitted by a user terminal, and forwarding the network request to production equipment;
desensitizing the network request;
and transmitting the desensitized network request to the quasi-production equipment for testing to obtain a test result.
Preferably, the desensitizing the network request specifically includes:
and desensitizing the network request by adopting a MurmurHash algorithm.
Preferably, the transmitting the desensitized network request to the quasi-production device for testing to obtain the test result specifically includes:
determining a key value corresponding to the IP address of the user terminal in the network request;
determining a corresponding equipment code according to the key value and a corresponding relation table of the key value and the equipment code;
and transmitting the desensitized network request to corresponding quasi-production equipment according to the equipment code.
Preferably, the method further comprises determining a corresponding device code according to the key value and the correspondence table between the key value and the device code, and before:
carrying out hash operation on the IP address of the user terminal sending the network request to obtain a key value;
determining the equipment code of the quasi-production equipment for receiving the desensitized network request;
and corresponding the key value and the equipment code to form the corresponding relation table.
Preferably, the transmitting the desensitized network request to the corresponding quasi-production device according to the device code specifically includes:
setting a key value in each desensitized network request;
and transmitting the desensitized network request and the key value thereof to corresponding quasi-production equipment according to the equipment code.
Preferably, the method further comprises the following steps:
when the test result of the quasi-production equipment has an error, determining a key value of the network request with the error, and acquiring all processing record information of the network request with the error from a system log of the quasi-production equipment according to the key value;
and performing error analysis according to the processing record information.
The invention also discloses a quasi-production equipment testing system based on flow forwarding, which comprises:
a network request receiving unit, configured to receive a network request transmitted by a user terminal, and forward the network request to a production device;
a network request desensitization unit, configured to perform desensitization processing on the network request;
and the network request forwarding unit is used for transmitting the desensitized network request to the quasi-production equipment for testing to obtain a test result.
Preferably, the network request desensitization unit is specifically configured to perform desensitization processing on the network request by using a murmururhash algorithm.
Preferably, the network request forwarding unit specifically includes:
a request processing subunit, configured to determine a key value corresponding to an IP address of the user terminal in the network request;
the device determining subunit is used for determining a corresponding device code according to the key value and the corresponding relation table of the key value and the device code;
and the request forwarding subunit is used for transmitting the desensitized network request to the corresponding quasi-production equipment according to the equipment code.
Preferably, the method further includes a presetting unit, configured to determine a corresponding device code according to the key value and a correspondence table between the key value and the device code, perform hash operation on an IP address of the user terminal that sent the network request to obtain the key value, determine the device code of the quasi-production device that receives the desensitized network request, and correspond the key value and the device code to form the correspondence table.
Preferably, the request forwarding subunit is specifically configured to set a key value in each desensitized network request, and transmit the desensitized network request and the key value thereof to the corresponding production ready device according to the device code.
Preferably, the system further comprises an analysis processing unit, configured to determine a key value of the network request with the error when the test result of the quasi-production device has the error, obtain all processing record information of the network request with the error from a system log of the quasi-production device according to the key value, and perform error analysis according to the processing record information.
The invention also discloses a computer device, comprising a memory, a processor and a computer program which is stored on the memory and can run on the processor;
the processor, when executing the program, implements the method as described above.
The present invention also discloses a computer readable medium having a computer program stored thereon;
which when executed by a processor implements the method as described above.
The invention receives the network request transmitted by the user terminal, forwards the network request to the production equipment, simultaneously carries out desensitization processing on the network request, and further transmits the network request after desensitization processing to the quasi-production equipment for testing to obtain a test result. The network request actually received by the production equipment in the production environment is desensitized and then used for testing the quasi-production equipment, so that various service scenes such as high concurrency scenes and the like in the actual production environment can be simulated, the bearing capacity of the quasi-production equipment is tested, the service processing logic of the quasi-production equipment is tested, and the test effect is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a method for testing a production ready device based on traffic forwarding according to an embodiment of the present invention;
FIG. 2 is a second flowchart of a method for testing a sub-production facility based on traffic forwarding according to an embodiment of the present invention;
FIG. 3 is a third flowchart of a method for testing a sub-production facility based on traffic forwarding according to an embodiment of the present invention;
FIG. 4 is a fourth flowchart illustrating a method for testing a sub-production facility based on traffic forwarding according to an embodiment of the present invention;
FIG. 5 is a flow chart showing a fifth embodiment of a method for testing a sub-production facility based on traffic forwarding according to the present invention;
FIG. 6 is a flowchart illustrating a sixth embodiment of a method for testing a sub-production facility based on traffic forwarding according to the present invention;
FIG. 7 is a seventh flowchart of a method for testing a sub-production facility based on traffic forwarding according to an embodiment of the present invention;
FIG. 8 is a flow chart of one embodiment of a system for testing a production ready device based on traffic forwarding according to the present invention;
FIG. 9 is a second flowchart of an embodiment of a system for testing a sub-fab based on traffic forwarding;
FIG. 10 is a third flowchart of an embodiment of a system for testing a sub-fab based on traffic forwarding;
FIG. 11 is a fourth flowchart of an embodiment of a system for testing a sub-production facility based on traffic forwarding;
FIG. 12 shows a schematic block diagram of a computer device suitable for use in implementing embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
According to one aspect of the invention, the embodiment discloses a method for testing a quasi-production device based on traffic forwarding. As shown in fig. 1, in this embodiment, the method includes:
s100: receiving a network request transmitted by a user terminal, and forwarding the network request to production equipment.
S200: and carrying out desensitization processing on the network request.
S300: and transmitting the desensitized network request to the quasi-production equipment for testing to obtain a test result.
The invention receives the network request transmitted by the user terminal, forwards the network request to the production equipment, simultaneously carries out desensitization processing on the network request, and further transmits the network request after desensitization processing to the quasi-production equipment for testing to obtain a test result. The network request actually received by the production equipment in the production environment is desensitized and then used for testing the quasi-production equipment, so that various service scenes such as high concurrency scenes and the like in the actual production environment can be simulated, the bearing capacity of the quasi-production equipment is tested, the service processing logic of the quasi-production equipment is tested, and the test effect is improved.
In a preferred embodiment, as shown in fig. 2, the S200 may specifically include:
s210: and desensitizing the network request by adopting a MurmurHash algorithm. The method comprises the steps of carrying out desensitization processing on a network request, namely carrying out coding operation on fields and the like which represent user identification information such as a user name, an account number and an identity card number in the network request, and replacing sensitive fields which identify the user information with the calculated coding values, so that in the subsequent processing flow, specific user identities cannot be inferred through the fields such as the user name, the account number and the identity card number, the safety of user information in the testing process of the quasi-production equipment is ensured, and user information leakage is prevented.
It can be understood that the quasi-production equipment testing method of the present invention completely simulates the service scene of the actual production environment, and the actual network request of the production environment user needs to be desensitized in real time and forwarded to the quasi-production equipment, so that the network request for the quasi-production equipment testing is consistent with the request frequency and the request initiation time of the network request received by the production equipment in the production environment. When the network request is desensitized and forwarded in real time under the condition of high concurrency, the efficiency of an algorithm requiring desensitization processing is high enough, so that the processing speed can be higher under the condition of occupying lower system resources. Therefore, in the preferred embodiment, the MurmurHash algorithm is used for desensitizing the network request, and compared with the conventional algorithm, the processing speed of the MurmurHash algorithm is increased by about 5 times, so that the desensitizing processing speed and the network request forwarding speed can be increased.
In a preferred embodiment, as shown in fig. 3, the S300 may specifically include:
s310: and determining a key value corresponding to the IP address of the user terminal in the network request.
S320: and determining the corresponding equipment code according to the key value and the corresponding relation table of the key value and the equipment code.
S330: and transmitting the desensitized network request to corresponding quasi-production equipment according to the equipment code.
It will be appreciated that in high concurrency situations, in order to forward the request accurately, it is necessary to ensure that network requests of the same user are forwarded to the server of the same sub-production device. In the preferred embodiment, the network request transmitted by the user terminal may include user terminal information such as a user terminal IP address, the network request may be analyzed to determine the IP address of the user terminal, and the IP address may be encoded and calculated by a preset encoding algorithm, such as a hash algorithm, to obtain a key value. And determining the quasi-production equipment for receiving the network request from a preset corresponding relation table of the key value and the equipment code according to the key value, and forwarding the network request to the corresponding quasi-production equipment, so that the network requests of the same user terminal can be guaranteed to be forwarded to the same quasi-production equipment. Compared with the conventional common persistent connection mode, the quasi-production equipment for receiving the network request is determined by setting the corresponding relation table, long connection does not need to be maintained, a larger thread pool does not need to be maintained, higher connection number can be supported, and higher service capacity upper limit is achieved.
It should be noted that the correspondence table may be preset by a tester, and the correspondence table is formed according to the setting of the tester, so that the tester can flexibly set the forwarding of the network request, and thus, the test of the quasi-production equipment is not limited to a fixed test mode and a fixed test mode, and different quasi-production equipment can be tested according to the setting of the tester.
In a preferred embodiment, as shown in fig. 4, the S300 further includes before S320:
s311: and carrying out hash operation on the IP address of the user terminal sending the network request to obtain a key value.
S312: and determining the equipment code of the quasi-production equipment receiving the desensitized network request.
S313: and corresponding the key value and the equipment code to form the corresponding relation table.
It should be understood that the IP address of the user terminal may be obtained from the received network request, or the IP address of the user terminal sending the network request may be obtained according to the configuration information input by the tester, which is not limited in the present invention. The IP address of the user terminal can be obtained through the configuration information input by the tester, so that the tester can configure the network request for testing the production equipment according to actual requirements by configuring the corresponding relation between the IP address of the user terminal and the production equipment, and the control of aligning the production equipment for testing is realized.
In a preferred embodiment, as shown in fig. 5, the S330 may specifically include:
s331: a key value is set in each desensitized network request.
S332: and transmitting the desensitized network request and the key value thereof to corresponding quasi-production equipment according to the equipment code.
The key value is set in each desensitized network request, the user terminal sent by each network request can be marked, and preferably, the key value of each network request can be used as the header of the network request. And transmitting the desensitized network request with the key value at the head to corresponding quasi-production equipment, and tracking and analyzing the network request of each user terminal or the transmission process of the network request through the key value.
In a preferred embodiment, as shown in fig. 6, the S330 may further include:
s333: and when the test result of the quasi-production equipment has an error, determining a key value of the network request with the error, and acquiring all processing record information of the network request reporting the error from a system log of the quasi-production equipment according to the key value.
S334: and performing error analysis according to the processing record information.
It can be understood that, after the request is forwarded to the quasi-production device for testing, if the test result has an error, the request forwarding path and the error reporting information of each step of the processing step need to be checked. At this point, each network request needs to be tracked. Because each network request is provided with the key value, all the key values including error reporting in the system log of the production ready device are traversed, processing record information of all the network requests related to the error reporting can be obtained, and the processing record information is further analyzed to determine and correct the error reporting reason, so that the product stability is improved.
Specifically, in an alternative embodiment, the system log may be obtained from the production ready device, the keywords in the error log may be classified, and the specified error of the specified module may be quickly searched by using the search engine. And establishing a visual analysis graph of the error reporting condition of the request according to the error reporting condition and a key value of the network request, such as a hash value, so that the problem can be quickly positioned.
In a preferred embodiment, as shown in fig. 7, the S330 may further include:
s335: and performing data statistics on the network requests in the system log according to the key values of the network requests. Specifically, the system log can be acquired from the quasi-production equipment, the network requests corresponding to different key values and the network request processing record information can be counted according to the key values of the network requests, then the statistics of the request processing time, the success rate, the average processing time, the 80% successful processing time and/or the TPS and other key data can be carried out, further, a line graph with time as a horizontal axis can be drawn according to the success rate, the TPS and other data, and the maximum processing capacity of the system can be analyzed according to the inflection point occurrence time.
Based on the same principle, the embodiment also discloses a quasi-production equipment testing system based on flow forwarding. As shown in fig. 8, the system includes a network request receiving unit 11, a network request desensitization unit 12, and a network request forwarding unit 13.
The network request receiving unit 11 is configured to receive a network request transmitted by a user terminal, and forward the network request to a production device.
The network request desensitization unit 12 is configured to desensitize the network request.
The network request forwarding unit 13 is configured to transmit the desensitized network request to the quasi-production device for testing to obtain a test result.
In a preferred embodiment, the network request desensitization unit 12 is specifically configured to perform desensitization processing on the network request by using a murmurmurhash algorithm.
In a preferred embodiment, as shown in fig. 9, the network request forwarding unit 13 specifically includes a request processing subunit 131, a device determining subunit 132, and a request forwarding subunit 133.
The request processing subunit 131 is configured to determine a key value corresponding to the IP address of the user terminal in the network request.
The device determining subunit 132 is configured to determine a corresponding device code according to the key value and the correspondence table between the key value and the device code.
The request forwarding subunit 133 is configured to transmit the desensitized network request to a corresponding quasi-production device according to the device code.
In a preferred embodiment, as shown in fig. 10, a presetting unit 10 is further included. The preset unit 10 is configured to determine a corresponding device code according to the key value and the correspondence table between the key value and the device code, perform hash operation on the IP address of the user terminal that sent the network request to obtain the key value, determine the device code of the production ready device that receives the desensitized network request, and correspond the key value and the device code to form the correspondence table.
In a preferred embodiment, the request forwarding sub-unit 133 is specifically configured to set a key value in each desensitized network request, and transmit the desensitized network request and the key value thereof to the corresponding quasi-production device according to the device code.
In a preferred embodiment, as shown in fig. 11, an analysis processing unit 14 is further included. The analysis processing unit 14 is configured to determine a key value of the network request for error when the test result of the quasi-production device has an error, obtain all processing record information of the network request for error reporting from a system log of the quasi-production device according to the key value, and perform error analysis according to the processing record information.
Since the principle of the system for solving the problem is similar to the above method, the implementation of the system can refer to the implementation of the method, and the detailed description is omitted here.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer device, which may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
In a typical example, the computer device comprises in particular a memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor implements the method as described above.
Referring now to FIG. 12, shown is a schematic block diagram of a computer device 600 suitable for use in implementing embodiments of the present application.
As shown in fig. 12, the computer apparatus 600 includes a Central Processing Unit (CPU)601 which can perform various appropriate works and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM)) 603. In the RAM603, various programs and data necessary for the operation of the system 600 are also stored. The CPU601, ROM602, and RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output section 607 including a Cathode Ray Tube (CRT), a liquid crystal feedback (LCD), and the like, and a speaker and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted as necessary on the storage section 608.
In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may 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, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may 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, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A quasi-production equipment testing method based on flow forwarding is characterized by comprising the following steps:
receiving a network request transmitted by a user terminal, and forwarding the network request to production equipment;
desensitizing the network request;
transmitting the desensitized network request to a quasi-production device for testing to obtain a test result;
the step of transmitting the desensitized network request to the quasi-production equipment for testing to obtain a test result specifically includes:
determining a key value corresponding to the IP address of the user terminal in the network request;
determining a corresponding equipment code according to the key value and a corresponding relation table of the key value and the equipment code;
transmitting the desensitized network request to corresponding quasi-production equipment according to the equipment code;
further comprising determining the corresponding device code according to the key value and the corresponding relation table of the key value and the device code, before:
carrying out hash operation on the IP address of the user terminal sending the network request to obtain a key value;
determining the equipment code of the quasi-production equipment for receiving the desensitized network request;
and corresponding the key value and the equipment code to form the corresponding relation table.
2. The method for testing the production ready device according to claim 1, wherein the desensitizing the network request specifically comprises:
and desensitizing the network request by adopting a MurmurHash algorithm.
3. The method for testing the production-ready device according to claim 1, wherein the transmitting the desensitized network request to the corresponding production-ready device according to the device code specifically comprises:
setting a key value in each desensitized network request;
and transmitting the desensitized network request and the key value thereof to corresponding quasi-production equipment according to the equipment code.
4. The method for testing a quasi-production facility of claim 3, further comprising:
when the test result of the quasi-production equipment has an error, determining a key value of the network request with the error, and acquiring all processing record information of the network request with the error from a system log of the quasi-production equipment according to the key value;
and performing error analysis according to the processing record information.
5. A quasi-production equipment test system based on flow forwarding is characterized by comprising:
a network request receiving unit, configured to receive a network request transmitted by a user terminal, and forward the network request to a production device;
a network request desensitization unit, configured to perform desensitization processing on the network request;
the network request forwarding unit is used for transmitting the desensitized network request to the quasi-production equipment for testing to obtain a test result;
the network request forwarding unit specifically includes:
a request processing subunit, configured to determine a key value corresponding to an IP address of the user terminal in the network request;
the device determining subunit is used for determining a corresponding device code according to the key value and the corresponding relation table of the key value and the device code;
the request forwarding subunit is used for transmitting the desensitized network request to the corresponding quasi-production equipment according to the equipment code;
the device further comprises a presetting unit, which is used for determining a corresponding device code according to the key value and the corresponding relation table of the key value and the device code, performing hash operation on the IP address of the user terminal sending the network request to obtain the key value, determining the device code of the quasi-production device receiving the desensitized network request, and corresponding the key value and the device code to form the corresponding relation table.
6. The system for testing the production-ready device according to claim 5, wherein the network request desensitization unit is specifically configured to perform desensitization processing on the network request by using a MurmurHash algorithm.
7. The quasi-production equipment test system of claim 5, wherein the request forwarding subunit is specifically configured to set a key value in each desensitized network request, and transmit the desensitized network request and the key value thereof to the corresponding quasi-production equipment according to the equipment code.
8. The system for testing a quasi-production device as claimed in claim 7, further comprising an analysis processing unit for determining a key value of the network request in error when the test result of the quasi-production device is in error, acquiring all processing record information of the network request in error from a system log of the quasi-production device according to the key value, and performing error analysis according to the processing record information.
9. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor,
the processor, when executing the program, implements the method of any of claims 1-4.
10. A computer-readable medium, having stored thereon a computer program,
the program when executed by a processor implements the method of any one of claims 1 to 4.
CN202010150554.5A 2020-03-06 2020-03-06 Flow forwarding-based quasi-production equipment testing method and system Active CN111371650B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010150554.5A CN111371650B (en) 2020-03-06 2020-03-06 Flow forwarding-based quasi-production equipment testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010150554.5A CN111371650B (en) 2020-03-06 2020-03-06 Flow forwarding-based quasi-production equipment testing method and system

Publications (2)

Publication Number Publication Date
CN111371650A CN111371650A (en) 2020-07-03
CN111371650B true CN111371650B (en) 2022-03-25

Family

ID=71211761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010150554.5A Active CN111371650B (en) 2020-03-06 2020-03-06 Flow forwarding-based quasi-production equipment testing method and system

Country Status (1)

Country Link
CN (1) CN111371650B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798070A (en) * 2004-12-21 2006-07-05 华为技术有限公司 Method and system for testing functions of forwarding actual services at communication nodes
CN106470136A (en) * 2015-08-21 2017-03-01 腾讯科技(北京)有限公司 Platform test method and platform testing system
CN108614777A (en) * 2018-05-08 2018-10-02 山东浪潮通软信息科技有限公司 A kind of financial transaction test system and test method based on actual services
CN109558746A (en) * 2018-11-06 2019-04-02 泰康保险集团股份有限公司 Data desensitization method, device, electronic equipment and storage medium
CN109560990A (en) * 2018-12-17 2019-04-02 同盾控股有限公司 A kind of Internet application test method and device
CN109766479A (en) * 2019-01-24 2019-05-17 北京三快在线科技有限公司 Data processing method, device, electronic equipment and storage medium
CN110457199A (en) * 2018-05-08 2019-11-15 北京京东尚科信息技术有限公司 The method and apparatus of performance test

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9558089B2 (en) * 2014-11-12 2017-01-31 Intuit Inc. Testing insecure computing environments using random data sets generated from characterizations of real data sets
CN105429818A (en) * 2015-10-30 2016-03-23 努比亚技术有限公司 Method and system for realizing load tests
US10817407B2 (en) * 2018-05-07 2020-10-27 Proov Systems Ltd. PoC platform which compares startup S/W products including evaluating their machine learning models

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798070A (en) * 2004-12-21 2006-07-05 华为技术有限公司 Method and system for testing functions of forwarding actual services at communication nodes
CN106470136A (en) * 2015-08-21 2017-03-01 腾讯科技(北京)有限公司 Platform test method and platform testing system
CN108614777A (en) * 2018-05-08 2018-10-02 山东浪潮通软信息科技有限公司 A kind of financial transaction test system and test method based on actual services
CN110457199A (en) * 2018-05-08 2019-11-15 北京京东尚科信息技术有限公司 The method and apparatus of performance test
CN109558746A (en) * 2018-11-06 2019-04-02 泰康保险集团股份有限公司 Data desensitization method, device, electronic equipment and storage medium
CN109560990A (en) * 2018-12-17 2019-04-02 同盾控股有限公司 A kind of Internet application test method and device
CN109766479A (en) * 2019-01-24 2019-05-17 北京三快在线科技有限公司 Data processing method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111371650A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
CN107122258B (en) Method and equipment for checking state code of test interface
CN107122297B (en) Method and equipment for generating request message of test interface
CN109309596B (en) Pressure testing method and device and server
CN106878108B (en) Network flow playback test method and device
CN111708650B (en) High-availability analysis method and system for business application system
CN111163067B (en) Safety testing method and device and electronic equipment
CN104869019A (en) Feedback method and apparatus for positioning faults, and server
CN112650685A (en) Automatic testing method and device, electronic equipment and computer storage medium
CN117278434A (en) Flow playback method and device and electronic equipment
CN109189677B (en) Test method and device for updating state of variable value
CN109271453B (en) Method and device for determining database capacity
CN111371650B (en) Flow forwarding-based quasi-production equipment testing method and system
CN110597794A (en) Data processing method and device and electronic equipment
CN109542775B (en) Test script generation and execution method and device
CN111309576A (en) Pressure testing method and device
CN115016995A (en) Interface testing method, computer device and computer storage medium
CN114490402A (en) Method and device for checking validity of message field
CN111143644B (en) Identification method and device of Internet of things equipment
CN115203178A (en) Data quality inspection method and device, electronic equipment and storage medium
CN110266610B (en) Traffic identification method and device and electronic equipment
CN115705476A (en) Information display method and device, electronic equipment and computer readable medium
CN115941432A (en) Domain name alarm information sending method and device, electronic equipment and computer readable storage medium
CN111225075A (en) Configuration method and device for Internet of things directional access service
CN111708649B (en) Attack detection method and system for service application system
CN115858386A (en) Data transmission method, device and system, medium and computer equipment

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