CN111274137A - Asynchronous interface detection method, asynchronous interface detection system and readable storage medium - Google Patents

Asynchronous interface detection method, asynchronous interface detection system and readable storage medium Download PDF

Info

Publication number
CN111274137A
CN111274137A CN202010057934.4A CN202010057934A CN111274137A CN 111274137 A CN111274137 A CN 111274137A CN 202010057934 A CN202010057934 A CN 202010057934A CN 111274137 A CN111274137 A CN 111274137A
Authority
CN
China
Prior art keywords
asynchronous interface
feedback data
simulation
server
test
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
CN202010057934.4A
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.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN202010057934.4A priority Critical patent/CN111274137A/en
Publication of CN111274137A publication Critical patent/CN111274137A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides an asynchronous interface detection method, an asynchronous interface detection system and a readable storage medium. The asynchronous interface detection method comprises the following steps: sending a test request to the asynchronous interface server so that the asynchronous interface server generates feedback data and sends the feedback data to the simulation callback address server; sending a request for acquiring feedback data to the simulation callback address server, and receiving feedback data returned by the simulation callback address server; and determining the test result of the asynchronous interface according to the feedback data. The invention realizes the effect of effectively and independently testing the asynchronous interface server by using experience, avoids the problem that abnormal errors cannot be positioned in the related technology, and solves the problem that the asynchronous interface is difficult to test.

Description

Asynchronous interface detection method, asynchronous interface detection system and readable storage medium
Technical Field
The invention relates to the technical field of internet, in particular to an asynchronous interface detection method, an asynchronous interface detection system and a computer readable storage medium.
Background
With the continuous development of the mobile internet, the functions of the application programs are more and more, and the development of componentization is more and more favored. For a back-end service, the interface is provided purely in the form of an interface to other components to invoke, and for performance reasons, asynchronous interface designs are often preferred over synchronous. When testing the specification of the asynchronous interface and carrying out asynchronous result verification, a tester is difficult to verify, and is difficult to independently carry out interface test and realize automation.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art or the related art.
To this end, the first aspect of the present invention provides an asynchronous interface detection method.
A second aspect of the present invention provides an asynchronous interface detection method.
A third aspect of the present invention provides an asynchronous interface detection method.
A fourth aspect of the invention provides an asynchronous interface detection system.
A fifth aspect of the invention provides a computer-readable storage medium.
In order to achieve the above object, according to a technical solution of a first aspect of the present invention, there is provided an asynchronous interface detection method, including: sending a test request to the asynchronous interface server so that the asynchronous interface server generates feedback data and sends the feedback data to the simulation callback address server; sending a request for acquiring feedback data to the simulation callback address server, and receiving feedback data returned by the simulation callback address server; and determining the test result of the asynchronous interface according to the feedback data.
In the technical scheme, a test terminal sends a test request to an asynchronous interface server, the asynchronous interface server generates feedback data corresponding to the test request, the asynchronous interface server sends the generated feedback data to a simulation callback address server for storage, the test terminal sends a request for acquiring the feedback data to the simulation callback address server, the simulation callback address server returns the corresponding feedback data to a control terminal after receiving the request, the effect of effectively and independently testing the asynchronous interface server is realized by setting the simulation callback address server, the problem that abnormal errors cannot be positioned in the related technology is solved, and the problem that the asynchronous interface is difficult to test is solved. The simulation callback address server can be connected with a plurality of asynchronous interface servers to realize multithread detection of the asynchronous interface servers, namely the control terminal sends test requests to the asynchronous interface servers, and feedback data generated by each asynchronous interface server are sent to the simulation callback address server and then are transmitted back to the test terminal by the simulation callback address server.
It can be understood that the feedback data includes information capable of determining whether the asynchronous interface is faulty, and the test requests can also be sent in batches according to the service requirements, the start time of each test request is recorded, and each asynchronous interface is verified individually in batches, so that the test efficiency of the asynchronous interface is effectively improved.
In any of the above technical solutions, the step of determining the test result of the asynchronous interface according to the feedback data specifically includes: the feedback data is the same as the preset standard data, and detection success information is generated; and the feedback data is different from the preset standard data to generate detection failure information.
In the technical scheme, corresponding preset standard data are set for the feedback data, the feedback data are compared with the preset standard data after being received by the test terminal, if the feedback data are the same as the preset standard data, the detection result is determined to be successful, and the asynchronous interface has no fault; and if the feedback data are different from the preset standard data, determining that the detection fails and the asynchronous interface has a fault. The effect that whether the asynchronous interface corresponding to the feedback data has the fault or not can be determined by the test terminal according to the feedback data is achieved.
It can be understood that the feedback data is not directly returned to the test terminal by the asynchronous interface, so that the asynchronous interface service is independently tested, and the problem that abnormal errors cannot be positioned under the condition that the asynchronous interface service feedback data has errors is solved.
In any of the above technical solutions, the step of determining the test result of the asynchronous interface according to the feedback data specifically includes: acquiring test parameters of feedback data; the test parameters are in a preset parameter range, and detection success information is generated; and if the test parameters are not in the preset parameter range, generating detection failure information.
In any of the above technical solutions, the test parameters include: the number of retries and/or the processing time of the server.
In the technical scheme, a test terminal determines test parameters of received feedback data simulating a callback address server, determines that an asynchronous interface has no fault if the test parameters are within a preset parameter range, and generates detection success information; and if the test parameters are not in the preset parameter range, determining that the asynchronous interface has a fault, and generating corresponding information of detection failure. Specifically, preset retry times and timeout time are generated according to a sent test request, retry times and/or processing time in the obtained feedback data are extracted, and whether a fault exists in the asynchronous interface is judged according to whether the retry times and/or the processing time in the feedback data are within a preset range.
It is understood that when determining whether the asynchronous interface has a fault by using the test parameters, only a single test parameter, such as the number of retries or the processing time, may be used. Two test parameters can also be selected for detection, for example: and if one of the two test parameters is not in the preset range, determining that the asynchronous interface has a fault. The specific judgment condition may be set according to the will and the actual requirement, and is not specifically limited herein.
In any of the above technical solutions, the asynchronous interface detection method further includes: and displaying the detection success information and/or the detection failure information.
In the technical scheme, the test terminal can also display the detection success information representing no fault of the asynchronous interface and/or the detection failure information representing the fault of the asynchronous interface, so that a user can intuitively determine whether the fault exists in the asynchronous interface.
It can be understood that, when fault detection is performed on a plurality of asynchronous interfaces or a plurality of detection requests are sent to the asynchronous interfaces, the test terminal can generate an information list according to the detection result, and display the detection success information and/or the detection failure information in the form of the list, so that a user can conveniently check and call the information.
According to a technical solution of a second aspect of the present invention, there is provided an asynchronous interface detection method, including: generating feedback data in response to a test request sent by a test terminal; and sending the feedback data to the simulation callback address server so that the simulation callback address server stores the feedback data.
In the technical scheme, the asynchronous interface server receives a test request sent by the test terminal to generate corresponding feedback data, and simultaneously simulates a feedback data sending value to call back the address server for storage. The asynchronous interface service does not need to transmit the feedback data back to the test terminal after generating the feedback data, and the problem that abnormal errors in the feedback data cannot be positioned is avoided.
In any of the above technical solutions, the method further includes: before the step of responding to the test request sent by the test terminal and generating the feedback data, the method further comprises the following steps:
and establishing connection with the simulation callback address server so that the feedback data can be stored in the simulation callback address.
In the technical scheme, the asynchronous interface server needs to be connected with the simulation callback address server, so that the asynchronous interface server and the simulation callback address server can directly transmit data, and feedback data generated by the asynchronous interface server can be sent to the simulation callback address server for storage.
It can be understood that a plurality of asynchronous interface servers may be connected to one simulation callback address server, that is, the simulation callback address server may receive feedback data of the plurality of asynchronous interface servers.
According to a technical solution of the third aspect of the present invention, there is provided an asynchronous interface detection method, including: receiving feedback data sent by an asynchronous interface server and storing the feedback data; and responding to a feedback data acquisition request sent by the test terminal, and sending feedback data to the test terminal.
In the technical scheme, the simulation callback address server receives and stores feedback data sent by the asynchronous interface server, and when the simulation callback address server receives a feedback data acquisition request sent by the test terminal, the simulation callback address server sends the feedback data to the test terminal so that the test terminal can analyze whether a fault machine exists in the asynchronous interface according to the received feedback data.
According to a fourth aspect of the present invention, there is provided an asynchronous interface detection system, including: the test terminal comprises a test terminal memory, a test terminal processor and a computer program which is stored in the test terminal memory and can run on the test terminal processor; when being executed by a processor, the computer program realizes the steps of the asynchronous interface detection method in any technical scheme; the asynchronous interface server comprises an asynchronous interface server memory, an asynchronous interface server processor and a computer program which is stored in the asynchronous interface server memory and can run on the asynchronous interface server processor; when being executed by a processor, the computer program realizes the steps of the asynchronous interface detection method in any technical scheme; the simulation callback address server comprises a simulation callback address memory, a simulation callback address server processor and a computer program which is stored in the simulation callback address memory and can run on the simulation callback address server processor; the computer program, when executed by a processor, implements the steps of the asynchronous interface detection method according to any of the above-mentioned embodiments. The asynchronous interface detection system has all the beneficial effects of the asynchronous interface detection method of any one of the technical schemes, and details are not repeated herein.
According to an aspect of the fifth aspect of the present invention, there is provided a computer-readable storage medium, on which a control program is stored, and the control program, when executed by a processor, implements the steps of the asynchronous interface detection method according to any one of the above aspects. Therefore, the computer storage medium has all the advantages of the asynchronous interface detection method in any of the above technical solutions, and details are not described herein.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 shows a flow diagram of an asynchronous interface detection method according to one embodiment of the invention;
FIG. 2 shows a flow diagram of an asynchronous interface detection method according to another embodiment of the invention;
FIG. 3 shows a flow diagram of an asynchronous interface detection method according to yet another embodiment of the invention;
FIG. 4 shows a flow diagram of an asynchronous interface detection method according to yet another embodiment of the invention;
FIG. 5 is a flow diagram illustrating an asynchronous interface detection method according to an embodiment of the invention;
FIG. 6 shows a schematic block diagram of an asynchronous interface detection system according to one embodiment of the present invention;
FIG. 7 shows a schematic block diagram of a test terminal in an asynchronous interface detection system according to one embodiment of the present invention;
FIG. 8 is a schematic block diagram of an asynchronous interface server in an asynchronous interface detection system in accordance with one embodiment of the present invention;
FIG. 9 is a schematic block diagram illustrating a simulated callback address server in an asynchronous interface detection system in accordance with one embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. 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 in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited by the specific embodiments disclosed below.
An asynchronous interface detection method, an asynchronous interface detection system, and a computer-readable storage medium according to an embodiment of the present invention are described below with reference to fig. 1 to 9.
The first embodiment is as follows:
as shown in fig. 1, in an embodiment of the present invention, an asynchronous interface detection method is provided, including:
step S102, sending a test request to the asynchronous interface server so that the asynchronous interface server generates feedback data and sends the feedback data to the simulation callback address server;
step S104, sending a request for acquiring feedback data to the simulation callback address server, and receiving feedback data returned by the simulation callback address server;
and step S106, determining the test result of the asynchronous interface according to the feedback data.
In the embodiment, the test terminal sends a test request to the asynchronous interface server, the asynchronous interface server generates feedback data corresponding to the test request, the asynchronous interface server sends the generated feedback data to the simulation callback address server for storage, the test terminal sends a request for acquiring the feedback data to the simulation callback address server, the simulation callback address server receives the request and returns the corresponding feedback data to the control terminal, and by setting the simulation callback address server, the effect of effectively and independently testing the asynchronous interface server is achieved, the problem of incapability of positioning abnormal errors in the related technology is solved, and the problem of difficulty in testing the asynchronous interface is solved. The simulation callback address server can be connected with a plurality of asynchronous interface servers to realize multithread detection of the asynchronous interface servers, namely the control terminal sends test requests to the asynchronous interface servers, and feedback data generated by each asynchronous interface server are sent to the simulation callback address server and then are transmitted back to the test terminal by the simulation callback address server.
It can be understood that the feedback data includes information capable of determining whether the asynchronous interface is faulty, and the test requests can also be sent in batches according to the service requirements, the start time of each test request is recorded, and each asynchronous interface is verified individually in batches, so that the test efficiency of the asynchronous interface is effectively improved.
In the above embodiment, the step of determining the test result of the asynchronous interface according to the feedback data specifically includes: the feedback data is the same as the preset standard data, and detection success information is generated; and the feedback data is different from the preset standard data to generate detection failure information.
In the embodiment, corresponding preset standard data is set for the feedback data, the test terminal compares the feedback data with the preset standard data after receiving the feedback data, if the feedback data is the same as the preset standard data, the detection result is determined to be successful, and the asynchronous interface has no fault; and if the feedback data are different from the preset standard data, determining that the detection fails and the asynchronous interface has a fault. The effect that whether the asynchronous interface corresponding to the feedback data has the fault or not can be determined by the test terminal according to the feedback data is achieved.
It can be understood that the feedback data is not directly returned to the test terminal by the asynchronous interface, so that the asynchronous interface service is independently tested, and the problem that abnormal errors cannot be positioned under the condition that the asynchronous interface service feedback data has errors is solved.
As shown in fig. 2, in any of the above technical solutions, the step of determining the test result of the asynchronous interface according to the feedback data specifically includes:
step S202, obtaining test parameters of feedback data; the test parameters are in a preset parameter range, and detection success information is generated;
and step S204, if the test parameter is not in the preset parameter range, generating detection failure information.
Wherein the test parameters include: the number of retries and/or the processing time of the server.
In the embodiment, the test terminal determines the test parameters of the received feedback data simulating the callback address server, determines that the asynchronous interface has no fault if the test parameters are within a preset parameter range, and generates detection success information; and if the test parameters are not in the preset parameter range, determining that the asynchronous interface has a fault, and generating corresponding information of detection failure. Specifically, preset retry times and timeout time are generated according to a sent test request, retry times and/or processing time in the obtained feedback data are extracted, and whether a fault exists in the asynchronous interface is judged according to whether the retry times and/or the processing time in the feedback data are within a preset range.
It is understood that when determining whether the asynchronous interface has a fault by using the test parameters, only a single test parameter, such as the number of retries or the processing time, may be used. Two test parameters can also be selected for detection, for example: and if one of the two test parameters is not in the preset range, determining that the asynchronous interface has a fault. The specific judgment condition may be set according to the will and the actual requirement, and is not specifically limited herein.
In any of the above embodiments, the asynchronous interface detection method further includes: and displaying the detection success information and/or the detection failure information.
In this embodiment, the test terminal may further display information indicating that the asynchronous interface has no fault and/or information indicating that the asynchronous interface has a fault and that the asynchronous interface has a fault, so that a user may intuitively determine whether the asynchronous interface has a fault.
It can be understood that, when fault detection is performed on a plurality of asynchronous interfaces or a plurality of detection requests are sent to the asynchronous interfaces, the test terminal can generate an information list according to the detection result, and display the detection success information and/or the detection failure information in the form of the list, so that a user can conveniently check and call the information.
Example two:
as shown in fig. 3, in another embodiment of the present invention, an asynchronous interface detection method is provided, including:
step S302, responding to a test request sent by a test terminal to generate feedback data;
and step S304, sending the feedback data to the simulation callback address server so that the simulation callback address server stores the feedback data.
In the embodiment, the asynchronous interface server receives a test request sent by the test terminal to generate corresponding feedback data, and simultaneously simulates a feedback data sending value to call back the address server for storage. The asynchronous interface service does not need to transmit the feedback data back to the test terminal after generating the feedback data, and the problem that abnormal errors in the feedback data cannot be positioned is avoided.
In any of the above embodiments, before the step of generating the feedback data in response to the test request sent by the test terminal, the method further includes: and establishing connection with the simulation callback address server so that the feedback data can be stored in the simulation callback address.
In this embodiment, the asynchronous interface server needs to establish connection with the simulation callback address server, so that the asynchronous interface server and the simulation callback address server can directly perform data transmission, and feedback data generated by the asynchronous interface server can be sent to the simulation callback address server for storage.
It can be understood that a plurality of asynchronous interface servers may be connected to one simulation callback address server, that is, the simulation callback address server may receive feedback data of the plurality of asynchronous interface servers.
Example three:
as shown in fig. 4, in a further embodiment of the present invention, an asynchronous interface detection method is provided, including:
step S402, receiving feedback data sent by the asynchronous interface server and storing the feedback data;
step S404, responding to the request for obtaining feedback data sent by the test terminal, and sending the feedback data to the test terminal.
In the embodiment, the simulation callback address server receives and stores feedback data sent by the asynchronous interface server, and when the simulation callback address server receives a feedback data acquisition request sent by the test terminal, the simulation callback address server sends the feedback data to the test terminal, so that the test terminal can analyze whether a fault machine exists in the asynchronous interface according to the received feedback data.
Example four:
as shown in fig. 5, in an embodiment of the present invention, an asynchronous interface detection method is provided:
step S502, the test terminal sends a test request to the asynchronous interface server;
step S504, the asynchronous interface server receives the test request of the test terminal and feeds back feedback data to the simulation callback interface server;
step S506, simulating the callback address server to store the feedback data;
and step S508, the test terminal acquires feedback data of the asynchronous interface from the simulation callback address server, and compares and asserts the feedback data according to preset standard data.
In this embodiment, it collects jenkins (continuous integration tool), robotframe (functional automation test framework), and gitlab (code management tool), and implements an automated asynchronous interface test flow: making the simulated callback address server side into a container, arranging the container on a jenkins platform, and increasing the timing construction of a trigger condition; the test case is compiled through robotframe, after the request is sent, the request simulates the feedback data of the callback address server, the result is verified according to the retry times and overtime time set in the preset standard data, the request can also be sent to the asynchronous interface server in batch according to the service requirement, the starting time of each request is recorded, and batch and individual verification is carried out on the simulation callback address server at an individual timing; and finally submitting the use case in the gitlab, regularly pulling the code to execute the use case according to the set triggering condition, forming a test report, and customizing a mail sending report. The method realizes effective and independent test of the back-end service by simulating the callback address server by self, and avoids the situation that the problem that the positioning cannot be realized by returning abnormal errors through the asynchronous interface server; the problem of difficulty in testing the asynchronous interface is effectively solved, and the automatic testing of the asynchronous interface is realized.
It can be understood that the test case in this embodiment: the method comprises the steps of sending requests in batches according to service requirements, recording the starting time of each request, and requesting the simulation interface service at a single timing to carry out batch and single verification, so that the test efficiency of the asynchronous interface can be effectively improved.
Example five:
as shown in fig. 6, in yet another embodiment of the present invention, an asynchronous interface detection system 100 is provided, comprising: a test terminal 120, an asynchronous interface server 140, and a simulation callback address server 160.
As shown in fig. 7, a test terminal 120, the test terminal 120 comprising a test terminal memory 122, a test terminal processor 124, and a computer program stored on the test terminal memory 122 and executable on the test terminal processor 124; the computer program, when executed by the test terminal processor 124, implements the steps of the asynchronous interface detection method according to any of the above-mentioned embodiments.
As shown in fig. 8, the asynchronous interface server 140 includes an asynchronous interface server memory 142, an asynchronous interface server processor 144, and a computer program stored in the asynchronous interface server memory 142 and executable on the asynchronous interface server processor 144; the computer program, when executed by a processor, implements the steps of the asynchronous interface detection method according to any of the above-mentioned embodiments.
As shown in fig. 9, the simulation callback address server 160 includes a simulation callback address server memory 162, a simulation callback address server processor 164, and a computer program stored in the simulation callback address server memory 162 and operable on the simulation callback address server processor 164; the computer program, when executed by a processor, implements the steps of the asynchronous interface detection method according to any of the above-mentioned embodiments.
The asynchronous interface detection system has all the beneficial effects of the asynchronous interface detection method of any one of the technical schemes, and details are not repeated herein.
Practice ofExample six:
in another embodiment of the present invention, a computer-readable storage medium is provided, on which a control program is stored, and the control program, when executed by a processor, implements the steps of the asynchronous interface detection method in any of the above embodiments. Therefore, the computer storage medium has all the advantages of the asynchronous interface detection method in any of the above embodiments, and details are not described herein.
In the present invention, the terms "first", "second", and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance; the term "plurality" means two or more unless expressly limited otherwise. The terms "mounted," "connected," "fixed," and the like are to be construed broadly, and for example, "connected" may be a fixed connection, a removable connection, or an integral connection; "coupled" may be direct or indirect through an intermediary. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the description of the present invention, it is to be understood that the terms "upper", "lower", "left", "right", "front", "rear", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience of description and simplification of description, but do not indicate or imply that the referred device or unit must have a specific direction, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present invention.
In the description herein, the description of the terms "one embodiment," "a specific embodiment," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An asynchronous interface detection method, comprising:
sending a test request to an asynchronous interface server so that the asynchronous interface server generates feedback data and sends the feedback data to a simulation callback address server;
sending a request for acquiring feedback data to a simulation callback address server, and receiving feedback data returned by the simulation callback address server;
and determining the test result of the asynchronous interface according to the feedback data.
2. The method according to claim 1, wherein the step of determining the test result of the asynchronous interface according to the feedback data specifically includes:
the feedback data is the same as the preset standard data, and detection success information is generated;
and the feedback data is different from the preset standard data to generate detection failure information.
3. The method according to claim 1, wherein the step of determining the test result of the asynchronous interface according to the feedback data specifically includes:
obtaining test parameters of the feedback data;
the test parameters are in a preset parameter range, and detection success information is generated;
and generating detection failure information if the test parameters are not in the preset parameter range.
4. The asynchronous interface detection method of claim 3, wherein the test parameters comprise:
the number of retries and/or the processing time of the server.
5. The asynchronous interface detection method of any of claims 2 to 4, further comprising:
and displaying the detection success information and/or the detection failure information.
6. An asynchronous interface detection method, comprising:
generating feedback data in response to a test request sent by a test terminal;
and sending the feedback data to a simulation callback address server so that the simulation callback address server stores the feedback data.
7. The asynchronous interface detection method of claim 6, wherein the step of generating feedback data in response to a test request sent by a test terminal is preceded by the step of:
and establishing connection with the simulation callback address server so that the feedback data can be stored in the simulation callback address.
8. An asynchronous interface detection method, comprising:
receiving feedback data sent by the asynchronous interface server and storing the feedback data;
and responding to a feedback data acquisition request sent by a test terminal, and sending the feedback data to the test terminal.
9. An asynchronous interface detection system, comprising:
the test terminal comprises a test terminal memory, a test terminal processor and a computer program which is stored on the test terminal memory and can run on the test terminal processor;
the computer program implementing the steps of the asynchronous interface detection method as claimed in any one of claims 1 to 5 when executed by the processor;
the asynchronous interface server comprises an asynchronous interface server memory, an asynchronous interface server processor and a computer program which is stored in the asynchronous interface server memory and can run on the asynchronous interface server processor;
the computer program implementing the steps of the asynchronous interface detection method as claimed in claim 6 or 7 when executed by the processor;
the simulation callback address server comprises a simulation callback address memory, a simulation callback address server processor and a computer program which is stored in the simulation callback address memory and can run on the simulation callback address server processor;
the computer program realizing the steps of the asynchronous interface detection method as claimed in claim 8 when executed by the processor.
10. A computer-readable storage medium, having an asynchronous interface detection program stored thereon, which when executed by a processor implements the steps of the asynchronous interface detection method of any one of claims 1 to 5; or
The steps of the asynchronous interface detection method according to claim 6 or 7; or
The steps of the asynchronous interface detection method as recited in claim 8.
CN202010057934.4A 2020-01-16 2020-01-16 Asynchronous interface detection method, asynchronous interface detection system and readable storage medium Pending CN111274137A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010057934.4A CN111274137A (en) 2020-01-16 2020-01-16 Asynchronous interface detection method, asynchronous interface detection system and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010057934.4A CN111274137A (en) 2020-01-16 2020-01-16 Asynchronous interface detection method, asynchronous interface detection system and readable storage medium

