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

Mobile terminal touch screen automatic testing method and device

A mobile terminal and automatic testing technology, applied in software testing/debugging, detecting faulty computer hardware, etc., can solve problems such as cumbersome operation, and achieve the effect of simple method

Inactive Publication Date: 2013-06-19
TENCENT TECH (SHENZHEN) CO LTD
View PDF6 Cites 53 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] For products with touch screen mobile terminals, since there are no buttons, they can only be operated by clicking on the screen of the touch screen. In order to realize automated testing, it is necessary to take screenshots of each interface in advance, and use drawing tools to find the coordinates of the corresponding controls. Write it into the test code to execute the test, and once the position of the control changes, it is necessary to retake the coordinates and modify the code, resulting in cumbersome operation of the method

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 terminal touch screen automatic testing method and device
  • Mobile terminal touch screen automatic testing method and device
  • Mobile terminal touch screen automatic testing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] see figure 1 , the embodiment of the present invention provides a mobile terminal touch screen automatic testing method, the method comprising:

[0045] 101: Obtain the control name on the user interface of the program under test on the touch screen of the mobile terminal and the control coordinates corresponding to the control name;

[0046] 102: Find the coordinates of the target control from the obtained control name and control coordinates according to the name of the target control to be tested;

[0047] 103: Execute an automatic test on the target control according to the found coordinates of the target control.

[0048] In the embodiment of the present invention, by obtaining the control name and control coordinates on the user interface of the program under test on the touch screen of the mobile terminal, the clickable coordinate area of ​​the target control can be found out according to the name of the target control, and the test can be directly completed acc...

Embodiment 2

[0050] see figure 2 , the embodiment of the present invention provides a mobile terminal touch screen automatic testing method, the method comprising:

[0051] 201: Write a test case on the computer, establish communication with the touch screen of the mobile terminal, and obtain the program under test on the touch screen of the mobile terminal according to the test case;

[0052] In this step, the tester writes test cases on the computer side, sends the test cases to the touch screen of the mobile terminal, and obtains the program under test on the touch screen of the mobile terminal to perform an automatic operation process.

[0053]Specifically, the computer terminal and the touch screen of the mobile terminal are connected through a data line, and the test cases on the computer are sent to the touch screen of the mobile terminal through an agent program to call the program under test on the touch screen of the mobile terminal, and the agent program runs on the touch scree...

Embodiment 3

[0080] see image 3 , the embodiment of the present invention provides a mobile terminal touch screen automatic test device, the device includes:

[0081] Obtaining module 301, for acquiring the control name on the user interface of the program under test on the touch screen of the mobile terminal and the control coordinates corresponding to the control name;

[0082] A search module 302, configured to find out the coordinates of the target control from the obtained control name and control coordinates according to the name of the target control to be tested;

[0083] A testing module 303, configured to perform an automatic test on the target control according to the coordinates of the searched target control.

[0084] see Figure 4 , the device also includes:

[0085] The communication module 304 is configured to establish communication with the touch screen of the mobile terminal, and obtain the program under test on the touch screen of the mobile terminal.

[0086] Furt...

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 discloses a mobile terminal touch screen automatic testing method and a mobile terminal touch screen automatic testing device, and belongs to the technical field of automatic testing. The method includes the steps: obtaining a control name on a tested program user interface of a mobile terminal touch screen and a control coordinate corresponding to the control name; searching a coordinate of a target control from the obtained control name and the control coordinate according to a name of the target control which needs to be tested; and implementing automatic testing to the target control according to the coordinate of the target control which is searched. Due to the fact that the control name on the tested program user interface of the mobile terminal touch screen and the control coordinate, a coordinate area, which can be clicked, of the target control can be found out according to the name of the target control, and according to the obtained coordinate of the target control, a test can be completed directly, when change occurs in the position of the target control, the coordinate of the target control can also be obtained correctly, print-screen and test case core modification are not needed, and the method of automatic operation is simple.

Description

technical field [0001] The invention relates to the technical field of mobile terminal testing, in particular to an automatic testing method and device for a touch screen of a mobile terminal. Background technique [0002] Before the release of mobile terminal products, it is necessary to test the operating conditions of mobile terminal products. Through the test, the actual operating conditions and stability of mobile terminal products can be understood. To achieve this test, the most direct way is to use manual operation. For example, before the mobile phone leaves the factory, the keyboard of the mobile phone is manually operated, but the manual operation is inefficient and error-prone. [0003] There is a method of automatic testing in the existing technology. Take the smart phone in the mobile terminal as an example. In the smart phone, write a test program to run in the background of the smart phone to simulate keys, and then receive instructions from the general compu...

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/22G06F11/36
Inventor 吴景李龙丁如敏罗巍苏春山王家生
Owner TENCENT TECH (SHENZHEN) 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