CN112667501A - Link testing method and device based on automatic baffle and related equipment - Google Patents

Link testing method and device based on automatic baffle and related equipment Download PDF

Info

Publication number
CN112667501A
CN112667501A CN202011541080.3A CN202011541080A CN112667501A CN 112667501 A CN112667501 A CN 112667501A CN 202011541080 A CN202011541080 A CN 202011541080A CN 112667501 A CN112667501 A CN 112667501A
Authority
CN
China
Prior art keywords
link
target
data
node
baffle
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.)
Pending
Application number
CN202011541080.3A
Other languages
Chinese (zh)
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202011541080.3A priority Critical patent/CN112667501A/en
Publication of CN112667501A publication Critical patent/CN112667501A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The application relates to a data processing technology, and provides a link testing method and device based on an automatic baffle, computer equipment and a storage medium, wherein the link testing method comprises the following steps: calling a preset proxy service to obtain and analyze a data request instruction corresponding to a target server to obtain a target link corresponding to the target data request instruction; calling a monitoring node to monitor whether the operation of the target link is abnormal or not; when the monitoring result is that the operation of the target link is abnormal, determining a target link node with the abnormality; acquiring target baffle information corresponding to the target link node; starting a mock platform, and calling the mock platform to generate a link return parameter according to the target baffle information; and outputting the link return parameter to the target link node. This application can improve the speed and the accuracy that the baffle was handled, promotes the construction of wisdom medical treatment and wisdom city.

Description

Link testing method and device based on automatic baffle and related equipment
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a link testing method and apparatus based on an automated barrier, a computer device, and a medium.
Background
In order to eliminate information islands and meet the requirements of business data sharing and comprehensive utilization, enterprises or organizations in various industries gradually build various data comprehensive analysis systems, data platforms or data middleboxes. In the system, the data collection and processing process is designed to multiple links of data uploading, loading, statistics, data application and the like of multiple data sources. Before such a system is formally applied online, the performance of each interface of the system needs to be tested to meet the requirements of online application.
In the process of implementing the present application, the inventor finds that the prior art has at least the following problems: the baffle data corresponding to each interface of the system is manually configured, and for the system comprising a complex business process, the efficiency of manually configuring the baffle data of each interface is low and the accuracy cannot be ensured.
Therefore, it is desirable to provide a link testing method based on an automated baffle, which can improve the speed and accuracy of baffle processing.
Disclosure of Invention
In view of the above, there is a need for a link testing method based on an automated barrier, a link testing apparatus based on an automated barrier, a computer device and a medium, which can improve the rate and accuracy of barrier processing.
The first aspect of the embodiments of the present application provides a link testing method based on an automated baffle, where the link testing method based on the automated baffle includes:
calling a preset proxy service to obtain and analyze a data request instruction corresponding to a target server to obtain a target link corresponding to the target data request instruction;
calling a monitoring node to monitor whether the operation of the target link is abnormal or not;
when the monitoring result is that the operation of the target link is abnormal, determining a target link node with the abnormality;
acquiring target baffle information corresponding to the target link node;
starting a mock platform, and calling the mock platform to generate a link return parameter according to the target baffle information;
and outputting the link return parameter to the target link node.
Further, in the above method for testing a link based on an automated barrier provided in an embodiment of the present application, the obtaining and analyzing a data request instruction corresponding to a target server to obtain a target link corresponding to the target data request instruction includes:
acquiring interface parameter information corresponding to the target request data;
determining a first interface and a second interface according to the interface parameter information;
determining the target link based on the first interface and the second interface.
Further, in the above method for testing a link based on an automated barrier provided in an embodiment of the present application, after obtaining and analyzing a data request instruction corresponding to a target server to obtain a target link corresponding to the target data request instruction, the method further includes:
acquiring an instance calling relation of each target link;
determining an initial link map of each target link according to the instance calling relation;
constructing an SQL script to analyze the target links to obtain the dependency relationship among the target links;
and adjusting the initial link diagram according to the dependency relationship to obtain a visualized target link diagram.
Further, in the above method for testing a link based on an automatic barrier provided in the embodiment of the present application, the invoking a monitoring node to monitor whether an abnormality exists in the operation of the target link includes:
calling a monitoring node to monitor actual operation data of the target link;
acquiring standard operation data corresponding to the target link;
comparing whether the actual operation data is consistent with the standard operation data;
when the comparison result is that the actual operation data is consistent with the standard operation data, determining that no abnormity exists in the operation of the target link;
and when the comparison result shows that the actual operation data is inconsistent with the standard operation data, determining that the operation of the target link is abnormal.
Further, in the above method for testing a link based on an automated barrier provided in an embodiment of the present application, the method further includes:
creating an initial data request instruction set;
running the target server based on the initial data request instruction set to obtain a complete link diagram;
acquiring link data corresponding to each link node in the complete link map;
and normalizing the link data to obtain baffle information corresponding to each link node.
Further, in the above link testing method based on an automatic barrier provided in an embodiment of the present application, the acquiring target barrier information corresponding to the target link node includes:
acquiring target identification information of the target link node;
and traversing a preset database according to the target identification information to obtain target baffle information corresponding to the target identification information.
Further, in the above method for testing a link based on an automated barrier provided in the embodiment of the present application, the invoking the mock platform to generate a link return parameter according to the target barrier information includes:
analyzing the target baffle information to obtain operation parameters corresponding to the target link nodes;
acquiring target attributes corresponding to the operating parameters;
and calling the mock platform to simulate the attribute value of the target attribute, and taking the attribute value as a link return parameter.
The second aspect of the embodiments of the present application further provides a link testing apparatus based on an automatic baffle, where the link testing apparatus based on the automatic baffle includes:
the link acquisition module is used for calling a preset proxy service to acquire and analyze a data request instruction corresponding to a target server to obtain a target link corresponding to the target data request instruction;
the abnormity monitoring module is used for calling the monitoring node to monitor whether the operation of the target link is abnormal or not;
the abnormity determining module is used for determining the abnormal target link node when the monitoring result is that the operation of the target link is abnormal;
the baffle acquisition module is used for acquiring target baffle information corresponding to the target link node;
the parameter returning module is used for starting the mock platform and calling the mock platform to generate a link returning parameter according to the target baffle information;
and the parameter output module is used for outputting the link return parameter to the target link node.
A third aspect of embodiments of the present application further provides a computer device, which includes a processor, and the processor is configured to implement the automated bezel-based link testing method according to any one of the above when executing a computer program stored in a memory.
The fourth aspect of the embodiments of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for testing a link based on an automated barrier is implemented as any one of the above methods.
According to the link testing method based on the automatic baffle, the link testing device based on the automatic baffle, the computer equipment and the computer readable storage medium provided by the embodiment of the application, the baffle information can be automatically configured based on the link data of the complete link diagram, the problems of low configuration efficiency and low accuracy caused by manually configuring the baffle data are solved, and the processing efficiency and the accuracy of the automatic baffle can be improved; in addition, the link structure corresponding to the target server is generated according to the data request instruction, the monitoring node is called to monitor whether the operation of the link structure is abnormal or not, when the monitoring result is that the operation of the link structure is abnormal, the mock platform is started, the return parameter of the abnormal link node is simulated based on the target baffle information, the problem that the performance test of the target server cannot be accurately completed due to the fact that the link node is abnormal is solved, the performance test of the target server is not dependent on the environment condition of the associated system, and the stability of the system test can be improved. This application can be applied to in each functional module in wisdom cities such as wisdom government affairs, wisdom traffic, for example wisdom government affairs based on automatic baffle link test module etc. can promote the rapid development in wisdom city.
Drawings
Fig. 1 is a flowchart of a link testing method based on an automated barrier according to a first embodiment of the present application.
Fig. 2 is a schematic structural diagram of a computer device according to an embodiment of the present application.
FIG. 3 is an exemplary functional block diagram of the computer device shown in FIG. 2.
The following detailed description will further illustrate the present application in conjunction with the above-described figures.
Detailed Description
In order that the above objects, features and advantages of the present application can be more clearly understood, a detailed description of the present application will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth to provide a thorough understanding of the present application, and the described embodiments are a part, but not all, of the present application. 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 application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
Fig. 1 is a flow chart of a first embodiment of the present application of an automated barrier-based link testing method. As shown in fig. 1, the automated bezel-based link testing method may include the steps of:
s11, calling a preset proxy service to obtain and analyze the data request instruction corresponding to the target server, and obtaining the target link corresponding to the target data request instruction.
In at least one embodiment of the present application, the preset proxy service refers to a service for acquiring a data request instruction, and the preset proxy service may be executed by setting a proxy plug-in the target server. For example, the preset proxy service may refer to a Detector proxy service, which is not limited herein. The target server is the server which sends the data request instruction. The data request instruction is used for requesting a target server or an instruction for calling data from other servers, where the other servers are servers having a data association relationship with the target server, and the number of the other servers may be 1 or more. The data request command may be a touch command, a voice control command, and the like, which is not limited herein.
In at least one embodiment of the present application, the data request instruction carries log data, where the log data records related information of request data to be called (that is, target request data), and includes interface parameter information corresponding to the request data, content information of the request data, and the like, where the interface parameter information and the content information of the request data are stored in a preset position of the log data, and optionally, before the data request instruction corresponding to a target server is obtained and analyzed, and a target link corresponding to the target data request instruction is obtained, the method further includes: acquiring log data carried by the data request instruction; structuring the log data and determining a preset position of the log data; and acquiring the information at the preset position as the target request data.
In at least one embodiment of the present application, the target link refers to a connection between an interface and an interface, and the number of the corresponding target links may be 1 or more for one data request instruction. That is, for a data request instruction, it may only be necessary to perform self-tuning of the requested data in the target server, or it may be necessary to invoke the requested data from one or more other servers associated with the target server. Each server corresponds to one or more interface information, the interface information can be determined according to the target request data, and then a target link is determined according to the interface information. Illustratively, the target server is an a system, the a system includes an a1 interface, the other servers are B systems, and the B system includes a B1 interface and a B2 interface, where a1 interface in the a system calls a B1 interface and a B2 interface in the B system at the same time (that is, one interface calls a plurality of interfaces). Or, the other systems further include a C system, where the C system includes a C1 interface, where the a1 interface of the a system calls the C1 interface of the C system, and the B1 interface of the B system also calls the C1 interface of the C system (that is, multiple interfaces call 1 interface).
Optionally, the obtaining and analyzing the data request instruction corresponding to the target server to obtain the target link corresponding to the target data request instruction includes: acquiring interface parameter information corresponding to the target request data; determining a first interface and a second interface according to the interface parameter information; determining the target link based on the first interface and the second interface.
The interface parameter information comprises parameters such as an interface identifier, a request mode, an incoming parameter and the like, and the interface information can be determined according to the interface identifier. The first interface is an interface for outputting a data request instruction and receiving target request data, the second interface is an interface for receiving the data request instruction and outputting the target request data, and service association exists between the first interface and the second interface, so that the request data can be transmitted through a target link.
Optionally, when the number of the target links is multiple, after the data request instruction corresponding to the target server is obtained and analyzed, and the target link corresponding to the target data request instruction is obtained, the method further includes: acquiring instance calling relation and calling times of each target link; determining an initial link map of each target link according to the instance calling relationship and the calling times; constructing an SQL script to analyze the target links to obtain the dependency relationship among the target links; and adjusting the initial link diagram according to the dependency relationship to obtain a visualized target link diagram.
The instance invocation relationship is used to identify a link direction of the target link, for example, if the instance invocation relationship is that the first interface invokes the request data in the second interface, the link direction of the target link corresponding to the first interface and the second interface is pointed to the link node corresponding to the second interface by the link node corresponding to the first interface. The calling times refer to the times of calling the requested data in the second interface by the first interface. The initial link diagram is a visual picture capable of embodying the instance calling relationship and the calling times, wherein the instance calling relationship can be determined through arrow pointing, and the calling times can be determined through digital identification.
The dependency relationship refers to a data dependency relationship and a task dependency relationship existing between the two target links. For example, for a target server a, another server associated with the target server a is B, another server associated with B is C, an interface corresponding to the target server a is a first interface, an interface corresponding to the other server B is a second interface, and an interface corresponding to the other server C is a third interface. When the first interface outputs a data request instruction, determining that related data of other servers B need to be called according to the data request instruction, and determining that related data of a certain type in other servers B also need to call other servers C, so that a first link formed by the first interface and the second interface and a second link formed by the second interface and the third interface are obtained, and a task dependency relationship and a data dependency relationship exist between the first link and the second link.
According to the method and the device, other interface information required by the data request instruction is obtained and executed based on the data request instruction sent by the target server, then the link information is determined, a visual link diagram is constructed, the automatic entering of the link structure can be realized, the incidence relation of each interface does not need to be manually entered, the accuracy and the efficiency of obtaining the link structure can be improved, then the accuracy and the efficiency of monitoring the link are improved, the development cost can be reduced, and the development efficiency is improved.
S12, calling the monitoring node to monitor whether the operation of the target link is abnormal, and executing the step S13 when the monitoring result is that the operation of the target link is abnormal.
In at least one embodiment of the present application, by setting a monitoring node for the target link and calling the monitoring node to monitor the operation condition of the target link in real time, the link node with abnormal operation can be monitored in time and processed, so as to ensure that the performance test of the target server is completed smoothly.
For the case that the number of the target links is multiple, in an embodiment, one monitoring node may be set for each target link for link real-time monitoring, and optionally, before invoking the monitoring node to monitor whether there is an abnormality in the operation of the target link, the method further includes: acquiring each target link; and determining a monitoring node associated with the target link.
In at least one embodiment of the present application, the invoking the monitoring node to monitor whether there is an exception in the operation of the target link includes: calling a monitoring node to monitor actual operation data of the target link; acquiring standard operation data corresponding to the target link; comparing whether the actual operation data is consistent with the standard operation data; when the comparison result is that the actual operation data is consistent with the standard operation data, determining that no abnormity exists in the operation of the target link; and when the comparison result shows that the actual operation data is inconsistent with the standard operation data, determining that the operation of the target link is abnormal.
The actual operation data includes a plurality of preset operation index items, where the preset operation index items are preset, for example, the preset operation index items may include index items such as a unit time event receiving number, a unit time event sending number, a unit time event receiving size, a unit time event sending size, and processing time consumption.
In at least one embodiment of the present application, when the monitoring result indicates that there is no abnormality in the operation of the target link, the performance test of the target server is completed through the target link.
And S13, determining the abnormal target link node.
In at least one embodiment of the present application, when the monitoring result indicates that there is an abnormality in the operation of the target link, that is, when the comparison result of the actual operation data and the standard operation data is inconsistent, it is determined that the link node with the inconsistent comparison result is the target link node.
And S14, acquiring the target baffle information corresponding to the target link node.
In at least one embodiment of the present application, the barrier refers to an application program that is called to mask an abnormal link node when the link node has an abnormality during a test. And configuring baffle information corresponding to each link node. The baffle information includes information such as access parameters of an interface, a URL address, a calling authority, a calling linked list structure, and the like, where the calling linked list structure includes link nodes having a calling relationship with the link nodes, and the number of the link nodes included in the calling linked list structure may be 1 or more, which is not limited herein.
In at least one embodiment of the present application, the method further comprises: creating an initial data request instruction set; running the target server based on the initial data request instruction set to obtain a complete link diagram; acquiring link data corresponding to each link node in the complete link map; and normalizing the link data to obtain baffle information corresponding to each link node.
The initial data request instruction set comprises a plurality of initial data request instructions for operating all service functions of the target server. When the target server is operated based on the initial data request instruction set, a complete link map can be constructed according to the link map corresponding to each initial data request instruction. Each link node in the complete link graph corresponds to link data during operation, and the link data comprises data such as access parameters, calling authorities, operation parameters and the like. After the link data corresponding to each link node is obtained, the link data is cleaned to remove irrelevant data, and the cleaned data is normalized to obtain baffle information in a preset format, wherein the preset format is a preset baffle format and is not limited herein.
In at least one embodiment of the present application, after automatically constructing the baffle information of all link nodes, the method further comprises: acquiring identification information and baffle information of each link node; and storing the identification information and the baffle information in a preset database.
Each link node in the complete link graph is provided with identification information corresponding to the link node, and the identification information may be a digital identifier or a letter identifier, which is not limited herein. The preset database may be an ES database, and in the ES database, the corresponding baffle information may be obtained according to the identification information of the link node.
In at least one embodiment of the present application, the obtaining target baffle information corresponding to the target link node includes: acquiring target identification information of the target link node; and traversing a preset database according to the target identification information to obtain target baffle information corresponding to the target identification information. The baffles are abstracted into one node, and each node is combined with a linked list structure in the data structure, so that the automation of constructing the baffles of any node is realized.
And S15, starting the mock platform, and calling the mock platform to generate link return parameters according to the target baffle information.
In at least one embodiment of the application, when the operation of the target link is abnormal, the target link node with abnormal operation is determined, the target baffle information of the target link node is obtained to shield the target link node, and the mock platform is synchronously started to simulate the target link node to generate the link return parameter, so that the performance test of the target server is normally completed.
The number of the target link nodes with abnormal operation can be 1 or more. When the number of the target link nodes is multiple, in an embodiment, a corresponding mock platform is set for each target link node, and the return parameters of one target link node are processed by one mock platform, so that the data processing efficiency can be improved. In other embodiments, a uniform mock platform is set for all the target link nodes, and resources can be saved by processing a plurality of target link nodes through the uniform mock platform.
Optionally, the invoking the mock platform to generate the link return parameter according to the target baffle information includes: analyzing the target baffle information to obtain operation parameters corresponding to the target link nodes; acquiring target attributes corresponding to the operating parameters; and calling the mock platform to simulate the attribute value of the target attribute, and taking the attribute value as a link return parameter.
The operation parameter may be call data returned by the link node according to the data request instruction, and the operation parameter may include one or more target attributes, where each target attribute is provided with a corresponding attribute value. And simulating the attribute value of the target attribute through the mock platform to simulate the link return parameter. Optionally, the method calls interface return parameters corresponding to each interface of the target node storage server of the block chain, and by using the block chain technology, the characteristics of privacy protection, openness, transparency, traceability, low possibility of tampering and the like of data storage can be realized. By calling the mock platform to traverse the block chain, the attribute value corresponding to the target attribute can be obtained, the time required by data simulation is reduced, and the mock simulation efficiency is improved.
In at least one embodiment of the application, the complete link map is processed in a visualized manner, when the monitoring node monitors that the target link node with abnormal operation exists, the target link node with abnormal operation is marked with a first mark in the visualized complete link map, and whether the mock platform is started or not is marked with a second mark. The first mark and the second mark may include color marks and the like. According to the method and the device, the abnormal link nodes and whether the mock platform is started or not are marked, so that the test progress can be visually checked in the complete link diagram, and the determination rate of the performance test progress is improved.
And S16, outputting the link return parameter to the target link node.
In at least one embodiment of the application, after the mock platform is called to generate the link return parameter according to the target baffle information, the link return parameter is output to the target link node, the target link node is not required to automatically return the data with abnormal operation according to the data request instruction, the normal execution of the performance test of the target server can be ensured, and the correctness of the performance test result is ensured.
According to the link testing method based on the automatic baffle, the baffle information can be automatically configured based on the link data of the complete link diagram, the problems of low configuration efficiency and low accuracy caused by manual configuration of the baffle data are solved, and the processing efficiency and accuracy of the automatic baffle can be improved; in addition, the link structure corresponding to the target server is generated according to the data request instruction, the monitoring node is called to monitor whether the operation of the link structure is abnormal or not, when the monitoring result is that the operation of the link structure is abnormal, the mock platform is started, the return parameter of the abnormal link node is simulated based on the target baffle information, the problem that the performance test of the target server cannot be accurately completed due to the fact that the link node is abnormal is solved, the performance test of the target server is not dependent on the environment condition of the associated system, and the stability of the system test can be improved. This application can be applied to in each functional module in wisdom cities such as wisdom government affairs, wisdom traffic, for example wisdom government affairs based on automatic baffle link test module etc. can promote the rapid development in wisdom city.
The above is a detailed description of the method provided in the examples of the present application. The order of execution of the blocks in the flowcharts shown may be changed, and some blocks may be omitted, according to various needs. The following describes a computer device 1 provided in an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a computer device according to an embodiment of the present application, and as shown in fig. 2, the computer device 1 includes a memory 10, and the memory 10 stores the link testing apparatus 300 based on an automated barrier. The computer device 1 may be an electronic device having functions of data processing, analysis, program execution, display, and the like, such as a computer, a tablet computer, and a personal digital assistant. The link testing device 300 based on the automatic baffle can call a preset proxy service to obtain and analyze a data request instruction corresponding to a target server to obtain a target link corresponding to the target data request instruction; calling a monitoring node to monitor whether the operation of the target link is abnormal or not; when the monitoring result is that the operation of the target link is abnormal, determining a target link node with the abnormality; acquiring target baffle information corresponding to the target link node; starting a mock platform, and calling the mock platform to generate a link return parameter according to the target baffle information; and outputting the link return parameter to the target link node. Through this application, can improve the speed and the accuracy that the baffle was handled, be favorable to promoting the development of wisdom medical treatment and the construction in wisdom city.
In this embodiment, the computer device 1 may further include a display screen 20 and a processor 30. The memory 10 and the display screen 20 can be electrically connected with the processor 30 respectively.
The memory 10 may be of different types of memory devices for storing various types of data. For example, the memory and the internal memory of the computer device 1 may be used, and the memory Card may be a memory Card that is externally connected to the computer device 1, such as a flash memory, an SM Card (Smart Media Card), an SD Card (Secure Digital Card), and the like. Further, the memory 10 may include non-volatile memory and volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other storage devices. The memory 10 is used for storing various types of data, for example, various types of application programs (Applications) installed in the computer device 1, data set and acquired by applying the above-described link test method based on the automated barrier, and the like.
A display screen 20 is mounted to the computer apparatus 1 for displaying information.
The processor 30 is used for executing the automated barrier-based link testing method and various types of software installed in the computer device 1, such as operating system and application display software. The processor 30 includes, but is not limited to, a Central Processing Unit (CPU), a MicroController Unit (MCU), and other devices for interpreting computer instructions and Processing data in computer software.
The automated barrier-based link testing apparatus 300 may include one or more modules stored in the memory 10 of the computer device 1 and configured to be executed by one or more processors (in this embodiment, one processor 30) to implement the embodiments of the present application. Referring to fig. 3, the link testing apparatus 300 based on the automated barrier may include a link obtaining module 301, an exception monitoring module 302, an exception determining module 303, a barrier obtaining module 304, a parameter returning module 305, and a parameter outputting module 306. The modules referred to in the embodiments of the present application may be program segments for performing a specific function, and are more suitable than programs for describing the execution process of software in the processor 30.
It is understood that, corresponding to the embodiments of the automated barrier-based link testing method described above, the automated barrier-based link testing apparatus 300 may include some or all of the functional modules shown in fig. 3, the functions of which will be described in detail below. It should be noted that the same terms and their specific explanations in the above embodiments of the link testing method based on the automatic barrier may also be applied to the following functional descriptions of the modules. For brevity and to avoid repetition, further description is omitted.
The link obtaining module 301 may be configured to invoke a preset proxy service to obtain and analyze a data request instruction corresponding to a target server, so as to obtain a target link corresponding to the target data request instruction.
The exception listening module 302 may be configured to invoke the monitoring node to listen for an exception in the operation of the target link.
The exception determining module 303 may be configured to determine, when the monitoring result indicates that there is an exception in the operation of the target link, a target link node where the exception exists.
The baffle acquisition module 304 may be configured to acquire target baffle information corresponding to the target link node.
The parameter returning module 305 may be configured to start the mock platform, and call the mock platform to generate a link return parameter according to the target baffle information.
Parameter output module 306 may be configured to output the link return parameter to the target link node.
The present embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by the processor 30, implements the steps of the automated barrier-based link testing method in any of the above embodiments.
The automated bezel-based link test apparatus 300/computer device 1/computer device integrated module/unit, if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above may be implemented by a computer program, which may be stored in a computer readable storage medium and used by the processor 30 to implement the steps of the method embodiments described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), random-access Memory, or the like.
The Processor 30 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the processor 30 is the control center of the automated barrier-based link test apparatus 300/computer device 1, and various interfaces and lines are used to connect the various parts of the entire automated barrier-based link test apparatus 300/computer device 1.
The memory 10 is used for storing the computer programs and/or modules, and the processor 30 implements various functions of the automatic baffle-based link test device 300/computer apparatus 1 by operating or executing the computer programs and/or modules stored in the memory 10 and calling the data stored in the memory 10. The memory 10 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the computer apparatus 1, and the like.
In the several embodiments provided in this application, it should be understood that the disclosed computer apparatus and method may be implemented in other ways. For example, the system embodiments described above are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It will be evident to those skilled in the art that the embodiments of the present application are not limited to the details of the foregoing illustrative embodiments, and that the embodiments of the present application can be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the embodiments being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. A plurality of units, modules or devices recited in the present invention can also be implemented by the same unit, module or device through software or hardware.
Although the embodiments of the present application have been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof without departing from the spirit and scope of the embodiments of the present application.

