CN115408228A - Automatic testing method, device and system for touch screen equipment - Google Patents

Automatic testing method, device and system for touch screen equipment Download PDF

Info

Publication number
CN115408228A
CN115408228A CN202211362130.0A CN202211362130A CN115408228A CN 115408228 A CN115408228 A CN 115408228A CN 202211362130 A CN202211362130 A CN 202211362130A CN 115408228 A CN115408228 A CN 115408228A
Authority
CN
China
Prior art keywords
tested
information
processor
working space
touch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211362130.0A
Other languages
Chinese (zh)
Other versions
CN115408228B (en
Inventor
张梦萍
杨贞祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changsha Juyi Medical Technology Co ltd
Original Assignee
Changsha Juyi Medical Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changsha Juyi Medical Technology Co ltd filed Critical Changsha Juyi Medical Technology Co ltd
Priority to CN202211362130.0A priority Critical patent/CN115408228B/en
Publication of CN115408228A publication Critical patent/CN115408228A/en
Application granted granted Critical
Publication of CN115408228B publication Critical patent/CN115408228B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/008Reliability or availability analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention belongs to the technical field of automatic test equipment, and discloses an automatic test method, device and system for touch screen equipment. The method comprises the following steps: acquiring working space coordinate information of a key element to be tested in a test working space; setting an execution sequence of the key elements to be tested; the working space coordinate information of the key elements corresponding to the execution sequence is sent to the sliding block displacement sensor in sequence, the sliding block displacement sensor drives the touch rod to move to the upper side of each key element to be tested in sequence to execute the test operation, and the processor synchronously monitors the log information of the equipment to be tested in real time; the slider displacement sensor feeds back the moving position information of the touch rod to the processor in real time, and the processor judges the test result by combining the log information of the equipment to be tested. The invention can replace manpower to carry out repeated and fussy work, automatically execute a whole set of business process test, quickly help the tester to judge the fault reason, save the manpower, release the test resources, and improve the test efficiency and the test reliability.

Description

Automatic testing method, device and system for touch screen equipment
Technical Field
The invention belongs to the technical field of automatic test equipment, and particularly relates to an automatic test method, device and system for touch screen equipment.
Background
In the development and design process of the embedded device, software is loaded on a touch screen to perform click test of each key, and the work of verifying whether the corresponding operation can be executed by the key is an indispensable part. In the process, the software continuously returns to adjust and repair the bug, and the equipment needs to be subjected to regression testing once after the repair is completed every time to ensure the quality of the product. In addition, the reliability of the device needs to be tested, and the same operation is repeatedly executed for thousands of times on the keys on the touch screen.
In the regression test and the reliability test, the state of a product needs to be monitored all the time, repeated and tedious work needs to be manually executed, and a large amount of labor time is wasted; and bug is missed due to insufficient artificial regression test, which causes great loss after mass production.
Meanwhile, it is difficult to quickly judge whether an error occurs due to a hardware (touch screen) failure or a software failure in a manual testing process. In the prior art, a bottom layer code of a software product is not connected with hardware, repeated click operation is performed on one point of a touch screen only in a fixed point position mode, and a whole set of service flow test cannot be automatically performed.
Disclosure of Invention
The invention aims to solve the technical problems in at least one background technology, and provides an automatic testing method, device and system for touch screen equipment, which replace manpower to perform repeated and tedious work, automatically execute a whole set of business process test, quickly help testers to judge fault reasons, save manpower, release testing resources, and improve testing efficiency and testing reliability.
In order to achieve the technical purpose, the invention adopts the following technical scheme:
an automated testing method for touch screen equipment, the method comprising the steps of:
step S1: obtaining working space coordinate information of a key element to be tested of equipment to be tested in a test working space;
step S2: setting an execution sequence of the key elements to be tested;
and step S3: sending the working space coordinate information of the key elements corresponding to the execution sequence to a slider displacement sensor in sequence, driving a touch rod to move above each key element to be tested in sequence by the slider displacement sensor, and executing the test operation of clicking, dragging or long-time pressing; the processor synchronously monitors log information of the equipment to be tested in real time;
and step S4: the slider displacement sensor feeds the moving position information of the touch rod back to the processor in real time, and after a test operation is executed, the processor judges a test result according to log information of the equipment to be tested:
if the processor receives the execution success information transmitted by the log of the device to be tested and the log information is not in error, executing the next test operation;
if the processor does not receive the execution success information conveyed by the log of the equipment to be tested, the next test operation is stopped, the fault reason is judged according to the log information of the equipment to be tested, and an exception prompt is thrown out, and the method specifically comprises the following steps:
if the processor does not receive the operation information transmitted by the log of the equipment to be tested, judging that the abnormality is the hardware fault of the equipment to be tested, and throwing the abnormality to remind a tester to check the hardware equipment of the equipment to be tested;
if the processor receives operation information transmitted by the log of the device to be tested, but the log of the device to be tested does not return execution information for operating the key element to be tested, judging that the abnormality is the software system fault of the device to be tested, and throwing the abnormality to remind a tester to check the software system;
if the processor receives the operation information transmitted by the log of the device to be tested, but the log of the device to be tested returns the execution error information of the key element to be tested, the processor judges that the abnormality is an unknown fault of the device to be tested, and throws the abnormality to remind a tester to manually troubleshoot the fault reason.
Further, the step S1 of obtaining the working space coordinate information of the key element to be tested of the device to be tested in the test working space specifically includes the following steps:
step S11: connecting the equipment to be tested with a processor, and inputting the unique attribute value of the key element to be tested into the processor;
step S12: the processor extracts the key element position information according to the unique attribute value;
step S13: fixing the equipment to be tested in a test working space, and presetting a working space coordinate system of a test system;
step S14: and converting the key element position information extracted in the step S12 into working space coordinate information according to the corresponding relation between the preset working space coordinate system and the key element position information, and recording the working space coordinate information in a processor.
Further, the step S13 specifically includes:
the device to be tested is fixed in a test working space, a slider displacement sensor drives a touch rod to move to a preset original point position of a touch screen, working space coordinates (x 0, y0 and z 0) of the original point position are read and serve as reference point positions of a working space coordinate system to be fed back to a processor, the processor sets the position from the reference point level to the right to be the positive direction of an x axis, the position from the reference point level to the lower to be the positive direction of a y axis, and the position from the reference point vertical to the upper to be the positive direction of a z axis.
Further, in step S14, converting the key element position information extracted in step S12 into working space coordinate information according to a preset corresponding relationship between a working space coordinate system and the key element position information, specifically including:
judging whether the key element position information is absolute position information or relative position information; if the absolute position information is obtained, the absolute position information is directly derived to serve as working space coordinate information; and if the key elements are relative position information, calculating absolute position information corresponding to the key elements on the screen according to the screen size and the resolution of the screen equipment to be tested and using the absolute position information as working space coordinate information of the key elements.
Further, in step S1, obtaining working space coordinate information of a key element to be tested of the device to be tested in the test working space includes the following steps:
step S101: fixing the equipment to be tested in a test working space, driving a touch rod to move to a preset reference point position above a screen area to be tested of the equipment to be tested as an original point position (0, 0), and feeding back the original point position coordinate information of the touch rod to a processor by using a slider displacement sensor for storage;
step S102: the slider displacement sensor drives the touch rod to sequentially move to the position of the key element to be detected, and the working space position coordinates (x, y, z) of the key element to be detected are fed back to the processor to be recorded and stored.
Further, in the step S3, the vertical upward movement distance d of the touch bar is set as an optimal height movement distance when the touch bar performs the test operation.
Further, in step S3, the clicking, dragging, or long-time pressing test operation specifically includes:
clicking: the touch rod vertically falls for a distance d and then immediately rises for the distance d;
long press: the touch rod vertically falls by a distance d, and rises by a distance d after keeping time t;
dragging: and clicking the touch rod to vertically fall for a distance d, and moving to the next element position and then rising for a distance d.
Meanwhile, the invention also provides an automatic testing device of the touch screen equipment, which is used for implementing any one of the methods, and the device comprises a touch driving module; the touch driving module comprises a three-axis driving mechanism, a slider displacement sensor and a touch rod; the slide block displacement sensor is in driving connection with the three-axis driving mechanism and can move along the three directions of an x axis, a y axis and a z axis; touch pole fixed connection is in slider displacement sensor bottom, the fixed silica gel touch head that is provided with bionical finger of touch pole lower extreme.
In addition, the invention also provides an automatic testing system of the touch screen equipment, which is used for implementing the method, and the system comprises a touch driving module and a control module, wherein the control module comprises a distance controller, a processor and a display;
the touch driving module comprises a three-axis driving mechanism, a slider displacement sensor and a touch rod; the slide block displacement sensor is in driving connection with the three-axis driving mechanism, and can move along the x axis, the y axis and the z axis; the touch rod is fixedly connected to the bottom end of the slider displacement sensor, and a silica gel touch head simulating a finger is fixedly arranged at the lower end of the touch rod;
the slider displacement sensor is used for driving the touch rod to move and feeding back the moving position information of the touch rod to the processor in real time;
the distance controller is used for receiving the movement command information sent by the processor and transmitting the movement command information to the sliding block displacement sensor;
the processor performs the following operations:
acquiring working space coordinate information of a key element to be tested of equipment to be tested in a test working space; monitoring log information of the equipment to be tested in real time; receiving the moving position information of the touch rod fed back by the sliding block displacement sensor, and sending a moving control command to the distance controller to control the sliding block displacement sensor to move; judging a test result according to the log information of the equipment to be tested monitored in real time;
the display is electrically connected with the processor and used for displaying the software graphical interaction interface of the touch driving module and checking the log information and the test result of the equipment to be tested.
Compared with the prior art, the automatic testing method, the device and the system for the touch screen equipment provided by the invention have the following beneficial effects:
(1) The method comprises the steps that the working space coordinate information of the key elements to be tested of the equipment to be tested in a testing working space is obtained, the execution sequence of the key elements to be tested is formulated, the working space coordinate information of the key elements corresponding to the execution sequence is sent to a slider displacement sensor in sequence, the slider displacement sensor drives a touch rod to move to the position above each key element to be tested, and the test operations such as clicking, long pressing or dragging are executed, so that the repeated and tedious work of manpower is replaced, the manpower is effectively saved, the test resources are released, and the test efficiency is improved;
(2) The bottom layer code of the software product is connected with the hardware, a whole set of service flow test can be automatically executed, the problem that a real whole set of operation flow cannot be simulated and tested because repeated click operation is executed on one point of a touch screen only by adopting a fixed point position mode in the prior art is solved, the test is more in line with the actual use condition of a user, and the test result is more accurate and reliable;
(3) The method can simultaneously analyze and diagnose the faults of the software and the hardware, quickly help a tester judge whether the error reason belongs to the software fault or the hardware fault, improve the accuracy and the reliability of the test, and has the advantages of simple and easy realization and strong practicability;
(4) According to the automatic testing method of the touch screen equipment, when the testing position information of the key element to be tested is obtained, the unique attribute value of the key element and the corresponding key element position information can be obtained firstly, the key element position information is converted into the working space coordinate information through the preset working space coordinate system, the element can be accurately positioned only by inputting the unique attribute value and the operation information (clicking, long pressing and dragging) of the key element to be tested, the operation is rapid, and the testing efficiency is high;
(5) In the automatic testing method of the touch screen equipment, when the testing position information of the key elements to be tested is obtained, if the equipment to be tested is an external testing product and lacks the bottom code information (the attribute values of the key elements are unknown) of the equipment to be tested, the touch rod can be directly moved to the position of a screen to be operated, and the positions of the key elements to be tested are obtained one by one in a mode that the coordinate information of the working space where the touch rod is located is recorded in the processor by the slider displacement sensor.
Drawings
FIG. 1 is a flow chart of an automated testing method of a touch screen device of the present invention;
fig. 2 is a flowchart of an automated testing method for a touch screen device according to embodiment 1 of the present invention;
fig. 3 is a flowchart of an automated testing method for a touch screen device according to embodiment 2 of the present invention;
fig. 4 is a schematic structural diagram of a touch driving module in embodiment 3 of the present invention;
the notation in the figure is: 1-a slider displacement sensor; 2-a touch bar; 3-silica gel touch head; 4-fixing a support, 401-fixing reinforcing ribs in a triangular mode; the device comprises a 5-X axis driving module, a 501-X direction linear sliding block and a 502-X direction driving mechanism; a 6-Y axis driving module 601-Y direction linear sliding block; a 7-Z axis driving module, a 701-Z direction driving mechanism; 702-Z direction linear slider.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1
Referring to fig. 1, the present invention provides an automated testing method for a touch screen device, which includes the following steps:
step S1: obtaining working space coordinate information of a key element to be tested of the equipment to be tested in a testing working space, and sending the working space coordinate information to a processor; the device to be tested is a mobile phone, a computer or an embedded system device carrying a touch screen which needs to be tested;
step S2: setting an execution sequence of the key elements to be tested;
and step S3: the processor sends the working space coordinate information of the key elements corresponding to the execution sequence to the sliding block displacement sensor in sequence; the slider displacement sensor drives the touch rod to move above each key element to be tested in sequence, and click, drag or long-press test operation is executed; the processor synchronously monitors log information of the equipment to be tested in real time;
and step S4: the slider displacement sensor feeds the information of the moving position of the touch rod for executing operation back to the processor in real time, and after a test operation is executed, the processor judges the test result according to the log information of the equipment to be tested:
(1) If the processor receives the execution success information transmitted by the log of the device to be tested and the log information is not reported in error, executing the next test operation;
(2) If the processor does not receive the execution success information conveyed by the log of the equipment to be tested, the processor stops executing the next test operation, judges the fault reason according to the log information of the equipment to be tested, and throws out an abnormal prompt, which specifically comprises the following steps:
if the processor does not receive the operation information transmitted by the log of the equipment to be tested, judging that the abnormality is the hardware fault of the equipment to be tested, and throwing the abnormality to remind a tester to check the hardware equipment of the equipment to be tested;
if the processor receives operation information transmitted by the log of the device to be tested, but the log of the device to be tested does not return execution information for operating the key element to be tested, judging that the abnormality is the software system fault of the device to be tested, and throwing the abnormality to remind a tester to check the software system;
if the processor receives the operation information transmitted by the log of the device to be tested, but the log of the device to be tested returns the execution error information of the key element to be tested, the processor judges that the abnormality is an unknown fault of the device to be tested, and throws the abnormality to remind a tester to manually troubleshoot the fault reason.
Example 2
The embodiment of the invention takes a mobile phone as an example, and provides an automatic testing method for the mobile phone.
The pixel per inch of the mobile phone screen is 295, the resolution is 720x1440px, the height of the mobile phone screen placed in the working space is 2cm, and the key elements to be tested comprise: finding WeChat, adding the upper right corner of the WeChat, adding a page and scanning for one scan; referring to fig. 2, the automated testing method specifically includes the following steps:
step S1: the method for acquiring the working space coordinate information of the key element to be tested of the mobile phone in the test working space specifically comprises the following steps:
step S11: connecting the mobile phone with a processor, wherein the processor reads all key element information on the mobile phone, including key element attribute values (id, class, xpath, CSS and the like) and key element position information corresponding to the attribute values; the tester selects the unique attribute values class, id, xpath and the like (for example, the attribute value id of a certain login key) of the key element to be tested of the mobile phone according to the bottom code information of the mobile phone, and inputs the unique attribute values class, id, xpath and the like into the processor in sequence (the attribute name = the unique attribute value); the unique attribute values of the key elements to be tested in the embodiment of the invention are as follows:
WeChat discovery icon: class = android.widget.relative layout;
WeChat top right corner addition: class = android.
Adding page scanning: resource-id = com.tenent.mm id/h8v;
step S12: the processor extracts the key element position information according to the input unique attribute value;
specifically, the processor obtains key element position information corresponding to the unique attribute value by reading the mobile phone key element position file according to the input unique attribute value of the key element to be tested. The key element position information of the key element to be tested in the embodiment of the invention is specifically as follows:
WeChat discovery icon: bounds [360, 1253] [540, 1333];
WeChat top right addition: bounds [648, 69] [691, 112];
adding page scanning: bounds [400, 350] [706, 452];
the position information represents px (resolution) position information of the element top left corner vertex and the element top right corner vertex respectively;
then, the processor takes the central point position of the key element to be tested to record as follows:
WeChat discovery icon: [450, 1293];
WeChat top right corner addition: [670, 91];
adding a page to sweep: [553, 401];
step S13: fix the cell-phone in testing the working space, predetermine test system's working space coordinate system, specifically include:
the mobile phone is placed in a test working space, a slider displacement sensor drives a touch rod to move to the top point of the left upper corner of a mobile phone screen, a processor reads working space coordinates (x 0, y0 and z 0) of the top point of the left upper corner of the mobile phone through the displacement sensor and feeds the coordinates back to the processor as the position of a reference point of a working space coordinate system, the processor sets the value of the position (x 0, y0 and z 0) of the reference point to be (0, 0 and 0), the position from the reference point is horizontally towards the right and is a positive direction of an x axis, the position from the reference point is horizontally downwards and is a positive direction of a y axis, and the position from the point is vertically upwards and is a positive direction of a z axis.
Step S14: the processor converts the key element position information extracted in the step S3 into working space coordinate information according to the corresponding relation between a preset working space coordinate system and the key element position information, and records the working space coordinate information in the processor; the method specifically comprises the following steps:
judging whether the position information of the key elements is absolute position information (in, pt, pc, cm, mm and the like) or relative position information (px, em, ex, rem and the like); if the absolute position information is the absolute position information, directly deriving the absolute position information as working space coordinate information; and if the key elements are relative position information, calculating absolute position information corresponding to the key elements on the screen as working space coordinate information of the key elements according to the screen size and resolution of the mobile phone.
In the embodiment of the invention, the input of the mobile phone screen size information to the processor is as follows: 295 pixels per inch with a resolution of 720x1440px, the processor calculates 1px =0.0086cm, and then converts the key position information extracted in step S12 into the following workspace coordinate information:
WeChat discovery icon: [3.69cm,11.11cm,0cm ];
WeChat top right corner addition: [5.76cm,0.78cm,0cm ];
adding page scanning: [4.75cm,3.45cm,0cm ];
step S2: setting an execution sequence of the key elements to be tested;
the moving sequence of the touch rod is set as follows: 1. WeChat discovery; 2. adding WeChat in the upper right corner; 3. adding a page to scan one;
and step S3: the processor sends the working space coordinate information of the key elements corresponding to the execution sequence to the slider displacement sensor in sequence, the slider displacement sensor drives the touch rod to move to the upper part of each key element to be tested in sequence, and the test operation of clicking, dragging or long-time pressing is executed; the processor synchronously monitors log information of the mobile phone log in real time.
Setting the vertical upward movement distance of the touch rod along the z axis to be 1cm (1 cm from the screen) as the optimal height movement distance when the touch rod performs the test operation
The processor sets the touch bar movement information corresponding to the test operation as follows:
clicking: the touch rod vertically falls for 1cm and then immediately rises for 1cm;
long press: the touch rod vertically falls for 1cm, and rises for 1cm after being kept for 2 s;
dragging: the touch rod vertically falls for 1cm, and rises for 1cm after moving to the position of the next key element;
since it has been set that the distance of vertically moving the touch lever upward along the z-axis by 1cm (1 cm from the screen) is the optimal height movement distance for the touch lever to perform the test operation, the distance of up/down movement of the touch lever along the z-axis is a fixed value of 1cm. In addition, the moving distances of the touch rod in the x-axis and y-axis directions need to be obtained by: the processor calculates the direction and distance of the touch rod to move in the x axis and the y axis according to the coordinate information of the key element to be clicked and the coordinate information of the working space where the current touch rod is located; sequentially transmitting the coordinates [ [ delta ] x, [ delta ] y ] of the working space to be moved to a slider displacement sensor to drive a touch rod to move, wherein the delta ] x is the moving distance and direction of the x axis; the delta y movement is the movement distance and direction of the y axis; in the embodiment of the invention, the coordinates [ [ Delta ] x, [ Delta ] y ] of the working space to be moved of the key element to be detected and the executed operation are as follows:
WeChat discovery icon: [ +3.69cm, +11.11cm ], click (in the Z-axis direction, moving down 1cm and then rising immediately),
WeChat top right corner addition: [ +2.07m, -10.33cm ], click (Z-axis direction, moving down 1cm and then immediately rising);
adding a page to sweep: [ -1.01cm, +2.67cm ], click (Z-axis direction, moving down 1cm and then immediately up);
and step S4: the slider displacement sensor feeds the moving position information of the touch rod back to the processor in real time, and after a test operation is executed, the processor judges a test result according to the mobile phone log information monitored in real time:
(1) If the processor receives the click success information (the mobile phone screen is clicked) conveyed by the mobile phone log and the execution information (the next page is jumped to) of the corresponding key element is operated, and the log information is not reported by mistake, executing the next test operation;
(2) If the processor does not receive the click success information transmitted by the mobile phone log, stopping executing the next test operation, judging the fault reason according to the log information, and throwing an abnormal prompt, specifically:
if the processor does not receive the click information (no-click mobile phone screen information) transmitted by the mobile phone log, judging that the abnormality is a mobile phone hardware fault (failure of a touch screen and the like), and throwing the abnormality to remind a tester to check mobile phone hardware equipment;
if the processor receives the click information (the mobile phone screen is clicked) transmitted by the mobile phone log, but the execution information of the click operation on the key element is not returned in the mobile phone log (the next page is not jumped), judging that the abnormality is a mobile phone software system fault (element failure and the like), and throwing the abnormality to remind a tester to check the mobile phone software;
if the processor receives click information (the mobile phone screen is clicked) transmitted by the mobile phone log, but execution error information for operating the key element to be tested is returned from the mobile phone log, the processor judges that the abnormality is an unknown fault of the equipment to be tested, and throws the abnormality to remind a tester of manually checking the fault reason.
According to the automatic testing method of the touch screen equipment, when the testing position information of the key element to be tested is obtained, the attribute value of the key element and the position information of the key element on the touch screen area are obtained first, the key element position information is converted into the working space coordinate information through the preset working space coordinate system, the obtaining mode can accurately realize the positioning of the element only by inputting the unique attribute value and the operation information (clicking, long pressing and dragging) of the key element to be tested, the operation is rapid, and the testing efficiency is high.
Example 3
The embodiment of the invention provides an automatic testing method for a mobile phone, which specifically changes a mode of acquiring working space coordinate information of a key element to be tested on the basis of the embodiment 2, and is combined with a diagram 3, wherein the automatic testing method specifically comprises the following steps:
step S1: the method for acquiring the working space coordinate information of the key element to be tested of the mobile phone in the test working space specifically comprises the following steps:
step S101: connecting the mobile phone with a processor, fixing the mobile phone in a test working space, driving a touch rod to move to the top point of the upper left corner of a mobile phone screen by a slider displacement sensor to serve as an original point position (0, 0), and feeding back coordinate information of the original point position to the processor by the slider displacement sensor for storage;
step S102: the slider displacement sensor drives the touch rod to move to the position of the key element to be detected in sequence, and the working space coordinates (x, y, z) of the key element to be detected are fed back to the processor for recording and storing; the working space coordinates of the key elements to be tested are as follows:
WeChat discovery icon: [3.69cm,11.11cm,0cm ];
WeChat top right corner addition: [5.76cm,0.78cm,0cm ];
adding page scanning: [4.75cm,3.45cm,0cm ];
step S2: setting an execution sequence of the key elements to be tested;
the touch rod moving sequence is set as follows: 1. WeChat discovery; 2. adding WeChat in the upper right corner; 3. adding a page to scan one;
and step S3: the processor sends the working space coordinate information of the key elements corresponding to the execution sequence to the slider displacement sensor in sequence, the slider displacement sensor drives the touch rod to move to the upper part of each key element to be tested in sequence, and the test operation of clicking, dragging or long-time pressing is executed; the processor synchronously monitors log information of the mobile phone log in real time.
Setting the vertical upward movement distance of the touch rod along the z axis to be 1cm (1 cm away from the screen) as the optimal height movement distance when the touch rod executes the test operation; the processor sets the touch rod movement information corresponding to the test operation as follows:
clicking: the touch rod vertically falls for 1cm and then immediately rises for 1cm;
long press: the touch rod vertically falls for 1cm, and rises for 1cm after being kept for 2 s;
dragging: the touch rod vertically falls for 1cm, and rises for 1cm after moving to the position of the next key element;
since the distance of vertically moving the touch lever upward along the z-axis by 1cm (1 cm from the screen) has been set as the optimal height movement distance of the touch lever for performing the test operation, the distance of up/down movement of the touch lever along the z-axis is a fixed value of 1cm. In addition, the moving distance of the touch rod in the x-axis and y-axis directions needs to be obtained by: the processor calculates the direction and distance of the touch rod to move in the x axis and the y axis according to the coordinate information of the key element to be clicked and the coordinate information of the working space where the current touch rod is located; sequentially transmitting the coordinates [ [ delta ] x, [ delta ] y ] of the working space to be moved to the sliding block displacement sensor to drive the touch rod to move, wherein the [ delta ] x is the moving distance and direction of the x axis; the delta y shift is the y-axis moving distance and direction; in the embodiment of the invention, the coordinates [ Delta x, delta y ] of the working space to be moved of the key element to be detected and the executed operation are as follows:
WeChat discovery icon: [ +3.69cm, +11.11cm ], click (in the Z-axis direction, moving down 1cm and then rising immediately),
WeChat top right addition: [ +2.07m, -10.33cm ], click (Z-axis direction, moving down 1cm and then immediately rising);
adding a page to sweep: [ -1.01cm, +2.67cm ], click (Z-axis direction, moving down 1cm and then rising immediately);
and step S4: the slider displacement sensor feeds the moving position information of the touch rod back to the processor in real time, and after a test operation is executed, the processor judges the test result according to the mobile phone log information monitored in real time:
(1) If the processor receives the click success information (the mobile phone screen is clicked) transmitted by the mobile phone log, the execution information (the next page is jumped to) of the corresponding key element is operated, and the log information does not report errors, the next test operation is executed;
(2) If the processor does not receive the click success information transmitted by the mobile phone log, stopping executing the next test operation, judging the fault reason according to the log information, and throwing an abnormal prompt, which specifically comprises the following steps:
if the processor does not receive the click information (no-click mobile phone screen information) transmitted by the mobile phone log, judging that the abnormality is a mobile phone hardware fault (failure of a touch screen and the like), and throwing the abnormality to remind a tester to check mobile phone hardware equipment;
if the processor receives the click information (the mobile phone screen is clicked) transmitted by the mobile phone log, but the execution information of the click operation on the key element is not returned in the mobile phone log (the next page is not jumped), judging that the abnormality is a mobile phone software system fault (element failure and the like), and throwing the abnormality to remind a tester to check the mobile phone software;
if the processor receives click information (clicking a mobile phone screen) transmitted by the mobile phone log, but the mobile phone log returns execution error information for operating the key element to be tested, the processor judges that the abnormality is an unknown fault of the equipment to be tested, and throws the abnormality to remind a tester of manually troubleshooting the fault reason.
According to the automatic testing method of the touch screen equipment, provided by the embodiment of the invention, when the testing position information of the key elements to be tested is obtained, the touch rod is directly moved to the screen position needing to be operated, and the positions of the key elements to be tested are obtained one by one in a mode that the coordinate information of the working space where the touch rod is located is recorded in the processor through the slider displacement sensor.
Example 4
The embodiment of the invention provides an automatic testing device for touch screen equipment, which is used for executing the automatic testing method of the embodiment 1-3.
The device comprises a touch driving module; the touch driving module mainly comprises a three-axis driving mechanism, a slider displacement sensor 1 and a touch rod 2. The slider displacement sensor 1 is in driving connection with the three-axis driving mechanism and can move along the x axis, the y axis and the z axis; 1 bottom fixed connection touch rod 2 of slider displacement sensor, the fixed silica gel touch head 3 that is provided with bionical finger of 2 lower extremes of touch rod.
Specifically, the method comprises the following steps: the three-axis driving mechanism 1 comprises an X-axis driving module 5, a Y-axis driving module 6 and a Z-axis driving module 7 which are arranged on the fixed support 4; the bottom end of the fixed support 4 is provided with a triangular fixed reinforcing rib 401.
The X-axis driving 5 module comprises two X-direction linear guide rails which are arranged in parallel, an X-direction linear sliding block 501 is arranged on each X-direction linear guide rail, and an X-direction driving mechanism 502 is arranged on the end side of one X-direction linear guide rail;
the Y-axis driving module 6 comprises a Y-direction linear guide rail, and two ends of the Y-direction linear guide rail are connected to the X-direction linear guide rail in a sliding manner through an X-direction linear sliding block 501; a Y-direction driving mechanism (not shown) is arranged at one end side of the Y-direction linear guide rail, and a Y-direction linear sliding block 601 is arranged on the Y-direction linear guide rail;
the Z-axis driving module 7 comprises a Z-direction linear guide rail, and the Z-direction linear guide rail is connected to the Y-direction linear guide rail in a sliding manner through a Y-direction linear slider 601; a Z-direction driving mechanism 701 is arranged at one end side of the Z-direction linear guide rail, and a Z-direction linear sliding block 702 is arranged on the Z-direction linear guide rail; the Z-direction linear slider 702 is fixedly connected with the slider displacement sensor 1; 1 bottom fixed connection touch rod 2 of slider displacement sensor, the fixed silica gel touch head 3 that is provided with bionical finger of 2 lower extremes of touch rod.
The slider displacement sensor 1 is driven by driving mechanisms (such as driving cylinders) of all shafts to realize the movement of driving modules of all shafts, so that the touch rod 2 is driven to realize the movement in the directions of an X shaft, a Y shaft and a Z shaft, and further the test operations of clicking, dragging or long-time pressing and the like of the silica gel touch head 3 are realized.
Example 5
An automated testing system for touch screen devices, for performing the automated testing method of embodiments 1-3.
The system comprises the touch driving module in the embodiment 4, and further comprises a control module; the control module comprises a distance controller, a processor and a display;
the slider displacement sensor is used for driving the touch rod to move and feeding back the moving position information of the touch rod to the processor in real time;
the distance controller is used for receiving the movement command information sent by the processor and transmitting the movement command information to the sliding block displacement sensor;
the processor performs the following operations:
reading key element information of equipment to be tested; analyzing and calculating the working space position information corresponding to the key elements; monitoring log information of the equipment to be tested in real time; receiving the moving position information of the touch rod fed back by the slide block displacement sensor, and sending a moving control command to the distance controller to control the slide block displacement sensor to move; judging a test result according to the log information of the equipment to be tested monitored in real time;
the display is electrically connected with the processor and used for displaying a software graphical interaction interface of the touch driving module and checking log information and a test result of the device to be tested.
The method, the device and the system for automatically testing the touch screen equipment provided by the embodiment of the invention have the following beneficial effects:
(1) The method comprises the steps of acquiring working space coordinate information of key elements to be tested of equipment to be tested in a test working space, formulating an execution sequence of the key elements to be tested, sending the working space coordinate information of the key elements corresponding to the execution sequence to a slider displacement sensor in sequence, driving a touch rod to move to the position above each key element to be tested by the slider displacement sensor, and executing test operation (clicking, long pressing or dragging), so that repeated and tedious work performed by manpower is replaced, the manpower is effectively saved, test resources are released, and the test efficiency is improved;
(2) The bottom layer code of the software product is connected with the hardware, a whole set of service flow test can be automatically executed, and the problem that a real whole set of operation flow can not be simulated and tested by repeatedly clicking one point of a touch screen only in a fixed point position mode in the prior art is solved;
(3) The method can simultaneously analyze and diagnose the faults of the software and the hardware, quickly help a tester judge whether the error reason belongs to the software fault or the hardware fault, improve the accuracy and the reliability of the test, and has the advantages of simplicity, convenience, easy realization and strong practicability.
The above description is only an example of the present application and is not intended to limit the present invention. Any modification, equivalent replacement, and improvement made within the scope of the application of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. An automated testing method for touch screen equipment is characterized by comprising the following steps:
step S1: acquiring working space coordinate information of a key element to be tested of equipment to be tested in a test working space;
step S2: setting an execution sequence of the key elements to be tested;
and step S3: the working space coordinate information of the key elements corresponding to the execution sequence is sent to a slider displacement sensor in sequence, the slider displacement sensor drives a touch rod to move to the upper part of each key element to be tested in sequence, and the clicking, dragging or long-time pressing test operation is executed; the processor synchronously monitors log information of the equipment to be tested in real time;
and step S4: the slider displacement sensor feeds the moving position information of the touch rod back to the processor in real time, and after a test operation is executed, the processor judges the test result according to the log information of the equipment to be tested:
if the processor receives the execution success information transmitted by the log of the device to be tested and the log information is not reported in error, executing the next test operation;
if the processor does not receive the execution success information transmitted by the log of the device to be tested, the next test operation is stopped executing, the fault reason is judged according to the log information of the device to be tested, and an exception prompt is thrown out, and the method specifically comprises the following steps:
if the processor does not receive the operation information transmitted by the log of the equipment to be tested, judging that the abnormality is the hardware fault of the equipment to be tested, and throwing the abnormality to remind a tester to check the hardware equipment of the equipment to be tested;
if the processor receives operation information transmitted by the log of the device to be tested, but the log of the device to be tested does not return execution information for operating the key element to be tested, judging that the abnormality is the software system fault of the device to be tested, and throwing the abnormality to remind a tester to check the software system;
if the processor receives the operation information transmitted by the log of the device to be tested, but the log of the device to be tested returns the execution error information for operating the key element to be tested, the processor judges that the abnormality is an unknown fault of the device to be tested, and throws the abnormality to remind a tester of manually checking the fault reason.
2. The method according to claim 1, wherein the step S1 of obtaining the working space coordinate information of the key element to be tested of the device to be tested in the test working space specifically includes the following steps:
step S11: connecting the equipment to be tested with a processor, and inputting the unique attribute value of the key element to be tested into the processor;
step S12: the processor extracts the key element position information according to the unique attribute value;
step S13: fixing the equipment to be tested in a test working space, and presetting a working space coordinate system of a test system;
step S14: and converting the key element position information extracted in the step S12 into working space coordinate information according to the corresponding relation between the preset working space coordinate system and the key element position information, and recording the working space coordinate information in the processor.
3. The method according to claim 2, wherein the step S13 specifically includes:
the device to be tested is fixed in a test working space, a slider displacement sensor drives a touch rod to move to a preset original point position of a touch screen, working space coordinates (x 0, y0 and z 0) of the original point position are read and serve as reference point positions of a working space coordinate system to be fed back to a processor, the processor sets the position from the reference point level to the right to be the positive direction of an x axis, the position from the reference point level to the lower to be the positive direction of a y axis, and the position from the reference point vertical to the upper to be the positive direction of a z axis.
4. The method according to claim 3, wherein in step S14, the step of converting the key element position information extracted in step S12 into the working space coordinate information according to the corresponding relationship between the preset working space coordinate system and the key element position information specifically includes:
judging whether the key element position information is absolute position information or relative position information; if the absolute position information is the absolute position information, directly deriving the absolute position information as working space coordinate information; and if the key elements are relative position information, calculating absolute position information corresponding to the key elements on the screen according to the screen size and the resolution of the screen equipment to be tested and using the absolute position information as working space coordinate information of the key elements.
5. The method according to claim 1, wherein in step S1, obtaining workspace coordinate information of a key element to be tested of a device to be tested in the test workspace specifically comprises the following steps:
step S101: fixing the equipment to be tested in a test working space, driving a touch rod to move to a preset reference point position above a screen area to be tested of the equipment to be tested as an original point position (0, 0), and feeding back the original point position coordinate information of the touch rod to a processor by using a slider displacement sensor for storage;
step S102: the slider displacement sensor drives the touch rod to sequentially move to the position of the key element to be detected, and the working space position coordinates (x, y, z) of the key element to be detected are fed back to the processor to be recorded and stored.
6. The method according to any one of claims 1 to 5, wherein in the step S3, the touch bar vertical upward movement distance d is set as an optimal height movement distance when the touch bar performs the test operation.
7. The method according to claim 6, wherein in step S3, the clicking, dragging, or long-press test operation specifically includes:
clicking: the touch rod vertically falls for a distance d and then immediately rises for the distance d;
long pressing: the touch rod vertically falls for a distance d, and rises for a distance d after keeping time t;
dragging: and clicking the touch rod to vertically fall for a distance d, and moving to the next element position and then rising for a distance d.
8. An automated testing apparatus for a touch screen device, for carrying out the method of any one of claims 1 to 7, wherein the apparatus comprises a touch driving module; the touch driving module comprises a three-axis driving mechanism, a slider displacement sensor and a touch rod; the slide block displacement sensor is in driving connection with the three-axis driving mechanism and can move along the three directions of an x axis, a y axis and a z axis; touch pole fixed connection is in slider displacement sensor bottom, the fixed silica gel touch head that is provided with bionical finger of touch pole lower extreme.
9. An automated touch screen device testing system for implementing the method of any of claims 1-7, the system comprising a touch drive module and a control module, the control module comprising a distance controller, a processor and a display;
the touch driving module comprises a three-axis driving mechanism, a sliding block displacement sensor and a touch rod; the slider displacement sensor is in driving connection with the three-axis driving mechanism, and can move along the x axis, the y axis and the z axis; the touch rod is fixedly connected to the bottom end of the slider displacement sensor, and a silica gel touch head simulating fingers is fixedly arranged at the lower end of the touch rod;
the slider displacement sensor is used for driving the touch rod to move and feeding back the moving position information of the touch rod to the processor in real time;
the distance controller is used for receiving the movement command information sent by the processor and transmitting the movement command information to the sliding block displacement sensor;
the processor performs the following operations:
acquiring working space coordinate information of a key element to be tested of equipment to be tested in a test working space; monitoring log information of the equipment to be tested in real time; receiving the moving position information of the touch rod fed back by the slide block displacement sensor, and sending a moving control command to the distance controller to control the slide block displacement sensor to move; judging a test result according to the log information of the equipment to be tested monitored in real time;
the display is electrically connected with the processor and used for displaying a software graphical interaction interface of the touch driving module and checking log information and a test result of the device to be tested.
CN202211362130.0A 2022-11-02 2022-11-02 Automatic testing method, device and system for touch screen equipment Active CN115408228B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211362130.0A CN115408228B (en) 2022-11-02 2022-11-02 Automatic testing method, device and system for touch screen equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211362130.0A CN115408228B (en) 2022-11-02 2022-11-02 Automatic testing method, device and system for touch screen equipment

