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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


