An automated testing method and terminal

By acquiring information from the production interface and simulating the control logic of operators, automated testing and physical state control of tooling are achieved on the production side. This solves the problem of complex tool adaptation on the production side, improves production efficiency, and reduces costs.

CN117312136BActive Publication Date: 2026-04-28FUJIAN LANDI COMMERCIAL EQUIPMENT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
FUJIAN LANDI COMMERCIAL EQUIPMENT CO LTD
Filing Date
2023-09-08
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

Existing production tools are complex to automate and rely on manual operation, which affects production efficiency and flexibility, leading to high production costs.

Method used

By acquiring interface information from the production end, simulating the control logic of operators, automated testing on the production end is achieved. Based on the test results, the physical state of the production tooling is controlled, avoiding direct communication between the production end and the tooling. The GATS protocol is used to interact with the production tooling.

Benefits of technology

It has achieved fully automated adaptation of production tools, which has improved production efficiency, reduced production costs, reduced human resource requirements and error rates, and enhanced production flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117312136B_ABST
    Figure CN117312136B_ABST
Patent Text Reader

Abstract

The application discloses an automatic testing method and a terminal, which obtains interface information of a production end, simulates human operation of the production end according to the interface information, and controls the production end to automatically test a terminal to be tested, and obtains a test result of the terminal to be tested. Meanwhile, the test result is used to control a production tool to set a physical state of the terminal to be tested, and a hardware control effect is realized. Compared with an existing automatic control method of simulating human operation, the application does not need to be connected with third-party software, but controls the production end and the production tool respectively, realizes data interaction between the two, and makes the control process more convenient and efficient. The production end and the production tool are not directly connected in communication, the production end tool and the production tool adaptation process are effectively avoided, production efficiency is improved, and production cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automated testing technology, and in particular to an automated testing method and terminal. Background Technology

[0002] As production scale expands and product output gradually increases, market competition becomes increasingly fierce. Besides the functional features of the products themselves, users are also placing greater emphasis on cost-effectiveness; that is, given the same product, in addition to considering quality and functionality, they also hope to obtain a satisfactory shopping experience at a lower price. To improve cost-effectiveness, besides selecting suitable raw materials, reducing production costs is essential. This can be achieved through improving production processes, increasing production efficiency, and optimizing the supply chain.

[0003] During the production process, existing production-end tools communicate with the tooling end through integration to achieve automated production and improve efficiency. This integration can utilize various communication protocols and technologies, such as serial communication, Ethernet communication, or wireless communication. It typically requires writing specific code and drivers to ensure that the production-end tools can communicate and transmit data correctly with the tooling end. After integration, the production-end tools can monitor and control the production process in real time through communication with the tooling end, improving both production efficiency and quality.

[0004] like Figure 1 As shown, due to the diverse types and versions of production-side tools encountered during actual testing, achieving compatibility between the tooling and production-side tools requires the redevelopment and integration of various tools. Each tool may have different interfaces, protocols, and data formats, making the automated adaptation process complex and impacting production efficiency. Furthermore, the current production line operation involves production line operators manipulating production-side tools (PC-based) to interact with the tooling (control board) and the terminal (POS) for semi-automated production. However, in reality, real-time monitoring by production line operators is still required, involving repetitive operations such as "scanning," "setting," and "starting" of the production equipment. In this scenario, while the use of production-side tools brings a degree of automation, the execution process still relies on manual operation, limiting production efficiency and flexibility. Summary of the Invention

[0005] The technical problem to be solved by this invention is to provide an automated testing method and terminal, which simplifies the automated adaptation process of production tools, improves production efficiency, and thereby reduces production costs.

[0006] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows:

[0007] An automated testing method includes:

[0008] The interface information of the production end is obtained, and the production end is controlled to perform automated testing on the terminal under test based on the interface information to obtain the test results of the terminal under test.

[0009] The production tooling is controlled to set the physical state of the terminal under test based on the test results of the terminal under test.

[0010] To solve the above-mentioned technical problems, another technical solution adopted by the present invention is as follows:

[0011] An automated testing terminal includes a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, it performs the following steps:

[0012] The interface information of the production end is obtained, and the production end is controlled to perform automated testing on the terminal under test based on the interface information to obtain the test results of the terminal under test.

[0013] The production tooling is controlled to set the physical state of the terminal under test based on the test results of the terminal under test.

