Interface analysis method and terminal display method

By acquiring and analyzing the response loss value of the interface on the server side, combining the interface access and fault display at the terminal side, the problem of imperfect interface analysis in the existing technology is solved, and the accuracy of the degree of interface failure is realized.

CN119788492AActive Publication Date: 2025-04-08CHINA MOBILE INTERNET CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411851491.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2025-04-08
Estimated Expiration
2044-12-16

AI Technical Summary

Technical Problem

The lack of relatively complete interface analysis solutions in the existing technology, resulting in the storage space of cloud notes and other services that cannot respond normally to access interface failures.

Method used

The response loss value of the target interface is obtained on the server side and the failure degree of the interface is determined based on this value and the response loss threshold. At the same time, the storage space is accessed through the target interface at the terminal and the interface failure degree sent by the receiving server is displayed.

Benefits of technology

It realizes accurate determination and display of the degree of interface failure, ensures the analysis and fault handling of interfaces, and avoids the problem that the storage space cannot respond normally.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119788492A_ABST
    Figure CN119788492A_ABST
Patent Text Reader

Abstract

The invention discloses an interface analysis method and a terminal display method. The interface analysis method comprises the following steps: acquiring a response loss value when a target interface is tested; and determining the fault degree of the target interface based on the response loss value and the response loss threshold.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of interface technology, and in particular to an interface analysis method and a terminal display method. Background Art

[0002] Cloud notes, as a product tool that embodies "cloud services", is different from traditional notes in that it can be used by users to record, share, and collect notes at any time when they are learning online. It can also quickly search, categorize, and safely back up cloud notes to store precious information that will never be lost. File synchronization is completed automatically, thereby efficiently managing personal knowledge.

[0003] Since the user terminal accesses the storage space of the cloud note through the corresponding access interface, when the access interface fails, the storage space of the cloud note cannot respond normally. However, there is currently no relatively complete solution for the analysis of the interface. Summary of the invention

[0004] The present application discloses an interface analysis method and a terminal display method to solve the problem that there is currently no relatively complete solution for interface analysis.

[0005] In order to solve the above problems, this application adopts the following technical solutions: In a first aspect, an embodiment of the present application discloses an interface analysis method, which is applied to a server, and includes: obtaining a response loss value when testing a target interface; and determining the degree of failure of the target interface based on the response loss value and a response loss threshold.

[0006] In a second aspect, an embodiment of the present application discloses a terminal display method, which is applied to a terminal, and includes: accessing a storage space of a target application through a target interface; receiving and displaying the failure degree of the target interface sent by a server.

[0007] In a third aspect, an embodiment of the present application discloses an interface analysis device, which is applied to a server, and includes: an acquisition module, used to obtain a response loss value when testing a target interface; and a determination module, used to determine the degree of failure of the target interface based on the response loss value and a response loss threshold.

[0008] In a fourth aspect, an embodiment of the present application discloses a terminal display device, which is applied to a terminal and includes: an access module, which is used to access the storage space of a target application through a target interface; and a receiving module, which is used to receive and display the degree of failure of the target interface sent by a server.

[0009] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect or the second aspect are implemented.

[0010] In a sixth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect or the second aspect are implemented.

[0011] In the seventh aspect, an embodiment of the present application provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, which, when executed by a computer, cause the computer to execute: the steps of the method described in the first aspect or the second aspect.

[0012] The technical solution adopted in this application can achieve the following beneficial effects: The embodiment of the present application provides an interface analysis method, wherein the server obtains the response loss value of the target interface during the test, and then determines the fault degree of the target interface based on the response loss value and the response loss threshold. By adopting the solution of the present application, the fault degree of the interface can be determined and the analysis of the interface can be realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 A flowchart of an interface analysis method disclosed in an embodiment of the present application; Figure 2 A schematic diagram of a process flow of a terminal display method disclosed in an embodiment of the present application; Figure 3 A schematic diagram of the structure of an interface analysis device disclosed in an embodiment of the present application; Figure 4 A schematic diagram of the structure of a terminal display device disclosed in an embodiment of the present application; Figure 5 A schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0014] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0015] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the electrically connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0016] The interface analysis method and the terminal display method disclosed in the embodiments of the present application are described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0017] This application discloses an interface analysis method, which is applied to a server. Figure 1 FIG. 1 is a flow chart of an interface analysis method disclosed in an embodiment of the present application. Figure 1 As shown, the method comprises the following steps: S120. Obtain a response loss value during a target interface test.