Publications (2)

Publication Number Publication Date
CN115408228A true CN115408228A (en) 2022-11-29
CN115408228B CN115408228B (en) 2023-01-17

Family

ID=84169257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211362130.0A Active CN115408228B (en) 2022-11-02 2022-11-02 Automatic testing method, device and system for touch screen equipment

Country Status (1)

Country Link
CN (1) CN115408228B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116481781A (en) * 2022-12-01 2023-07-25 广州星际悦动股份有限公司 Key testing method and system, key testing equipment and storage medium
CN116878856A (en) * 2023-09-06 2023-10-13 长沙巨翊医疗科技有限公司 Device and method for testing movement parameters of push injection component

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070109533A (en) * 2006-05-11 2007-11-15 삼성전자주식회사 Apparatus for testing touch screen panel and method for testing the same
CN102314386A (en) * 2011-09-05 2012-01-11 百度在线网络技术(北京)有限公司 Method and equipment for testing mobile terminal
US20120146956A1 (en) * 2010-12-09 2012-06-14 T-Mobile Usa, Inc. Touch Screen Testing Platform
CN103853640A (en) * 2014-03-31 2014-06-11 广州华欣电子科技有限公司 Touch screen test method and device
CN108009073A (en) * 2017-12-21 2018-05-08 深圳市金立通信设备有限公司 By method, terminal and the computer-readable recording medium of daily record reproduction touch trajectory
CN113986630A (en) * 2021-10-15 2022-01-28 中航华东光电有限公司 Touch performance test method and system of touch screen

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070109533A (en) * 2006-05-11 2007-11-15 삼성전자주식회사 Apparatus for testing touch screen panel and method for testing the same
US20120146956A1 (en) * 2010-12-09 2012-06-14 T-Mobile Usa, Inc. Touch Screen Testing Platform
CN102314386A (en) * 2011-09-05 2012-01-11 百度在线网络技术(北京)有限公司 Method and equipment for testing mobile terminal
CN103853640A (en) * 2014-03-31 2014-06-11 广州华欣电子科技有限公司 Touch screen test method and device
CN108009073A (en) * 2017-12-21 2018-05-08 深圳市金立通信设备有限公司 By method, terminal and the computer-readable recording medium of daily record reproduction touch trajectory
CN113986630A (en) * 2021-10-15 2022-01-28 中航华东光电有限公司 Touch performance test method and system of touch screen

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116481781A (en) * 2022-12-01 2023-07-25 广州星际悦动股份有限公司 Key testing method and system, key testing equipment and storage medium
CN116878856A (en) * 2023-09-06 2023-10-13 长沙巨翊医疗科技有限公司 Device and method for testing movement parameters of push injection component
CN116878856B (en) * 2023-09-06 2023-11-28 长沙巨翊医疗科技有限公司 Device and method for testing movement parameters of push injection component