[0014] The beneficial effects of this invention are as follows: By acquiring interface information from the production end, the invention simulates human operation on the production end, enabling the production end to automatically perform automated testing on the terminal under test and obtain the test results. Simultaneously, based on the test results, the invention controls the physical state of the terminal under test using the production tooling, achieving hardware control. Compared to existing automatic control methods that simulate human operation, this invention does not require connection to third-party software. Instead, it controls the production end and the production tooling separately, enabling data interaction between the two, making the control process more convenient and efficient. Furthermore, the production end and the production tooling do not have a direct communication connection, effectively avoiding the adaptation process between the production end tools and the production tooling, improving production efficiency, and thus reducing production costs. Attached Figure Description

[0015] Figure 1 This is a production model diagram based on existing technology;

[0016] Figure 2 A flowchart of the steps of an automated testing method provided by the present invention;

[0017] Figure 3 A production mode diagram of an automated testing method provided by the present invention;

[0018] Figure 4 A flowchart of an automated testing method provided by the present invention;

[0019] Figure 5 A test flowchart for an automated testing method provided by the present invention;

[0020] Figure 6 This invention provides a schematic diagram of the structure of an automated testing terminal.

[0021] Label Explanation:

[0022] 201. Memory; 202. Processor. Detailed Implementation

[0023] To explain in detail the technical content, objectives, and effects of the present invention, the following description is provided in conjunction with the embodiments and accompanying drawings.

[0024] Please refer to Figure 2 This invention provides an automated testing method, comprising:

[0025] The interface information of the production end is obtained, and the production end is controlled to perform automated testing on the terminal under test based on the interface information to obtain the test results of the terminal under test.

[0026] The production tooling is controlled to set the physical state of the terminal under test based on the test results of the terminal under test.

[0027] As described above, the beneficial effects of this invention are as follows: By acquiring the interface information of the production end, the invention simulates human operation of the production end based on the interface information, enabling the production end to automatically perform automated testing on the terminal under test and obtain the test results. Simultaneously, based on the test results, the invention controls the physical state of the terminal under test using the production tooling, achieving hardware control. Compared to existing automatic control methods that simulate human operation, this invention does not require connection to third-party software. Instead, it controls the production end and the production tooling separately, enabling data interaction between the two, making the control process more convenient and efficient. Furthermore, the production end and the production tooling do not have a direct communication connection, effectively avoiding the adaptation process between the production end tools and the production tooling, improving production efficiency, and thus reducing production costs.

[0028] Furthermore, prior to obtaining the interface information from the production end, the following steps are included:

[0029] Acquire status signals from production tooling;

[0030] The status signal is used to determine whether the production tooling is connected to the terminal under test. If so, the working status of the production end is detected.

[0031] If the working status of the production terminal is closed, the source interface information of the operating system corresponding to the production terminal is obtained, the production terminal is started according to the source interface information, and the step of obtaining the interface information of the production terminal is executed.

[0032] If the production terminal is in an active state, then the step of obtaining the interface information of the production terminal is executed.

[0033] As described above, the status signal of the production tooling is directly acquired to determine whether the terminal under test (DUT) is in place. Connection between the DUT and the production tooling indicates test readiness. The system then checks the working status of the production end; if the production end is running, automated testing is performed directly; otherwise, the testing end is automatically started. This transforms the manual "starting and stopping of the production end" into automated "starting and stopping of the production end," achieving full automation of the testing process.

[0034] Furthermore, the interface information includes window information and control information;

[0035] The process of acquiring the interface information from the production end and controlling the production end to perform automated testing on the terminal under test based on the interface information, and obtaining the test results of the terminal under test, includes:

[0036] Obtain the window and control information in the current interface of the production terminal;

[0037] Based on the window information and the control information, all controls in the current interface are traversed, and the target control to be triggered in the current interface and the target window corresponding to the target control are determined according to the preset operation information.

[0038] Based on the target window and target control, the production end is controlled to execute instructions corresponding to the operation information to perform automated testing on the terminal under test;

[0039] The corresponding test data is read from the test interface on the production end to obtain the test results of the terminal under test.

[0040] As described above, the window and control information in the interface is used to realize the interaction between the operating system and the application. By traversing all spaces in the interface through the window and control information, the target window and target control corresponding to the preset operation information can be found. Based on the target window and target control, the effect of simulating human clicks on the current interface can be controlled to perform automated testing on the production side, thus forming a complete fully automated testing process. This makes the testing process more convenient and faster, and effectively reduces human resource costs.

[0041] Furthermore, the physical state includes a test-ready state and a test-stopped state;

[0042] The step of controlling the production tooling to set the physical state of the terminal under test based on the test results of the terminal under test includes:

[0043] The test results of the terminal under test are sent to the production tooling;

[0044] The production tooling determines whether the test result of the terminal under test is abnormal. If so, the production tooling is controlled to set the physical state of the terminal under test to the stop test state and send a test failure signal.

[0045] Otherwise, the production tooling is controlled to set the physical state of the terminal under test to the test state, and the next test process is executed.

[0046] As described above, there is no direct communication between the production tooling and the production end. This reduces the development and debugging process on the production end, thereby improving production efficiency and flexibility, reducing error rates, and saving human resources. Furthermore, the automation scripts on the production end can be modified and updated at any time to adapt to different production needs and changes.

[0047] Furthermore, before acquiring the status signal of the production tooling, the process also includes connecting to the production tooling via the GATS protocol.

[0048] As described above, the GATS protocol enables data communication with the production tooling, replacing manual operation to control the hardware. While obtaining the test results of the terminal under test, the physical state of the terminal under test is set through the production tooling, thereby constructing a fully automated testing process, which makes the control process more convenient and efficient.

[0049] Please refer to Figure 6 Another embodiment of the present invention provides an automated testing terminal, including a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, it performs the following steps:

[0050] The interface information of the production end is obtained, and the production end is controlled to perform automated testing on the terminal under test based on the interface information to obtain the test results of the terminal under test.

[0051] The production tooling is controlled to set the physical state of the terminal under test based on the test results of the terminal under test.

[0052] As described above, the beneficial effects of this invention are as follows: By acquiring the interface information of the production end, the invention simulates human operation of the production end based on the interface information, enabling the production end to automatically perform automated testing on the terminal under test and obtain the test results. Simultaneously, based on the test results, the invention controls the physical state of the terminal under test using the production tooling, achieving hardware control. Compared to existing automatic control methods that simulate human operation, this invention does not require connection to third-party software. Instead, it controls the production end and the production tooling separately, enabling data interaction between the two, making the control process more convenient and efficient. Furthermore, the production end and the production tooling do not have a direct communication connection, effectively avoiding the adaptation process between the production end tools and the production tooling, improving production efficiency, and thus reducing production costs.

[0053] Furthermore, prior to obtaining the interface information from the production end, the following steps are included:

[0054] Acquire status signals from production tooling;

[0055] The status signal is used to determine whether the production tooling is connected to the terminal under test. If so, the working status of the production end is detected.

[0056] If the working status of the production terminal is closed, the source interface information of the operating system corresponding to the production terminal is obtained, the production terminal is started according to the source interface information, and the step of obtaining the interface information of the production terminal is executed.

[0057] If the production terminal is in an active state, then the step of obtaining the interface information of the production terminal is executed.

[0058] As described above, the status signal of the production tooling is directly acquired to determine whether the terminal under test (DUT) is in place. Connection between the DUT and the production tooling indicates test readiness. The system then checks the working status of the production end; if the production end is running, automated testing is performed directly; otherwise, the testing end is automatically started. This transforms the manual "starting and stopping of the production end" into automated "starting and stopping of the production end," achieving full automation of the testing process.

[0059] Furthermore, the interface information includes window information and control information;

[0060] The process of acquiring the interface information from the production end and controlling the production end to perform automated testing on the terminal under test based on the interface information, and obtaining the test results of the terminal under test, includes:

[0061] Obtain the window and control information in the current interface of the production terminal;

[0062] Based on the window information and the control information, all controls in the current interface are traversed, and the target control to be triggered in the current interface and the target window corresponding to the target control are determined according to the preset operation information.

[0063] Based on the target window and target control, the production end is controlled to execute instructions corresponding to the operation information to perform automated testing on the terminal under test;

[0064] The corresponding test data is read from the test interface on the production end to obtain the test results of the terminal under test.

[0065] As described above, the window and control information in the interface is used to realize the interaction between the operating system and the application. By traversing all spaces in the interface through the window and control information, the target window and target control corresponding to the preset operation information can be found. Based on the target window and target control, the effect of simulating human clicks on the current interface can be controlled to perform automated testing on the production side, thus forming a complete fully automated testing process. This makes the testing process more convenient and faster, and effectively reduces human resource costs.

[0066] Furthermore, the physical state includes a test-ready state and a test-stopped state;

[0067] The step of controlling the production tooling to set the physical state of the terminal under test based on the test results of the terminal under test includes:

[0068] The test results of the terminal under test are sent to the production tooling;

[0069] The production tooling determines whether the test result of the terminal under test is abnormal. If so, the production tooling is controlled to set the physical state of the terminal under test to the stop test state and send a test failure signal.

[0070] Otherwise, the production tooling is controlled to set the physical state of the terminal under test to the test state, and the next test process is executed.

[0071] As described above, there is no direct communication between the production tooling and the production end. This reduces the development and debugging process on the production end, thereby improving production efficiency and flexibility, reducing error rates, and saving human resources. Furthermore, the automation scripts on the production end can be modified and updated at any time to adapt to different production needs and changes.

[0072] Furthermore, before acquiring the status signal of the production tooling, the process also includes connecting to the production tooling via the GATS protocol.

[0073] As described above, the GATS protocol enables data communication with the production tooling, replacing manual operation to control the hardware. While obtaining the test results of the terminal under test, the physical state of the terminal under test is set through the production tooling, thereby constructing a fully automated testing process, which makes the control process more convenient and efficient.

[0074] This invention provides an automated testing method and terminal, which can be applied to automated production processes, simplifying the automation adaptation process of production tools, improving production efficiency, and thus reducing production costs. Specific embodiments are described below:

[0075] Please refer to Figures 1 to 5 Embodiment 1 of the present invention is as follows:

[0076] An automated testing method includes:

[0077] S1. Connect to production tooling via the GATS protocol.

[0078] It should be noted that the GATS protocol, or General Automatic Test System, is a custom communication protocol between a host computer and production tooling.

[0079] S2. Obtain the status signal of the production tooling.

[0080] It should be noted that S2 specifically involves: querying the status signal of the production fixture in real time according to a preset period. The production fixture has a switch on its hardware circuitry. When the terminal under test (DUT) is placed in the designated position on the production fixture, i.e., when the DUT and the production fixture are connected, the switch generates a corresponding status signal. When the corresponding status signal is returned, it can be determined whether the production fixture and the DUT are connected.

[0081] S3. Determine whether the production tooling is connected to the terminal under test based on the status signal. If so, detect the working status of the production end.

[0082] If the working status of the production terminal is closed, the source interface information of the operating system corresponding to the production terminal is obtained, the production terminal is started according to the source interface information, and step S4 is executed.

[0083] If the production end is in an "on" state, then proceed to step S4.

[0084] In some embodiments, if the production tooling is not connected to the terminal under test, the process returns to step S2.

[0085] In some embodiments, the terminal under test is a POS (Point of Sales) machine, and the production end can automatically import the test script corresponding to the terminal under test to achieve automatic testing.

[0086] S4. Obtain the interface information of the production end, and control the production end to perform automated testing on the terminal under test according to the interface information, so as to obtain the test results of the terminal under test.

[0087] The interface information includes window information and control information.

[0088] Specifically, S4 includes:

[0089] S41. Obtain the window information and control information in the current interface of the production terminal.

[0090] S42. Based on the window information and the control information, traverse all controls in the current interface, and determine the target control to be triggered in the current interface and the target window corresponding to the target control based on the preset operation information.

[0091] S43. Based on the target window and target control, control the production end to execute the instructions corresponding to the operation information to perform automated testing on the terminal under test.

[0092] S44. Read the corresponding test data from the test interface of the production end to obtain the test result of the terminal under test.

[0093] It should be noted that after the terminal under test finishes this round of testing, the test data will be automatically printed out in the test interface on the production side.

[0094] In some embodiments, step S4 is implemented using the Python automation control library pywinauto. The window handles in the current interface of the production terminal are obtained; each window handle is a unique identifier corresponding to a window and control. Interaction between the operating system and the production terminal is achieved through the window handles. A hierarchical structure exists between windows and controls in the production terminal, i.e., a parent window and child control hierarchy. The corresponding child controls can be found level by level through the main window. All controls in the current interface are traversed based on the window handles and the hierarchical structure between windows and controls. Each control includes attribute information and identification information, such as class name, text, position, and size. The target control matching the preset operation information is found among all controls using the control's attribute and identification information, and the target window corresponding to the target control is determined. This search can be performed by enumerating windows and controls to facilitate traversing the entire window hierarchy in the current interface. The production terminal is controlled to execute instructions corresponding to the operation information based on the target window and target control to perform automated testing on the terminal under test.

[0095] In some embodiments, the process further includes the following steps prior to S43:

[0096] The production tooling is controlled to acquire the specified information of the terminal under test according to the preset operation information.