[0018] The target interface is an interface used by the terminal to access the storage space of the target application.

[0019] For example, the target application can be a cloud note. It should be noted that the terminal can be a user domain, and the storage space of the cloud note can be a compatible base of the cloud note. Domain is a computer-specific term, referring to an independently running unit in a Windows network. A domain can be a logical organizational unit of a Windows network operating system or a logical organizational unit of the Internet. In a Windows network operating system, a domain is a security boundary.

[0020] In the present application, when the terminal accesses the storage space of the target application through the target interface (ie, connects the target interface with the storage space of the target application), the server obtains the response loss value during the target interface test.

[0021] S140: Determine the failure degree of the target interface based on the response loss value and the response loss threshold.

[0022] It should be noted that the response loss threshold may be a value preset according to actual needs.

[0023] In the present application, the fault degree of the target interface can be determined by comparing the response loss value during the target interface test with the response loss threshold.

[0024] The embodiment of the present application provides an interface analysis method, wherein the server obtains the response loss value of the target interface during the test, and then determines the fault degree of the target interface based on the response loss value and the response loss threshold. By adopting the solution of the present application, the fault degree of the interface can be determined and the analysis of the interface can be realized.

[0025] In one implementation, obtaining the response loss value during the target interface test may include: obtaining a benchmark transmission duration and a benchmark throughput rate of the target interface during a benchmark test; obtaining a load transmission duration and a load throughput rate of the target interface during a load test; and determining the response loss value during the target interface test based on the benchmark transmission duration, the benchmark throughput rate, the load transmission duration, and the load throughput rate.

[0026] In the present application, the benchmark test of the target interface is a test of the target interface when the CPU, memory, etc. corresponding to the terminal are in normal operating conditions; the load test of the target interface is a test of the target interface when the CPU or memory corresponding to the terminal is at full load / full load.

[0027] When testing the target interface, the server can send a prompt message to the terminal. When the terminal receives the prompt message, the user can select the corresponding test file through the terminal's display interface. The test files are stored in the terminal's storage space. The terminal's storage space stores multiple test files and the file sizes corresponding to the test files, that is, the file size of each test file is known in advance.

[0028] When performing a benchmark test on a target interface, after the user selects a test file, the test file is simulated transmitted through the target interface. Simulated transmission means that the test file is transmitted from the terminal to the target address through the target interface after the test file is initiated. The target address is mainly used to store the transmitted test file. The target address will be cleaned up at the end of the test file transmission, and the start transmission time and the end transmission time are recorded. The end transmission time is subtracted from the start transmission time to obtain the benchmark transmission time JCTi of the target interface corresponding to the terminal to transmit the test file. At the same time, a fixed test time is set, and the number of files, the number of transactions processed, and the number of user accesses through the target interface during the test time are counted, thereby obtaining the file transmission volume, the number of transactions processed, and the number of user accesses through the target interface during the test time. The file transmission volume is divided by the test time to obtain the benchmark file throughput JWTi of the target interface per unit time. Similarly, the benchmark transaction throughput JSTi and the benchmark user throughput JYTi of the target interface per unit time are obtained, and then the benchmark throughput JTTi=JWTi+JSTi+JYTi of the target interface per unit time is obtained.

[0029] It should be noted that a corresponding clock module is configured in the terminal, and the clock module is used to record the time nodes of various transactions.

[0030] When the load test is performed on the target interface, the load transmission time FCTi and the load throughput rate FTTi of the target interface are obtained according to the same process as that of the benchmark test on the target interface above.

[0031] After obtaining the benchmark transmission time and benchmark throughput of the target interface during the benchmark test, as well as the load transmission time and load throughput of the target interface during the load test, the server determines the response loss value during the target interface test based on the benchmark transmission time, benchmark throughput, load transmission time and load throughput.

[0032] In one implementation, determining the response loss value during the target interface test based on the benchmark transmission duration, the benchmark throughput, the load transmission duration, and the load throughput may include: determining the transmission duration difference based on the benchmark transmission duration and the load transmission duration; determining the throughput difference based on the benchmark throughput and the load throughput; determining the response loss value during the target interface test based on the transmission duration difference, the benchmark transmission duration, a first weight coefficient, the throughput difference, the benchmark throughput, and a second weight coefficient.

[0033] In this application, the transmission time difference CTCi of the target interface can be obtained by calculating the difference between the reference transmission time and the load transmission time, and the throughput difference TTCi of the target interface can be obtained by calculating the difference between the reference throughput and the load throughput, and then the response loss value of the target interface during the test can be calculated. , where a is the first weight coefficient and b is the second weight coefficient.

[0034] In one implementation, determining the degree of failure of the target interface based on the response loss value and the response loss threshold may include: when the response loss value is greater than the response loss threshold, determining a response loss excess value of the target interface based on the response loss value and the response loss threshold; and determining the degree of failure of the target interface based on the response loss excess value and sending it to the terminal.

[0035] In the present application, when the response loss value is greater than the response loss threshold, the response loss threshold is subtracted from the response loss value to obtain the response loss over-limit value of the target interface, and then a response loss fault mapping table is obtained. The response loss fault mapping table can be stored in a database. The response loss fault mapping table contains numerical intervals and fault levels corresponding to the numerical intervals. By comparing the response loss over-limit value of the target interface with the response loss fault mapping table, the numerical interval to which the response loss over-limit value of the target interface belongs is determined, and then the fault level of the target interface is determined based on the numerical interval, and the fault level of the target interface is sent to the terminal. It should be noted that the comparison technology in the present application is a prior art.

[0036] The response loss fault mapping table can be as follows:

[0037] In the above table, X1, X2, X3 and X4 are all fixed values, and X1<X2<X3<X4, which are entered by the staff, among which the fault degree of the first fault level is higher than the fault degree of the second fault level, and the fault degree of the second fault level is higher than the fault degree of the third fault level.

[0038] In the present application, after determining the degree of failure of the target interface, the following may also be included: adjusting the level of the target interface based on the degree of failure of the target interface. It should be noted that the higher the degree of failure of the target interface, the lower the level of the target interface, the higher the level of the target interface, the higher the importance of the files transmitted through the target interface, and the lower the level of the target interface, the lower the importance of the files transmitted through the target interface, thereby avoiding problems in the transmission of important files.

[0039] In an implementation manner, the above method may further include: when the response loss value is less than or equal to the response loss threshold, determining that the target interface is in a normal state, and then not performing any operation.

[0040] In one implementation, the method may further include: generating an interface switching instruction when the response loss value is greater than a response loss threshold, wherein the interface switching instruction is used to instruct switching of the interface used by the terminal to access the storage space of the target application; and sending the interface switching instruction to an interface switching module. That is, when it is determined that the target interface is faulty, the interface switching module is used to switch so that the terminal accesses the storage space of the target application through another interface, thereby realizing the corresponding function and enabling the storage space of the target application to respond normally. It should be noted that a terminal may correspond to multiple access interfaces.

[0041] In an embodiment of the present application, before obtaining the response loss value during the target interface test, it may also include: determining the security of the target interface; obtaining the response loss value during the target interface test may include: obtaining the response loss value during the target interface test when determining that the target interface is safe.

