A method, system, terminal and storage medium for automatic testing of equipment
By analyzing and converting the operating instruction protocol of the automated test equipment, efficient automated testing of smart devices is achieved, solving the problems of low testing efficiency and heavy development tasks in the existing technology, reducing costs and improving production efficiency.
Patent Information
- Application Number
- CN202411873479.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-04-08
AI Technical Summary
The existing technology requires a lot of manpower in automated testing, and the testing efficiency is not high. Each application needs to add heavier development tasks and business logic processing, which poses the risk of increasing code capacity and stability.
By obtaining the target operation instruction protocol generated by the automated test equipment according to the operation test requirements and parsing it, the target device touch event is obtained. The coordinate conversion of the target device touch event is obtained, the operation coordinate information is obtained, and the corresponding operation event is executed based on the operation coordinate information to obtain the test results.
Efficient automated testing is realized, reducing labor and equipment costs, improving production efficiency, and avoiding the risk of increasing development tasks and business logic for each application.
Smart Images

Figure CN119782193A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automated testing technology, and in particular to an automated testing method, system, terminal and computer-readable storage medium for equipment. Background Art
[0002] Many existing smart devices complete the interaction and testing functions of various application interfaces by operating or clicking the screen. The principle of clicking the screen is that the TP (Touch Panel) reports, and then gives the touch coordinates or key values to the upper-level app, and then various interactive actions are made through the app. However, during testing, a lot of manpower is required and the test efficiency is not high.
[0003] Subsequently, automated testing was implemented based on the principle of clicking the screen. However, most of the current automated tests send data protocols through serial ports or USBs. It is necessary to develop corresponding middleware to identify serial port and USB data protocols, and then forward them to the upper-level app. Finally, the app performs corresponding processing according to the protocol commands, or calls special interfaces through special services to perform various special interface operations. As a result, each app needs to add heavier development tasks and business logic processing, and each app is at risk of increasing code capacity and stability.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] The main purpose of the present invention is to provide an automated testing method, system, terminal and storage medium for a device, aiming to solve the problem in the prior art that when scanning and parsing media files of driving record videos, a large amount of resources are consumed, resulting in system freezes and unresponsiveness for a short period of time; and when plugging and unplugging a TF card, the actual file will not match the data recorded in the database.
[0006] To achieve the above object, the present invention provides an automated testing method for a device, the automated testing method for the device comprising the following steps:
[0007] Obtaining a target operation instruction protocol generated by an automated test device according to an operation test requirement, and parsing and processing the target operation instruction protocol to obtain a target device touch event;
[0008] The touch event of the target device is subjected to coordinate conversion to obtain operation coordinate information, and a corresponding operation event is executed according to the operation coordinate information to obtain a test result.
[0009] Optionally, in the automated testing method for the device, the step of obtaining a target operation instruction protocol generated by the automated testing device according to the operation test requirements specifically includes:
[0010] Obtaining the user's operation test requirements, and reminding the user to access the automated testing equipment according to the operation test requirements;
[0011] When it is detected that the automated test equipment has been connected, the operation test requirement is sent to the automated test equipment through the corresponding transmission data line, and the operation instruction protocol sent by the automated equipment is received, wherein the operation instruction protocol is generated by the automated test equipment according to the operation test requirement;
[0012] The data line information of the transmission data line is obtained, and the operation instruction protocol is determined according to the data line information to obtain a target operation instruction protocol, wherein the target operation instruction protocol is any one of a serial port data protocol and a USB data protocol.
[0013] Optionally, the automated testing method for the device, wherein the step of parsing the target operation instruction protocol to obtain a target device touch event specifically includes:
[0014] If the target operation instruction protocol is a serial port data protocol, the serial port data protocol is parsed for data packets to obtain target frame data, wherein the target frame data includes a data transmission frame and a management frame;
[0015] The target frame data is converted to obtain a target device touch event, wherein the target device touch event includes touch screen point reporting data and screen touch operation.
[0016] Optionally, the automated testing method for the device, wherein the step of parsing the target operation instruction protocol to obtain a target device touch event specifically includes:
[0017] If the target operation instruction protocol is a USB data protocol, performing protocol parsing on the USB data protocol to obtain a target descriptor;
[0018] Data conversion is performed on the target descriptor to obtain a target device touch event.
[0019] Optionally, the automated testing method for the device, wherein the step of acquiring a target operation instruction protocol generated by the automated testing device according to an operation test requirement, and parsing the target operation instruction protocol to obtain a target device touch event, further comprises:
[0020] When it is detected that the user is touching the screen, multiple device touch events and corresponding position response points are obtained, and coordinate analysis is performed on all the position response points to obtain corresponding coordinate information;
[0021] Each of the device touch events is matched with the coordinate information to obtain a plurality of matching results, and all the matching results are stored in a coordinate database.
[0022] Optionally, the automated testing method for the device, wherein the step of performing coordinate conversion on the touch event of the target device to obtain operation coordinate information, and executing a corresponding operation event according to the operation coordinate information to obtain a test result, specifically includes:
[0023] Inputting the target device touch event into the coordinate database to obtain corresponding operation coordinate information, wherein the operation coordinate information is obtained by performing coordinate matching on the target device touch event according to the coordinate database;
[0024] The response point is confirmed according to the operation coordinate information to obtain the target response point, the corresponding operation event is executed according to the target response point, and the corresponding execution time is recorded, and the test result is obtained according to the execution time.
[0025] Optionally, the automated testing method for the device, wherein the execution time corresponding to the record and obtaining the test result according to the execution time, specifically includes:
[0026] When a corresponding operation event is executed according to the target response point, the corresponding execution time is recorded, and the execution time is compared with the preset time to obtain a comparison result;
[0027] If the comparison result is that the execution time is less than or equal to the preset time, then determining that the test result is that the operation event is executed successfully;
[0028] If the comparison result is that the execution time is greater than the preset time, the test result is determined to be the failure of the operation event to execute, and a corresponding abnormal event is recorded, and an abnormal reminder is generated according to the abnormal event.
[0029] Optionally, in the automated testing method for a device, the automated testing system for the device comprises:
[0030] The protocol parsing module is used to obtain the target operation instruction protocol generated by the automated test equipment according to the operation test requirements, and parse the target operation instruction protocol to obtain the target device touch event;
[0031] The operation execution module is used to perform coordinate conversion on the touch event of the target device to obtain operation coordinate information, and execute the corresponding operation event according to the operation coordinate information to obtain a test result.
[0032] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and an automated testing program for a device stored in the memory and executable on the processor, wherein the automated testing program for the device, when executed by the processor, implements the steps of the automated testing method for the device as described above.
[0033] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores an automated testing program for a device, and when the automated testing program for the device is executed by a processor, the steps of the automated testing method for the device as described above are implemented.
[0034] In the present invention, the target operation instruction protocol generated by the automated test equipment according to the operation test requirements is obtained, and the target operation instruction protocol is parsed and processed to obtain the target device touch event; the target device touch event is coordinate converted to obtain the operation coordinate information, and the corresponding operation event is executed according to the operation coordinate information to obtain the test result. The present invention converts the protocol data of various operations into touch buttons similar to touch screens to replace human operations, thereby more efficiently performing automated testing on smart devices, reducing labor costs and equipment costs, and improving production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a flow chart of a preferred embodiment of the automated testing method of the device of the present invention;
[0036] Figure 2 It is an overall flow chart of a preferred embodiment of the automated testing method of the device of the present invention;
[0037] Figure 3 It is a structural diagram of a preferred embodiment of the automated testing system of the device of the present invention;
[0038] Figure 4 Schematic diagram of the operating environment of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0040] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0041] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0042] The automated testing method for the device described in the preferred embodiment of the present invention is as follows: Figure 1 As shown, the automated testing method of the device comprises the following steps:
[0043] Step S10: obtaining a target operation instruction protocol generated by the automated test equipment according to the operation test requirements, and parsing the target operation instruction protocol to obtain a target device touch event.
[0044] Specifically, in an embodiment of the present invention, in order to realize the automated testing of equipment (i.e., smart devices, such as automobile instruments, smart central control navigation devices, smart cockpit domain devices, rearview mirrors, and driving recorders, etc.), the operation of the smart devices is reversely controlled by automated testing equipment, wherein the automated testing equipment refers to the testing tools used by the factory during production, and the smart devices are the products being produced. The specific implementation process is to obtain the user's operation test requirements, and remind the user to access the automated testing equipment according to the operation test requirements; when the automated testing equipment is accessed through the corresponding transmission data line, the operation test requirements are sent to the corresponding transmission data line. The automated test equipment generates a corresponding operation instruction protocol according to the operation test requirements, then receives the operation instruction protocol sent by the automated equipment, obtains the data line information of the transmission data line, and determines the operation instruction protocol according to the data line information to obtain a target operation instruction protocol, wherein the target operation instruction protocol is any one of a serial port data protocol and a USB data protocol. For example, when connected through a hardware line of a UART interface, such as a TX data line or an RX data line, the corresponding target operation instruction protocol is a serial port data protocol; when a USB data line interface communication method is adopted, such as a USB HID method, the corresponding target operation instruction protocol is a USB data protocol.
[0045] After determining the target operation instruction protocol, it is necessary to parse and process the target operation instruction protocol. Specifically, if the target operation instruction protocol is a serial port data protocol, the data packet of the serial port data protocol is parsed by the middleware software to obtain the target frame data, wherein the middleware software refers to the service or interface software of the middle layer, which is responsible for parsing the instruction protocol and then converting the corresponding instruction into data in other formats, for example, the converted TP (TouchPanel, touch screen) point data or event (i.e., similar to a manual touch operation), and then forwarding it to the upper layer application; the target frame data includes a data sending frame and an ACK frame, i.e., a management frame; thereafter, the target frame data is converted to obtain the target device Touch event (for example, clicking on an App), wherein the target device touch event includes touch screen point reporting data and screen touch operation; if the target operation instruction protocol is a USB data protocol, the USB data protocol is parsed by the middleware software to obtain a target descriptor; the target descriptor is converted to obtain a target device touch event, wherein if the target device touch event is a home button click event, the corresponding conversion code is, input_event(ts->input_dev, EV_KEY, KEY_HOMEPAGE, 1); input_sync(ts->input_dev); input_ev ent(ts->input_dev,EV_KEY,KEY_HOMEPAGE,0);input_sync(ts->input_dev);If the target device touch event is a volume+key event, the corresponding conversion code is,input_report_key(ts->input_dev,KEY_VOLUMEUP,1);input_sync(ts->input_dev);input_report_key(ts->input_dev,KEY_VOLUMEUP,0);input_sync(ts->input_dev);in put_report_key(ts->input_dev, KEY_VOLUMEUP, 0); input_sync(ts->input_dev); If the target device touch event is a coordinate event, the corresponding conversion code is, input_report_key(ts->input_dev, BTN_TOUCH, 1); input_report_abs(ts->input_dev, ABS_MT_POSITION_X, x); input_report_abs(ts->input_dev, ABS_MT_POSITION_Y, y);input_report_abs(ts->input_dev, ABS_MT_TOUCH_MAJOR, w). ;
[0046] Step S20: coordinate conversion is performed on the touch event of the target device to obtain operation coordinate information, and a corresponding operation event is executed according to the operation coordinate information to obtain a test result.
[0047] The step S20 comprises:
[0048] Step S21, inputting the target device touch event into the coordinate database to obtain corresponding operation coordinate information, wherein the operation coordinate information is obtained by performing coordinate matching on the target device touch event according to the coordinate database;
[0049] Step S22: confirm the response point according to the operation coordinate information to obtain the target response point, execute the corresponding operation event according to the target response point, record the corresponding execution time, and obtain the test result according to the execution time.
[0050] Specifically, in an embodiment of the present invention, after obtaining the target device touch event, it is necessary to perform coordinate conversion processing on the target device touch event, specifically, input the target device touch event into a coordinate database, wherein the coordinate database stores the correspondence between multiple device touch events and corresponding coordinate information, and the process of obtaining the correspondence between each device touch event and the corresponding coordinate information is as follows: when it is detected that the user is touching the screen, all device touch events and corresponding position response points are obtained, and coordinate analysis is performed on all the position response points to obtain corresponding coordinate information. For example, if the user clicks on the navigation module of the smart central control navigation device, the corresponding coordinate information is (x: 165, y: 314, w: 48); then, each of the device touch events is matched with the coordinate information to obtain multiple corresponding results, and all the corresponding results are stored in the coordinate database; then, the target device touch event is input into the coordinate database, and the target device touch event is matched according to the coordinate database to obtain corresponding operation coordinate information; then, the response point is confirmed according to the operation coordinate information to obtain the target response point, and the corresponding operation event is executed according to the target response point.
[0051] When the corresponding operation event is executed according to the target response point, the corresponding execution time is recorded, and the execution time is compared with the preset time to obtain a comparison result; if the comparison result is that the execution time is less than or equal to the preset time, the test result is determined to be that the operation event is successfully executed, and subsequent operation events are continuously processed to complete the corresponding automated test; if the comparison result is that the execution time is greater than the preset time, the test result is determined to be that the operation event fails to execute, and the corresponding abnormal event is recorded, and an abnormal reminder is generated according to the abnormal event, so as to promptly remind the user to perform abnormal processing.
[0052] The present invention converts the protocol data of various operations into touch buttons similar to a touch screen to replace human operation, thereby more efficiently performing automated testing on smart devices, reducing labor costs and equipment costs, and improving production efficiency.
[0053] Furthermore, the overall flow chart of the preferred embodiment of the automated testing method of the device in the present invention is as follows: Figure 2As shown, specifically: obtaining the user's operation test requirements, and reminding the user to access the automated test equipment according to the operation test requirements; when the automated test equipment is connected through the corresponding transmission data line, the operation test requirements are sent to the automated test equipment through the corresponding transmission data line, and the automated test equipment generates a corresponding operation instruction protocol according to the operation test requirements, and then receives the operation instruction protocol sent by the automated equipment, obtains the data line information of the transmission data line, and determines the operation instruction protocol according to the data line information to obtain the target operation instruction protocol, wherein the target operation instruction protocol is a serial port data protocol or a USB data protocol; after determining the target operation instruction protocol, it is necessary to parse and convert the target operation instruction protocol, specifically, if the target operation instruction protocol is a serial port data protocol, the serial port data protocol is converted through the middleware software According to the protocol, the data packet is parsed to obtain the target frame data, and then the target frame data is converted to obtain the target device touch event (for example, TP coordinates or key events); if the target operation instruction protocol is a USB data protocol, the USB data protocol is parsed by the middleware software to obtain the target descriptor; the target descriptor is converted to obtain the target device touch event; after obtaining the target device touch event, the target device touch event is input into a coordinate database, wherein the coordinate database stores the correspondence between multiple device touch events and corresponding coordinate information, and the target device touch event is matched with coordinates according to the coordinate database to obtain corresponding operation coordinate information; then, the response point is confirmed according to the operation coordinate information to obtain the target response point, and the corresponding operation event is executed according to the target response point to obtain the corresponding test result.
[0054] Furthermore, if Figure 3 As shown, based on the above-mentioned automated testing method for the device, the present invention also provides an automated testing system for the device, wherein the automated testing system for the device comprises:
[0055] The protocol parsing module 51 is used to obtain the target operation instruction protocol generated by the automated test equipment according to the operation test requirements, and parse the target operation instruction protocol to obtain the target device touch event;
[0056] The operation execution module 52 is used to perform coordinate conversion on the touch event of the target device to obtain operation coordinate information, and execute the corresponding operation event according to the operation coordinate information to obtain a test result.
[0057] Furthermore, if Figure 4As shown, based on the automatic testing method of the above-mentioned device, the present invention also provides a terminal accordingly, and the terminal includes a processor 10, a memory 20 and a display 30. Figure 4 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0058] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed in the terminal, such as the program code of the installation terminal, etc. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 20 stores an automated test program 40 of a device, and the automated test program 40 of the device can be executed by the processor 10, thereby realizing the automated test method of the device in the present application.
[0059] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing an automated testing method for the device.
[0060] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components of the terminal communicate with each other via a system bus.
[0061] In one embodiment, when the processor 10 executes the automated testing program 40 of the device in the memory 20, the following steps are implemented:
[0062] Obtaining a target operation instruction protocol generated by an automated test device according to an operation test requirement, and parsing and processing the target operation instruction protocol to obtain a target device touch event;
[0063] The touch event of the target device is subjected to coordinate conversion to obtain operation coordinate information, and a corresponding operation event is executed according to the operation coordinate information to obtain a test result.
[0064] The step of obtaining the target operation instruction protocol generated by the automated test equipment according to the operation test requirements specifically includes:
[0065] Obtaining the user's operation test requirements, and reminding the user to access the automated testing equipment according to the operation test requirements;
[0066] When it is detected that the automated test equipment has been connected, the operation test requirement is sent to the automated test equipment through the corresponding transmission data line, and the operation instruction protocol sent by the automated equipment is received, wherein the operation instruction protocol is generated by the automated test equipment according to the operation test requirement;
[0067] The data line information of the transmission data line is obtained, and the operation instruction protocol is determined according to the data line information to obtain a target operation instruction protocol, wherein the target operation instruction protocol is any one of a serial port data protocol and a USB data protocol.
[0068] The step of parsing the target operation instruction protocol to obtain a target device touch event specifically includes:
[0069] If the target operation instruction protocol is a serial port data protocol, the serial port data protocol is parsed for data packets to obtain target frame data, wherein the target frame data includes a data transmission frame and a management frame;
[0070] The target frame data is converted to obtain a target device touch event, wherein the target device touch event includes touch screen point reporting data and screen touch operation.
[0071] The step of parsing the target operation instruction protocol to obtain a target device touch event specifically includes:
[0072] If the target operation instruction protocol is a USB data protocol, performing protocol parsing on the USB data protocol to obtain a target descriptor;
[0073] Data conversion is performed on the target descriptor to obtain a target device touch event.
[0074] The step of acquiring a target operation instruction protocol generated by an automated test device according to an operation test requirement, parsing the target operation instruction protocol to obtain a target device touch event, and then further comprising:
[0075] When it is detected that the user is touching the screen, multiple device touch events and corresponding position response points are obtained, and coordinate analysis is performed on all the position response points to obtain corresponding coordinate information;
[0076] Each of the device touch events is matched with the coordinate information to obtain a plurality of matching results, and all the matching results are stored in a coordinate database.
[0077] The step of performing coordinate conversion on the touch event of the target device to obtain operation coordinate information, and executing a corresponding operation event according to the operation coordinate information to obtain a test result specifically includes:
[0078] Inputting the target device touch event into the coordinate database to obtain corresponding operation coordinate information, wherein the operation coordinate information is obtained by performing coordinate matching on the target device touch event according to the coordinate database;
[0079] The response point is confirmed according to the operation coordinate information to obtain the target response point, the corresponding operation event is executed according to the target response point, and the corresponding execution time is recorded, and the test result is obtained according to the execution time.
[0080] The execution time corresponding to the record and the test result obtained according to the execution time specifically include:
[0081] When a corresponding operation event is executed according to the target response point, the corresponding execution time is recorded, and the execution time is compared with the preset time to obtain a comparison result;
[0082] If the comparison result is that the execution time is less than or equal to the preset time, then determining that the test result is that the operation event is executed successfully;
[0083] If the comparison result is that the execution time is greater than the preset time, the test result is determined to be the failure of the operation event to execute, and a corresponding abnormal event is recorded, and an abnormal reminder is generated according to the abnormal event.
[0084] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores an automated testing program for a device, and when the automated testing program for the device is executed by a processor, the steps of the automated testing method for the device as described above are implemented.
[0085] In summary, the present invention provides an automated testing method, system, terminal and storage medium for a device, the method comprising: obtaining a target operation instruction protocol generated by an automated testing device according to an operation test requirement, and parsing and processing the target operation instruction protocol to obtain a target device touch event; performing coordinate conversion on the target device touch event to obtain operation coordinate information, and executing a corresponding operation event according to the operation coordinate information to obtain a test result. The present invention converts the protocol data of various operations into touch buttons similar to a touch screen to replace human operation, thereby more efficiently performing automated testing on smart devices, reducing labor costs and equipment costs, and improving production efficiency.
[0086] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or terminal including the element.
[0087] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.
[0088] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. An automated testing method for a device, characterized in that: The automated testing method of the device comprises: Obtaining a target operation instruction protocol generated by an automated test device according to an operation test requirement, and parsing and processing the target operation instruction protocol to obtain a target device touch event; The touch event of the target device is subjected to coordinate conversion to obtain operation coordinate information, and a corresponding operation event is executed according to the operation coordinate information to obtain a test result.
2. The automated testing method for a device according to claim 1, characterized in that: The step of obtaining the target operation instruction protocol generated by the automated test equipment according to the operation test requirements specifically includes: Obtaining the user's operational test requirements, and reminding the user to access automated testing equipment according to the operational test requirements; When it is detected that the automated test equipment has been connected, the operation test requirement is sent to the automated test equipment through the corresponding transmission data line, and the operation instruction protocol sent by the automated equipment is received, wherein the operation instruction protocol is generated by the automated test equipment according to the operation test requirement; The data line information of the transmission data line is obtained, and the operation instruction protocol is determined according to the data line information to obtain a target operation instruction protocol, wherein the target operation instruction protocol is any one of a serial port data protocol and a USB data protocol.
3. The automated testing method for a device according to claim 2, characterized in that: The parsing and processing of the target operation instruction protocol to obtain the target device touch event specifically includes: If the target operation instruction protocol is a serial port data protocol, the serial port data protocol is parsed for data packets to obtain target frame data, wherein the target frame data includes a data transmission frame and a management frame; The target frame data is converted to obtain a target device touch event, wherein the target device touch event includes touch screen point reporting data and screen touch operation.
4. The automated testing method for a device according to claim 2, characterized in that: The parsing and processing of the target operation instruction protocol to obtain the target device touch event specifically includes: If the target operation instruction protocol is a USB data protocol, performing protocol parsing on the USB data protocol to obtain a target descriptor; Data conversion is performed on the target descriptor to obtain a target device touch event.
5. The automated testing method for a device according to claim 1, characterized in that: The step of acquiring a target operation instruction protocol generated by the automated test device according to the operation test requirements, and parsing the target operation instruction protocol to obtain a target device touch event, further includes: When it is detected that the user is touching the screen, multiple device touch events and corresponding position response points are obtained, and coordinate analysis is performed on all the position response points to obtain corresponding coordinate information; Each of the device touch events is matched with the coordinate information to obtain a plurality of matching results, and all the matching results are stored in a coordinate database.
6. The automated testing method for a device according to claim 5, characterized in that: The coordinate conversion of the touch event of the target device to obtain operation coordinate information, and executing the corresponding operation event according to the operation coordinate information to obtain the test result specifically includes: Inputting the target device touch event into the coordinate database to obtain corresponding operation coordinate information, wherein the operation coordinate information is obtained by performing coordinate matching on the target device touch event according to the coordinate database; The response point is confirmed according to the operation coordinate information to obtain the target response point, the corresponding operation event is executed according to the target response point, and the corresponding execution time is recorded, and the test result is obtained according to the execution time.
7. The automated testing method for a device according to claim 6, characterized in that: The execution time corresponding to the record and the test result obtained according to the execution time specifically include: When a corresponding operation event is executed according to the target response point, the corresponding execution time is recorded, and the execution time is compared with the preset time to obtain a comparison result; If the comparison result is that the execution time is less than or equal to the preset time, then determining that the test result is that the operation event is executed successfully; If the comparison result is that the execution time is greater than the preset time, the test result is determined to be the failure of the operation event to execute, and a corresponding abnormal event is recorded, and an abnormal reminder is generated according to the abnormal event.
8. An automated testing system for a device, characterized in that: The automated testing system of the device comprises: The protocol parsing module is used to obtain the target operation instruction protocol generated by the automated test equipment according to the operation test requirements, and parse the target operation instruction protocol to obtain the target device touch event; The operation execution module is used to perform coordinate conversion on the touch event of the target device to obtain operation coordinate information, and execute the corresponding operation event according to the operation coordinate information to obtain a test result.
9. A terminal, characterized in that: The terminal includes: a memory, a processor, and an automated testing program for the device stored in the memory and executable on the processor. When the automated testing program for the device is executed by the processor, the steps of the automated testing method for the device as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an automated testing program for a device, and when the automated testing program for the device is executed by a processor, the steps of the automated testing method for the device according to any one of claims 1 to 7 are implemented.