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

Android-platform-based automated testing method and testing tool

An automated testing and platform technology, applied in software testing/debugging, etc., can solve problems such as waste of human and material resources, and achieve the effect of saving human and material resources

Active Publication Date: 2012-04-18
SHENZHEN FALCON NETWORK MEDIA CO LTD
View PDF3 Cites 68 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of the above problems, the purpose of the embodiments of the present invention is to provide an automated testing method based on the android platform, aiming at solving the problem of a large waste of human and material resources caused by the manual step-by-step testing procedures based on the android platform at the present stage

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
  • Android-platform-based automated testing method and testing tool
  • Android-platform-based automated testing method and testing tool
  • Android-platform-based automated testing method and testing tool

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] figure 1 The flow of the automated testing method based on the android platform provided by the first embodiment of the present invention is shown, and the details are as follows:

[0033] In step S1, the tool initialization step is used to obtain the device object connected to the current PC, and read the key-value mapping file of the linux layer and the android layer into the corresponding HashMap.

[0034] In the embodiment of the present invention, this step is a pre-step for implementing automated testing based on the android platform. The automated testing tool needs to be connected to an external device object. The device object is an Android operating system device, including but not limited to a smart Mobile phones, tablets, and smart TVs, etc. The key value mapping file based on the linux layer is qwerty.kl, which includes the function of operating the device object and the key value corresponding to the function. By clicking the device button, the system can...

Embodiment 2

[0045] figure 2 shows that the second embodiment of the present invention provides figure 1 The specific workflow of script recording step S2 described in is described in detail as follows:

[0046] In step S21, the recording step is triggered, which is used to identify that the script recording can be started;

[0047] In the embodiment of the present invention, this step is a pre-step for realizing script recording, and the script recording starts only when the device object receives the command to trigger recording. During specific implementation, a "start recording" button may be provided on the working interface of the automatic testing tool, and the tester starts to execute the script recording by clicking the button.

[0048] In step S22, the connection confirmation step is used to confirm whether the automated test tool has acquired the device object.

[0049] In the embodiment of the present invention, this step is also a preferred step before script recording. In...

Embodiment 3

[0066] image 3 shows the third embodiment of the present invention provided figure 2 The specific process of the script parsing steps described in is detailed as follows:

[0067] In step S251, the automated testing tool invokes the trigger analysis process.

[0068] In step S252, it is judged whether the stored execution script information is a valid script, and if it is an invalid script, the script parsing ends.

[0069] In step S253, if the execution script information is a valid script, it is further judged whether the execution script information contains the key value indicating the operation action of the device is a device key operation or a remote control key operation, if it is not a device key or Press the button on the remote control, and the script parsing ends.

[0070] In step S254, if the key value representing the device operation action is the device key operation or the remote control key operation, then the key value is mapped with the HashMap loaded ...

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 android-platform-based automated testing method and an android-platform-based testing tool. The testing method comprises the following steps of: script recording: recording operation events and generating an executable script of an android platform; script execution: executing the executable script after an equipment object receives a command for executing the script; and result judgment: judging whether an automated example is adopted according to a script execution result. By adoption of the testing method, the event script is recorded and played back and interface elements are automatically compared to obtain a test result and realize automated testing, and the whole testing process only needs a tester to read the test result, so the method is accurate and fast to implement, and a lot of manpower and material resources are saved. The android-platform-based automated testing method and the android-platform-based testing tool can be used as fast automated testing method and tool which are widely used in the android program test industry.

Description

technical field [0001] The invention belongs to the field of program testing, and in particular relates to an automatic testing method and a testing tool based on an android platform. Background technique [0002] Android is an open source operating system based on Linux. Because of its open source and free, coupled with the fact that the Android operating system is simple and practical, it is favored by the majority of manufacturers, especially in the field of smart phones. With the development, it has surpassed the Apple operating system to become the first smart operating system. Not only that, more and more manufacturers in other fields such as tablet PCs and smart TVs are beginning to gradually choose the Android operating system. [0003] The reason why smart devices are loved by the majority of consumers is because they have a large number of application software, which can realize different functions through different application software, enrich the life of users, a...

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
IPC IPC(8): G06F11/36
Inventor 张弢
Owner SHENZHEN FALCON NETWORK MEDIA 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