[0042] In the present application, the security of the target interface can be determined when the terminal accesses the storage space of the target application through the target interface (i.e., the target interface is connected to the storage space of the target application). When the security of the target interface is determined, the response loss value during the target interface test is obtained, and the degree of failure of the target interface can be further determined.

[0043] When it is determined that the target interface is unsafe, an interface switching instruction is generated and sent to the interface switching module.

[0044] In one implementation, determining the security of the target interface may include: determining a security test value corresponding to the target interface based on historical security data of the target interface, wherein the historical security data includes at least one of the number of security incidents of the target interface, the duration of each security incident of the target interface, and the number of files damaged when the terminal accesses the storage space of the target application through the target interface; determining a test scheme corresponding to the target interface based on the security test value; obtaining a clone interface corresponding to the target interface by replicating the target interface; and performing a security test on the clone interface based on the test file and the test scheme.

[0045] In the present application, the security test value corresponding to the target interface can be determined by obtaining the historical security data of the target interface from the database. The historical security data of the target interface can include at least one of the number of security accidents of the target interface, the duration of each security accident of the target interface, and the number of files whose storage space of the target application is damaged due to the terminal accessing the storage space of the target application through the target interface. That is to say, the security test value corresponding to the target interface can be determined based on the number of security accidents of the target interface, or the security test value corresponding to the target interface can be determined based on the duration of each security accident of the target interface, or the security test value corresponding to the target interface can be determined based on the number of files whose storage space of the target application is damaged due to the terminal accessing the storage space of the target application through the target interface, or the security test value corresponding to the target interface can be determined based on two of the number of security accidents of the target interface, the duration of each security accident of the target interface, and the number of files whose storage space of the target application is damaged due to the terminal accessing the storage space of the target application through the target interface, or the security test value corresponding to the target interface can be determined based on the number of security accidents of the target interface, the duration of each security accident of the target interface, and the number of files whose storage space of the target application is damaged due to the terminal accessing the storage space of the target application through the target interface.

[0046] Exemplarily, after obtaining the number of security accidents of the target interface, the duration of each security accident of the target interface, and the number of files whose storage space of the target application is damaged due to the terminal accessing the storage space of the target application through the target interface, the security test value AQi corresponding to the target interface can be determined based on the following formula; AQi=(SGi×b1+ZTi×b2+SHi×b3) / (b1+b2+b3), where i is the number of the interface corresponding to the terminal, i=1, 2,..., n, SGi is the number of security accidents of the target interface, ZTi is the number obtained by adding up the duration corresponding to each security accident of the target interface, SHi is the number of files whose storage space of the target application is damaged due to the terminal accessing the storage space of the target application through the target interface, and b1, b2 and b3 are all weight coefficients.

[0047] In the present application, the historical security data of the target interface may also include the number of downtimes of the terminal accessing the storage space of the target application through the target interface and the downtime duration of each downtime.

[0048] After determining the security test value corresponding to the target interface, the test scheme corresponding to the target interface can be determined according to the security test value corresponding to the target interface and the test scheme determination table. The test scheme determination table includes the correspondence between the security test interval and the test scheme, and the test scheme corresponding to the target interface is determined according to the security test interval to which the security test value corresponding to the target interface belongs.

[0049] The test plan determination table is as follows:

[0050] In the above table, Y1, Y2, Y3 and Y4 are all fixed values, and Y1<Y2<Y3<Y4.

[0051] The test scheme includes a first test scheme, a second test scheme and a third test scheme, and different test schemes include different test times, test durations and test intensities, wherein the test times, test durations and test intensity of the first test scheme are all higher than the test times, test durations and test intensity of the second test scheme, and the test times, test durations and test intensity of the second test scheme are all higher than the test times, test durations and test intensity of the third test scheme. It should be noted that the level of test intensity can be determined by the number of viruses that invade the target interface at the same time, and the higher the test intensity, the more viruses that invade the target interface at the same time.