Also Published As

Publication number Publication date
CN115408228B (en) 2023-01-17

Similar Documents

Publication Publication Date Title
CN115408228B (en) Automatic testing method, device and system for touch screen equipment
CN110851356B (en) Selenium-based Web application automatic test framework and construction method and system thereof
US9128126B2 (en) Oscilloscope and method, system thereof for collecting and displaying signal waveform
US6362013B1 (en) Semiconductor inspection apparatus and method of specifying attributes of dies on wafer in semiconductor inspection apparatus
CN101900787A (en) Test system and method of circuit board
CN112339796B (en) Detection method and device for electric locomotive control circuit and mobile terminal
CN112162916B (en) LKJ test system capable of automatically generating test script
CN111858372A (en) Automatic testing system and method for TSRS system
CN113127486B (en) Information collection and storage method, device, equipment and storage medium
CN111988604A (en) Flare automatic checking system
CN114325316A (en) Board card testing method and device, electronic equipment and storage medium
CN113126993B (en) Automatic test method and system applied to vehicle detection software
CN106445810A (en) Interactive software and device compatibility test method and system
CN114741245A (en) Automatic test system for batch of plug-ins of electric power protection device
CN2809594Y (en) Portable equipment state detection recorder
CN108983083B (en) Electric tool switch debugging control method, device and system
CN207249477U (en) Vehicle dormer window assembly automatic test device
JP2015125661A (en) Matrix test device and matrix test control device
TWI282921B (en) A wafer testing real-time monitoring software system and its unique open software architecture
CN116185879B (en) Python-based intelligent cabin instrument automatic test method and system
CN113640026B (en) Industrial equipment testing method, device and system
CN213658949U (en) Automatic tester for keyboard interface of notebook computer mainboard
CN219162257U (en) Automatic touch screen test fixture
CN105717442A (en) Device and method for printed circuit board detection based on schematic diagram assertion
JPH0611498Y2 (en) Address translator

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant