Supercharge Your Innovation With Domain-Expert AI Agents!

Automated test state saving method and device of Android platform

A technology of automated testing and state preservation, applied in the field of computer applications, can solve the problems of long time consumption, low efficiency, and difficulty in achieving the high efficiency of automated testing.

Active Publication Date: 2015-04-29
GUANGDONG OPPO MOBILE TELECOMM CORP LTD
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the prior art, automated testing of Android applications is performed by executing scripts. There are mainly two ways to form scripts: one is to hand-write scripts by engineers, which consumes a lot of valuable time of test engineers, It is difficult to achieve the purpose of automated testing efficiency; the other is to record and automatically form scripts, which is also a relatively common method now, but in actual automated testing, when Android test equipment executes recorded scripts for playback testing, due to the Android application under test The relevant initial state of the program is inconsistent, which leads to the failure of the test to proceed smoothly, which seriously affects the efficiency and accuracy of the automated test
For example, the test path in the recording script is: set the Bluetooth switch, click to turn on Bluetooth, and perform a matching test. The initial state of the Bluetooth switch recorded here is off. The action becomes turning off Bluetooth, and subsequent actions cannot be performed normally, resulting in test failure
The current commonly used solution to this problem is to manually restore the corresponding initial state to the recorded initial state before executing the script test. This method is not only inefficient, but also takes a long time, and there will inevitably be omissions, which will lead to the accuracy of the test. performance and stability cannot be guaranteed

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
  • Automated test state saving method and device of Android platform
  • Automated test state saving method and device of Android platform
  • Automated test state saving method and device of Android platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047]The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0048] It should be noted that the terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. As used in the embodiments of the present invention and the appended claims, the singular forms "a", "said" and "the" are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / o...

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

An embodiment of the invention discloses an automated test state saving method and device of an Android platform. The automated test state saving method can comprise starting to record a script when a command that the script is started to be recorded through an Android device is received; obtaining a current foreground running first tested application of the Android device and saving an initialized state file of the first tested application; obtaining and saving an initialized state file of a second tested application when the condition that the current foreground running application of the Android device is skipped to the second tested application is judged out; performing the first skipping and running on the second tested application in the Android device when the recording of the script is started. According to the automated test state saving method and device of the Android platform, the initialized state of the corresponding tested applications during script recording can be restored when the script automation is executed through the Android device and accordingly the problem of the failure of a test on the tested applications in the automated test process due to the inconsistent initialized states during script recording and script execution is solved.

Description

technical field [0001] The invention relates to the field of computer application technology, in particular to a method and device for saving an automated test state on an Android platform. Background technique [0002] In the prior art, automated testing of Android applications is performed by executing scripts. There are mainly two ways to form scripts: one is to hand-write scripts by engineers, which consumes a lot of valuable time of test engineers, It is difficult to achieve the purpose of automated testing efficiency; the other is to record and automatically form scripts, which is also a relatively common method now, but in actual automated testing, when Android test equipment executes recorded scripts for playback testing, due to the Android application under test The relative initial state of the program is inconsistent, which leads to the failure of the test to be carried out smoothly, which seriously affects the efficiency and accuracy of the automated test. For e...

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
Inventor 何晓俊
Owner GUANGDONG OPPO MOBILE TELECOMM CORP LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More