Publications (1)

Publication Number Publication Date
CN111274137A true CN111274137A (en) 2020-06-12

Family

ID=71003063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010057934.4A Pending CN111274137A (en) 2020-01-16 2020-01-16 Asynchronous interface detection method, asynchronous interface detection system and readable storage medium

Country Status (1)

Country Link
CN (1) CN111274137A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363908A (en) * 2020-09-16 2021-02-12 贝壳技术有限公司 Asynchronous interface test method, system, electronic device and storage medium
CN113535351A (en) * 2021-06-24 2021-10-22 四川新网银行股份有限公司 Extensible asynchronous service mock method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8386864B2 (en) * 2006-11-28 2013-02-26 Stmicroelectronics Pvt. Ltd. Locally synchronous shared BIST architecture for testing embedded memories with asynchronous interfaces
CN107070735A (en) * 2016-12-30 2017-08-18 上海亿账通互联网科技有限公司 Method, test terminal and the system of asynchronous interface test
CN109491905A (en) * 2018-11-02 2019-03-19 北京金山云网络技术有限公司 Head end test method, apparatus and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8386864B2 (en) * 2006-11-28 2013-02-26 Stmicroelectronics Pvt. Ltd. Locally synchronous shared BIST architecture for testing embedded memories with asynchronous interfaces
CN107070735A (en) * 2016-12-30 2017-08-18 上海亿账通互联网科技有限公司 Method, test terminal and the system of asynchronous interface test
CN109491905A (en) * 2018-11-02 2019-03-19 北京金山云网络技术有限公司 Head end test method, apparatus and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363908A (en) * 2020-09-16 2021-02-12 贝壳技术有限公司 Asynchronous interface test method, system, electronic device and storage medium
CN113535351A (en) * 2021-06-24 2021-10-22 四川新网银行股份有限公司 Extensible asynchronous service mock method

