Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Application test method and device, terminal and computer readable storage medium

A technology of application programs and testing methods, applied in the computer field, can solve problems such as inability to effectively simulate abnormal data scenarios

Active Publication Date: 2018-09-21
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD +1
View PDF10 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this method cannot effectively simulate abnormal data scenarios, and the abnormal behavior of other logic caused by modifying the source program must be excluded

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Application test method and device, terminal and computer readable storage medium
  • Application test method and device, terminal and computer readable storage medium
  • Application test method and device, terminal and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] This embodiment provides an application testing method, such as figure 1 and figure 2 As shown, the specific test methods include:

[0049] Step S1: During the running process of the application program to be tested, intercept the test data from the server.

[0050] During the running of the application program to be tested, the application program first sends initial data to the server. For example, when the application program is a payment APP, the initial data sent may include a request to pay ten yuan. The server calculates the initial data to obtain the test data. The test data may include the normal test data that has paid ten yuan. If the server is not complete, the returned test data may be abnormal test data, such as abnormal test data that lacks winning information, etc. . Afterwards, the application program intercepts the test data from the server.

[0051] Step S2: judging whether the intercepted test data meets the scenario test conditions, and if so, ...

Embodiment 2

[0076] In another specific embodiment, an application testing device is provided, such as image 3 shown, including:

[0077] The test data interception module 100 is used for intercepting the test data from the server during the running of the application program to be tested;

[0078] The test data judging module 200 is used to judge whether the intercepted test data meets the scene test condition;

[0079] The simulated data construction module 300 is used to construct simulated test data according to the scene parameters when the application to be tested is used if the intercepted test data meets the scenario test conditions;

[0080] The application program testing module 400 is configured to test the application program to be tested according to the simulated test data.

[0081] Further, in the above device, the test data judging module 200 includes:

[0082] An abnormal data judging unit is used to judge whether the intercepted test data meets the abnormal scene test...

Embodiment 3

[0090] An embodiment of the present invention provides an application program testing terminal, such as Figure 4 shown, including:

[0091] A memory 400 and a processor 500 , the memory 400 stores computer programs that can run on the processor 500 . When the processor 500 executes the computer program, the method for controlling the smart home device by voice in the above-mentioned embodiments is implemented. The number of memory 400 and processor 500 may be one or more.

[0092] The communication interface 600 is used for the memory 400 and the processor 500 to communicate with the outside.

[0093] The memory 400 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory.

[0094] If the memory 400, the processor 500, and the communication interface 600 are implemented independently, the memory 400, the processor 500, and the communication interface 600 may be connected to each other t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides an application testing method. Test data from a server is intercepted during the running of an application to be tested; it is determined whether or not the intercepted test data meets a scenario test condition; if yes, according to scene parameters used for constructing simulation test data when an application is used; the application to be tested is tested according to thesimulation test data; the method does not rely on the server to construct data and complete functions, completes test data construction of the application just by using an existing server environment, just needs to pay attention to a business logic of the application itself, does not need to build a complex server environment, does not need to modify a application business code, does not affect the normal business logic, and completely simulates the actual data interaction between the application with the server. The invention also provides an application testing device, an application testing terminal and a computer readable storage medium.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to an application program testing method, and also relates to an application program testing device, an application program testing terminal and a computer-readable storage medium. Background technique [0002] In daily mobile phone application (Application, App) testing, it is necessary to complete the testing through data interaction with the server. Therefore, App testing needs to rely on the functional integrity of the server, and requires the cooperation of the server to construct various abnormal data. [0003] However, if the server is not complete, waiting for the server to be fully functional, and waiting for the server to cooperate to construct various abnormal data, the waiting time required will be long, which will prolong the project schedule, affect the delivery and iteration speed of the project, and be inefficient. [0004] Possible workarounds that do not...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3688
Inventor 张成
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products