Claims (10)

1. The link testing method based on the automatic baffle is characterized by comprising the following steps:
calling a preset proxy service to obtain and analyze a data request instruction corresponding to a target server to obtain a target link corresponding to the target data request instruction;
calling a monitoring node to monitor whether the operation of the target link is abnormal or not;
when the monitoring result is that the operation of the target link is abnormal, determining a target link node with the abnormality;
acquiring target baffle information corresponding to the target link node;
starting a mock platform, and calling the mock platform to generate a link return parameter according to the target baffle information;
and outputting the link return parameter to the target link node.
2. The automated bezel-based link testing method of claim 1, wherein the obtaining and parsing the data request command corresponding to the target server to obtain the target link corresponding to the target data request command comprises:
acquiring interface parameter information corresponding to the target request data;
determining a first interface and a second interface according to the interface parameter information;
determining the target link based on the first interface and the second interface.
3. The automated bezel-based link testing method of claim 1, wherein after the obtaining and parsing of the data request directive for the target server results in the target link corresponding to the target data request directive, the method further comprises:
acquiring an instance calling relation of each target link;
determining an initial link map of each target link according to the instance calling relation;
constructing an SQL script to analyze the target links to obtain the dependency relationship among the target links;
and adjusting the initial link diagram according to the dependency relationship to obtain a visualized target link diagram.
4. The automated barrier-based link testing method of claim 1, wherein the invoking the monitoring node to monitor whether the operation of the target link is abnormal comprises:
calling a monitoring node to monitor actual operation data of the target link;
acquiring standard operation data corresponding to the target link;
comparing whether the actual operation data is consistent with the standard operation data;
when the comparison result is that the actual operation data is consistent with the standard operation data, determining that no abnormity exists in the operation of the target link;
and when the comparison result shows that the actual operation data is inconsistent with the standard operation data, determining that the operation of the target link is abnormal.
5. The automated bezel-based link testing method of claim 1, further comprising:
creating an initial data request instruction set;
running the target server based on the initial data request instruction set to obtain a complete link diagram;
acquiring link data corresponding to each link node in the complete link map;
and normalizing the link data to obtain baffle information corresponding to each link node.
6. The automated bezel-based link testing method of claim 1, wherein the obtaining target bezel information corresponding to the target link node comprises:
acquiring target identification information of the target link node;
and traversing a preset database according to the target identification information to obtain target baffle information corresponding to the target identification information.
7. The automated baffle-based link testing method of claim 1, wherein the invoking the mock platform to generate link return parameters according to the target baffle information comprises:
analyzing the target baffle information to obtain operation parameters corresponding to the target link nodes;
acquiring target attributes corresponding to the operating parameters;
and calling the mock platform to simulate the attribute value of the target attribute, and taking the attribute value as a link return parameter.
8. An automated bezel-based link testing apparatus, comprising:
the link acquisition module is used for calling a preset proxy service to acquire and analyze a data request instruction corresponding to a target server to obtain a target link corresponding to the target data request instruction;
the abnormity monitoring module is used for calling the monitoring node to monitor whether the operation of the target link is abnormal or not;
the abnormity determining module is used for determining the abnormal target link node when the monitoring result is that the operation of the target link is abnormal;
the baffle acquisition module is used for acquiring target baffle information corresponding to the target link node;
the parameter returning module is used for starting the mock platform and calling the mock platform to generate a link returning parameter according to the target baffle information;
and the parameter output module is used for outputting the link return parameter to the target link node.
9. A computer device comprising a processor for implementing the automated baffle-based link testing method of any one of claims 1 to 7 when executing a computer program stored in a memory.
10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the automated bezel-based link testing method of any of claims 1-7.
CN202011541080.3A 2020-12-23 2020-12-23 Link testing method and device based on automatic baffle and related equipment Pending CN112667501A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011541080.3A CN112667501A (en) 2020-12-23 2020-12-23 Link testing method and device based on automatic baffle and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011541080.3A CN112667501A (en) 2020-12-23 2020-12-23 Link testing method and device based on automatic baffle and related equipment

