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

Method and device for realizing sliding operation in automated test scheme

A technology of automated testing and sliding operation, applied in software testing/debugging and other directions, can solve the problems of test failure, low test result accuracy, low efficiency, etc., and achieve the effect of avoiding screen resolution differences

Active Publication Date: 2018-10-26
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Due to the difference in the resolution of the mobile terminal screen, the existing automatic sliding operation implementation scheme will bring the problem of low test result accuracy or even test failure. At present, this problem can only be avoided by rewriting the sliding operation code. lower

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
  • Method and device for realizing sliding operation in automated test scheme
  • Method and device for realizing sliding operation in automated test scheme
  • Method and device for realizing sliding operation in automated test scheme

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] see figure 1 , the implementation method of the sliding operation in the automated testing scheme provided by the embodiment of the present invention includes the following steps:

[0028] Step 10: Determine the start control and end control selected by the user on the test page; the control is the various function identifiers displayed to the user by the application, such as text, buttons, menus, soft keys, etc. on the page;

[0029] Step 11: Obtain the position coordinates of the start control and the position coordinates of the end control;

[0030] Step 12: Use the position coordinates of the start control and the position coordinates of the end control as the start point position coordinates and the end point position coordinates of the sliding operation, respectively, and perform the automatic sliding operation according to the start point position coordinates and the end point position coordinates.

[0031] Specifically, in step 10, determine the start control a...

Embodiment 2

[0053] This embodiment describes the implementation method of the sliding operation in the automated test scheme in combination with a specific test page (taking a QQ page as an example) and a display control (taking an expression control as an example). see Figure 2A , the specific process is as follows:

[0054] Step 201: After displaying the QQ page containing emoticon controls on the mobile phone, the user clicks one of the emoticon controls A, and then clicks another emoticon control B; determine the emoticon control A as the initial control of the sliding operation, and determine the emoticon control B as The end control of the swipe action, such as Figure 2B shown;

[0055] Step 202: Record the identification information of the expression control A and the identification information of the expression control B, and according to the identification information of the expression control A and the identification information of the expression control B, obtain the positi...

Embodiment 3

[0064] see image 3 , an embodiment of the present invention provides a device for implementing sliding operations in an automated test solution, the device comprising:

[0065] A determination unit 30, configured to determine the start control and end control selected by the user on the test page;

[0066] An acquisition unit 31, configured to acquire the position coordinates of the start control and the position coordinates of the end control;

[0067] The execution unit 32 is configured to use the position coordinates of the start control and the position coordinates of the end control as the start point position coordinates and the end point position coordinates of the sliding operation, and perform the operation according to the start point position coordinates and the end point position coordinates. Automate swipe actions.

[0068] Further, the determining unit 30 is specifically configured to:

[0069] After displaying the test page, issue a prompt message to select ...

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 embodiment of the invention discloses an implementation method and device of a sliding operation in an automated testing scheme, and relates to the field of the terminal test. The implementation method and device are used for solving the problem that the accuracy of a functional test result is low even a test fails due to the resolution difference of mobile terminal screens. After a user selects a starting control and an ending control on a test page, the position coordinates of the starting control and the position coordinates of the ending control are obtained and are independently taken as starting point coordinates and ending point position coordinates of the sliding operation, and an automated sliding operation is executed according to the starting point coordinates and the ending point position coordinates. Since the scheme is adopted, the problem that the accuracy of the functional test result is low even the test fails due to the resolution difference of the mobile terminal screens can be avoided.

Description

technical field [0001] The invention relates to the field of terminal testing, in particular to a method and device for realizing sliding operations in an automated testing scheme. Background technique [0002] In the prior art, in the process of testing the functions of the mobile phone, automatic sliding operations at two positions on the page are involved. The automatic sliding operations can trigger operations such as page jumps, thereby realizing the functional testing of the mobile phone. [0003] At present, the main method to realize the automatic sliding operation is: the programmer will take a screenshot of the page of the tested software, and then use the drawing software to obtain the position coordinates of the starting point and the ending point of the sliding according to the resolution and sliding interval of the current mobile phone, Suppose they are P1(x1, y1) and P2(x2, y2) respectively, and then manually write the sliding operation code, namely move(x1, y...

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
Inventor 胡泊
Owner TENCENT TECH (SHENZHEN) CO LTD