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

Method and device for testing application

An application program and a technology to be tested are applied in software testing/debugging, error detection/correction, instruments, etc., which can solve problems such as low efficiency of testing application programs, and achieve the effect of improving test efficiency and practicality

Active Publication Date: 2016-12-14
HUAWEI TECH CO LTD
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] It can be seen from the above that in the prior art, whenever a newly developed APP is tested, different application scenarios of the APP need to be manually set, and then the APP is tested in different application scenarios, for example, manual setting The low-speed application scenario of the APP to be tested, and the APP is tested, and then the high-speed application scenario of the APP to be tested is manually set, and the APP is tested, etc., so that the efficiency of the test application is low

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
  • Method and device for testing application
  • Method and device for testing application
  • Method and device for testing application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0084]The invention provides a method for testing an application program. The application scenario of the method is: a developer develops an APP (Application, application program), in order to ensure that the APP can operate normally in various application scenarios, such as low-speed mobile applications Scenarios and high-speed mobile application scenarios, etc., the APP needs to be tested in different application scenarios.

[0085] In the embodiment of the present invention, before the APP to be tested is tested, the APP to be tested needs to be installed in the first terminal in advance; the first terminal can be a computer used for testing, that is, a test computer, and the operation of the test computer The system is usually XP or Windows. Since in practical applications, the APP to be tested is generally used in devices such as smart phones, portable computers or wearable smart devices, and the operating systems of the above-mentioned devices are generally Android opera...

Embodiment 2

[0099] The present invention also provides a method for obtaining the corresponding relationship between the application scene and the sensor parameters in Embodiment 1, specifically as follows:

[0100] First, manually set the second terminal in an application scenario, and then collect sensor parameters of all sensors in the second terminal to form sensor parameters corresponding to the application scenario; for example, manually set the second terminal in a running application scenario, that is, manually carry The second terminal runs, and then collects sensor parameters of all sensors in the second terminal at this time;

[0101] Specifically, in practical applications, various sensors will be installed in the second terminal, and each sensor will generate sensor parameters in real time; in the embodiment of the present invention, the operating system of the second terminal at least provides drivers, hardware For the interface unit and the sensor service unit, in the Andro...

Embodiment 3

[0111] From the discussion of Embodiment 2, it can be seen that in the corresponding relationship between the application scenario and the sensor parameters, the sensor parameters can be the original sensor parameters directly generated by the sensor, or the sensor parameters that can be used by the converted APP; therefore, In the embodiment of the present invention, when the sensor parameter found by the first terminal is the original sensor parameter directly generated by the sensor, as in image 3 As shown, step S14 in the first embodiment above: the first terminal tests the application program to be tested based on the found sensor parameters, and uses the test result as the application program to be tested in the determined application scenario. The test results can be specified as:

[0112] Step S31: the first terminal converts the found original sensor parameters into sensor parameters available to the application program;

[0113]Step S32: the first terminal transmit...

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 discloses a method and device for testing an application. The method comprises the steps that a first terminal receives an application scenario selection instruction, wherein the application to be tested is installed in the first terminal; the first terminal determines an application scenario used for testing the application to be tested according to the application scenario selection instruction; the first terminal looks for a sensor parameter corresponding to the determined application scenario from a corresponding relation between preset application scenarios and sensor parameters; the first terminal tests the application to be tested based on the sensor parameter and takes a testing result as a testing result of the application to be tested under a specific application scenario. By the adoption of the method and device, application testing efficiency can be improved.

Description

technical field [0001] The invention relates to the technical field of automated testing, in particular to a method and device for testing application programs. Background technique [0002] With the popularity of smart terminals, smart terminal APPs (Applications, application programs) are also developing rapidly. Usually, most APPs need to collect data from the sensors of smart terminals first, and then analyze and process the collected data to realize corresponding functions; It is necessary to first collect the acceleration of the user on the X-axis, Y-axis and Z-axis from the three-axis acceleration sensor of the smart terminal, and then determine whether the user is walking based on the acceleration of the user on different axes, and finally count the number of the user's walking, which is displayed in In the display interface of the smart terminal. [0003] Because the operation of the above-mentioned APP not only needs to rely on sensors to collect data, but also n...

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/3668
Inventor 董文平
Owner HUAWEI TECH 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