[0052] In this application, the target interface can be replicated by using cloning technology to obtain a clone interface corresponding to the target interface, and then the clone interface and the test file are imported into a virtual space in the server, so that the clone interface can be combined with the test scheme for security testing. In this virtual space, the test file can be accessed through the clone interface. If the test file combined with the test scheme does not change through the clone interface, the clone interface is safe, and then the target interface is safe. If the test file combined with the test scheme changes through the clone interface, the clone interface is unsafe, and then the target interface is unsafe. An interface switching instruction is generated and sent to the interface switching module.

[0053] In the present application, security testing is performed through a cloned interface corresponding to the target interface, which can avoid affecting the user experience when there are security issues in the interface, compared with directly performing security testing on the target interface.

[0054] In one implementation, determining the security test value corresponding to the target interface based on the historical security data of the target interface may include: verifying the interface number of the target interface based on the interface number allowed to be accessed by the storage space of the target application; and when the interface number of the target interface is verified, determining the security test value corresponding to the target interface based on the historical security data of the target interface.

[0055] In the present application, when the terminal accesses the storage space of the target application through the target interface (i.e., connects the target interface with the storage space of the target application), the interface number of the target interface that is allowed to be accessed can be obtained, and the interface number of the target interface can be compared with the interface number of the target application that is allowed to be accessed. If the comparison of the interface number of the target interface is successful, the security test value corresponding to the target interface is determined based on the historical security data of the target interface. If the comparison of the interface number of the target interface is unsuccessful, the terminal is denied access to the storage space of the target application through the target interface (i.e., the connection between the target interface and the storage space of the target application is denied).

[0056] In the present application, the comparison here can be achieved by using Chinese word segmentation, form comparison and other technologies.

[0057] By adopting the solution of the present application, it is possible to perform security monitoring and fault detection on the interface corresponding to the terminal, ensure the normal operation of the terminal, and effectively guarantee the normal response of the storage space of the target application.

[0058] The present application embodiment discloses a terminal display method, which is applied to a terminal. Figure 2 Schematic diagram of a terminal display method disclosed in an embodiment of the present application. Figure 2 As shown, the method comprises the following steps: S220. Access the storage space of the target application through the target interface.

[0059] Exemplarily, the target application may be a cloud note.

[0060] S240: Receive and display the failure degree of the target interface sent by the server.

[0061] Exemplarily, when the fault degree of the target interface is the third fault level, it is displayed that the target interface is at the third fault level.

[0062] The embodiment of the present application provides a terminal display method, where the terminal accesses the storage space of the target application through the target interface, and then receives and displays the fault degree of the target interface sent by the server to achieve fault warning.

[0063] In one implementation, after accessing the storage space of the target application through the target interface and before receiving and displaying the failure level of the target interface sent by the server, it may also include: receiving a prompt message sent by the server, the prompt message being used to instruct to test the target interface; in response to receiving the prompt message, displaying selectable test files; receiving a confirmation operation on the selectable test files; and sending the selected test file to the server.

[0064] The interface analysis method provided in the embodiment of the present application can be executed by an interface analysis device. In the embodiment of the present application, the interface analysis device provided in the embodiment of the present application is described by taking the interface analysis method executed by the interface analysis device as an example.

[0065] The interface analysis device disclosed in the present application is applied to a server.

[0066] Figure 3 FIG. 1 is a schematic diagram of the structure of an interface analysis device disclosed in an embodiment of the present application. Figure 3 As shown, the interface analysis device 300 includes: an acquisition module 310 and a determination module 320 .

[0067] In the present application, the acquisition module 310 is used to acquire the response loss value when the target interface is tested; the determination module 320 is used to determine the fault degree of the target interface based on the response loss value and the response loss threshold.

[0068] In one implementation, the acquisition module 310 acquires the response loss value during the target interface test, including: acquiring a benchmark transmission duration and a benchmark throughput rate of the target interface during a benchmark test; acquiring a load transmission duration and a load throughput rate of the target interface during a load test; and determining the response loss value during the target interface test based on the benchmark transmission duration, the benchmark throughput rate, the load transmission duration, and the load throughput rate.