Similar Documents

Publication Publication Date Title
CN110908909B (en) Automatic test method, device, storage medium and equipment
CN109165170B (en) Method and system for automatic request test
CN108763086A (en) Script method for recording, terminal and computer readable storage medium based on remote real machine
CN111274137A (en) Asynchronous interface detection method, asynchronous interface detection system and readable storage medium
CN108683563B (en) Distributed access performance test method, device and system
CN106776323B (en) Application testing method and device
CN111352836A (en) Pressure testing method and related device
CN111078567A (en) Report generation method, terminal and storage medium of automatic test platform
CN109729346B (en) Remote debugging method and system for television, debugging terminal and television terminal
CN111212155B (en) Log debugging method, television and storage medium
EP3148120A1 (en) Service system test method and device
CN108763052A (en) A kind of method for testing performance and system of virtual reality software memory reclaim mechanism
JP5217961B2 (en) Electronic device, memory device determination system, and control method thereof
KR20040032311A (en) Method and system for analizing log files of mobile communication terminal
CN108280024A (en) Traffic distribution strategy test method, device and electronic equipment
CN115276844B (en) Communication module testing method and device, storage medium and electronic equipment
CN111478901B (en) Account weak password detection method and device, server and storage medium
CN110572857A (en) Network connection processing method and device
CN112199229A (en) Data processing method, device, equipment and storage medium
CN113849356A (en) Equipment testing method and device, electronic equipment and storage medium
CN111355772B (en) Remote management method, device and equipment based on software
CN114721569A (en) Synchronous screenshot method, device and system and server
CN107276852B (en) Data security detection method and terminal
CN113434406B (en) Function test method and device, storage medium and electronic equipment
CN111881060B (en) Interface performance testing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200612

RJ01 Rejection of invention patent application after publication