CN113821445A - Mock testing method and device for mobile terminal application - Google Patents

Mock testing method and device for mobile terminal application Download PDF

Info

Publication number
CN113821445A
CN113821445A CN202111181105.8A CN202111181105A CN113821445A CN 113821445 A CN113821445 A CN 113821445A CN 202111181105 A CN202111181105 A CN 202111181105A CN 113821445 A CN113821445 A CN 113821445A
Authority
CN
China
Prior art keywords
mobile terminal
request
mobile
destination
interface
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
CN202111181105.8A
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.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202111181105.8A priority Critical patent/CN113821445A/en
Publication of CN113821445A publication Critical patent/CN113821445A/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/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 discloses a Mock testing method and a Mock testing device for mobile terminal application, wherein the method comprises the following steps: performing three-dimensional monitoring on the request of the mobile terminal, wherein the three-dimensional monitoring comprises monitoring a destination address, a destination port and a destination interface of the request of the mobile terminal; intercepting the request of the mobile terminal when the target address, the target port and the target interface of the request of the mobile terminal are found to meet the preset conditions through three-dimensional monitoring; carrying out protocol analysis on the mobile terminal request according to the request type, and determining changeable contents in the mobile terminal request; providing a debugging interface according to the protocol type, and receiving rewriting and customizing operation on the changeable content; and according to the rewriting and customizing operations, recombining the mobile terminal request, and sending out the recombined mobile terminal request. The invention relates to the technical field of Internet of things, and can realize rewriting and customizing of changeable contents at a mobile terminal and improve debugging efficiency of a tester at a test stage.

Description

