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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap