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

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

Example Embodiment

[0031] Example one:

[0032] figure 1 The flow of the automated test method based on the android platform provided by the first embodiment of the present invention is shown, which is detailed 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 files 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 realizing automated testing based on the android platform. The automated testing tool needs to be connected to external device objects, and the device objects are devices of the Android operating system, including but not limited to smart Mobile phones, tablets, 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, th...

Example Embodiment

[0044] Embodiment two:

[0045] figure 2 Shows the second embodiment of the present invention figure 1 The specific workflow of the script recording step S2 described in the above is detailed as follows:

[0046] In step S21, a recording step is triggered to identify that 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 the recording. In specific implementation, a "Start Recording" button can be provided on the working interface of the automatic test tool, and the tester can start script recording by clicking this 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 order to further confirm whethe...

Example Embodiment

[0065] Example three:

[0066] image 3 Shows the third embodiment of the present invention figure 2 The detailed process of the script parsing step described in the section is as follows:

[0067] In step S251, the automated test tool invokes and triggers the analysis process.

[0068] In step S252, it is determined whether the saved execution script information is a valid script, and if it is an invalid script, the script analysis ends.

[0069] In step S253, if the execution script information is a valid script, it is further determined whether the execution script information contains the key value indicating the device operation action is a device key operation or a remote control key operation, if not a device key or The remote control key operation, the script analysis 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 with 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 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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products