Unlock instant, AI-driven research and patent intelligence for your innovation.

Application test method and apparatus, and computer storage medium

A technology for application testing and testing packages, applied in the computer field, which can solve the problems of inability to automate testing of mobile web page programs and inability to crawl page elements.

Active Publication Date: 2018-09-28
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, there are currently many mobile webpage programs that are implemented based on a custom webview kernel (such as X5webview developed by Tencent). At this time, it is impossible to capture valid page elements in the custom webview through uiautomator, resulting in Unable to automate testing of mobile web programs based on custom webview kernels

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
  • Application test method and apparatus, and computer storage medium
  • Application test method and apparatus, and computer storage medium
  • Application test method and apparatus, and computer storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0092] 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 creative efforts fall within the protection scope of the present invention.

[0093] See figure 1 , is a schematic flowchart of an application testing method provided by an embodiment of the present invention, and the method may include:

[0094] S101. Obtain an application to be tested, and repackage the application to be tested according to test package data to obtain a target application; the process of the target application includes the test package data;

[0095]Specifically, the user terminal can obtain the application to be tested 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

Embodiments of the invention disclose an application test method and apparatus, and a computer storage medium. The method comprises the steps of obtaining a to-be-tested application, and performing re-packaging on the to-be-tested application according to test pack data, thereby obtaining a target application, wherein a process of the target application comprises the test pack data; according to an operation instruction for the target application and the test pack data, searching for a webview in the process of the target application, obtaining control information associated with the operationinstruction in the webview, and according to the control information and an operation behavior indicated by the operation instruction, generating a test script; and loading the test script, searchingfor the webview in the process of the target application according to the test data and the test pack data, searching for coordinate information corresponding to the control information in the webview, and performing simulation operation on a control located at the coordinate information in the target application, thereby generating a test result. By adopting the application test method and apparatus, a self-defined webview kernel-based mobile terminal webpage program can be automatically tested.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to an application testing method, device and computer storage medium. Background technique [0002] At present, the number of applications developed is increasing. In order to ensure the performance and quality of the applications, it is usually necessary to test the applications, and the content of the tests is usually more and more demanding. However, the testing requires very high labor costs, therefore, automated testing is particularly important. [0003] At present, it is also possible to automate testing of mobile webpage programs. The current mainstream testing method can be: API (Application Programming Interface, application programming interface) provided by Uiautomator (a tool for user interface automation testing launched by Google). The page content in the native webview (web view, control for web pages) in the mobile web program, and then realize the automated test...

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/3684G06F11/3688
Inventor 高源
Owner TENCENT TECH (SHENZHEN) CO LTD