Mock testing method and device for mobile terminal application
Technical Field
The invention relates to the technical field of Internet of things, in particular to a Mock testing method and device for mobile terminal application.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
Along with the continuous and vigorous development of banking business, the related user scenes and transaction volumes are also larger and larger, and the internal systems of the bank system are also more and more complicated. Meanwhile, the whole bank system is also transformed from the traditional internet to the mobile internet, so that more and more mobile application scenes appear in the financial industry, and new challenges are brought to development and debugging, test coverage and quick positioning of problems of mobile-end application.
In the development, test and verification stage, due to the influence of the unstable factors of the back-line system, the verification at the system level is difficult to be performed in a preposition mode, and especially for mobile-end application, the debugging and verification can be performed after the back-line full-link product is complete. After a product is on line, a scene which is difficult to reproduce is often encountered aiming at some complaints of users, and the problem reproduction efficiency cannot be improved by a proper method or medium due to too high coupling with a rear line system.
In the process of performing end-to-end verification on the application of the mobile terminal, when the relevant verification of the interface request type is performed, the outstanding problems of request construction, packet capture, abnormal simulation, background coupling and the like are often encountered. One scheme in the prior art is to use a packet capturing tool to perform interface verification at a computer end and perform read-only type verification aiming at a protocol request, and the scheme only meets part of case coverage, and has the problems of inconvenient use (complicated agent configuration/different network segment configuration and the like) of the computer end and use limitation of a general packet capturing tool, thereby reducing the debugging efficiency of a tester in a testing stage.
Disclosure of Invention
The embodiment of the invention provides a Mock testing method for mobile terminal application, which is used for rewriting and customizing changeable contents at a mobile terminal and improving the debugging efficiency of a tester at a testing stage, and comprises the following steps:
performing three-dimensional monitoring on the request of the mobile terminal, wherein the three-dimensional monitoring comprises monitoring a destination address, a destination port and a destination interface of the request of the mobile terminal;
intercepting the request of the mobile terminal when the target address, the target port and the target interface of the request of the mobile terminal are found to meet the preset conditions through three-dimensional monitoring;
carrying out protocol analysis on the mobile terminal request according to the request type, and determining changeable contents in the mobile terminal request;
providing a debugging interface according to the protocol type, and receiving rewriting and customizing operation on the changeable content;
and according to the rewriting and customizing operations, recombining the mobile terminal request, and sending out the recombined mobile terminal request.
The embodiment of the invention also provides a Mock testing device for mobile terminal application, which is used for rewriting and customizing the changeable content at the mobile terminal and improving the debugging efficiency of a tester at the testing stage, and comprises:
the monitoring module is used for carrying out three-dimensional monitoring on the request of the mobile terminal, wherein the three-dimensional monitoring comprises monitoring a destination address, a destination port and a destination interface of the request of the mobile terminal;
the interrupt module is used for intercepting the request of the mobile terminal when the target address, the target port and the target interface of the request of the mobile terminal are found to meet the preset conditions through three-dimensional monitoring;
the analysis module is used for carrying out protocol analysis on the mobile terminal request according to the request type and determining changeable contents in the mobile terminal request;
the customization module is used for providing a debugging interface according to the protocol type and receiving rewriting and customization operation on the changeable content;
and the forwarding module is used for recombining the mobile terminal request according to the rewriting and customizing operations and sending the recombined mobile terminal request.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the Mock test method for the mobile terminal application when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing the Mock testing method for mobile-side application is stored in the computer-readable storage medium.
In the embodiment of the invention, the three-dimensional monitoring is carried out on the request of the mobile terminal, wherein the three-dimensional monitoring comprises the monitoring of the destination address, the destination port and the destination interface of the request of the mobile terminal; intercepting the request of the mobile terminal when the target address, the target port and the target interface of the request of the mobile terminal are found to meet the preset conditions through three-dimensional monitoring; carrying out protocol analysis on the mobile terminal request according to the request type, and determining changeable contents in the mobile terminal request; providing a debugging interface according to the protocol type, and receiving rewriting and customizing operation on the changeable content; and according to the rewriting and customizing operations, recombining the mobile terminal request, and sending out the recombined mobile terminal request. Compared with the technical scheme in the prior art, the method and the device have the advantages that the mobile terminal request can be intercepted through three-dimensional monitoring on the mobile terminal request, the rewriting and customization of the changeable content at the mobile terminal are realized, and the debugging efficiency of a tester in the testing stage is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a flowchart of a Mock testing method for a mobile-side application according to an embodiment of the present invention;
fig. 2 is a flowchart for determining changeable contents in a mobile terminal request according to an embodiment of the present invention;
fig. 3 is a diagram illustrating an embodiment of a Mock testing method for a mobile application according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a Mock testing device for mobile-end applications according to an embodiment of the present invention;
fig. 5 is a diagram of an embodiment of a Mock testing device for mobile end applications according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
Before describing the embodiments of the present invention, terms related to the embodiments of the present invention will be described.
Mock test
A test method for creating a virtual object for testing some objects which are not easy to construct or easily obtained in the test process.
2.Dubbo
A high performance, lightweight service framework provides three core capabilities: interface-oriented remote method invocation, intelligent fault tolerance and load balancing, and automatic registration and discovery of services.
3.Socket
I.e., sockets, are abstractions of endpoints for two-way communication between application processes on different hosts in a network. A socket is the end of a process's communication over a network and provides a mechanism for application layer processes to exchange data using a network protocol.
An embodiment of the present invention provides a Mock testing method for a mobile end application, and fig. 1 is a flowchart of the Mock testing method for the mobile end application provided in the embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
step 101: performing three-dimensional monitoring on the request of the mobile terminal, wherein the three-dimensional monitoring comprises monitoring a destination address, a destination port and a destination interface of the request of the mobile terminal;
step 102: intercepting the request of the mobile terminal when the target address, the target port and the target interface of the request of the mobile terminal are found to meet the preset conditions through three-dimensional monitoring;
step 103: carrying out protocol analysis on the mobile terminal request according to the request type, and determining changeable contents in the mobile terminal request;
step 104: providing a debugging interface according to the protocol type, and receiving rewriting and customizing operation on the changeable content;
step 105: and according to the rewriting and customizing operations, recombining the mobile terminal request, and sending out the recombined mobile terminal request.
As can be seen from the flow shown in fig. 1, the Mock testing method for the mobile terminal according to the embodiment of the present invention is different from the technical scheme of performing interface verification by using a packet capturing tool at the computer terminal and performing "read only" type verification on a protocol request in the prior art, but performs three-dimensional monitoring on the mobile terminal request and intercepts the mobile terminal request, so as to implement rewriting and customizing of changeable content at the mobile terminal, and improve the debugging efficiency of a tester at the testing stage.
In specific implementation, the mobile terminal request is first monitored in three dimensions, where the three dimensions may be monitoring the destination address, the destination port, and the destination interface of the mobile terminal request. For example, a binding interface (or a full snoop may be specified) may be specified for specifying a moving source (a full back-line system of a source address and a destination address), and a three-dimensional snoop of a destination address, a destination port, and a destination interface may be performed.
After the mobile terminal request is subjected to three-dimensional monitoring, the mobile terminal request is intercepted when the target address, the target port and the target interface of the mobile terminal request are found to meet preset conditions through the three-dimensional monitoring. In an embodiment, the preset condition may be a value range of a preset pre-bound destination address, a value range of a pre-bound destination port, and a value range of a pre-bound destination interface.
In one embodiment, when the three-dimensional monitoring finds that the destination address, the destination port, and the destination interface of the mobile terminal request meet the preset conditions, intercepting the mobile terminal request may be: and intercepting the mobile terminal request when the three-dimensional monitoring finds that the destination address requested by the mobile terminal is matched with the value range of the pre-bound destination address, the destination port requested by the mobile terminal is matched with the value range of the pre-bound destination port, and the destination interface requested by the mobile terminal is matched with the value range of the pre-bound destination interface. For example, in this example, the value range of the pre-bound destination interface may be a full range, and at this time, when it is found by three-dimensional monitoring that the destination address requested by the mobile terminal matches the value range of the pre-bound destination address and the destination port requested by the mobile terminal matches the value range of the pre-bound destination port, the mobile terminal request is intercepted.
In an embodiment, when three-dimensional monitoring finds that a destination address requested by a mobile terminal matches a value range of a pre-bound destination address, a destination port requested by the mobile terminal matches a value range of a pre-bound destination port, and a destination interface requested by the mobile terminal matches a value range of a pre-bound destination interface, intercepting the mobile terminal request may be: and intercepting the request of the mobile terminal when the three-dimensional monitoring finds that the destination address of the request of the mobile terminal is matched with the fixed value of the pre-bound destination address, the destination port of the request of the mobile terminal is matched with the fixed value of the pre-bound destination port, and the keyword of the destination interface of the request of the mobile terminal is matched with the keyword of the pre-bound destination interface.
In one embodiment, when intercepting the mobile terminal request, the long connection with the mobile terminal application front end is kept until the recombination of the mobile terminal request is completed, and the long connection with the mobile terminal application background is established. Therefore, the protocol analysis is subsequently carried out on the mobile terminal request according to the request type, and when the changeable content in the mobile terminal request is determined, a 'write' interface can be provided to support the rewriting and customizing operation on the changeable content. The "write" interface parameter may be one of a protocol, a URL (uniform resource locator), and a parameter of the URL, or any combination thereof.
After intercepting the mobile terminal request, carrying out protocol analysis on the mobile terminal request according to the request type, and determining the changeable content in the mobile terminal request. Fig. 2 is a flowchart of determining changeable content in a mobile terminal request according to an embodiment of the present invention, and as shown in fig. 2, in this example, a protocol is analyzed for the mobile terminal request according to a request type, and the determining of the changeable content in the mobile terminal request includes the following steps:
step 201: carrying out protocol analysis on the mobile terminal request according to the request type, and determining the protocol type;
step 202: and determining the changeable content in the mobile terminal request according to the protocol type.
In the embodiment, a protocol analysis is firstly carried out on a mobile terminal request according to a request type, and the protocol type is determined, wherein the protocol type can be HTTP, Dubbo or Socket; and determining changeable content in the mobile terminal request according to the Protocol type, wherein the changeable content can be the full HTTP request header and request body content of the HTTP request, can be the message header and message body content of the Dubbo request, and can also be a TCP (Transmission Control Protocol) message segment of the Socket request, and comprises a TCP header and a TCP data part.
After determining the changeable content in the mobile terminal request, providing a debugging interface according to the protocol type, and receiving rewriting and customizing operation of the changeable content. In the embodiment, after the three-dimensional monitoring, the mobile terminal request intercepting and the mobile terminal request analyzing are completed, a user configurable debugging interface is provided, and the interface displays all the options configurable by the user after the analyzing, so that a tester can directly rewrite and customize the changeable content in the application front-end interface and receive the rewriting and customizing operation of the changeable content.
After receiving the rewriting and customization operation to the changeable content, the mobile terminal request is recombined according to the rewriting and customization operation, and the recombined mobile terminal request is sent out. In one embodiment, the sending of the recombined mobile terminal request may be: and forwarding the recombined mobile terminal request to a destination address of the mobile terminal request before recombination. For example, in this example, after receiving the rewrite and customize operations for the changeable content, the mobile terminal request is recombined, a connection with the backend is established, and the recombined mobile terminal request is forwarded to the destination address of the mobile terminal request before being recombined, so as to realize that the direction of the mobile terminal request before being recombined is not changed, and no influence is exerted on the upstream and the downstream.
Fig. 3 is a diagram of a specific example of a Mock testing method for a mobile terminal application according to an embodiment of the present invention, as shown in fig. 3, in this example, protocol snooping is performed between the mobile terminal and background systems in a bank. Firstly, providing a mobile terminal SDK (Software Development Kit) at a mobile terminal to perform protocol monitoring, namely three-dimensional monitoring, on an application service interface and requests of each background system in a bank; the application service interface comprises one or any combination of login, financial transaction and transfer transaction; each background system in the row comprises all direct connection systems, for example, one or any combination of a core system, an internet banking system and a backend system; secondly, carrying out protocol interruption, namely intercepting the request of the mobile terminal when the target address, the target port and the target interface of the request of the mobile terminal are found to meet the preset conditions through three-dimensional monitoring; then, customizing a protocol, wherein an Application Programming Interface (API) is provided on a debugging Interface of the mobile terminal for a tester to rewrite and customize the changeable content during the protocol customization; the changeable content can be one of or any combination of Socket, HTTP (Hypertext Transfer Protocol), RPC (Remote Procedure Call); and finally, protocol forwarding is carried out, namely the mobile terminal request is recombined according to rewriting and customizing operations, and the recombined mobile terminal request is sent out.
The embodiment of the invention also provides a Mock testing device for mobile terminal application, which is described in the following embodiments. Because the principle of the device for solving the problems is similar to the Mock test method for the mobile terminal application, the implementation of the device can refer to the implementation of the Mock test method for the mobile terminal application, and repeated details are not repeated.
The embodiment of the present invention provides a Mock testing device for mobile end application, fig. 4 is a schematic diagram of the Mock testing device for mobile end application provided in the embodiment of the present invention, and as shown in fig. 4, the device includes the following modules:
the monitoring module 41 is configured to perform three-dimensional monitoring on the mobile terminal request, where the three-dimensional monitoring includes monitoring a destination address, a destination port, and a destination interface of the mobile terminal request;
the interrupt module 42 is configured to intercept the mobile terminal request when the target address, the target port, and the target interface of the mobile terminal request are found to meet the preset conditions by three-dimensional monitoring;
the analysis module 43 is configured to perform protocol analysis on the mobile terminal request according to the request type, and determine changeable content in the mobile terminal request;
the customizing module 44 is used for providing a debugging interface according to the protocol type and receiving rewriting and customizing operation on the changeable content;
and the forwarding module 45 is configured to recombine the mobile terminal request according to the rewriting and customizing operations, and send out the recombined mobile terminal request.
In one embodiment, interrupt module 42 is specifically configured to: and intercepting the mobile terminal request when the three-dimensional monitoring finds that the destination address requested by the mobile terminal is matched with the value range of the pre-bound destination address, the destination port requested by the mobile terminal is matched with the value range of the pre-bound destination port, and the destination interface requested by the mobile terminal is matched with the value range of the pre-bound destination interface.
In one embodiment, interrupt module 42 is specifically configured to: and intercepting the request of the mobile terminal when the three-dimensional monitoring finds that the destination address of the request of the mobile terminal is matched with the fixed value of the pre-bound destination address, the destination port of the request of the mobile terminal is matched with the fixed value of the pre-bound destination port, and the keyword of the destination interface of the request of the mobile terminal is matched with the keyword of the pre-bound destination interface.
Fig. 5 is a diagram of a specific example of a Mock testing apparatus for a mobile-end application according to an embodiment of the present invention, and as shown in fig. 5, in this example, the Mock testing apparatus for a mobile-end application further includes:
the long connection module 51 is configured to, when intercepting the mobile terminal request, maintain a long connection with the mobile terminal application front end until the mobile terminal request is reassembled, and establish a long connection with the mobile terminal application background.
In one embodiment, the parsing module 43 is specifically configured to: carrying out protocol analysis on the mobile terminal request according to the request type, and determining the protocol type; and determining the changeable content in the mobile terminal request according to the protocol type.
In one embodiment, the forwarding module 45 is specifically configured to: and forwarding the recombined mobile terminal request to a destination address of the mobile terminal request before recombination.
An embodiment of the present invention further provides a computer device, where the computer device includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the processor implements: the Mock testing method for the mobile terminal application is described.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing the method is stored, and when executed by a processor, the computer program implements: the Mock testing method for the mobile terminal application is described.
In summary, in the embodiment of the present invention, a three-dimensional monitoring is performed on a mobile terminal request, where the three-dimensional monitoring includes monitoring a destination address, a destination port, and a destination interface of the mobile terminal request; intercepting the request of the mobile terminal when the target address, the target port and the target interface of the request of the mobile terminal are found to meet the preset conditions through three-dimensional monitoring; carrying out protocol analysis on the mobile terminal request according to the request type, and determining changeable contents in the mobile terminal request; providing a debugging interface according to the protocol type, and receiving rewriting and customizing operation on the changeable content; and according to the rewriting and customizing operations, recombining the mobile terminal request, and sending out the recombined mobile terminal request. Compared with the technical scheme in the prior art, the method and the device have the advantages that the mobile terminal request can be intercepted through three-dimensional monitoring on the mobile terminal request, the rewriting and customization of the changeable content at the mobile terminal are realized, and the debugging efficiency of a tester in the testing stage is improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (14)