[0097] Then S43 includes:

[0098] Based on the specified information, target window, and target control, the production terminal is controlled to execute instructions corresponding to the operation information to perform automated testing on the terminal under test.

[0099] In some embodiments, the operation information includes scanning, setting, and start / stop. If the operation information is "scanning", the production tooling is controlled to obtain the specified code of the terminal under test through a barcode scanner, and then the specified code is automatically input into the target control in the current interface of the production end. Finally, the production end automatically imports the test script matching the specified code from the server according to the specified code obtained from the target control to perform automated testing on the terminal under test.

[0100] S5. Based on the test results of the terminal under test, control the production tooling to set the physical state of the terminal under test.

[0101] The physical states include the state to be tested and the state to stop testing.

[0102] Specifically, S5 includes:

[0103] S51. Send the test results of the terminal under test to the production tooling;

[0104] S52. Determine whether the test result of the terminal under test is abnormal through the production tooling. If so, control the production tooling to set the physical state of the terminal under test to the stop test state and send a test failure signal.

[0105] Otherwise, the production tooling is controlled to set the physical state of the terminal under test to the test state, and the next test process is executed.

[0106] In some embodiments, if the test result of the terminal under test is abnormal, the production tooling is controlled to send an NG signal to the robotic arm, that is, the robotic arm moves the terminal under test to the NG slot, so as to set the physical state of the terminal under test to the stop testing state. If the test result of the terminal under test is normal, the production tooling is controlled to move the terminal under test to the next testing station via the robotic arm, that is, to the next process, so as to set the physical state of the terminal under test to the test state and execute the next testing process.

[0107] Furthermore, the physical state also includes the end-of-test state; when every test structure of the terminal under test is normal and all production test processes are completed, the production tooling is controlled to set the physical state of the terminal under test to the end-of-test state.

[0108] In some embodiments, after the control of the production tooling sets the physical state of the terminal under test to the test state, the process returns to execute the above steps S2-S5 to complete the next test process, thereby achieving fully automated testing.

[0109] It should be noted that the automated testing method described in this embodiment is implemented based on a graphical user interface (GUI) automation control tool. Scripts simulating manual operation logic are imported into the GUI automation control tool to automatically execute steps S1-S5. (Refer to...) Figure 3 As shown, both the automation control tool and the production end are set on the PC. The GUI automation control tool is connected to the production end and the production tooling respectively. The production end is connected to the terminal under test for data interaction, and the production tooling controls the physical state of the terminal under test.

[0110] Please refer to Figure 6 Embodiment two of the present invention is as follows:

[0111] An automated testing terminal includes a memory 201, a processor 202, and a computer program stored in the memory 201 and running on the processor 202. When the processor 202 executes the computer program, it implements the various steps of the automated testing method described in Embodiment 1.

[0112] In one alternative implementation, an automated testing terminal is an automated control tool based on a graphical user interface (GUI).

[0113] In summary, the automated testing method and terminal provided by this invention address the issue that existing production methods require secondary development of production-side tools and integration with tooling to achieve automation. This invention, however, utilizes a graphical user interface (GUI)-based automated control tool, eliminating the need for production-side modifications. Different operation scripts can be tailored within the GUI to adapt to various production processes, automating the product testing workflow. The automated control tool acquires interface information from the production side and simulates human intervention, enabling automated testing of the terminal under test and obtaining test results. Simultaneously, based on the test results, it controls the production tooling to adjust the physical state of the terminal under test, achieving hardware control. This allows production line workers to handle multiple processes simultaneously, reducing production costs, increasing development efficiency and flexibility, decreasing error rates, and increasing equipment utilization, thus significantly improving production efficiency.

[0114] The above description is merely an embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent modifications made based on the content of the present invention specification and drawings, or direct or indirect applications in related technical fields, are similarly included within the patent protection scope of the present invention.

Claims

