CN108363662A - A kind of applied program testing method, storage medium and terminal device - Google Patents
A kind of applied program testing method, storage medium and terminal device Download PDFInfo
- Publication number
- CN108363662A CN108363662A CN201810083377.6A CN201810083377A CN108363662A CN 108363662 A CN108363662 A CN 108363662A CN 201810083377 A CN201810083377 A CN 201810083377A CN 108363662 A CN108363662 A CN 108363662A
- Authority
- CN
- China
- Prior art keywords
- application program
- data packet
- proxy server
- data
- server
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (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 belongs to a kind of field of computer technology more particularly to applied program testing method, storage medium and terminal devices.The method detects whether application program to be tested in target terminal is configured with preset proxy server;It is that the application program configures the proxy server by preset tool of acting on behalf of if the proxy server is not configured in the application program;The data packet of the application program transmitting-receiving is captured by the proxy server;The data packet is parsed, parsing data are obtained;If the parsing data are not inconsistent with anticipatory data, judge that exception, the data that the anticipatory data should be received and dispatched in normal state for the application program occurs in the application program.I.e. by for application program Configuration Agent server, it realizes that crawl, parsing and test result to application program transceiving data packet judge that entire test process is automatically finished, reduces the artificial process for carrying out equipment entity connection, easy to operate, testing efficiency greatly promotes.
Description
Technical field
The invention belongs to a kind of field of computer technology more particularly to applied program testing method, storage medium and terminals
Equipment.
Background technology
With the continuous development of development of Mobile Internet technology, various application programs (APP) be installed in mobile phone or
It is used on the mobile terminals such as tablet computer, but during the use of application program, often due to the defect in some designs
Operation is caused to occur abnormal.Developer can complete exploitation, debugging and the test of mobile applications on special purpose computer
Flow, but once application program is installed in the mobile devices such as the mobile phone of ordinary user, it is difficult investigation to go wrong.Existing side
Case is usually usually that mobile phone driving is installed on special purpose computer, is established and is connected by USB interface and mobile phone, then can just be gone pair
Application program is tested, and operation extremely very complicated, testing efficiency is low.
Invention content
In view of this, an embodiment of the present invention provides a kind of applied program testing method, storage medium and terminal device, with
Solution tests application program by special purpose computer, operation extremely very complicated, the low problem of testing efficiency.
The first aspect of the embodiment of the present invention provides a kind of applied program testing method, may include:
Whether detection application program to be tested in target terminal is configured with preset proxy server;
It is the application program by preset tool of acting on behalf of if the proxy server is not configured in the application program
Configure the proxy server;
The data packet of the application program transmitting-receiving is captured by the proxy server;
The data packet is parsed, parsing data are obtained;
If the parsing data are not inconsistent with anticipatory data, judge that exception, the anticipatory data occurs in the application program
The data that should be received and dispatched in normal state for the application program.
The second aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer-readable instruction, the computer-readable instruction to realize following steps when being executed by processor:
Whether detection application program to be tested in target terminal is configured with preset proxy server;
It is the application program by preset tool of acting on behalf of if the proxy server is not configured in the application program
Configure the proxy server;
The data packet of the application program transmitting-receiving is captured by the proxy server;
The data packet is parsed, parsing data are obtained;
If the parsing data are not inconsistent with anticipatory data, judge that exception, the anticipatory data occurs in the application program
The data that should be received and dispatched in normal state for the application program.
The third aspect of the embodiment of the present invention provides a kind of Application testing terminal device, including memory, processing
Device and it is stored in the computer-readable instruction that can be run in the memory and on the processor, the processor executes
Following steps are realized when the computer-readable instruction:
Whether detection application program to be tested in target terminal is configured with preset proxy server;
It is the application program by preset tool of acting on behalf of if the proxy server is not configured in the application program
Configure the proxy server;
The data packet of the application program transmitting-receiving is captured by the proxy server;
The data packet is parsed, parsing data are obtained;
If the parsing data are not inconsistent with anticipatory data, judge that exception, the anticipatory data occurs in the application program
The data that should be received and dispatched in normal state for the application program.
Existing advantageous effect is the embodiment of the present invention compared with prior art:The embodiment of the present invention is detected in target terminal
In application program to be tested whether be configured with preset proxy server;If the agency service is not configured in the application program
Device is then that the application program configures the proxy server by preset tool of acting on behalf of;It is grabbed by the proxy server
Take the data packet of the application program transmitting-receiving;The data packet is parsed, parsing data are obtained;If the parsing data with
Anticipatory data is not inconsistent, then it is abnormal to judge that the application program occurs, the anticipatory data is the application program in normal condition
The lower data that should be received and dispatched.I.e. by for application program Configuration Agent server, realizing to the application program transceiving data packet
Crawl, parsing and test result judgement, entire test process is automatically finished, and reduces and artificial carries out equipment entity connection
Process, easy to operate, testing efficiency greatly promotes.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description be only the present invention some
Embodiment for those of ordinary skill in the art without having to pay creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of one embodiment flow chart of applied program testing method in the embodiment of the present invention;
Fig. 2 is by acting on behalf of the schematic flow diagram that tool is application program Configuration Agent server;
Fig. 3 is the schematic diagram that original server is connected and connected with the server postponed;
Fig. 4 is a kind of one embodiment structure chart of Application testing device in the embodiment of the present invention;
Fig. 5 is a kind of schematic block diagram of Application testing terminal device in the embodiment of the present invention.
Specific implementation mode
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below
Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field
All other embodiment that those of ordinary skill is obtained without making creative work, belongs to protection of the present invention
Range.
Referring to Fig. 1, a kind of one embodiment of applied program testing method may include in the embodiment of the present invention:
Step S101, detect whether application program to be tested in target terminal is configured with preset proxy server.
The proxy server is the server between application program and background server, and application program carries out network
When access, platform server does not send access request not instead of immediately rearward, sends access request to proxy server, is taken by agency
Business device fetches the data needed for application program from background server and sends application program to, to which proxy server can supervise
Survey the communication data of application program and background server.
Firstly, it is necessary to get system permission.In the present embodiment, the system permission may include root authority.It obtains
The method for taking system permission can be specifically:A process is created, input order " su r ", system may require that input password, then
Password default " alpine r " input can be obtained into root authority.
Then, judge whether system permission obtains success.For root authority, this kind of system permission, judges system permission
Whether obtaining successful method can be specifically:After input default password " alpine r ", if the character that system returns carries
Be " # " mark, then it represents that obtain system permission success, otherwise, if for example, system return character carry be " $ " mark,
It then indicates to obtain system permission failure.If system permission obtains failure, system prompt user reacquires system permission, example
Such as, input frame is popped up, user is prompted to input the customized password for obtaining root authority.
Finally, after system permission obtains successfully, its complete configuration is read from the system file of the application program
Information, and search whether it is configured with the proxy server wherein.If the agency service is not configured in the application program
Device thens follow the steps S102 and its subsequent step, if the configured proxy server of the application program, thens follow the steps
S103 and its subsequent step.
Step S102, it is that the application program configures the proxy server by preset tool of acting on behalf of.
After judging that the proxy server is not configured in the application program, it can be downloaded automatically from specified network address
It is described to act on behalf of tool.
Specifically, step S102 may include process as shown in Figure 2:
Step S1021, IP address and the port of the proxy server are obtained.
Step S1022, IP address and the port of the default server that the application program is currently configured are obtained.
Step S1023, the connection between the application program and the default server is disconnected.
Step S1024, the IP address of the proxy server and port are allocated to the application program, are answered described in foundation
With the connection between program and the proxy server.
Step S1025, the IP address of the default server and port are allocated to the proxy server, described in foundation
Connection between default server and the proxy server.
For example, can prestore the IP address of the proxy server in tool in described act on behalf of and be
116.7.66.129, port 8888, and its acquiescence clothes being currently configured is read from the configuration information of the application program
The IP address of business device is 127.0.0.1, port 8787.Then first by the server ip in the configuration information of the application program
Address is changed to 116.7.66.129 from 127.0.0.1, and port is changed to 8888 from 8787, shown in Fig. 3 original to disconnect
Server connects namely the connection between the application program and the default server, and establishes the application program and institute
State the connection between proxy server.Then the IP address 127.0.0.1 of the default server and port 8787 are allocated to
The proxy server, to establish the connection between the default server and the proxy server.At this point, such as Fig. 3 institutes
That shows connects with the server postponed, and the application program needs by the proxy server, the generation access of network
Reason server can monitor the communication data between the application program and the default server.
Step S103, the data packet of the application program transmitting-receiving is captured by the proxy server.
On the one hand, the application program can be captured by the proxy server and is sent to the upper of the default server
Row data packet;On the other hand, the default server can be captured by the proxy server and feeds back to the application program
Downlink data packet.
By taking http protocol as an example, the application program can be the mobile applications arbitrarily based on http communication agreement,
For example, the mobile applications such as Netease's news, microblogging.It, may when user runs these mobile applications on the mobile apparatus
It will appear the situation of web displaying exception, for example, when user is by Netease's news Client browse news, some news page occur
Face display is abnormal, and e.g., news content is shown not exclusively, needs to debug the mobile applications at this time, for example, modification should
The format of the abnormal page is shown in mobile applications.The HTTP request of mobile applications to be debugged is i.e. in user by waiting for
When debugging mobile applications access some webpage, the access request that mobile applications to be debugged are sent to proxy server,
For example, after the link of some news of user's webpage clicking news client, sends ask to proxy server first, HTTP is asked
The agreement for needing the uniform resource locator of the resource accessed and using is contained in asking.The proxy server is monitored
HTTP data packets, the local storage region of storage HTTP data packets to proxy server and the specific URL of filtering simultaneously carry out HTTP
Wrap the function of replacing, wherein HTTP data packets refer to the data packet communicated based on HTTP, for example, browser is to HTTP generations
Reason server sends access request and proxy server obtains data from background server by the access request and returns
To browser, HTTP data packets include all data of the communication process.
It is possible to further be carried out to the upstream data packet and the downlink data packet according to preset filter condition
Filter, obtains filtered data packet.
Specifically, the filtering may include capture filtering and display filtering.Wherein, capture filtering is referred in packet capturing
Filter condition is just set before, then only captures qualified data packet, and is shown filtering and referred in the number captured
Filter condition is set in gathering according to packet, hides the data packet for being not desired to display, only shows qualified data packet.Both be i.e.
The different packet capturing stages are filtered, and capture filtering is to be used to capture these data packets to save those before packet capturing
Processor resource, the process performance that can avoid processor when handling mass data is insufficient and occurs abnormal.It is right therewith
It answers, display filtering carries out after packet capturing.Capture filtering can be used for controlling the quantity of crawl data, can be according to preset
Condition, such as:Protocol type, IP address and port numbers, capture data packet.Display filtering, is in the data captured
According to preset screening conditions in packet kind, such as:Protocol type, IP address and port numbers, screen data packet, with rapid
Correctly find required data packet.
Step S104, the data packet is parsed, obtains parsing data.
Determine that the protocol type of the data packet, protocol type can specifically include transport layer protocol type and application layer association
Discuss type.Wherein, transport layer protocol may include TCP/IP (Transmission Control Protocol/Internet
Protocol, transmission control protocol/Internet Protocol) and UDP (User Datagram Protocol, user datagram
Agreement);Application layer protocol may include HTTP (Hyper Text Transfer Protocol, hypertext transfer protocol),
SMTP (Simple Mail Transfer Protocol, Simple Mail Transfer protocol), POP3 (Post Office
Protocol-Version 3, Post Office Protocol,Version 3), FTP (File Transfer Protocol, File Transfer Protocol).
By the data packet group of same protocol type at a sequence of data packet, searched comprising pre- in the sequence of data packet
If file origin identification head data packet and include the preset end of file mark tail data packet, then according to the head number
Each readable documents are extracted from the sequence of data packet according to packet and the tail data packet, finally the readable documents are solved
Analysis, obtains the parsing data.
The readable documents are by the content in the head data packet, the tail data packet and data packet between the two
It constitutes.If there are multiple file origin identifications and end of file marks corresponding with this document origin identification in sequence of data packet
Know, then extract the file content between each file origin identification and end of file mark successively and save as readable documents, finally obtains
Obtain multiple readable documents and parsing data.
Step S105, judge whether the parsing data are consistent with anticipatory data.
The data that the anticipatory data should be received and dispatched in normal state for the application program, the anticipatory data can be with
It is that tester is preprepared according to the project of current desired test, according to the difference of test event, the anticipatory data
Also corresponding adjustment should be made.
If the parsing data are consistent with the anticipatory data, then follow the steps S106, if the parsing data with it is described
Anticipatory data is not inconsistent, and thens follow the steps S107.
Step S106, judge the application program normal operation.
The parsing data are consistent with the anticipatory data, then illustrate application program normal operation, can terminate at this time pair
The test of the application program.
Step S107, judge that exception occurs in the application program.
Preferably, after step S107, further the abnormal cause of application program can also be tested, specifically
Ground stores preset test data bag in the proxy server, when grabbed by the proxy server meet it is default
It is required that specified data packet when, the specified data packet is replaced with into the test data bag, if the application recovery is just
Often, then the abnormal cause of the application program is determined according to the test data bag.
For example, some page display of certain news application is abnormal, the analysis found that may be the version due to this page
Formula is incompatible caused by the data that WEB server obtains, at this point it is possible to which the format for the webpage is modified, modification
Data afterwards are stored as replacing http response packet namely the test data bag.Do not change the code of application program directly,
But new data packet is write, it is changed accordingly in the new data packet, and the new data packet is stored in agency
Test data bag is sent to and answers when next application program sends out same access request by the local storage region of server
It is shown with program, if shown normally on mobile applications to be debugged, illustrates to debug successfully, at this point it is possible to according to
The modification logic of test data bag changes the code of application program, if being shown in application program still abnormal, opens at this time
Hair personnel need again repeat aforesaid operations debug, until return test data bag shown in application program normally,
Complete debugging.
In conclusion the embodiment of the present invention detect application program to be tested in target terminal whether be configured with it is preset
Proxy server;It is the application by preset tool of acting on behalf of if the proxy server is not configured in the application program
Program configures the proxy server;The data packet of the application program transmitting-receiving is captured by the proxy server;To described
Data packet is parsed, and parsing data are obtained;If the parsing data are not inconsistent with anticipatory data, judge that the application program goes out
It is now abnormal, the data that the anticipatory data should be received and dispatched in normal state for the application program.I.e. by for application program
Configuration Agent server realizes that the crawl, parsing and test result to the application program transceiving data packet judge, entire to test
Process is automatically finished, and reduces the artificial process for carrying out equipment entity connection, easy to operate, testing efficiency greatly promotes.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Corresponding to a kind of applied program testing method described in foregoing embodiments, Fig. 4 shows that the embodiment of the present invention provides
A kind of Application testing device one embodiment structure chart.
In the present embodiment, a kind of Application testing device may include:
Server detection module 401, for detect application program to be tested in target terminal whether be configured with it is default
Proxy server;
Server configuration module 402, if the proxy server is not configured for the application program, by preset
It is that the application program configures the proxy server to act on behalf of tool;
Data packet handling module 403, the data packet for capturing the application program transmitting-receiving by the proxy server;
Resolve packet module 404 obtains parsing data for being parsed to the data packet;
Abnormal determination module 405 judges that the application program goes out if not being inconsistent with anticipatory data for the parsing data
It is now abnormal, the data that the anticipatory data should be received and dispatched in normal state for the application program.
Further, the server configuration module may include:
Proxy server information acquiring unit, the IP address for obtaining the proxy server and port;
Default server information acquisition unit, the IP of the default server for obtaining the application program current-configuration
Location and port;
Default server connects switching units, for disconnecting the company between the application program and the default server
It connects;
Proxy server connection establishment unit, for the IP address of the proxy server and port to be allocated to described answer
With program, the connection between the application program and the proxy server is established;
Default server connection establishment unit, for the IP address of the default server and port to be allocated to the generation
Server is managed, the connection between the default server and the proxy server is established.
Further, the data packet handling module may include:
Upstream data packet placement unit is sent to described write from memory for capturing the application program by the proxy server
Recognize the upstream data packet of server;
Downlink data packet placement unit, for pass through the proxy server capture the default server feed back to it is described
The downlink data packet of application program;
Data filtering units, for according to preset filter condition to the upstream data packet and the downlink data packet into
Row filtering, obtains filtered data packet.
Further, the resolve packet module may include:
Protocol type determination unit, the protocol type for determining the data packet;
Sequence of data packet assembled unit is used for the data packet group of same protocol type into a sequence of data packet;
Data packet searching unit end to end, for being searched comprising preset file origin identification in the sequence of data packet
Head data packet and the tail data packet for including preset end of file mark;
Readable documents extraction unit, for being carried from the sequence of data packet according to the head data packet and the tail data packet
Take out each readable documents, the readable documents are by the head data packet, the tail data packet and data packet between the two
In Composition of contents;
The readable documents are parsed, the parsing data are obtained.
Further, the applied program testing method can also include:
Test data bag memory module, for storing preset test data bag in the proxy server;
Test data bag replacement module grabs the specified number for meeting preset requirement by the proxy server for working as
When according to packet, the specified data packet is replaced with into the test data bag;
Abnormal cause determining module determines if normal for the application recovery according to the test data bag
The abnormal cause of the application program.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description,
The specific work process of module and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Fig. 5 shows a kind of schematic block diagram of Application testing terminal device provided in an embodiment of the present invention, in order to just
In explanation, illustrate only and the relevant part of the embodiment of the present invention.
In the present embodiment, the Application testing terminal device 5 can be mobile phone, tablet computer, smartwatch etc.
Computing device.The Application testing terminal device 5 may include:Processor 50, memory 51 and it is stored in the memory
In 51 and the computer-readable instruction 52 that can be run on the processor 50, such as execute above-mentioned applied program testing method
Computer-readable instruction.The processor 50 realizes that above-mentioned each application program is surveyed when executing the computer-readable instruction 52
Step in method for testing embodiment, such as step S101 to S107 shown in FIG. 1.Alternatively, the processor 50 executes the meter
Realize the function of each module/unit in above-mentioned each device embodiment when calculation machine readable instruction 52, for example, module 401 shown in Fig. 4 to
405 function.
Illustratively, the computer-readable instruction 52 can be divided into one or more module/units, one
Or multiple module/units are stored in the memory 51, and executed by the processor 50, to complete the present invention.Institute
It can be the series of computation machine readable instruction section that can complete specific function, the instruction segment to state one or more module/units
For describing implementation procedure of the computer-readable instruction 52 in the Application testing terminal device 5.
The processor 50 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng.
The memory 51 can be the internal storage unit of the Application testing terminal device 5, such as using journey
Sequence tests the hard disk or memory of terminal device 5.The memory 51 can also be the outer of the Application testing terminal device 5
The plug-in type hard disk being equipped in portion's storage device, such as the Application testing terminal device 5, intelligent memory card (Smart
Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further,
The memory 51 can also both include the Application testing terminal device 5 internal storage unit and also including external storage
Equipment.The memory 51 is for storing needed for the computer-readable instruction and the Application testing terminal device 5
Other instruction and datas.The memory 51 can be also used for temporarily storing the data that has exported or will export.
Each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also be each
Unit physically exists alone, can also be during two or more units are integrated in one unit.Above-mentioned integrated unit both may be used
It realizes, can also be realized in the form of SFU software functional unit in the form of using hardware.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
Embody, which is stored in a storage medium, including several computer-readable instructions use so that
One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the present invention
State all or part of step of method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-
Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with
Store the medium of computer-readable instruction.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality
Applying example, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each
Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed
Or it replaces, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of applied program testing method, which is characterized in that including:
Whether detection application program to be tested in target terminal is configured with preset proxy server;
If the proxy server is not configured in the application program, configured for the application program by preset tool of acting on behalf of
The proxy server;
The data packet of the application program transmitting-receiving is captured by the proxy server;
The data packet is parsed, parsing data are obtained;
If the parsing data are not inconsistent with anticipatory data, it is abnormal to judge that the application program occurs, the anticipatory data is institute
State the data that application program should receive and dispatch in normal state.
2. applied program testing method according to claim 1, which is characterized in that described to be by preset tool of acting on behalf of
The application program configures the proxy server:
Obtain IP address and the port of the proxy server;
Obtain IP address and the port of the default server that the application program is currently configured;
Disconnect the connection between the application program and the default server;
The IP address of the proxy server and port are allocated to the application program, establish the application program and the generation
Manage the connection between server;
The IP address of the default server and port are allocated to the proxy server, establish the default server and institute
State the connection between proxy server.
3. applied program testing method according to claim 2, which is characterized in that described to be grabbed by the proxy server
The data packet of application program transmitting-receiving is taken to include:
The upstream data packet that the application program is sent to the default server is captured by the proxy server;
The downlink data packet that the default server feeds back to the application program is captured by the proxy server;
The upstream data packet and the downlink data packet are filtered according to preset filter condition, obtain filtered number
According to packet.
4. applied program testing method according to claim 1, which is characterized in that described to be solved to the data packet
Analysis, obtaining parsing data includes:
Determine the protocol type of the data packet;
By the data packet group of same protocol type at a sequence of data packet;
The head data packet comprising preset file origin identification is searched in the sequence of data packet and includes preset file knot
The tail data packet of beam identification;
Each readable documents are extracted from the sequence of data packet according to the head data packet and the tail data packet, it is described readable
File is by the Composition of contents in the head data packet, the tail data packet and data packet between the two;
The readable documents are parsed, the parsing data are obtained.
5. applied program testing method according to any one of claim 1 to 4, which is characterized in that answered described in judgement
After there is exception with program, further include:
Preset test data bag is stored in the proxy server;
When grabbing the specified data packet for meeting preset requirement by the proxy server, the specified data packet is replaced
For the test data bag;
If the application recovery is normal, the abnormal cause of the application program is determined according to the test data bag.
6. a kind of computer readable storage medium, the computer-readable recording medium storage has computer-readable instruction, special
Sign is, the application journey as described in any one of claim 1 to 5 is realized when the computer-readable instruction is executed by processor
The step of sequence test method.
7. a kind of Application testing terminal device, including memory, processor and it is stored in the memory and can be
The computer-readable instruction run on the processor, which is characterized in that the processor executes the computer-readable instruction
Shi Shixian following steps:
Whether detection application program to be tested in target terminal is configured with preset proxy server;
If the proxy server is not configured in the application program, configured for the application program by preset tool of acting on behalf of
The proxy server;
The data packet of the application program transmitting-receiving is captured by the proxy server;
The data packet is parsed, parsing data are obtained;
If the parsing data are not inconsistent with anticipatory data, it is abnormal to judge that the application program occurs, the anticipatory data is institute
State the data that application program should receive and dispatch in normal state.
8. Application testing terminal device according to claim 7, which is characterized in that described to act on behalf of work by preset
Tool is that the application program configuration proxy server includes:
Obtain IP address and the port of the proxy server;
Obtain IP address and the port of the default server that the application program is currently configured;
Disconnect the connection between the application program and the default server;
The IP address of the proxy server and port are allocated to the application program, establish the application program and the generation
Manage the connection between server;
The IP address of the default server and port are allocated to the proxy server, establish the default server and institute
State the connection between proxy server.
9. Application testing terminal device according to claim 8, which is characterized in that described to pass through the agency service
Device captures the data packet that the application program is received and dispatched:
The upstream data packet that the application program is sent to the default server is captured by the proxy server;
The downlink data packet that the default server feeds back to the application program is captured by the proxy server;
The upstream data packet and the downlink data packet are filtered according to preset filter condition, obtain filtered number
According to packet.
10. the Application testing terminal device according to any one of claim 7 to 9, which is characterized in that in judgement institute
It states after exception occurs in application program, further includes:
Preset test data bag is stored in the proxy server;
When grabbing the specified data packet for meeting preset requirement by the proxy server, the specified data packet is replaced
For the test data bag;
If the application recovery is normal, the abnormal cause of the application program is determined according to the test data bag.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810083377.6A CN108363662A (en) | 2018-01-29 | 2018-01-29 | A kind of applied program testing method, storage medium and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810083377.6A CN108363662A (en) | 2018-01-29 | 2018-01-29 | A kind of applied program testing method, storage medium and terminal device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108363662A true CN108363662A (en) | 2018-08-03 |
Family
ID=63007424
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810083377.6A Pending CN108363662A (en) | 2018-01-29 | 2018-01-29 | A kind of applied program testing method, storage medium and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108363662A (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109474603A (en) * | 2018-11-27 | 2019-03-15 | 平安科技(深圳)有限公司 | Data packet capturing processing method and terminal device |
CN109542758A (en) * | 2018-09-29 | 2019-03-29 | 中国平安人寿保险股份有限公司 | Application program fault-tolerant ability test method, device, computer readable storage medium |
CN109684192A (en) * | 2018-08-21 | 2019-04-26 | 平安普惠企业管理有限公司 | Local test method, equipment, storage medium and device based on data processing |
CN110032508A (en) * | 2019-03-04 | 2019-07-19 | 百富计算机技术(深圳)有限公司 | Function driver test method, terminal device and storage medium |
CN110099275A (en) * | 2019-05-20 | 2019-08-06 | 广州视琨电子科技有限公司 | Application testing method, device, equipment and storage medium |
CN110662244A (en) * | 2019-10-08 | 2020-01-07 | 北京城市网邻信息技术有限公司 | Data packet display method and mobile terminal |
CN110740131A (en) * | 2019-09-30 | 2020-01-31 | 北京达佳互联信息技术有限公司 | Data processing method and device, electronic equipment and storage medium |
CN110808868A (en) * | 2019-09-12 | 2020-02-18 | 中国平安财产保险股份有限公司 | Test data acquisition method and device, computer equipment and storage medium |
CN110825985A (en) * | 2018-08-06 | 2020-02-21 | 阿里巴巴集团控股有限公司 | Data acquisition system, method and device, control equipment and proxy equipment |
CN111104577A (en) * | 2019-10-31 | 2020-05-05 | 北京金堤科技有限公司 | Data processing method and device, computer readable storage medium and electronic equipment |
CN111224832A (en) * | 2018-11-26 | 2020-06-02 | 阿里巴巴集团控股有限公司 | Method, control equipment, proxy server and system for capturing network data |
CN111506492A (en) * | 2019-01-31 | 2020-08-07 | 百度在线网络技术(北京)有限公司 | Application program testing method and device, equipment and storage medium |
CN112433938A (en) * | 2020-11-18 | 2021-03-02 | 京东数科海益信息科技有限公司 | Method and device for testing application of mobile terminal |
CN112468355A (en) * | 2019-09-09 | 2021-03-09 | 北京奇虎科技有限公司 | IOT equipment management application testing method and device, electronic equipment and storage medium |
CN112631934A (en) * | 2020-12-30 | 2021-04-09 | 上海高顿教育科技有限公司 | Method and device for testing software online problems |
CN114650168A (en) * | 2022-02-14 | 2022-06-21 | 麒麟软件有限公司 | Application program security testing method |
WO2023116508A1 (en) * | 2021-12-24 | 2023-06-29 | 北京字节跳动网络技术有限公司 | Data acquisition method and apparatus, and device and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150026665A1 (en) * | 2013-07-17 | 2015-01-22 | Ebay Inc. | Automated test on applications or websites in mobile devices |
CN104486333A (en) * | 2014-12-11 | 2015-04-01 | 北京国双科技有限公司 | Debug method and debug device for mobile application programs |
CN104965784A (en) * | 2015-06-16 | 2015-10-07 | 广州华多网络科技有限公司 | Automatic test method and apparatus |
CN105656727A (en) * | 2016-02-24 | 2016-06-08 | 北京奇虎科技有限公司 | Method and device achieving application testing on mobile terminal |
CN106569950A (en) * | 2016-11-03 | 2017-04-19 | 瑞斯康达科技发展股份有限公司 | Network management software testing system and network management software testing method |
US20180024918A1 (en) * | 2016-07-25 | 2018-01-25 | Oracle International Corporation | Determining a test confidence metric for a testing application |
-
2018
- 2018-01-29 CN CN201810083377.6A patent/CN108363662A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150026665A1 (en) * | 2013-07-17 | 2015-01-22 | Ebay Inc. | Automated test on applications or websites in mobile devices |
CN104486333A (en) * | 2014-12-11 | 2015-04-01 | 北京国双科技有限公司 | Debug method and debug device for mobile application programs |
CN104965784A (en) * | 2015-06-16 | 2015-10-07 | 广州华多网络科技有限公司 | Automatic test method and apparatus |
CN105656727A (en) * | 2016-02-24 | 2016-06-08 | 北京奇虎科技有限公司 | Method and device achieving application testing on mobile terminal |
US20180024918A1 (en) * | 2016-07-25 | 2018-01-25 | Oracle International Corporation | Determining a test confidence metric for a testing application |
CN106569950A (en) * | 2016-11-03 | 2017-04-19 | 瑞斯康达科技发展股份有限公司 | Network management software testing system and network management software testing method |
Cited By (26)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110825985B (en) * | 2018-08-06 | 2023-07-07 | 阿里巴巴(北京)软件服务有限公司 | Data acquisition system, method, device, control equipment and proxy equipment |
CN110825985A (en) * | 2018-08-06 | 2020-02-21 | 阿里巴巴集团控股有限公司 | Data acquisition system, method and device, control equipment and proxy equipment |
CN109684192B (en) * | 2018-08-21 | 2024-03-01 | 天航长鹰(江苏)科技有限公司 | Local test method, device, storage medium and apparatus based on data processing |
CN109684192A (en) * | 2018-08-21 | 2019-04-26 | 平安普惠企业管理有限公司 | Local test method, equipment, storage medium and device based on data processing |
CN109542758A (en) * | 2018-09-29 | 2019-03-29 | 中国平安人寿保险股份有限公司 | Application program fault-tolerant ability test method, device, computer readable storage medium |
CN109542758B (en) * | 2018-09-29 | 2023-05-26 | 中国平安人寿保险股份有限公司 | Method and device for testing fault tolerance of application program and computer readable storage medium |
CN111224832B (en) * | 2018-11-26 | 2023-06-16 | 阿里巴巴集团控股有限公司 | Method, control equipment, proxy server and system for capturing network data |
CN111224832A (en) * | 2018-11-26 | 2020-06-02 | 阿里巴巴集团控股有限公司 | Method, control equipment, proxy server and system for capturing network data |
CN109474603A (en) * | 2018-11-27 | 2019-03-15 | 平安科技(深圳)有限公司 | Data packet capturing processing method and terminal device |
CN111506492A (en) * | 2019-01-31 | 2020-08-07 | 百度在线网络技术(北京)有限公司 | Application program testing method and device, equipment and storage medium |
CN110032508A (en) * | 2019-03-04 | 2019-07-19 | 百富计算机技术(深圳)有限公司 | Function driver test method, terminal device and storage medium |
CN110032508B (en) * | 2019-03-04 | 2022-05-27 | 百富计算机技术(深圳)有限公司 | Function driver test method, device, terminal device and storage medium |
CN110099275A (en) * | 2019-05-20 | 2019-08-06 | 广州视琨电子科技有限公司 | Application testing method, device, equipment and storage medium |
CN112468355A (en) * | 2019-09-09 | 2021-03-09 | 北京奇虎科技有限公司 | IOT equipment management application testing method and device, electronic equipment and storage medium |
CN112468355B (en) * | 2019-09-09 | 2024-01-19 | 北京奇虎科技有限公司 | IOT equipment management application testing method and device, electronic equipment and storage medium |
CN110808868B (en) * | 2019-09-12 | 2023-04-07 | 中国平安财产保险股份有限公司 | Test data acquisition method and device, computer equipment and storage medium |
CN110808868A (en) * | 2019-09-12 | 2020-02-18 | 中国平安财产保险股份有限公司 | Test data acquisition method and device, computer equipment and storage medium |
CN110740131A (en) * | 2019-09-30 | 2020-01-31 | 北京达佳互联信息技术有限公司 | Data processing method and device, electronic equipment and storage medium |
CN110662244B (en) * | 2019-10-08 | 2021-04-13 | 北京城市网邻信息技术有限公司 | Data packet display method and device and readable storage medium |
CN110662244A (en) * | 2019-10-08 | 2020-01-07 | 北京城市网邻信息技术有限公司 | Data packet display method and mobile terminal |
CN111104577B (en) * | 2019-10-31 | 2023-11-14 | 北京金堤科技有限公司 | Data processing method, data processing device, computer readable storage medium and electronic equipment |
CN111104577A (en) * | 2019-10-31 | 2020-05-05 | 北京金堤科技有限公司 | Data processing method and device, computer readable storage medium and electronic equipment |
CN112433938A (en) * | 2020-11-18 | 2021-03-02 | 京东数科海益信息科技有限公司 | Method and device for testing application of mobile terminal |
CN112631934A (en) * | 2020-12-30 | 2021-04-09 | 上海高顿教育科技有限公司 | Method and device for testing software online problems |
WO2023116508A1 (en) * | 2021-12-24 | 2023-06-29 | 北京字节跳动网络技术有限公司 | Data acquisition method and apparatus, and device and storage medium |
CN114650168A (en) * | 2022-02-14 | 2022-06-21 | 麒麟软件有限公司 | Application program security testing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108363662A (en) | A kind of applied program testing method, storage medium and terminal device | |
US10452843B2 (en) | Self-adaptive application programming interface level security monitoring | |
CN104348803B (en) | Link kidnaps detection method, device, user equipment, Analysis server and system | |
CN104899016B (en) | Allocating stack Relation acquisition method and device | |
CN105787364B (en) | Automatic testing method, device and system for tasks | |
US10084637B2 (en) | Automatic task tracking | |
US10775751B2 (en) | Automatic generation of regular expression based on log line data | |
EP4196896A1 (en) | Opentelemetry security extensions | |
CN107766509A (en) | A kind of method and apparatus of webpage static backup | |
CN107241229A (en) | A kind of business monitoring method and device based on interface testing instrument | |
CN110362994A (en) | Detection method, equipment and the system of malicious file | |
CN103902534B (en) | A kind of method and apparatus of web page program triggering local operation | |
CN108616389A (en) | Network estimation method, equipment, storage medium based on Cloud Server and device | |
CN117370203B (en) | Automatic test method, system, electronic equipment and storage medium | |
CN111400127A (en) | Service log monitoring method and device, storage medium and computer equipment | |
CN109510738A (en) | A kind of test method and equipment of communication link | |
CN107368399A (en) | Webpage monitoring method and system on a kind of line | |
CN112256557B (en) | Program regression testing method, device, system, computer equipment and storage medium | |
CN109165147A (en) | Log print control program, device, system, back-end server and headend equipment | |
CN105808425A (en) | Method, device and system for realizing application test of mobile terminal | |
CN104734914A (en) | Method, device and system used for monitoring network | |
CN115391127A (en) | Dial testing method and device, storage medium and chip | |
CN107204958A (en) | The detection method and device of web page resources element, terminal device | |
CN112671615A (en) | Method, system and storage medium for collecting operation behavior data of front-end user | |
CN111949516A (en) | Page 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180803 |