1. A Mock testing method for mobile terminal application is characterized by comprising the following steps:
performing three-dimensional monitoring on the request of the mobile terminal, wherein the three-dimensional monitoring comprises monitoring a destination address, a destination port and a destination interface of the request of the mobile terminal;
intercepting the request of the mobile terminal when the target address, the target port and the target interface of the request of the mobile terminal are found to meet the preset conditions through three-dimensional monitoring;
carrying out protocol analysis on the mobile terminal request according to the request type, and determining changeable contents in the mobile terminal request;
providing a debugging interface according to the protocol type, and receiving rewriting and customizing operation on the changeable content;
and according to the rewriting and customizing operations, recombining the mobile terminal request, and sending out the recombined mobile terminal request.
2. The Mock test method for mobile end application according to claim 1, wherein intercepting a mobile end request when a three-dimensional snooping finds that a destination address, a destination port and a destination interface of the mobile end request meet preset conditions, comprises:
and intercepting the mobile terminal request when the three-dimensional monitoring finds that the destination address requested by the mobile terminal is matched with the value range of the pre-bound destination address, the destination port requested by the mobile terminal is matched with the value range of the pre-bound destination port, and the destination interface requested by the mobile terminal is matched with the value range of the pre-bound destination interface.
3. The Mock testing method for mobile end application according to claim 2, wherein when three-dimensional monitoring finds that the destination address requested by the mobile end matches the value range of the pre-bound destination address, the destination port requested by the mobile end matches the value range of the pre-bound destination port, and the destination interface requested by the mobile end matches the value range of the pre-bound destination interface, intercepting the mobile end request, comprises:
and intercepting the request of the mobile terminal when the three-dimensional monitoring finds that the destination address of the request of the mobile terminal is matched with the fixed value of the pre-bound destination address, the destination port of the request of the mobile terminal is matched with the fixed value of the pre-bound destination port, and the keyword of the destination interface of the request of the mobile terminal is matched with the keyword of the pre-bound destination interface.
4. The Mock testing method for a mobile-end application according to claim 1, further comprising:
when intercepting the mobile terminal request, the long connection with the mobile terminal application front end is kept until the recombination of the mobile terminal request is completed, and the long connection with the mobile terminal application background is established.
5. The Mock test method for mobile end application according to claim 1, wherein the protocol parsing the mobile end request according to the request type and determining the changeable content in the mobile end request comprises:
carrying out protocol analysis on the mobile terminal request according to the request type, and determining the protocol type;
and determining the changeable content in the mobile terminal request according to the protocol type.
6. The Mock testing method for mobile end application according to claim 1, wherein the sending out the recombined mobile end request comprises:
and forwarding the recombined mobile terminal request to a destination address of the mobile terminal request before recombination.
7. A Mock testing device for mobile end applications, comprising:
the monitoring module is used for carrying out three-dimensional monitoring on the request of the mobile terminal, wherein the three-dimensional monitoring comprises monitoring a destination address, a destination port and a destination interface of the request of the mobile terminal;
the interrupt module is used for intercepting the request of the mobile terminal when the target address, the target port and the target interface of the request of the mobile terminal are found to meet the preset conditions through three-dimensional monitoring;
the analysis module is used for carrying out protocol analysis on the mobile terminal request according to the request type and determining changeable contents in the mobile terminal request;
the customization module is used for providing a debugging interface according to the protocol type and receiving rewriting and customization operation on the changeable content;
and the forwarding module is used for recombining the mobile terminal request according to the rewriting and customizing operations and sending the recombined mobile terminal request.
8. The Mock testing device for mobile-end applications according to claim 7, wherein the interrupt module is specifically configured to:
and intercepting the mobile terminal request when the three-dimensional monitoring finds that the destination address requested by the mobile terminal is matched with the value range of the pre-bound destination address, the destination port requested by the mobile terminal is matched with the value range of the pre-bound destination port, and the destination interface requested by the mobile terminal is matched with the value range of the pre-bound destination interface.
9. The Mock testing device for mobile-end applications according to claim 8, wherein the interrupt module is specifically configured to:
and intercepting the request of the mobile terminal when the three-dimensional monitoring finds that the destination address of the request of the mobile terminal is matched with the fixed value of the pre-bound destination address, the destination port of the request of the mobile terminal is matched with the fixed value of the pre-bound destination port, and the keyword of the destination interface of the request of the mobile terminal is matched with the keyword of the pre-bound destination interface.
10. The Mock testing device for mobile end applications according to claim 7, further comprising:
and the long connection module is used for keeping the long connection with the application front end of the mobile terminal when the mobile terminal request is intercepted until the recombination of the mobile terminal request is completed, and establishing the long connection with the application background of the mobile terminal.
11. The Mock testing device for mobile-end applications according to claim 7, wherein the parsing module is specifically configured to:
carrying out protocol analysis on the mobile terminal request according to the request type, and determining the protocol type;
and determining the changeable content in the mobile terminal request according to the protocol type.
12. The Mock testing device for mobile-end applications according to claim 7, wherein the forwarding module is specifically configured to:
and forwarding the recombined mobile terminal request to a destination address of the mobile terminal request before recombination.
13. Computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the Mock test method for mobile end applications according to any of claims 1 to 6 when executing the computer program.
14. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the Mock testing method for a mobile-end application according to any one of claims 1 to 6.
CN202111181105.8A 2021-10-11 2021-10-11 Mock testing method and device for mobile terminal application Pending CN113821445A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111181105.8A CN113821445A (en) 2021-10-11 2021-10-11 Mock testing method and device for mobile terminal application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111181105.8A CN113821445A (en) 2021-10-11 2021-10-11 Mock testing method and device for mobile terminal application

Publications (1)

Publication Number Publication Date
CN113821445A true CN113821445A (en) 2021-12-21

Family

ID=78916400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111181105.8A Pending CN113821445A (en) 2021-10-11 2021-10-11 Mock testing method and device for mobile terminal application

Country Status (1)

Country Link
CN (1) CN113821445A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140101284A1 (en) * 2012-08-31 2014-04-10 M/s MobileMotion Technologies Private Limited System and method for customization of web content
CN104253718A (en) * 2013-06-29 2014-12-31 北京新媒传信科技有限公司 Network test method and device
CN108733554A (en) * 2017-04-21 2018-11-02 北京京东尚科信息技术有限公司 Mock method and apparatus
CN113179317A (en) * 2021-04-27 2021-07-27 杭州迪普科技股份有限公司 Test system and method for content rewriting device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140101284A1 (en) * 2012-08-31 2014-04-10 M/s MobileMotion Technologies Private Limited System and method for customization of web content
CN104253718A (en) * 2013-06-29 2014-12-31 北京新媒传信科技有限公司 Network test method and device
CN108733554A (en) * 2017-04-21 2018-11-02 北京京东尚科信息技术有限公司 Mock method and apparatus
CN113179317A (en) * 2021-04-27 2021-07-27 杭州迪普科技股份有限公司 Test system and method for content rewriting device