[0069] In one implementation, the acquisition module 310 determines the response loss value during the target interface test based on the benchmark transmission duration, the benchmark throughput, the load transmission duration and the load throughput, including: determining the transmission duration difference based on the benchmark transmission duration and the load transmission duration; determining the throughput difference based on the benchmark throughput and the load throughput; determining the response loss value during the target interface test based on the transmission duration difference, the benchmark transmission duration, a first weight coefficient, the throughput difference, the benchmark throughput and a second weight coefficient.

[0070] In one implementation, the determination module 320 determines the degree of failure of the target interface based on the response loss value and the response loss threshold, including: when the response loss value is greater than the response loss threshold, determining a response loss excess value of the target interface based on the response loss value and the response loss threshold; and determining the degree of failure of the target interface based on the response loss excess value and sending it to the terminal.

[0071] In one implementation, the determination module 320 is further configured to determine that the target interface is in a normal state when the response loss value is less than or equal to the response loss threshold.

[0072] In one implementation, the determination module 320 is also used to generate an interface switching instruction when the response loss value is greater than a response loss threshold, wherein the interface switching instruction is used to instruct switching of the interface used by the terminal to access the storage space of the target application; the determination module 320 is also used to send the interface switching instruction to the interface switching module.

[0073] In one implementation, the determination module 320 is also used to determine the security of the target interface before obtaining the response loss value during the target interface test; the acquisition module 310 obtains the response loss value during the target interface test, including: when determining that the target interface is safe, obtaining the response loss value during the target interface test.

[0074] In one implementation, the determination module 320 determines the security of the target interface, including: determining a security test value corresponding to the target interface based on historical security data of the target interface, wherein the historical security data includes at least one of the number of security incidents of the target interface, the duration of each security incident of the target interface, and the number of files damaged when the terminal accesses the storage space of the target application through the target interface; determining a test scheme corresponding to the target interface based on the security test value; obtaining a clone interface corresponding to the target interface by replicating the target interface; and performing a security test on the clone interface based on the test file and the test scheme.

[0075] In one implementation, the determination module 320 determines a security test value corresponding to the target interface based on historical security data of the target interface, including: verifying the interface number of the target interface based on the interface number allowed to be accessed by the storage space of the target application; and when the interface number of the target interface is verified, determining the security test value corresponding to the target interface based on the historical security data of the target interface.

[0076] The interface analysis device provided in the embodiment of the present application can implement each process implemented in the embodiment of the interface analysis method. To avoid repetition, it will not be described here.

[0077] The terminal display method provided in the embodiment of the present application can be executed by a terminal display device. In the embodiment of the present application, the terminal display device provided in the embodiment of the present application is described by taking the terminal display device executing the terminal display method as an example.

[0078] The terminal display device disclosed in the present application is applied to a terminal.

[0079] Figure 4 Schematic diagram of the structure of a terminal display device disclosed in an embodiment of the present application. Figure 4As shown, the terminal display device 400 includes: an access module 410 and a receiving module 420 .

[0080] In the present application, the access module 410 is used to access the storage space of the target application through the target interface; the receiving module 420 is used to receive and display the fault degree of the target interface sent by the server.

[0081] The terminal display device provided in the embodiment of the present application can implement each process implemented in the terminal display method embodiment, and will not be described again here to avoid repetition.

[0082] Alternatively, if Figure 5 As shown, an embodiment of the present application also provides an electronic device 500, including a processor 501 and a memory 502, and the memory 502 stores a program or instruction that can be executed on the processor 501, and the program or instruction, when executed by the processor 501, implements the various steps of the above-mentioned interface analysis method embodiment, or, when the program or instruction is executed by the processor 501, implements the various steps of the above-mentioned terminal display method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0083] It should be noted that the electronic devices in the embodiments of the present application include mobile electronic devices and non-mobile electronic devices.