1. An automated testing method, characterized in that, include: The interface information of the production end is obtained, and the production end is controlled to perform automated testing on the terminal under test based on the interface information to obtain the test results of the terminal under test. The production tooling is controlled to set the physical state of the terminal under test based on the test results of the terminal under test; The interface information includes window information and control information; The process of acquiring the interface information from the production end and controlling the production end to perform automated testing on the terminal under test based on the interface information, and obtaining the test results of the terminal under test, includes: Obtain the window and control information in the current interface of the production terminal; Based on the window information and the control information, all controls in the current interface are traversed, and the target control to be triggered in the current interface and the target window corresponding to the target control are determined according to the preset operation information. Based on the target window and target control, the production end is controlled to execute instructions corresponding to the operation information to perform automated testing on the terminal under test; The corresponding test data is read from the test interface on the production end to obtain the test results of the terminal under test; The process of traversing all controls in the current interface based on the window information and the control information includes: obtaining the window handle in the current interface of the production end, wherein the window handle is a unique identifier corresponding to each window and control; there is a hierarchical structure between windows and controls in the production end, namely the hierarchical relationship between parent windows and child controls; searching for the corresponding child controls level by level through the parent window, and traversing all controls in the current interface based on the window handle and the hierarchical structure between windows and controls; The physical state includes the state to be tested and the state to stop testing; The step of controlling the production tooling to set the physical state of the terminal under test based on the test results of the terminal under test includes: The test results of the terminal under test are sent to the production tooling; The production tooling determines whether the test result of the terminal under test is abnormal. If so, the production tooling is controlled to set the physical state of the terminal under test to the stop test state and send a test failure signal. Otherwise, the production tooling is controlled to set the physical state of the terminal under test to the test state, and the next test process is executed.

2. The automated testing method according to claim 1, characterized in that, Before obtaining the interface information from the production end, the following steps are included: Acquire the status signals of the production tooling; The status signal is used to determine whether the production tooling is connected to the terminal under test. If so, the working status of the production end is detected. If the working status of the production terminal is closed, then obtain the source interface information of the operating system corresponding to the production terminal, start the production terminal according to the source interface information, and execute the step of obtaining the interface information of the production terminal. If the production terminal is in an active state, then the step of obtaining the interface information of the production terminal is executed.

3. The automated testing method according to claim 2, characterized in that, Before acquiring the status signal of the production tooling, the process also includes connecting to the production tooling via the GATS protocol.

4. An automated testing terminal, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it performs the following steps: The interface information of the production end is obtained, and the production end is controlled to perform automated testing on the terminal under test based on the interface information to obtain the test results of the terminal under test. The production tooling is controlled to set the physical state of the terminal under test based on the test results of the terminal under test; The interface information includes window information and control information; The process of acquiring the interface information from the production end and controlling the production end to perform automated testing on the terminal under test based on the interface information, and obtaining the test results of the terminal under test, includes: Obtain the window and control information in the current interface of the production terminal; Based on the window information and the control information, all controls in the current interface are traversed, and the target control to be triggered in the current interface and the target window corresponding to the target control are determined according to the preset operation information. Based on the target window and target control, the production end is controlled to execute instructions corresponding to the operation information to perform automated testing on the terminal under test; The corresponding test data is read from the test interface on the production end to obtain the test results of the terminal under test; The process of traversing all controls in the current interface based on the window information and the control information includes: obtaining the window handle in the current interface of the production end, wherein the window handle is a unique identifier corresponding to each window and control; there is a hierarchical structure between windows and controls in the production end, namely the hierarchical relationship between parent windows and child controls; searching for the corresponding child controls level by level through the parent window, and traversing all controls in the current interface based on the window handle and the hierarchical structure between windows and controls; The physical state includes the state to be tested and the state to stop testing; The step of controlling the production tooling to set the physical state of the terminal under test based on the test results of the terminal under test includes: The test results of the terminal under test are sent to the production tooling; The production tooling determines whether the test result of the terminal under test is abnormal. If so, the production tooling is controlled to set the physical state of the terminal under test to the stop test state and send a test failure signal. Otherwise, the production tooling is controlled to set the physical state of the terminal under test to the test state, and the next test process is executed.

5. An automated testing terminal according to claim 4, characterized in that, Before obtaining the interface information from the production end, the following steps are included: Acquire the status signals of the production tooling; The status signal is used to determine whether the production tooling is connected to the terminal under test. If so, the working status of the production end is detected. If the working status of the production terminal is closed, then obtain the source interface information of the operating system corresponding to the production terminal, start the production terminal according to the source interface information, and execute the step of obtaining the interface information of the production terminal. If the production terminal is in an active state, then the step of obtaining the interface information of the production terminal is executed.

6. An automated testing terminal according to claim 5, characterized in that, Before acquiring the status signal of the production tooling, the process also includes connecting to the production tooling via the GATS protocol.

Citation Information

Patent Citations

  • Radio frequency debugging method and device, storage medium and electronic equipment

    CN111651310A

  • Pressure test system and method for restoring factory settings

    CN114240900A