Publications (1)

Publication Number Publication Date
CN112667501A true CN112667501A (en) 2021-04-16

Family

ID=75409073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011541080.3A Pending CN112667501A (en) 2020-12-23 2020-12-23 Link testing method and device based on automatic baffle and related equipment

Country Status (1)

Country Link
CN (1) CN112667501A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114253846A (en) * 2021-12-17 2022-03-29 中国联合网络通信集团有限公司 Automatic test exception positioning method, device and equipment and readable storage medium
CN114253846B (en) * 2021-12-17 2024-05-28 中国联合网络通信集团有限公司 Automatic test abnormality positioning method, device, equipment and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114253846A (en) * 2021-12-17 2022-03-29 中国联合网络通信集团有限公司 Automatic test exception positioning method, device and equipment and readable storage medium
CN114253846B (en) * 2021-12-17 2024-05-28 中国联合网络通信集团有限公司 Automatic test abnormality positioning method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN108984418B (en) Software test management method and device, electronic equipment and storage medium
CN112559831A (en) Link monitoring method and device, computer equipment and medium
CN108763071A (en) A kind of webpage test method and terminal device
CN110851471A (en) Distributed log data processing method, device and system
CN107168844B (en) Performance monitoring method and device
CN113485685A (en) API interface creating method and device, electronic equipment and medium
CN112015663A (en) Test data recording method, device, equipment and medium
CN109408361A (en) Monkey tests restored method, device, electronic equipment and computer readable storage medium
CN112671609A (en) Asset census and safety detection method and device and terminal equipment
CN112667501A (en) Link testing method and device based on automatic baffle and related equipment
CN113282496B (en) Automatic interface testing method, device, equipment and storage medium
CN111679924B (en) Reliability simulation method and device for componentized software system and electronic equipment
CN110618943B (en) Security service test method and device, electronic equipment and readable storage medium
CA3144122A1 (en) Data verifying method, device and system
CN111859985A (en) AI customer service model testing method, device, electronic equipment and storage medium
CN111045935A (en) Automatic version auditing method, device, equipment and storage medium
CN116701233B (en) Transaction system testing method, equipment and medium based on high concurrency report simulation
CN115328812B (en) UI (user interface) testing method, device, equipment and medium based on web crawler
CN115994094A (en) Automatic test method, device, equipment and medium based on machine learning
CN114924977A (en) Unit testing method based on artificial intelligence and related equipment
CN116483731A (en) Function testing method, device, equipment and storage medium
CN116361170A (en) Big data testing method, device, server and storage medium
CN114490260A (en) System index generation method, device, proxy server and storage medium
CN117240739A (en) Method and device for testing consensus algorithm, electronic equipment and storage medium
CN113900902A (en) Log processing method and device, electronic equipment and storage medium

Legal Events

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