[0084] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned interface analysis method embodiment are implemented, or when the program or instruction is executed by a processor, the various processes of the above-mentioned terminal display method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0085] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0086] An embodiment of the present application also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes: the steps of the above-mentioned interface analysis method, or the steps of the above-mentioned terminal display method.

[0087] The above embodiments of the present application focus on describing the differences between the various embodiments. As long as the different optimization features between the various embodiments are not contradictory, they can be combined to form a better embodiment. Considering the simplicity of the text, they will not be repeated here.

[0088] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. An interface analysis method, characterized in that: Applicable to servers, including: Get the response loss value during the target interface test; Based on the response loss value and the response loss threshold, a failure degree of the target interface is determined.

2. The method according to claim 1, characterized in that The step of obtaining the response loss value during the target interface test includes: Obtain the benchmark transmission time and benchmark throughput of the target interface during the benchmark test; Obtaining the load transmission duration and load throughput of the target interface during load testing; Based on the reference transmission duration, the reference throughput, the load transmission duration and the load throughput, a response loss value during the target interface test is determined.

3. The method according to claim 2, characterized in that The step of determining the response loss value during the target interface test based on the reference transmission duration, the reference throughput, the load transmission duration, and the load throughput includes: Determining a transmission duration difference based on the reference transmission duration and the load transmission duration; Determining a throughput difference based on the reference throughput and the load throughput; A response loss value during the target interface test is determined based on the transmission time difference, the reference transmission time, a first weight coefficient, the throughput difference, the reference throughput, and a second weight coefficient.

4. The method according to claim 1, characterized in that: The determining the failure degree of the target interface based on the response loss value and the response loss threshold comprises: In a case where the response loss value is greater than a response loss threshold, determining a response loss excess value of the target interface based on the response loss value and the response loss threshold; Based on the response loss exceeding limit value, the failure degree of the target interface is determined and sent to the terminal.

5. The method according to claim 4, characterized in that Also includes: When the response loss value is less than or equal to the response loss threshold, it is determined that the target interface is in a normal state.

6. The method according to claim 4, characterized in that Also includes: In a case where the response loss value is greater than a response loss threshold, generating an interface switching instruction, wherein the interface switching instruction is used to instruct switching of an interface used by the terminal to access a storage space of the target application; The interface switching instruction is sent to the interface switching module.

7. The method according to claim 1, characterized in that Before obtaining the response loss value during the target interface test, the method further includes: Determine the security of the target interface; The step of obtaining the response loss value during the target interface test includes: When it is determined that the target interface is safe, a response loss value during the test of the target interface is obtained.

8. The method according to claim 7, characterized in that Determining the security of the target interface includes: Determine a security test value corresponding to the target interface based on historical security data of the target interface, wherein the historical security data includes at least one of the number of security incidents of the target interface, the duration of each security incident of the target interface, and the number of files in the storage space of the target application that are damaged due to the terminal accessing the storage space through the target interface; Based on the security test value, determining a test scheme corresponding to the target interface; Obtaining a clone interface corresponding to the target interface by replicating the target interface; Based on the test file and the test plan, a security test is performed on the clone interface.

9. The method according to claim 8, characterized in that The step of determining a security test value corresponding to the target interface based on historical security data of the target interface includes: Based on the interface number that the storage space of the target application allows access to, the interface number of the target interface is verified; In a case where the interface number of the target interface is verified to be successful, a security test value corresponding to the target interface is determined based on historical security data of the target interface.

10. A terminal display method, characterized in that: Applied to terminals, including: Access the storage space of the target application through the target interface; The failure degree of the target interface sent by the receiving server is displayed.

Citation Information

Patent Citations

  • Method and equipment for detecting port

    CN102255768A

  • Application interface time consumption test method and system and electronic equipment

    CN114398281A

  • Business poor quality fault diagnosis method, device and equipment, terminal and storage medium

    CN116915577A

  • Network interface device

    US20190110021A1

  • Handling method, system, device and storage medium for signal degradation failure

    WO2019057211A1