Mobile application testing method and testing equipment

A technology of mobile application and testing method, applied in the field of testing, can solve problems such as low testing efficiency and cumbersome testing steps, achieve the effect of reducing operation complexity and tediousness, and improving testing efficiency

Active Publication Date: 2020-03-27
PING AN TECH (SHENZHEN) CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the embodiment of the present invention provides a testing method and testing equipment for mobile applications to solve the problems of cumbersome testing steps and low testing efficiency in the prior art

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
  • Mobile application testing method and testing equipment
  • Mobile application testing method and testing equipment
  • Mobile application testing method and testing equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] figure 1 The implementation flow of the mobile application testing method provided by the embodiment of the present invention is shown, and the method flow includes steps S101 to S105. The specific implementation principle of each step is as follows:

[0046] S101: Locate and activate the text box on the test page.

[0047] The test page is a page displayed in the application program run by the mobile terminal, which includes multiple controls. The aforementioned controls include but are not limited to user interface controls, image processing controls, and document processing controls. Wherein, the user interface control may be, for example, a button, a text box, a chart, and a drop-down menu.

[0048] In the embodiment of the present invention, the text boxes on the test page are positioned according to the pre-stored center coordinates of each text box. The above steps of activating the text box in the test page specifically include: for any text box positioned i...

Embodiment 2

[0070] As an embodiment of the present invention, image 3 The specific implementation process of the mobile application testing method S105 provided by Embodiment 1 of the present invention is shown, and the details are as follows:

[0071] S1051: Obtain a jump page corresponding to the text box after the input of the test characters is completed.

[0072] If the control associated with the text box is specifically used to jump to a new page, the jump event is a page jump event. After encapsulating the test characters contained in the text box into the above page request, upload it to the background server of the mobile application.

[0073] When receiving the page response result returned by the background server, start loading the jump page.

[0074] S1052: Take a screenshot of the jump page to obtain a jump page image.

[0075] When it is detected that the jump page is loaded, based on the takeSnapshot method provided by the monkeyrunner software above, a screenshot of ...

Embodiment 3

[0087] On the basis of the second embodiment above, the abnormal type of the page test result is further determined. Such as Figure 4 As shown, after the above S104, it also includes:

[0088] S106: Obtain the first moment corresponding to when the page jump event is triggered.

[0089] Performs a control selection operation associated with a text box to generate a page request. When a page request is sent to the background server, the current time point is recorded, and this time point is determined as the first moment.

[0090] S107: Obtain a second moment corresponding to when the redirected page starts loading.

[0091] When receiving the page response result returned by the background server, start loading the jump page. At this point, the mobile terminal will start to gradually load each page element in the jump page. When it is detected that any page element appears on the display interface, the current time point is recorded, and this time point is determined as ...

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

Provided by the present solution are a test method, an apparatus, a test device and a medium for a mobile application, applicable in the technical field of testing. The method comprises: positioning and activating a text box in a test page; acquiring a test text corresponding to the text box, wherein the test text comprises at least one test character; on the basis of the coordinates of keys that correspond to each test character, in a pre-launched virtual keyboard, determining a virtual key that matches the coordinates of each key respectively; on the basis of the sequence in which the test characters appear within the test text, performing a simulated click on the virtual keys that correspond to each test character sequentially so as to input the test characters into the text box; acquiring a jump event that corresponds to the text box after the input of the test character is completed, and identify the jump event so as to obtain a test result on the basis of the text box. The present solution implements the automated input of test characters so that the operation complexity of a test is reduced and the testing efficiency for a mobile application is increased.

Description

technical field [0001] The invention belongs to the technical field of testing, and in particular relates to a testing method and testing equipment for mobile applications. Background technique [0002] In the application development process of mobile terminals, in order to detect program errors in mobile applications in time and measure the development quality of mobile applications, testers often need to test mobile applications under specified conditions to check whether they can meet the requirements of the program. Design requirements are evaluated. [0003] Functional testing is the most basic part of the testing process. The function test is specifically to verify various functions of the application program, which includes testing each control in the application program to determine whether the control can be executed normally. However, for the text box control, multiple text boxes may appear in one page of the mobile application. To test whether each text box can ...

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 Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3644
Inventor 张二雷
Owner PING AN TECH (SHENZHEN) 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