CN113254323B - Online full link voltage measurement method and device and computer equipment - Google Patents

Online full link voltage measurement method and device and computer equipment Download PDF

Info

Publication number
CN113254323B
CN113254323B CN202110754258.0A CN202110754258A CN113254323B CN 113254323 B CN113254323 B CN 113254323B CN 202110754258 A CN202110754258 A CN 202110754258A CN 113254323 B CN113254323 B CN 113254323B
Authority
CN
China
Prior art keywords
pressure measurement
pressure
flow
data
real
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
CN202110754258.0A
Other languages
Chinese (zh)
Other versions
CN113254323A (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 Post Consumer Finance Co ltd
Original Assignee
China Post Consumer Finance Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Post Consumer Finance Co ltd filed Critical China Post Consumer Finance Co ltd
Priority to CN202110754258.0A priority Critical patent/CN113254323B/en
Publication of CN113254323A publication Critical patent/CN113254323A/en
Application granted granted Critical
Publication of CN113254323B publication Critical patent/CN113254323B/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/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

Abstract

The invention relates to an online full link pressure measurement method, an online full link pressure measurement device and computer equipment with small intrusion to service codes. The invention provides an on-line full link voltage measuring method, which comprises the following steps: integrating a pressure measurement component into an online system under test; constructing pressure measurement data and scripts; and according to the pressure measurement data and the script, regularly applying pressure to an online system to be measured to perform pressure test, identifying and routing real flow and pressure measurement flow in the pressure test process, and storing the real flow and the pressure measurement flow in an isolated manner. The full link pressure measurement method provided by the invention identifies and routes the real flow and the pressure measurement flow in the pressure test process, so that each service of the business circulation can identify the pressure measurement flow conveniently to determine the final pressure measurement flow and the real flow to be stored in an isolated manner, the intrusion of a business party code is minimum, the pressure measurement action can be completely decoupled from the business, and only an application framework is required for sensing.

Description

Online full link voltage measurement method and device and computer equipment
Technical Field
The invention relates to the technical field of full link voltage measurement, in particular to an online full link voltage measurement method, an online full link voltage measurement device and computer equipment.
Background
In order to ensure that a developed product meets the requirements of online business and stability, various test schemes are generally adopted to ensure the function and performance quality of the product, and then various test strategies and risk coping measures are adopted to ensure the stability of a production system. In these test schemes, performance testing is an important part of quality assurance, and we usually go online and perform line down test before the system comes online, so as to know performance indexes of the system, such as service processing capability, service response time consumption, average transaction processing capability, resource utilization rate of CPUs and the like, in advance.
However, online pressure measurement cannot truly and completely establish a system user model, pressure measurement data diversity constructed by a pressure measurement tool also has deviation with real user data, system performance evaluation distortion caused by basic main parts and network environment factors cannot be solved, and overall performance of an online system cannot be accurately predicted. At present, zero invasion to applications cannot be achieved by existing full link pressure measurement tools and platforms in the market.
CN112286798A discloses a full link pressure measurement system and method capable of simulating real user scene, the system includes: the data acquisition module is used for acquiring system data, performance data, service data and application states of the application system; the scene data storage module is used for storing scene data of system data, performance test data, service data and application states in a classified manner; the pressure measurement model establishing module establishes a pressure measurement model based on the scene data; the pressure measurement execution module is used for making a pressure measurement method based on the pressure measurement model and is used for pressure measurement of the application system associated with the scene data; the pressure measurement and control module is used for carrying out manual and/or automatic adjustment in the pressure measurement process of the application system; and the pressure report generation module is used for generating a test report of the application system. The invention provides a full link voltage testing system and method capable of simulating real user scenes, which are high in testing efficiency and high in speed, can be suitable for various application systems, and are beneficial to improving user experience. However, the pressure measurement system and method cannot achieve good data isolation and are relatively invasive to the application.
CN112615759A discloses a full link pressure measurement component, method and device. This pressure measurement subassembly includes: the receiving request processing component is used for intercepting a data request and analyzing a request head of the data request so as to judge whether the data request is a pressure measurement request according to an analysis result; the pressure measurement request response component is also used for responding to the pressure measurement request to obtain pressure measurement data when the data request is judged to be the pressure measurement request; and the data storage component is used for intercepting the pressure measurement data and storing the pressure measurement data into a database by adopting a shadow technology. When link pressure measurement is carried out, a data request is intercepted through a full link pressure measurement component, a request head of the data request is analyzed, and whether the data request is a pressure measurement request or not is judged according to an analysis result; and when the data request is judged to be a pressure measurement request, injecting a pressure measurement identifier in the pressure measurement request into the current thread context of the first application service to be measured, so that the pressure measurement identifier is transmitted to the first application service.
The scheme can realize the isolation of the pressure measurement data and the real data, but has the limitation that when a certain application is not connected with a unique ucff framework of the company, the pressure measurement component cannot be connected, and the application needs to be upgraded and optimized to be connected with the pressure measurement component to finish data isolation and flow identification.
Disclosure of Invention
Based on this, there is a need for an online full link pressure measurement method, apparatus, and computer device with less intrusion of service codes.
The invention provides an online full link voltage measuring method, which comprises the following steps:
integrating a pressure measurement component into an online system under test;
constructing pressure measurement data and scripts;
and according to the pressure measurement data and the script, regularly applying pressure to the on-line system to be measured to perform pressure test, identifying and routing real flow and pressure measurement flow in the pressure test process, and storing the real flow and the pressure measurement flow in an isolated manner.
Preferably, in the process of integrating the pressure measurement component into the online measured system, the pressure measurement component of the front-end system is used for intercepting the pressure measurement data traffic and discarding the intercepted pressure measurement data traffic.
Preferably, in the process of pressure testing, a pressure measurement identifier is added in a request protocol, and real flow and pressure measurement flow are identified according to the pressure measurement identifier, in the process of pressure testing, the real flow and the pressure measurement flow circulate in each system, a system accessed by the pressure measurement flow is different from the system accessed by the real flow, and a library into which the pressure measurement flow falls is different from a library into which the real flow falls.
Preferably, the step of creating a shadow library is further included before the step of constructing the pressure measurement data and the script, and the step of constructing the pressure measurement data and the script specifically includes: acquiring real data related to a full link request, transferring the real data to a shadow library, extracting parameter field information related to the link request from the shadow library through a script, desensitizing to obtain a pressure measurement data set, and storing the pressure measurement flow into the shadow library in the pressure test process.
Preferably, the pressure measurement data comprises desensitization data and random data, and the desensitization data is backed up from a real stock database and subjected to desensitization treatment; the random data is generated randomly by disorganizing and recombining other data and/or by using scripts.
Preferably, in the process of pressure testing, the real flow and the pressure measurement flow share one set of redis or swift cluster, the real flow and the pressure measurement flow share one set of oracle database physical environment, and when the real flow and the pressure measurement flow share one set of redis cluster, the real flow and the pressure measurement flow are stored in an isolated manner by establishing different namespaces; and when the real flow and the pressure measurement flow share one set of swift cluster, the real flow and the pressure measurement flow are stored in an isolated manner by establishing different container modes.
Preferably, in the pressure testing process, when the performance index of the system exceeds a threshold value, an alarm function is triggered; and/or the presence of a gas in the gas,
in the pressure testing process, recording a testing result and generating a testing report; and/or the presence of a gas in the gas,
and in the pressure testing process, if the system reports an error abnormally or monitors that the system performance index exceeds the threshold range, the system is fused immediately, and the pressure testing task is ended.
The invention also provides an online full link pressure measuring device, which comprises:
the pressure measurement platform is used for constructing pressure measurement data and a script and applying pressure to an online system to be measured at regular time according to the pressure measurement data and the script;
the pressure measurement component is used for identifying the real flow and the pressure measurement flow and routing the real flow and the pressure measurement flow;
the shadow bank is used for storing the pressure measurement flow;
the pressure measurement component is also used for intercepting pressure measurement data flow in the process of integrating the pressure measurement component into an online system to be measured, and discarding the intercepted pressure measurement data flow;
the pressure measurement platform comprises:
the pressure measurement data construction module is used for constructing pressure measurement data and scripts;
the script scene management module is used for managing pressure measurement script editing and scene setting;
the pressure measuring tool integration module is integrated with a pressure applying tool and a monitoring tool;
the timing automatic pressure application module is used for timing and automatically applying pressure to the on-line system to be tested;
the performance index monitoring module is used for triggering an alarm function according to the configured performance index threshold;
the pressure measurement result collection module is used for recording the monitoring result in the test process and automatically generating a pressure measurement report according to the template after the test is finished;
and the abnormal alarm fusing module is used for immediately fusing when the system is abnormally reported in the pressure measurement process or the system performance index exceeds the threshold range is monitored, and ending the pressure measurement task.
The present invention also provides a computer apparatus, comprising: one or more processors; a memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the method for online full link pressure measurement.
The present invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method for online full link pressure measurement.
The full link pressure measurement method provided by the invention identifies and routes the real flow and the pressure measurement flow in the pressure test process, so that each service of the business circulation can identify the pressure measurement flow conveniently to determine the final pressure measurement flow and the real flow to be stored in an isolated manner, the intrusion of a business party code is minimum, the pressure measurement action can be completely decoupled from the business, and only an application framework is required for sensing.
Drawings
The foregoing and other objects, features and advantages of the invention will be apparent from the following more particular description of preferred embodiments of the invention, as illustrated in the accompanying drawings. Like reference numerals refer to like parts throughout the drawings, and the drawings are not intended to be drawn to scale in actual dimensions, emphasis instead being placed upon illustrating the principles of the invention.
Fig. 1 is a schematic flow chart of an online full link pressure measurement method according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of an online full link pressure measurement structure according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a pressure measurement module according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a pressure measurement platform according to an embodiment of the present invention.
Detailed Description
The following detailed description of the present invention is provided in connection with the accompanying drawings and specific embodiments for the purpose of better understanding and enabling those skilled in the art to practice the present invention, which are not intended to limit the present invention.
Referring to fig. 1 to 4, an embodiment of the present invention provides an online full link pressure measurement method, including the following steps:
and S1, integrating the pressure testing component into the online tested system. And ensuring that the on-line tested system is integrated with the pressure testing component before the on-line full link pressure testing is carried out.
And S2, constructing pressure measurement data and scripts. And acquiring data related to a full link request in a pressure measurement scene from a real database table, transferring the data to a created pressure measurement database, taking parameter field information related to the full link from the source database through a script, and simultaneously performing data desensitization operation and generation operation to complete the construction of a pressure measurement data set required by the user. And editing the script.
And S3, performing pressure test on the pressure applied to the online system to be tested at regular time according to the pressure test data and the script, identifying and routing the real flow and the pressure test flow in the pressure test process, and storing the real flow and the pressure test flow in an isolated manner.
Referring to fig. 2 to 3, the pressure measurement component 12 in this embodiment includes a flow identification transparent transmission module 121 and a data isolation module 123, where the flow identification transparent transmission module 121 is configured to identify real flow and pressure measurement flow, and the data isolation module 123 is configured to route the real flow and the pressure measurement flow, ensure that the real flow and the pressure measurement flow fall into different banks, store in an isolated manner, and ensure the security of data. The pressure measuring component 12 in this embodiment is the pressure measuring component mentioned in any embodiment.
According to the online full-link pressure measurement method provided by the embodiment, before online full-link pressure measurement is carried out, the online measured system is integrated with the pressure measurement component, so that in the full-link pressure measurement process, each service system in the service circulation process can recognize pressure measurement flow through the pressure measurement component, and isolated storage of the pressure measurement flow and real flow is ensured, so that intrusion of a service party code is minimized, pressure measurement action and service are completely decoupled, and sensing is carried out only by an application framework.
In a preferred embodiment, a pressure measurement platform is used for constructing pressure measurement data and scripts; and the pressure testing platform regularly applies pressure to the on-line tested system to carry out pressure testing according to the pressure testing data and the script, identifies and routes real flow and pressure testing flow in the pressure testing process, and stores the real flow and the pressure testing flow in an isolation mode. The pressure measurement platform referred to in this embodiment is the pressure measurement platform referred to in any embodiment.
In a preferred embodiment, the step of creating an shadow library is further included before constructing the pressure measurement data and the script, and the pressure measurement flow is stored in the shadow library in the pressure test process. The shadow library referred to in this embodiment is the shadow library referred to in any embodiment.
Referring to fig. 2-3, in a preferred embodiment, the pressure measurement component 12 in this embodiment includes a traffic intercepting module 122, and in the process of integrating the pressure measurement component into the online system under test, the pressure measurement component of the front-end system is configured to intercept the pressure measurement data traffic and discard the intercepted pressure measurement data traffic. Before the on-line full-link pressure measurement is carried out, the integrated debugging stage of the pressure measurement component 12 is used for avoiding the pollution production of the pressure measurement flow when the rear-end system does not integrate the pressure measurement component. The system at the front end is provided with a flow interception identifier, and when the pressure measurement flow moves to the corresponding system, the pressure measurement component can intercept the pressure measurement flow in time if recognizing the configured interception identifier. Based on the purpose of debugging the system, the intercepted pressure measurement flow can be directly discarded. When the pressure measurement component 12 is integrated into the online system to be measured, the online system to be measured may not be configured with the interception identifier, and it is ensured that the pressure measurement flow and the production flow are both transferred between the online systems to be measured.
In the preferred embodiment, in the process of pressure testing, a request protocol is added with a pressure testing identifier, and real flow and pressure testing flow are identified according to the pressure testing identifier, so that each service system in the process of business circulation can identify the pressure testing flow, and whether the mock system is accessed and falls into a pressure testing shadow library is finally determined. And in the circulation process of the real flow and the pressure measurement flow in each system, the mock system accessed by the pressure measurement flow and the pressure measurement shadow library fall into, and the real flow accesses the external system and falls into the real library.
In a preferred embodiment, the step of constructing the pressure measurement data and the script specifically comprises: acquiring real data related to the full link request, transferring the real data to a shadow library, extracting parameter field information related to the link request from the shadow library through a script, and desensitizing to obtain a pressure measurement data set. For example, in the application of full link pressure measurement in a loan approval system, by means of ods (operational Data store), Data related to all link requests in a loan approval scene are acquired from each Data table in an OGG Data synchronization manner, and are transferred to a created pressure measurement shadow library, parameter field information related to the link in the loan approval scene is extracted from the shadow library through a script, Data desensitization operation is performed, pressure measurement source files in formats of dat, csv, json and the like are generated, and the construction of a pressure measurement Data set is completed. The desensitization operation in this embodiment (for example, removing real sensitive information such as the user's identification number, mobile phone number, card number, and customer number) is performed.
In the preferred embodiment, the pressure measurement data comprises desensitization data and random data, wherein the desensitization data is data backed up from the real stock database and subjected to desensitization treatment; the random data is generated randomly by disorganizing and recombining other data and/or using scripts.
In the preferred embodiment, during the pressure test, the real flow and the pressure measurement flow share one cluster, and the real flow and the pressure measurement flow share one database physical environment. The problem of evaluation distortion caused by different basic main parts and network environments is solved.
In a further preferred embodiment, the real flow and the pressure measurement flow share one set of redis or swift cluster, the real flow and the pressure measurement flow share one set of oracle database physical environment, and when the real flow and the pressure measurement flow share one set of redis cluster, the real flow and the pressure measurement flow are isolated and stored by establishing different namespaces; when the real flow and the pressure measurement flow share one set of swift cluster, the real data and the pressure measurement data are logically distinguished by establishing different container modes, and the real flow and the pressure measurement flow are stored in an isolated mode. And data isolation is carried out on data stored in oracle, and flow data is routed on a flow identification mechanism, so that the real flow and the pressure measurement flow can respectively enter a corresponding real library and a shadow library. For the shadow library, different database instances are created to complete the construction of the pressure measurement shadow library based on the way that the physical environment is not isolated and the instances are isolated.
In the preferred embodiment, in the pressure test process, the link time consumption, the resource use condition, the error information and the like of the on-line tested system during operation are monitored, and when the performance index of the system exceeds a threshold value, an alarm function is triggered;
in the preferred embodiment, during the pressure test, the test result is recorded and a test report is generated;
in the preferred embodiment, in the pressure testing process, if the system is abnormally reported or the system performance index is monitored to exceed the threshold range, the system is immediately fused, and the pressure testing task is ended.
The on-line full link voltage measuring method provided by the embodiment of the invention comprises the following steps:
and S10, in the early preparation stage, combing the pressure measurement interface and the link according to the pressure measurement requirement, making a pressure measurement plan, and preparing pressure measurement data and a pressure measurement script. Key factors of the pressure measurement plan include: pressure measurement model, pressure measurement scene, pressure measurement index, pressure measurement time and pressure application tool. And after the pressure measurement data are determined, constructing the pressure measurement data (including stock data and pressure application data) and a pressure measurement script by using the pressure measurement platform. This step includes steps S1 and S2.
And S20, a test execution stage, in which a pressure test plan is executed, the running condition of the tested system on the link is monitored, and the test result is analyzed. And (4) utilizing a pressure measurement platform to regularly and automatically call pressure tools such as a meter, a gating and the like to apply pressure to the system to be measured so as to carry out pressure measurement. The performance and resource use condition of the system are monitored and analyzed through the monitoring function of the pressure measurement platform or the existing online performance monitoring tools (such as APM and ZABBIX), and the performance bottleneck is quickly positioned by relying on a perfect alarm mechanism. This step includes the step of S3.
And S30, in the online-offline test stage, finding out the problem according to the online test result, performing online-offline optimization and test, and performing online operation after the test is passed.
And S40, summarizing the filing stage, and recording and filing the test result, the problem analysis process and the optimization scheme after the online pressure test result meets the requirement.
The embodiment of the invention provides a pressure measurement method for an approval process of personal consumption loan, which comprises the following steps:
step 1, determining that a pressure measurement interface and a link are all interfaces and links in the whole approval process;
step 2, determining a pressure test scene as a single-transaction load test, a mixed scene load test and a fatigue test of a credit/credit flow, and concurrently setting the pressure test scene as 100/200/500; and integrating the pressure testing component into an online tested system.
Step 3, determining the required data as the stock data of all tables related in the credit/credit flow and the data in the request script;
step 4, determining the optimal pressing tool as gapling;
step 5, determining a pressure measurement ending identifier according to indexes such as service incoming quantity, response time and the like;
step 6, backing up real stock data of the related tables to a pressure measurement shadow database through a pressure measurement platform, desensitizing production data, and distributing the desensitized production data to each pressure measurement agent machine for pressure application in a script to construct pressure measurement data and a script;
and 7, on the basis of the steps 1-6, the pressure measurement platform automatically calls a pressure measurement agent machine at regular time, initiates a pressure measurement command, and performs pressure test on the online application according to the pressure measurement script and the pressure measurement scene. And according to the pressure measurement data and the script, regularly applying pressure to the on-line system to be measured to perform pressure test, identifying and routing real flow and pressure measurement flow in the pressure test process, and storing the real flow and the pressure measurement flow in an isolated manner.
Step 8, monitoring the performance index of the tested system on the line of the approval process through a pressure testing platform;
step 9, the pressure measuring platform automatically analyzes whether the performance of the system exceeds a threshold value, and if so, an alarm function is triggered;
step 10, the pressure testing platform automatically records the testing result and generates a preliminary testing report according to the template;
step 11, analyzing system problems according to online pressure measurement results;
step 12, after the system is adjusted and optimized, performing a round of pressure measurement on line, and after the test is passed, putting the line on line;
step 13, if the online pressure measurement result does not meet the requirement, repeating the steps 1-12 until the obtained result meets the requirement of the performance index;
and step 14, after the pressure testing work is finished, recording the test result, the problem analysis process and the optimization scheme into the test report generated in the step 10, and filing and backing up related documents output in the pressure testing process.
The on-line full link pressure measurement method provided by the embodiment of the invention performs data coverage analysis, link coverage analysis and technical index analysis on the system through on-line full link pressure measurement, and solves the problem of pain points of performance evaluation distortion caused by different basic main components and network environments. Meanwhile, the automation degree of pressure measurement is improved, and the normalization of pressure measurement work is realized.
Referring to fig. 2, an embodiment of the present invention further provides an online full link pressure measurement apparatus 1, including:
and the pressure measuring platform 11 is used for constructing pressure measuring data and scripts and applying pressure to the online measured system at regular time according to the pressure measuring data and the scripts. The pressure measuring platform 11 provided in the pressure measuring device 1 can improve the automation degree of pressure measuring work and realize the normalization of the pressure measuring work. And managing script scenes, editing scripts and setting scenes on the pressure measurement platform 11 in a unified manner.
The pressure measurement component 12 is used for identifying the real flow and the pressure measurement flow and routing the real flow and the pressure measurement flow;
the shadow bank 13 is used for storing the pressure measurement flow;
and the real library 14 is used for storing real flow.
The pressure measurement component 12 is further configured to intercept pressure measurement data traffic and discard the intercepted pressure measurement data traffic in a process of integrating the pressure measurement component 12 into an online measured system;
in this embodiment, in the circulation process of the real traffic and the pressure measurement traffic in each system, the mock system 3 and the drop-in pressure measurement shadow library 13 accessed by the pressure measurement traffic, and the real traffic accesses the external system 2 and the drop-in real library 14.
Referring to fig. 4, in a preferred embodiment, the pressure sensing platform 11 comprises:
and the pressure measurement data construction module 111 is used for constructing pressure measurement data and scripts, carrying out desensitization conversion on the real stock data to be used as one part of a pressure measurement data set, and randomly generating the other part of the pressure measurement data according to rules. The pressure measurement data construction module in this embodiment is used for constructing the pressure measurement data and the script mentioned in any of the above embodiments.
A script scene management module 112, configured to manage pressure measurement script editing and scene setting;
a pressure measuring tool integration module 113 integrated with a pressure applying tool and a monitoring tool; pressure applying tools and monitoring tools such as jemter, gatling, APM, zabbix and the like are integrated.
And the timing automatic pressure application module 114 is used for timing and automatically applying pressure to the online system to be tested, and timing and automatically calling pressure tools such as a meter and a gating to apply pressure to the system to be tested for pressure measurement. And selecting a corresponding script and a pressure application tool according to the setting, and executing the test plan regularly and automatically to cover all pressure test scenes set in the plan.
And the performance index monitoring module 115 is configured to trigger an alarm function according to the configured performance index threshold, and monitor various indexes of the online system to be tested during operation. The performance of the system and the resource use condition are monitored and analyzed through the monitoring function of the pressure measurement platform 11 or the on-line existing performance monitoring tools (such as APM and ZABBIX), and the performance bottleneck is quickly positioned by relying on a perfect alarm mechanism.
The pressure measurement result collection module 116 is used for recording the monitoring result in the test process and automatically generating a pressure measurement report according to the template after the test is finished;
and the abnormal alarm fusing module 117 is used for immediately fusing to finish the pressure measurement task when the system is abnormally reported in the pressure measurement process or the system performance index exceeds the threshold range is monitored.
The pressure measurement platform 11 provided in the embodiment of the present invention integrates an IDEA development environment, a Python development environment, and a meter development environment, and is used for centralized management of a gating script, a Python script, and a meter script on the platform. And meanwhile, monitoring tools such as APM (android package), zabbix and the like are integrated, so that the running condition of the system can be automatically monitored during the test execution period, and threshold value warning is carried out.
The pressure measurement platform 11 provided in the embodiment of the present invention includes a pressure measurement data construction module 111, a script scene management module 112, a pressure measurement tool integration module 113, a timed automatic pressure application module 114, a performance index monitoring module 115, a pressure measurement result collection module 116, and an abnormal alarm fusing module 117. The pressure measurement platform 11 integrates a series of manual circulation operations in the pressure measurement process, so that the pressure measurement process is more automatic and streamlined.
In the pressure measurement platform 11 provided in the specific embodiment of the present invention, a gating pressure measurement script is used in the specific embodiment, the pressure measurement platform 11 automatically collects response information obtained by a pressure measurement tool gating and monitoring information obtained by a monitoring tool in a test execution process, and automatically collects corresponding result and state information in a database through a python script after the test execution is completed, generates a pressure measurement report, and writes the collected information.
An embodiment of the present invention further provides a computer device, where the computer device includes: one or more processors; a memory for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the method for online full link pressure measurement as set forth in any of the above embodiments. The computer-readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random access memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., a computer, a cellular phone), and may be a read-only memory, a magnetic or optical disk, or the like.
The embodiment of the invention also provides a computer readable storage medium, which is stored with a computer program, and is characterized in that the program is used for realizing the online full link pressure measurement method when being executed by a processor. The computer device may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server or a cabinet server (including an independent server or a server cluster composed of a plurality of servers) capable of executing programs, and the like. The computer device of the embodiment at least includes but is not limited to: a memory, a processor communicatively coupled to each other via a system bus.
The processor may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor is typically used to control the overall operation of the computer device. In this embodiment, the processor is configured to run program codes stored in the memory or process data to implement the performance attribution method of the above-described embodiments.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (7)

1. An on-line full link pressure measurement method is characterized by comprising the following steps:
integrating a pressure measurement component into an online system under test;
constructing pressure measurement data and scripts;
according to the pressure measurement data and the script, applying pressure to an online system to be measured at regular time to carry out pressure test, identifying and routing real flow and pressure measurement flow in the pressure test process, and storing the real flow and the pressure measurement flow in an isolated manner;
the method comprises the following steps of constructing a shadow library before constructing the pressure measurement data and the script, wherein the step of constructing the pressure measurement data and the script specifically comprises the following steps: acquiring real data related to a full link request, transferring the real data to a shadow library, extracting parameter field information related to the link request from the shadow library through a script, desensitizing to obtain a pressure measurement data set, and storing the pressure measurement flow into the shadow library in the pressure test process;
in the process of integrating the pressure measurement component into the online measured system, the pressure measurement component of the front-end system is used for intercepting the pressure measurement data flow and discarding the intercepted pressure measurement data flow.
2. The method according to claim 1, wherein in a pressure test process, a request protocol is added with a pressure test identifier, and real traffic and pressure test traffic are identified according to the pressure test identifier, in the pressure test process, the real traffic and the pressure test traffic flow in each system flow, the system accessed by the pressure test traffic is different from the system accessed by the real traffic, and the library accessed by the pressure test traffic is different from the library accessed by the real traffic.
3. The online full link pressure measurement method according to claim 1, wherein the pressure measurement data includes desensitization data and random data, and the desensitization data is data backed up from a real stock database and subjected to desensitization processing; the random data is generated randomly by disorganizing and recombining other data and/or by using scripts.
4. The on-line full link pressure measurement method according to claim 1, wherein during the pressure test, the real traffic and the pressure measurement traffic share a set of redis or swift cluster, the real traffic and the pressure measurement traffic share a set of oracle database physical environment, and when the real traffic and the pressure measurement traffic share a set of redis cluster, the real traffic and the pressure measurement traffic are stored in an isolated manner by establishing different namespaces; and when the real flow and the pressure measurement flow share one set of swift cluster, the real flow and the pressure measurement flow are stored in an isolated manner by establishing different container modes.
5. The on-line full link pressure testing method according to claim 1, wherein in the pressure testing process, when the performance index of the system exceeds a threshold value, an alarm function is triggered; and/or the presence of a gas in the gas,
in the pressure testing process, recording a testing result and generating a testing report; and/or the presence of a gas in the gas,
and in the pressure testing process, if the system reports an error abnormally or monitors that the system performance index exceeds the threshold range, the system is fused immediately, and the pressure testing task is ended.
6. An on-line full link pressure measurement device, comprising:
the pressure measurement platform is used for constructing pressure measurement data and a script and applying pressure to an online system to be measured at regular time according to the pressure measurement data and the script;
the pressure measurement component is used for identifying the real flow and the pressure measurement flow and routing the real flow and the pressure measurement flow;
the shadow bank is used for storing the pressure measurement flow;
the pressure measurement platform comprises:
the pressure measurement data construction module is used for constructing pressure measurement data and scripts, and the steps of constructing the pressure measurement data and the scripts specifically comprise: acquiring real data related to a full link request, transferring the real data to a shadow library, extracting parameter field information related to the link request from the shadow library through a script, desensitizing to obtain a pressure measurement data set, and storing the pressure measurement flow into the shadow library in a pressure test process;
the pressure measurement component is also used for intercepting pressure measurement data flow in the process of integrating the pressure measurement component into an online system to be measured, and discarding the intercepted pressure measurement data flow;
the pressure measurement platform further comprises:
the script scene management module is used for managing pressure measurement script editing and scene setting;
the pressure measuring tool integration module is integrated with a pressure applying tool and a monitoring tool;
the timing automatic pressure application module is used for timing and automatically applying pressure to the on-line system to be tested;
the performance index monitoring module is used for triggering an alarm function according to the configured performance index threshold;
the pressure measurement result collection module is used for recording the monitoring result in the test process and automatically generating a pressure measurement report according to the template after the test is finished;
and the abnormal alarm fusing module is used for immediately fusing when the system is abnormally reported in the pressure measurement process or the system performance index exceeds the threshold range is monitored, and ending the pressure measurement task.
7. A computer device, characterized in that the computer device comprises: one or more processors; memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the method for online full link pressure testing as recited in any of claims 1-5.
CN202110754258.0A 2021-07-05 2021-07-05 Online full link voltage measurement method and device and computer equipment Active CN113254323B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110754258.0A CN113254323B (en) 2021-07-05 2021-07-05 Online full link voltage measurement method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110754258.0A CN113254323B (en) 2021-07-05 2021-07-05 Online full link voltage measurement method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN113254323A CN113254323A (en) 2021-08-13
CN113254323B true CN113254323B (en) 2021-10-29

Family

ID=77190631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110754258.0A Active CN113254323B (en) 2021-07-05 2021-07-05 Online full link voltage measurement method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN113254323B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114025333A (en) * 2021-11-01 2022-02-08 中国电信股份有限公司甘肃分公司 Flow configuration method, device and storage medium
CN114338447A (en) * 2021-12-29 2022-04-12 天翼物联科技有限公司 Full link pressure measurement method and device in Radius environment, computer equipment and storage medium
CN115065612B (en) * 2022-06-22 2024-03-08 上海哔哩哔哩科技有限公司 Testing method and device for full-link pressure measurement transformation
CN115248782B (en) * 2022-09-22 2022-12-23 中邮消费金融有限公司 Automatic testing method and device and computer equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110750584A (en) * 2019-09-18 2020-02-04 苏宁云计算有限公司 Data management method and system
CN111400198A (en) * 2020-06-03 2020-07-10 中邮消费金融有限公司 Self-adaptive software testing system
CN112131095A (en) * 2019-06-25 2020-12-25 北京京东振世信息技术有限公司 Pressure testing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150227452A1 (en) * 2014-02-12 2015-08-13 Wipro Limited System and method for testing software applications
US10592402B2 (en) * 2017-11-20 2020-03-17 International Business Machines Corporation Automated integration testing with mock microservices
CN110532168B (en) * 2019-07-05 2024-03-29 中国平安财产保险股份有限公司 Full-link interface pressure measurement method and device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112131095A (en) * 2019-06-25 2020-12-25 北京京东振世信息技术有限公司 Pressure testing method and device
CN110750584A (en) * 2019-09-18 2020-02-04 苏宁云计算有限公司 Data management method and system
CN111400198A (en) * 2020-06-03 2020-07-10 中邮消费金融有限公司 Self-adaptive software testing system

Also Published As

Publication number Publication date
CN113254323A (en) 2021-08-13

Similar Documents

Publication Publication Date Title
CN113254323B (en) Online full link voltage measurement method and device and computer equipment
CN107341098B (en) Software performance testing method, platform, equipment and storage medium
US10467590B2 (en) Business process optimization and problem resolution
CN109560996B (en) Automatic testing system and method for terminal of Internet of things
CN105405221A (en) Method and device for automated test
CN112214373B (en) Hardware monitoring method and device and electronic equipment
CN112269697B (en) Equipment storage performance testing method, system and related device
CN116302989A (en) Pressure testing method and system, storage medium and computer equipment
CN114090462B (en) Software repeated defect identification method and device, computer equipment and storage medium
WO2023108833A1 (en) Terminal anomalous behavior detection method and apparatus, device, and storage medium
CN113392079B (en) Distributed storage cluster log storage optimization method, system and terminal
CN105405220A (en) Method and device for automated test
CN108345541A (en) A kind of program detecting method and system
US7516048B2 (en) Externalized metric calculation engine
CN110348984B (en) Automatic credit card data input method and related equipment under different transaction channels
CN113791980A (en) Test case conversion analysis method, device, equipment and storage medium
CN112631929A (en) Test case generation method and device, storage medium and electronic equipment
CN111639022A (en) Transaction testing method and device, storage medium and electronic device
CN110674197A (en) Visual configuration and capture system for business operation
CN112306849A (en) Application program testing method and system, intelligent terminal and storage medium
CN111143644A (en) Identification method and device of Internet of things equipment
CN110362464A (en) Software analysis method and equipment
CN114968829B (en) Full link pressure test method, electronic device and storage medium
CN109358803B (en) Abnormal idle storage analysis method, device and system
CN115934791A (en) Data inspection method and device

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