Similar Documents

Publication Publication Date Title
CN110351156B (en) Test method and device
US9455873B2 (en) End-to-end analysis of transactions in networks with traffic-altering devices
WO2021164261A1 (en) Method for testing cloud network device, and storage medium and computer device
US7523198B2 (en) Integrated testing approach for publish/subscribe network systems
US7743160B2 (en) System and method of delaying connection acceptance to support connection request processing at layer-7
US8200742B2 (en) Apparatus, system, and method for facilitating data flow between a first application programming interface and a second application programming interface
US9934135B2 (en) Generic test automation for application programming interface applications
US20070198688A1 (en) Web Server Hit Multiplier and Redirector
KR20090030451A (en) Apparatus and method for telecommunication interface beteween application program on virtual machine using sharing memory
WO2019179019A1 (en) Automated testing method and apparatus, and computer device and storage medium
CN110519127B (en) Network delay detection method, device and storage medium
CN115150377B (en) Simulation interface calling and processing method and device
CN114828140B (en) Service flow message forwarding method and device, storage medium and electronic equipment
CN110413329A (en) IOT equipment remote debugging method, apparatus and system
US20010011215A1 (en) Network device simulation system and method
CN114466047B (en) Method, platform, equipment and medium for conveniently accessing Internet of things equipment to Internet of things platform
CN115297164A (en) Network proxy method, device, electronic equipment and computer readable storage medium
US8572245B1 (en) Using the TCP window size for identifying packets and debugging
KR20040074922A (en) Software development environment
CN112181681A (en) Remote calling method and device, computer equipment and storage medium
CN113821445A (en) Mock testing method and device for mobile terminal application
CN113765867A (en) Data transmission method, device, equipment and storage medium
US20230066835A1 (en) Methods, systems and computer readable media for improving remote direct memory access performance
CN110609866B (en) Method, apparatus and computer program product for negotiating transactions
CN113626295B (en) Method and system for processing pressure measurement data and computer readable storage medium

Legal Events

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