Equipment testing method and device and storage medium

Through the service device, the inefficiency and chaos caused by manual participation in AIoT device communication tests are solved, and automated testing is realized, and testing efficiency and coverage are improved.

CN119865445APending Publication Date: 2025-04-22BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311369565.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-20
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

When conducting communication testing of artificial intelligence Internet of Things (AIoT) devices, manual participation is required, resulting in inefficiency in testing and confusing testing process.

Method used

By setting up a service device to monitor the test requests of the tested equipment and the cooperating test equipment, the corresponding instructions are sent to the cooperating test equipment, and the status of the execution of the instructions is monitored, and the status is feedback to the tested equipment to avoid manual participation.

Benefits of technology

It realizes that there is no need for manual participation in AIoT device testing, improves testing efficiency, and improves the coverage of automated testing scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119865445A_ABST
    Figure CN119865445A_ABST
Patent Text Reader

Abstract

The invention provides an equipment testing method and device and a storage medium. The device testing method comprises the steps that in response to the fact that a third device establishes connection with a first device and a second device, the third device monitors a testing request triggered by a target device; in response to the monitored test request, monitoring a state of executing a first instruction corresponding to the test request by another device different from the target device; and sending the state to the first device to enable the first device to execute a subsequent test process. A third device is arranged to monitor test requests of a first device and a second device, so that a corresponding instruction is sent to the second device, the instruction execution state of the second device is monitored, the corresponding state is fed back to the first device, and the first device executes a subsequent test process based on the state. Therefore, a user is prevented from operating between the first equipment and the second equipment when the first equipment is tested, the equipment testing efficiency is improved, and the coverage rate of an automatic testing scene is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of equipment testing, and in particular to an equipment testing method, device and storage medium. Background Art

[0002] With the advancement of artificial intelligence technology and the development of Internet of Things technology, Artificial Intelligence & Internet of Things (AIoT) devices have gradually been integrated into people's daily lives. The types of AIoT devices are becoming more and more abundant, and the practical performance of AIoT devices is gradually enhanced.

[0003] As the functions of AIoT devices continue to increase, the scenarios that need to be tested are also increasing. When performing communication tests on AIoT devices, manual participation in the AIoT device communication test process is required, which will cause problems such as low efficiency and confusion in communication testing. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a device testing method, apparatus and storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, a device testing method, apparatus and storage medium method are provided, including: in response to a third device establishing connections with a first device and a second device respectively, the third device monitors a test request triggered by a target device, wherein the first device is a device under test, and the second device is a device that cooperates with the first device for testing, and the third device is used to monitor the first device and the second device and send a first instruction corresponding to the test request, as well as a sending status, and the target device is the first device and / or the second device; in response to monitoring the test request, monitoring the status of another device different from the target device executing the first instruction corresponding to the test request; and sending the status to the first device so that the first device executes a subsequent test process.

[0006] In one embodiment, the target device is the first device; the monitoring of the test request includes: receiving the test request sent by the first device; before the monitoring of the state of another device different from the target device executing the first instruction corresponding to the test request, the method also includes: sending the first instruction corresponding to the test request to the second device.

[0007] In one embodiment, sending the first instruction corresponding to the test request to the second device includes: if the test request includes second device information for executing the first instruction, sending the first instruction corresponding to the test request to the second device corresponding to the second device information; if the test request does not include second device information for executing the first instruction, determining a second device that can execute the first instruction corresponding to the test request, and sending the first instruction corresponding to the test request to the determined second device.

[0008] In one embodiment, the target device is the second device; the monitoring of the test request includes: in response to monitoring the second device executing a set function, the set function supports the first device to cooperate in performing a corresponding operation, determining that the test request is monitored; the monitoring of the state of another device different from the target device executing the test request corresponding to the first instruction includes: monitoring the operation request of the first device to cooperate in performing the set function within a set time period, sending the operation request to the second device, and monitoring the success state of the second device executing the set function based on the operation request.

[0009] In one embodiment, the method further includes: if no operation request for the first device to cooperate in executing the set function is monitored within a set time period, sending a second instruction to the second device, wherein the second instruction is used to control the second device to stop executing the set function.

[0010] In one implementation, the method further includes: monitoring a connection status of the second device;

[0011] In response to monitoring that the second device is disconnected, a prompt message is sent, where the prompt message is used to prompt that the second device is abnormal.

[0012] In one embodiment, the first device is a tested device, the second device is a device that cooperates with the first device for testing, and the instruction corresponding to the test request includes at least one of the following: an instruction to make a voice call; or an instruction to send a short message; or an instruction to answer a call; or an instruction to hang up a call.

[0013] According to the second aspect of the embodiments of the present disclosure, a device testing method, apparatus and storage medium method are provided, including: in response to a first device establishing a connection with a third device, sending a test request to the third device so that the third device sends a first instruction corresponding to the test request to the second device; receiving a status, and executing a subsequent test process based on the status.

[0014] In one embodiment, sending a test request to the third device includes: sending a test request including second device information for executing a first instruction; or sending a test request not including second device information for executing the first instruction; sending a test request within a set time period, wherein the test request is used to cooperate with the second device to execute a set function.

[0015] In one implementation, the test request includes at least one of the following: a request to make a voice call; or a request to send a short message; or a call answering request; or a call hanging up request.

[0016] According to a third aspect of an embodiment of the present disclosure, a device testing method, apparatus and storage medium method are provided, including: in response to a second device establishing a connection with a third device, executing a first instruction sent by the third device, the first instruction corresponding to a test request, and the test request is used to test the first device.

[0017] In one embodiment, the method further includes: in response to the second device executing a set function, executing an operation request corresponding to the test request sent by the first device, wherein the operation request is an operation request sent by the first device within a set time period in cooperation with the second device to execute the set function.

[0018] In one embodiment, the method further includes: in response to the second device executing a set function, executing a second instruction, the second instruction being an instruction sent by the third device when the first device fails to cooperate with the second device to execute the set function within the set time period, wherein the second instruction is used to control the second device to stop executing the set function.

[0019] In one implementation, the first instruction includes at least one of the following: an instruction to make a voice call; or an instruction to send a short message; or an instruction to answer a call; or an instruction to hang up a call.

[0020] According to a fourth aspect of an embodiment of the present disclosure, there is provided a device testing apparatus, comprising:

[0021] A monitoring unit, configured to establish connections with the first device and the second device respectively in response to a third device, wherein the third device monitors a test request triggered by a target device, wherein the first device is a device under test, and the second device is a device that cooperates with the first device to perform a test, and the third device is configured to monitor the first device and the second device and send a first instruction corresponding to the test request, as well as a sending status, and the target device is the first device and / or the second device; in response to monitoring the test request, monitor a status of another device different from the target device executing the first instruction corresponding to the test request;

[0022] A sending unit is used to send the status to the first device so that the first device executes a subsequent test process.

[0023] In one embodiment, the target device is the first device; the monitoring unit monitors the test request in the following manner: receiving the test request sent by the first device; before monitoring the state of another device different from the target device executing the first instruction corresponding to the test request, the sending unit is also used to: send the first instruction corresponding to the test request to the second device.

[0024] In one embodiment, the sending unit sends the first instruction corresponding to the test request to the second device in the following manner: if the test request includes second device information for executing the first instruction, the first instruction corresponding to the test request is sent to the second device corresponding to the second device information; if the test request does not include second device information for executing the first instruction, a second device that can execute the first instruction corresponding to the test request is determined, and the first instruction corresponding to the test request is sent to the determined second device.

[0025] In one embodiment, the target device is the second device; the monitoring unit monitors the test request in the following manner: in response to monitoring the second device executing a setting function, the setting function supports the first device to cooperate in performing a corresponding operation, determining that the test request is monitored; the monitoring unit monitors the status of another device different from the target device executing the test request corresponding to the first instruction in the following manner: within a set time period, monitoring the operation request of the first device to cooperate in performing the setting function, sending the operation request to the second device, and monitoring the success status of the second device executing the setting function based on the operation request.

[0026] In one embodiment, the monitoring unit is also used to: if no operation request from the first device to cooperate in executing the set function is monitored within a set time period, send a second instruction to the second device, wherein the second instruction is used to control the second device to stop executing the set function.

[0027] In one implementation, the monitoring unit is further used to monitor the connection status of the second device; the sending unit is further used to send a prompt message in response to monitoring that the second device is disconnected, wherein the prompt message is used to prompt that the second device is abnormal.

[0028] In one embodiment, the first device is a tested device, the second device is a device that cooperates with the first device for testing, and the instruction corresponding to the test request includes at least one of the following: an instruction to make a voice call; or an instruction to send a short message; or an instruction to answer a call; or an instruction to hang up a call.

[0029] According to a fifth aspect of an embodiment of the present disclosure, there is provided a device testing apparatus, comprising:

[0030] a sending unit, configured to send a test request to the third device in response to the first device establishing a connection with the third device, so that the third device sends a first instruction corresponding to the test request to the second device;

[0031] Execution unit, for receiving status,

[0032] Based on the status, subsequent testing procedures are performed.

[0033] In one embodiment, the sending unit sends a test request to the third device in the following manner: sending a test request including second device information for executing a first instruction; or sending a test request not including second device information for executing the first instruction; sending a test request within a set time period, wherein the test request is used to cooperate with the second device to execute a set function.

[0034] In one implementation, the test request includes at least one of the following: a request to make a voice call; or a request to send a short message; or a call answering request; or a call hanging up request.

[0035] According to a sixth aspect of an embodiment of the present disclosure, there is provided a device testing apparatus, including:

[0036] The execution unit is used to execute a first instruction sent by the third device in response to the second device establishing a connection with the third device, where the first instruction corresponds to a test request, and the test request is used to test the first device.

[0037] In one embodiment, the execution unit is also used to: in response to the second device executing a set function, execute an operation request corresponding to the test request sent by the first device, and the operation request is an operation request sent by the first device within a set time period to cooperate with the second device to execute the set function.

[0038] In one embodiment, the execution unit is also used to: execute a second instruction in response to the second device executing a set function, wherein the second instruction is an instruction sent by the third device when the first device fails to cooperate with the second device to execute the set function within the set time period, wherein the second instruction is used to control the second device to stop executing the set function.

[0039] In one implementation, the first instruction includes at least one of the following: an instruction to make a voice call; or an instruction to send a short message; or an instruction to answer a call; or an instruction to hang up a call.

[0040] According to a seventh aspect of an embodiment of the present disclosure, there is provided a device testing apparatus, including:

[0041] processor;

[0042] a memory for storing processor-executable instructions;

[0043] The processor is configured to: execute the method described in the first aspect or any one of the embodiments of the first aspect; or execute the method described in the second aspect or any one of the embodiments of the second aspect; or execute the method described in the third aspect or any one of the embodiments of the third aspect.

[0044] According to an eighth aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the device testing method described in the first aspect or any one of the first embodiments; or the terminal is enabled to execute the device testing method described in the second aspect or any one of the second embodiments; or the terminal is enabled to execute the device testing method described in the third aspect or any one of the third embodiments.

[0045] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: by setting a service device to listen to the test requests of the tested device and the cooperating test device, corresponding instructions are sent to the cooperating test device, and the status of the execution of the instructions by the cooperating test device is listened to, and the corresponding status is fed back to the test device. The tested device executes subsequent test processes based on the status, thereby avoiding manual participation when testing the tested device, improving test efficiency, and being able to improve the coverage of automated test scenarios.

[0046] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0048] Figure 1 The present invention is a scene diagram of an application device testing method according to an exemplary embodiment.

[0049] Figure 2 The present invention is a flow chart showing a device testing method according to an exemplary embodiment.

[0050] Figure 3 The present invention is a flowchart showing a testing method in which a target device is a first device according to an exemplary embodiment.

[0051] Figure 4 The present invention is a flowchart showing a testing method in which a target device is a first device according to an exemplary embodiment.

[0052] Figure 5 The present invention is a flowchart showing a testing method in which a target device is a first device according to an exemplary embodiment.

[0053] Figure 6 The present invention is a flowchart showing a testing method in which a target device is a second device according to an exemplary embodiment.

[0054] Figure 7 The present invention is a flowchart showing a testing method in which a target device is a second device according to an exemplary embodiment.

[0055] Figure 8 The present invention is a flow chart showing a device testing method according to an exemplary embodiment.

[0056] Fig. 9 The present invention is a flow chart showing a device testing method according to an exemplary embodiment.

[0057] Fig.10 The present invention is a flow chart showing a device testing method according to an exemplary embodiment.

[0058] Fig.11 The present invention is a flow chart showing a device testing method according to an exemplary embodiment.

[0059] Fig.12 The present invention is a flow chart showing a device testing method according to an exemplary embodiment.

[0060] Fig.13 The present invention is a flow chart showing a device testing method according to an exemplary embodiment.

[0061] Fig.14 It is a schematic diagram showing a device testing method according to an exemplary embodiment.

[0062] Fig.15 The figure is a block diagram of a device testing apparatus according to an exemplary embodiment.

[0063] Fig.16 The figure is a block diagram of a device testing apparatus according to an exemplary embodiment.

[0064] Fig.17 The figure is a block diagram of a device testing apparatus according to an exemplary embodiment.

[0065] Fig.18 The invention is a block diagram showing a device for testing a device according to an exemplary embodiment. DETAILED DESCRIPTION

[0066] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.

[0067] The present disclosure provides a device testing method, which is applied to scenarios of artificial intelligence Internet of Things device testing, such as scenarios of wearable device testing.

[0068] With the advancement of artificial intelligence technology and the development of Internet of Things technology, artificial intelligence Internet of Things devices, namely AIoT devices, are gradually being used by more and more users. In order to meet people's pursuit of practical performance of AIoT devices, the functions of AIoT devices are constantly enriched. For example, AIoT devices can realize communication functions such as dialing, hanging up, or sending text messages. Before AIoT devices are put on the market, their functions need to be tested. For example, when testing the communication function of AIoT wearable devices, other terminals are required to cooperate with AIoT wearable devices to test the communication function. When a user makes a call or sends a text message to a terminal through an AIoT wearable device, the terminal can only connect or hang up the call made by the AIoT wearable device through user operation. Alternatively, through user operation, the terminal makes a call to the AIoT wearable device, and the user operates the AIoT wearable device to connect or hang up the call made by the terminal. The user's manual operation makes the communication test between the terminal and the AIoT wearable device inefficient, thereby affecting the progress of the communication function test of the AIoT wearable device. Moreover, manually operating multiple terminals that cooperate with AIoT wearable devices to test the communication function may cause confusion in the communication function test of AIoT wearable devices, affecting the progress and efficiency of the communication function test of AIoT wearable devices.

[0069] The present disclosure provides a device for communicating with a device under test and a device that cooperates with the device under test to perform a test, and the device can be referred to as a service device. The device under test can be referred to as a first device, the device that cooperates with the device under test to perform a test can be referred to as a second device, and the service device can also be referred to as a third device. Figure 1 is a scene diagram of an application device testing method according to an exemplary embodiment. Figure 1As shown, the first device and the third device can communicate; the second device and the third device can communicate with each other. Therefore, the third device provided by the present disclosure can be applied to the scenario of performing communication test on the third device. By setting the third device to listen to the test request of the first device and the second device, the corresponding instruction is sent to the second device, and the status of the second device executing the instruction is listened to, and the corresponding status code is fed back to the first device. The first device executes the subsequent test process based on the status code, thereby avoiding the user from repeating operations between the first device and the second device when the first device is tested, improving the test efficiency, and being able to improve the coverage of the automated test scenario.

[0070] Figure 2 is a flow chart of a device testing method according to an exemplary embodiment. Figure 2 As shown, the device testing method is used in a third device and includes the following steps.

[0071] In step S11, in response to the third device establishing connections with the first device and the second device respectively, the third device monitors a test request triggered by the target device.

[0072] The first device is the device under test, and the second device is a device that cooperates with the first device to perform the test.

[0073] The third device is used to monitor the first device and the second device and send a first instruction corresponding to the test request and a sending status.

[0074] The target device is the first device and / or the second device.

[0075] In the embodiment of the present disclosure, the device under test as the first device can be an AIoT device, for example, the first device can be a wearable device; the second device is used to cooperate with the first device for testing, for example, the second device can be a smart mobile terminal, and the third device can be a service device installed on a personal computer (PC).

[0076] In the disclosed embodiment, the connection between the third device and the first device can be based on the Hyper Text Transfer Protocol (HTTP); the connection between the third device and the second device can be based on the Android Debug Bridge (ADB) protocol.

[0077] In the embodiment of the present disclosure, after the connections between the third device and the first device and the second device are respectively established, the third device can monitor the first device and the second device at the same time.

[0078] In the embodiment of the present disclosure, the target device triggering the test request may be triggered by the first device, or may be triggered by the second device.

[0079] In step S12, in response to monitoring the test request, monitoring a state of another device different from the target device executing a first instruction corresponding to the test request.

[0080] The state of the first instruction corresponding to the test request executed by another device different from the target device includes a success state or a failure state.

[0081] The test request may be issued by the first device.

[0082] The first instruction corresponds to the test request issued by the first device, and is used to instruct another device different from the target device to execute the test request issued by the first device.

[0083] In the embodiment of the present disclosure, if the first device triggers a test request, the first device can be used as the target device, and another device different from the target device can be the second device, and the state of the second device executing the first instruction is monitored.

[0084] In step S13, the status is sent to the first device so that the first device performs a subsequent test process.

[0085] The status is used to indicate the status of executing the test request corresponding to the first instruction.

[0086] Among them, different states correspond to different states of the first instruction corresponding to the execution test request.

[0087] In the embodiment of the present disclosure, different status codes may be sent to indicate different states of executing the test request corresponding to the first instruction. For example, status code 1 may be sent to indicate a successful state of executing the test request corresponding to the first instruction; and status code 0 may be sent to indicate a failed state of executing the test request corresponding to the first instruction.

[0088] In the disclosed embodiment, a status code corresponding to a failure state of a first instruction corresponding to a test request executed by another device different from the target device is sent to the target device, and the target device executes a subsequent operation corresponding to the status code. For example, the first instruction may be to make a phone call, and if the first instruction is not executed successfully, a status code corresponding to the failure of the first instruction to be executed successfully is sent to the first device, and the first device determines a subsequent test process according to the returned status code, including resending the test request for making a phone call, etc.

[0089] In the disclosed embodiment, a status corresponding to the successful status of the first instruction corresponding to the test request executed by another device different from the target device is sent to the target device, and the target device executes the subsequent operation corresponding to the status code. For example, the first instruction may be to make a call. If the first instruction is executed successfully, a status code corresponding to the failure to execute the first instruction is sent to the first device, and the first device determines the subsequent test process according to the returned status code, including a test request to hang up the voice call, etc.

[0090] In the disclosed embodiment, the connection between the first device and the second device is established respectively, and the device that monitors the triggering test request is used as the target device. Among them, the first device is the device under test, and the second device is the device that cooperates with the first device to perform the test. When the test request is monitored, the state of another device different from the target device executing the first instruction corresponding to the test request is monitored, and different states are sent to the first device according to different execution states. The first device executes the subsequent test process according to different states, so that the device under test does not need human participation when conducting the test, realizes the automation of the communication test of the device under test, improves the coverage of the device automation test scenarios, and improves the work efficiency and accuracy of the device communication test.

[0091] In the embodiment of the present disclosure, the device that triggers the first device to send the test request may be the first device, or the device that triggers the first device to send the test request may be the second device.

[0092] In the embodiment of the present disclosure, different test processes may be executed based on different devices triggering the first device to send a test request.

[0093] Among them, if the first device triggers a test request, before monitoring the second device to execute the first instruction corresponding to the test request, the first instruction corresponding to the test request is sent to the second device.

[0094] Figure 3 is a flowchart of a test method in which a target device is a first device according to an exemplary embodiment. Figure 3 As shown, the testing method is used in the third device and includes the following steps.

[0095] In step S21, in response to establishing connections with the first device and the second device respectively, a test request triggered by the first device is monitored.

[0096] The first device is the device under test, and the second device is a device that cooperates with the first device to perform the test.

[0097] In step S22, in response to receiving the test request sent by the first device, a first instruction corresponding to the test request is sent to the second device.

[0098] In the embodiment of the present disclosure, test cases corresponding to different test requests can be pre-set, and different first instructions can be sent to the second device through different test cases. When a test request sent by the first device is received, the corresponding test case is called according to the test, and the corresponding first instruction is sent to the second device based on the test case.

[0099] In step S23, a state of another device different from the target device executing the test request corresponding to the first instruction is monitored.

[0100] In step S24, the state corresponding to the state is sent to the first device, so that the first device performs a subsequent test process.

[0101] In the disclosed embodiment, when the connection between the test device and the device under test is established respectively, the device under test triggers a test request. When the device under test sends a test request, a first instruction corresponding to the test request is sent to the device that cooperates with the device under test for testing, and at the same time, it is monitored whether the device that cooperates with the device under test for testing successfully executes the first instruction corresponding to the test request sent by the device under test. According to the situation that the device that cooperates with the device under test for testing executes the first instruction, a corresponding status is sent to the device under test. The device under test continues to execute different test processes according to different statuses.

[0102] In the disclosed embodiment, by monitoring the first device triggering a test request, and the first device sending a test request, a first instruction corresponding to the test request of the first device is sent to the second device. Therefore, the second device performs the corresponding operation according to the first instruction, thereby avoiding the complication of the test, and by automatically sending the corresponding instruction, it avoids the user from performing repeated operations between the first device and the second device, thereby improving the coverage of the device automation test scenario and the work efficiency and accuracy of the device communication test.

[0103] In the embodiment of the present disclosure, sending the first instruction corresponding to the test request to the second device may be sending the test first instruction to the designated second device.

[0104] In the embodiment of the present disclosure, sending the first instruction corresponding to the test request to the second device can be done by determining a second device that can execute the first instruction corresponding to the test request, and sending the first instruction corresponding to the test request to the determined second device.

[0105] Figure 4 is a flowchart of a test method in which a target device is a first device according to an exemplary embodiment. Figure 4 As shown, the testing method is used in the third device and includes the following steps.

[0106] In step S31, in response to establishing connections with the first device and the second device respectively, a test request triggered by the first device is monitored.

[0107] In step S32, in response to receiving a test request sent by the first device, if the test request includes second device information for executing a first instruction, a first instruction corresponding to the test request is sent to the second device corresponding to the second device information.

[0108] In the embodiment of the present disclosure, when the service device establishes a connection with the second device, the second device information is obtained, wherein the second device information at least includes the second device name and / or the second device status. The second device status can be used to determine whether the second device can execute the first instruction.

[0109] In the embodiment of the present disclosure, after receiving the request for obtaining the second device information sent by the first device, the second device information is sent to the first device, or the second device information is periodically sent to the first device.

[0110] In the embodiment of the present disclosure, when a test request containing second device information for executing a first instruction is received, the second device for executing the first instruction is determined according to the second device name in the second device information, and the first instruction corresponding to the test information is sent to the specified second device.

[0111] In step S33, a state of another device different from the target device executing the test request corresponding to the first instruction is monitored.

[0112] In step S34, the state corresponding to the state is sent to the first device, so that the first device performs a subsequent test process.

[0113] Among them, steps S31, S33, and S34 are consistent with steps S21, S23, and S24, and will not be described in detail here.

[0114] Figure 5 is a flowchart of a test method in which a target device is a first device according to an exemplary embodiment. Figure 5 As shown, the testing method is used in the third device and includes the following steps.

[0115] In step S41, in response to establishing connections with the first device and the second device respectively, a test request triggered by the first device is monitored.

[0116] In step S42, in response to receiving a test request sent by the first device, if the test request does not include information of a second device that executes a first instruction, a second device that can execute the first instruction corresponding to the test request is determined, and the first instruction corresponding to the test request is sent to the determined second device.

[0117] In the embodiment of the present disclosure, when the received test instruction does not contain the second device information for executing the first instruction, the second device that can execute the first instruction corresponding to the test request is determined according to the second device status table, and the first instruction corresponding to the test request is sent to the determined second device.

[0118] In step S43, a state of another device different from the target device executing the test request corresponding to the first instruction is monitored.

[0119] In step S44, the state corresponding to the state is sent to the first device, so that the first device performs a subsequent test process.

[0120] Among them, steps S41, S43, and S44 are consistent with steps S21, S23, and S24, and will not be described in detail here.

[0121] In the embodiments of the present disclosure, by specifying a test request to execute a first instruction to be sent to a second device, or randomly sending a test request to execute a first instruction to a second device, the diversity of device testing scenarios and the coverage of automated testing scenarios are improved, and the problem of test confusion that occurs when multiple cooperating devices are tested can be avoided.

[0122] In the embodiment of the present disclosure, if the second device triggers a test request, when monitoring the second device to execute a set function, it can be monitored that the first device sends an operation request to cooperate with the second device to execute the set function within a set time period.

[0123] In the embodiment of the present disclosure, if the second device triggers a test request, when monitoring the second device to execute a set function, it can be monitored that the first device has not issued an operation request to cooperate with the second device to execute the set function within the set time period.

[0124] Figure 6 is a flowchart of a test method in which a target device is a second device according to an exemplary embodiment. Figure 6 As shown, the testing method is used in the third device and includes the following steps.

[0125] In step S51, in response to monitoring that the second device executes a setting function, the setting function supports the first device to cooperate in executing a corresponding operation, and it is determined that a test request is monitored.

[0126] In the embodiment of the present disclosure, the setting function executed by the second device may be that the second device receives a call request.

[0127] In the embodiment of the present disclosure, when the second device executes the setting function, the first device can send a test request for cooperating with the setting function. For example, when the second device receives the setting request, the first device can send a connection test request or a hang-up operation request to cooperate with the second device to execute the setting function.

[0128] In step S52, an operation request of the first device to cooperate in executing a set function is monitored within a set time period, an operation request is sent to the second device, and a success status of the second device executing the set function based on the operation request is monitored.

[0129] The set duration may be preset by the user.

[0130] In the disclosed embodiment, when the second device executes a set function, when it monitors the first device sending an operation request for cooperating with the second device to execute the set function within a set time, it sends an operation request to the second device, and monitors the second device successfully executing the operation request. For example, when the second device receives an incoming call, the first device sends a hang-up request, the third device sends a hang-up instruction corresponding to the hang-up request to the second device, and monitors the second device successfully hanging up the incoming call.

[0131] In the embodiment of the present disclosure, by monitoring when the second device executes a set function, an operation request sent by the first device for cooperating with the second device to execute the set function is sent to the second device, and the operation request is monitored for successful execution, thereby expanding the test scenarios and improving the coverage of the automated test scenarios.

[0132] Figure 7 is a flowchart of a test method in which a target device is a second device according to an exemplary embodiment. Figure 7 As shown, the testing method is used in the third device and includes the following steps.

[0133] In step S61, in response to monitoring that the second device executes a setting function, the setting function supports the first device to cooperate in executing a corresponding operation, and it is determined that a test request is monitored.

[0134] Among them, step S61 is consistent with step S51, and will not be described in detail here.

[0135] In step S62, if the operation request of the first device to cooperate in executing the set function is not monitored within the set time period, a second instruction is sent to the second device.

[0136] The second instruction is used to control the second device to stop executing the set function.

[0137] In the embodiment of the present disclosure, when the second device executes a set function, if it is detected within a set time that the first device does not send an operation request for cooperating with the second device to execute the set function, the second device sends a second instruction to the second device. For example, when it is detected that the second device receives an incoming call, it is detected that the second device does not receive an operation instruction sent by the first device for connecting or hanging up the second device within a set time, such as 30 seconds, then the third device sends an operation to the second device to end the execution of the set function by the second device, such as sending a call hang-up instruction to the second device.

[0138] In the embodiment of the present disclosure, by monitoring the execution of a set function on the second device, when the first device does not send an operation request for cooperating with the second device to execute the set function, a second instruction for causing the second device to stop executing the set function is sent to the third device, thereby expanding the test scenarios, improving the coverage of automated test scenarios, achieving full coverage of automated test scenarios, and improving device testing efficiency.

[0139] In the embodiment of the present disclosure, when the third device establishes connections with the first device and the second device respectively, the third device may monitor the connection status of the second device.

[0140] Figure 8 is a flow chart of a device testing method according to an exemplary embodiment. Figure 8 As shown, the testing method is used in the third device and includes the following steps.

[0141] In step S71, the connection status of the second device is monitored.

[0142] Among them, monitoring the connection status of the second device may be monitoring the connection status between the second device and the third device.

[0143] In the implementation of the present disclosure, monitoring the connection status of the second device may be monitoring whether the second device is in a connection state that can be tested in cooperation with the first device. For example, the third device may monitor whether the connection protocol between the third device and the second device is normal, whether the second device is in a locked screen state, or whether the second device is in a bright screen state.

[0144] In step S72, in response to monitoring that the second device is disconnected, a prompt message is sent.

[0145] The prompt message is used to prompt that the second device is abnormal.

[0146] In the embodiment of the present disclosure, when it is monitored that the connection between the second device and the third device is disconnected, the third device sends a prompt message to prompt the second device that there is an abnormality.

[0147] In the embodiment of the present disclosure, when it is monitored that the third device is in a connection state that cannot cooperate with the first device for testing, the third device can adjust the second device so that the second device is in a connection state that can cooperate with the first device for testing, and send a prompt message to prompt that the second device is abnormal.

[0148] In the disclosed embodiment, by monitoring the connection status between the second device and the third device, a prompt message is sent or a prompt message is sent after adjusting the second device, so as to ensure that the second device can be in a state where it can cooperate with the first device test, thereby ensuring that the test process can be carried out continuously and improving the equipment testing efficiency.

[0149] In the embodiment of the present disclosure, the instruction issued by the third device and corresponding to the test request includes at least one of the following:

[0150] An instruction to make a voice call; or an instruction to send a short message; or an instruction to answer a call; or an instruction to hang up a call.

[0151] Fig. 9 is a flow chart of a device testing method according to an exemplary embodiment. Fig. 9 As shown, the testing method is used in a first device and includes the following steps.

[0152] In step S81, in response to the first device establishing a connection with the third device, a test request is sent to the third device.

[0153] The test request is used to enable the third device to send a first instruction corresponding to the test request to the second device.

[0154] In the embodiment of the present disclosure, when the first device establishes a connection with the third device, a test request is sent to the third device, so that the third device can send a first instruction corresponding to the test request to the second device based on the test request sent by the first device.

[0155] In step S82, the status is received.

[0156] The status is used to indicate the status of executing the first instruction corresponding to the test request, wherein the status includes whether the first instruction corresponding to the test request is executed successfully or whether the first instruction corresponding to the test request is executed unsuccessfully.

[0157] In the embodiment of the present disclosure, the status of executing the test request corresponding to the first instruction can be determined by receiving different status codes. For example, receiving status code 0 indicates that the execution of the test request corresponding to the first instruction fails, and receiving status code 1 indicates that the execution of the test request corresponding to the first instruction succeeds.

[0158] In the embodiment of the present disclosure, the first device receives a status sent by the third device, wherein the status is used to indicate the status of the second device executing the first instruction corresponding to the test request issued by the first device, including the second device successfully executing the first instruction corresponding to the test request, or the second device failing to execute the first instruction corresponding to the test request.

[0159] In step S83, based on the status, a subsequent test process is executed.

[0160] In the embodiment of the present disclosure, the third device returns different states to the first device according to the different states of the first instruction executed by the second device corresponding to the test request. The first device executes different subsequent processes according to different states. For example, when the first device makes a phone call request, it can receive a status code sent by the third device indicating that the second device successfully executes the phone call request. The first device continues to perform other tests according to the status code of the successful execution of the phone call request, such as sending a hang-up call request. If the first device sends a text message request and receives a status code sent by the third device indicating that the second device failed to execute the phone call request, the first device will issue a phone call request again or send a text message request according to the status code of the successful execution of the phone call request.

[0161] In the disclosed embodiment, a test request is issued by the tested device, and subsequent testing is performed according to the execution status of the test request, so that device testing can be automated, avoiding the user from performing repeated operations between the first device and the second device, improving device testing efficiency, and increasing the coverage of automated testing scenarios.

[0162] In the embodiment of the present disclosure, the first device may request to specify the second device to execute the first instruction corresponding to the test request.

[0163] In the embodiment of the present disclosure, the first device may request a random second device to execute a first instruction corresponding to the test request.

[0164] In the embodiment of the present disclosure, the first device may send an operation request for cooperating with the second device to execute a set function within a set time period.

[0165] Fig.10 is a flow chart of a device testing method according to an exemplary embodiment. Fig.10 As shown, the testing method is used in a first device and includes the following steps.

[0166] In step S91, a test request is sent to the third device.

[0167] In step S921, a test request including second device information for executing the first instruction is sent.

[0168] In the embodiment of the present disclosure, the third device may send a second device status table including second device information to the first device, wherein the second device information at least includes a second device name and / or a second device status.

[0169] In the embodiment of the present disclosure, the first device may send request information for obtaining the second device status table to the third device, and the third device may send current second device information to the first device based on the request information.

[0170] In the embodiment of the present disclosure, the first device may receive the second device information periodically sent by the third device.

[0171] In the embodiment of the present disclosure, by sending the second device status table to the first device, the first device determines the name of the second device and the status of the second device. The first device sends a test request containing the second device information specifying the execution of the first instruction based on the second device information in the second device status table. For example, when the first device obtains the second device information that device 3 can cooperate with the first device to execute the test request, the sending device 3 executes the SMS request to the third device.

[0172] In step S922, a test request that does not include second device information for executing the first instruction is sent.

[0173] In the embodiment of the present disclosure, the first device may send a test request including information of the second device executing the first instruction, and the third device determines the second device capable of executing the test request and sends the first instruction corresponding to the test request to the second device.

[0174] In step S923, an operation request is sent within a set time, and the test request is used to cooperate with the second device to execute the set function.

[0175] In the embodiment of the present disclosure, the first device may send the operation request at a set duration as a period, or the first device may send the operation request at a random duration.

[0176] In the disclosed embodiment, different performances of the tested device can be tested by sending different test requests through the tested device, and the tested device can execute different processes based on different status codes, thereby enriching the device automation test scenarios and improving the coverage of the automation test scenarios.

[0177] In the embodiment of the present disclosure, the test request sent by the first device includes at least one of the following:

[0178] A request to make a voice call; or a request to send a short message; or a request to answer a call; or a request to hang up a call.

[0179] Fig.11 is a flow chart of a device testing method according to an exemplary embodiment. Fig.11 As shown, the testing method is used in the second device and includes the following steps.

[0180] In step S101, in response to the second device establishing a connection with the third device, a first instruction sent by the third device is executed.

[0181] The first instruction corresponds to a test request, and the test request is used to test the first device.

[0182] In the embodiment of the present disclosure, the second device receives the first instruction sent by the third device, and performs a corresponding operation according to the first instruction, thereby testing the first device.

[0183] In the disclosed embodiment, the second device executes the test request sent by the first device based on the first instruction, thereby realizing device testing automation, avoiding manual participation in the device testing process, improving device testing efficiency, and increasing the coverage of automated testing scenarios.

[0184] In the embodiment of the present disclosure, the second device can execute a pre-set function.

[0185] Fig.12 is a flow chart of a device testing method according to an exemplary embodiment. Fig.12 As shown, the testing method is used in the second device and includes the following steps.

[0186] In step S111 , in response to the second device executing the setting function, an operation request corresponding to the test request sent by the first device is executed.

[0187] The operation request is an operation request sent by the first device to cooperate with the second device to perform a set function within a set time period.

[0188] In the embodiment of the present disclosure, the second device executing the setting function may be that the second device receives a call request.

[0189] In the embodiment of the present disclosure, when the device executes the set function, the operation request sent by the third device can be executed. The operation request can be an operation request sent by the first device within a specific time period to cooperate with the second device to execute the set function. For example, when the second device receives an incoming call request, the second device can receive an answer request or a hang-up request sent by the first device.

[0190] In the embodiment of the present disclosure, the second device may execute the second instruction, wherein the second instruction is sent by the third device.

[0191] Fig.13 is a flow chart of a device testing method according to an exemplary embodiment. Fig.13 As shown, the testing method is used in the second device and includes the following steps.

[0192] In step S121, in response to the second device executing the set function, a second instruction is executed, where the second instruction is an instruction sent by the third device when the first device fails to cooperate with the second device to execute the set function within a set time period, wherein the second instruction is used to control the second device to stop executing the set function.

[0193] In the embodiment of the present disclosure, when the second device executes a set function and does not receive an operation request for cooperating with the second device to execute the set function within a set time, the second instruction sent by the third device is executed. The second instruction can cause the second device to stop executing the set function. For example, when the second device receives a call request, if it does not receive a connection request or a hang-up request sent by the first device within a set time, such as 30 seconds, the second device can receive a hang-up request sent by the third device.

[0194] In the disclosed embodiment, when executing the set function, the second device can receive different instructions and perform different operations according to different instructions, so as to better cooperate with the test equipment for testing and improve the coverage of automated test scenarios.

[0195] In the embodiment of the present disclosure, the first instruction executed by the second device includes at least one of the following:

[0196] An instruction to make a voice call; or an instruction to send a short message; or an instruction to answer a call; or an instruction to hang up a call.

[0197] In the embodiments of the present disclosure, the device testing method is described in conjunction with the following examples.

[0198] Fig.14 It is a schematic diagram showing a device testing method according to an exemplary embodiment.

[0199] In the disclosed embodiment, the device under test may be an AIoT wearable device; the service device may be a server installed on a PC; and the device that cooperates with the test device for testing may be a mobile smart terminal.

[0200] In the disclosed embodiment, the AIoT wearable device and the server can establish an HTTP protocol connection; the mobile smart terminal and the server can establish an ADB protocol connection.

[0201] In the disclosed embodiment, the connection between the server and the AIoT wearable device and the mobile smart terminal is established respectively, and the AIoT wearable device and the mobile smart terminal are monitored. When the AIoT wearable device is monitored to send a call request to the AIoT wearable device through the HTTP interface, the server sends a call instruction to the mobile smart terminal based on the ADB protocol, and the mobile smart terminal executes the instruction to call the AIoT wearable device. After the server monitors that the AIoT wearable device successfully executes the call instruction, it sends a status code containing the successful execution of the instruction by the mobile smart terminal to the AIoT wearable device through the HTTP interface. At the same time, the server monitors that the AIoT wearable device sends a request to send a text message to the AIoT wearable device through the HTTP protocol, then the server sends a text message instruction to the mobile smart terminal based on the ADB protocol, and the mobile smart terminal executes the instruction to send a text message to the AIoT wearable device. When the server monitors that the AIoT wearable device successfully executes the text message instruction, it sends a status code containing the successful execution of the instruction by the mobile smart terminal to the AIoT wearable device through the HTTP interface.

[0202] In the disclosed embodiment, when the mobile smart terminal is monitored to receive a call request, the AIoT wearable device sends a connection request to the server within 30 seconds, and the mobile smart terminal answers the call.

[0203] In the disclosed embodiment, the server monitors the connection status between the mobile smart terminal and the server. If the connection between the mobile smart terminal and the server is terminated, a prompt message can be sent to the staff to prompt that the mobile smart terminal is abnormal.

[0204] Based on the same concept, an embodiment of the present disclosure also provides a device testing apparatus.

[0205] It is understandable that the equipment testing device provided in the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function in order to realize the above functions. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.

[0206] Fig.15 is a block diagram of a device testing apparatus according to an exemplary embodiment. Fig.15 The device 100 includes a monitoring unit 101 and a sending unit 102.

[0207] The monitoring unit 101 is used for responding to the third device establishing connection with the first device and the second device respectively, the third device monitoring the test request triggered by the target device, wherein the first device is the device under test, the second device is the device that cooperates with the first device to perform the test, the third device is used to monitor the first device and the second device and send a first instruction corresponding to the test request, and send a status, the target device is the first device and / or the second device. In response to monitoring the test request, monitor the status of another device different from the target device executing the first instruction corresponding to the test request.

[0208] The sending unit 102 is used to send the status to the first device so that the first device executes a subsequent test process.

[0209] In one embodiment, the target device is a first device. The monitoring unit 101 monitors the test request in the following manner: receiving the test request sent by the first device. Before monitoring the state of another device different from the target device executing the first instruction corresponding to the test request, the sending unit 102 is further used to: send the first instruction corresponding to the test request to the second device.

[0210] In one implementation, the sending unit 102 sends the first instruction corresponding to the test request to the second device in the following manner: if the test request includes the second device information for executing the first instruction, the first instruction corresponding to the test request is sent to the second device corresponding to the second device information. If the test request does not include the second device information for executing the first instruction, a second device capable of executing the first instruction corresponding to the test request is determined, and the first instruction corresponding to the test request is sent to the determined second device.

[0211] In one embodiment, the target device is the second device. The monitoring unit 101 monitors the test request in the following manner: in response to monitoring the second device executing a set function, the set function supports the first device to cooperate in executing the corresponding operation, and determines that the test request is monitored. The monitoring unit 101 monitors the state of another device different from the target device executing the test request corresponding to the first instruction in the following manner: within a set time period, the operation request of the first device to cooperate in executing the set function is monitored, the operation request is sent to the second device, and the success state of the second device executing the set function based on the operation request is monitored.

[0212] In one embodiment, the monitoring unit 101 is further used to: if no operation request of the first device to cooperate in executing the set function is monitored within a set time period, send a second instruction to the second device, wherein the second instruction is used to control the second device to stop executing the set function.

[0213] In one implementation, the monitoring unit 101 is further configured to monitor the connection status of the second device. The sending unit 102 is further configured to send a prompt message in response to monitoring the disconnection of the second device, wherein the prompt message is used to prompt that the second device is abnormal.

[0214] In one implementation, the first device is a tested device, the second device is a device that cooperates with the first device for testing, and the instruction corresponding to the test request includes at least one of the following: an instruction to make a voice call; or an instruction to send a short message; or an instruction to answer a call; or an instruction to hang up a call.

[0215] Fig.16 is a block diagram of a device testing apparatus according to an exemplary embodiment. Fig.16 The device 200 includes a sending unit 201 and an execution unit 202.

[0216] The sending unit 201 is configured to send a test request to the third device in response to the first device establishing a connection with the third device, so that the third device sends a first instruction corresponding to the test request to the second device.

[0217] The execution unit 202 is used to receive the status.

[0218] Based on the status, execute the subsequent testing process.

[0219] In one implementation, the sending unit 201 sends a test request to the third device in the following manner: sending a test request including information of the second device executing the first instruction. Or sending a test request not including information of the second device executing the first instruction. Sending the test request within a set time, the test request is used to cooperate with the second device to execute a set function.

[0220] In one implementation, the test request includes at least one of the following: a request to make a voice call; or a request to send a short message; or a call answering request; or a call hanging up request.

[0221] Fig.17 is a block diagram of a device testing apparatus according to an exemplary embodiment. Fig.17 , the device 300 includes an execution unit 301.

[0222] The execution unit 301 is used to execute a first instruction sent by the third device in response to the second device establishing a connection with the third device, where the first instruction corresponds to a test request, and the test request is used to test the first device.

[0223] In one embodiment, the execution unit 301 is also used to: in response to the second device executing a set function, execute an operation request corresponding to the test request sent by the first device, and the operation request is an operation request sent by the first device to cooperate with the second device to execute the set function within a set time period.

[0224] In one embodiment, the execution unit 301 is also used to: execute a second instruction in response to the second device executing a set function, wherein the second instruction is an instruction sent by the third device when the first device fails to cooperate with the second device to execute the set function within the set time period, wherein the second instruction is used to control the second device to stop executing the set function.

[0225] In one implementation, the first instruction includes at least one of the following: an instruction to make a voice call; or an instruction to send a short message; or an instruction to answer a call; or an instruction to hang up a call.

[0226] Fig.18 4 is a block diagram of an apparatus 400 for device testing according to an exemplary embodiment. For example, the apparatus 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0227] Reference Fig.18 , the device 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output (I / O) interface 412 , a sensor component 414 , and a communication component 416 .

[0228] The processing component 402 generally controls the overall operation of the device 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 402 may include one or more modules to facilitate the interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.

[0229] The memory 404 is configured to store various types of data to support operations on the device 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phone book data, messages, pictures, videos, etc. The memory 404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0230] The power component 406 provides power to the various components of the device 400. The power component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 400.

[0231] The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera and / or a rear camera. When the device 400 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0232] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), and when the device 400 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 404 or sent via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.

[0233] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0234] The sensor assembly 414 includes one or more sensors for providing various aspects of the status assessment of the device 400. For example, the sensor assembly 414 can detect the open / closed state of the device 400, the relative positioning of components, such as the display and keypad of the device 400, and the sensor assembly 414 can also detect the position change of the device 400 or a component of the device 400, the presence or absence of user contact with the device 400, the orientation or acceleration / deceleration of the device 400, and the temperature change of the device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0235] The communication component 416 is configured to facilitate wired or wireless communication between the device 400 and other devices. The device 400 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0236] In an exemplary embodiment, the apparatus 400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above method.

[0237] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, and the instructions can be executed by a processor 420 of the device 400 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0238] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.

[0239] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.

[0240] It will be further understood that the terms “center”, “longitudinal”, “lateral”, “front”, “back”, “up”, “down”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present embodiment and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation.

[0241] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.

[0242] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.

[0243] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.

[0244] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.

Claims

1. A device testing method, characterized in that: include: In response to the third device establishing connections with the first device and the second device respectively, the third device monitors a test request triggered by a target device, wherein the first device is a device under test, the second device is a device that cooperates with the first device to perform a test, the third device is used to monitor the first device and the second device and send a first instruction corresponding to the test request, and a sending status, and the target device is the first device and / or the second device; In response to monitoring the test request, monitoring a state of another device different from the target device executing a first instruction corresponding to the test request; The status is sent to the first device so that the first device performs a subsequent test process.

2. The device testing method according to claim 1, characterized in that: The target device is the first device; The monitoring of the test request includes: receiving a test request sent by the first device; Before monitoring the state of another device different from the target device executing the first instruction corresponding to the test request, the method further includes: A first instruction corresponding to the test request is sent to the second device.

3. The device testing method according to claim 2, characterized in that: The sending a first instruction corresponding to the test request to the second device includes: If the test request includes information of a second device for executing the first instruction, sending a first instruction corresponding to the test request to a second device corresponding to the second device information; If the test request does not include the second device information for executing the first instruction, a second device capable of executing the first instruction corresponding to the test request is determined, and the first instruction corresponding to the test request is sent to the determined second device.

4. The method according to claim 1, characterized in that: The target device is the second device; The monitoring of the test request includes: In response to monitoring that the second device executes a setting function, the setting function supports the first device to cooperate in executing a corresponding operation, determining that the test request is monitored; The monitoring of a state of another device different from the target device executing the first instruction corresponding to the test request includes: An operation request for the first device to cooperate in executing the set function is monitored within a set time period, the operation request is sent to the second device, and a success status of the second device executing the set function based on the operation request is monitored.

5. The method according to claim 4, characterized in that The method further comprises: If no operation request of the first device to cooperate in executing the set function is monitored within the set time period, a second instruction is sent to the second device, wherein the second instruction is used to control the second device to stop executing the set function.

6. The device testing method according to claim 1, characterized in that: The method further comprises: Monitoring the connection status of the second device; In response to monitoring that the second device is disconnected, a prompt message is sent, where the prompt message is used to prompt that the second device is abnormal.

7. The device testing method according to any one of claims 1 to 6, wherein the first device is a device under test, the second device is a device that cooperates with the first device to perform the test, and the instruction corresponding to the test request includes at least one of the following: Instructions to make a voice call; or Instructions to send a short message; or Call answering instructions; or Call hang up command.

8. A device testing method, characterized in that: include: In response to the first device establishing a connection with the third device, sending a test request to the third device, so that the third device sends a first instruction corresponding to the test request to the second device; A status is received, and based on the status, a subsequent test process is performed.

9. The device testing method according to claim 8, characterized in that: The sending a test request to the third device includes: Sending a test request including second device information for executing the first instruction; or Sending a test request that does not include information about the second device that executes the first instruction; An operation request is sent within a set time period, where the operation request is used to cooperate with the second device to execute a set function.

10. The device testing method according to claim 8, characterized in that: The test request includes at least one of the following: a request to make a voice call; or a request to send a short message; or A call answering request; or Request to hang up the call.

11. A device testing method, characterized in that: include: In response to the second device establishing a connection with the third device, a first instruction sent by the third device is executed, where the first instruction corresponds to a test request, and the test request is used to test the first device.

12. The device testing method according to claim 11, characterized in that: The method further comprises: In response to the second device executing the set function, an operation request corresponding to the test request sent by the first device is executed, where the operation request is an operation request sent by the first device within a set time period in cooperation with the second device to execute the set function.

13. The device testing method according to claim 11, characterized in that: The method further comprises: In response to the second device executing the set function, executing the second instruction, the second instruction is an instruction sent by the third device when the first device fails to cooperate with the second device to execute the set function within the set time period, wherein the second instruction is used to control the second device to stop executing the set function.

14. The device testing method according to claim 11, characterized in that: The first instruction includes at least one of the following: Instructions to make a voice call; or Instructions to send a short message; or Call answering instructions; or Call hang up command.

15. A device testing apparatus, characterized in that: include: A monitoring unit, configured to establish connections with the first device and the second device respectively in response to a third device, wherein the third device monitors a test request triggered by a target device, wherein the first device is a device under test, and the second device is a device that cooperates with the first device to perform a test, and the third device is configured to monitor the first device and the second device and send a first instruction corresponding to the test request, as well as a sending status, and the target device is the first device and / or the second device; in response to monitoring the test request, monitor a status of another device different from the target device executing the first instruction corresponding to the test request; A sending unit is used to send the status to the first device so that the first device executes a subsequent test process.

16. The equipment testing device according to claim 15, characterized in that: The target device is the first device; The monitoring unit monitors the test request in the following manner: receiving a test request sent by the first device; Before monitoring the state of another device different from the target device executing the first instruction corresponding to the test request, the sending unit is further used to: A first instruction corresponding to the test request is sent to the second device.

17. The equipment testing device according to claim 16, characterized in that: The sending unit sends the first instruction corresponding to the test request to the second device in the following manner: If the test request includes information of a second device for executing the first instruction, sending a first instruction corresponding to the test request to a second device corresponding to the second device information; If the test request does not include the second device information for executing the first instruction, a second device capable of executing the first instruction corresponding to the test request is determined, and the first instruction corresponding to the test request is sent to the determined second device.

18. The device according to claim 15, characterized in that The target device is the second device; The monitoring unit monitors the test request in the following manner: In response to monitoring that the second device executes a setting function, the setting function supports the first device to cooperate in executing a corresponding operation, determining that the test request is monitored; The monitoring unit monitors the state of another device different from the target device executing the first instruction corresponding to the test request in the following manner: An operation request for the first device to cooperate in executing the set function is monitored within a set time period, the operation request is sent to the second device, and a success status of the second device executing the set function based on the operation request is monitored.

19. The device according to claim 18, characterized in that The monitoring unit is also used for: If no operation request of the first device to cooperate in executing the set function is monitored within the set time period, a second instruction is sent to the second device, wherein the second instruction is used to control the second device to stop executing the set function.

20. The equipment testing device according to claim 15, characterized in that: The monitoring unit is further used to monitor the connection status of the second device; The sending unit is further configured to send a prompt message in response to monitoring that the second device is disconnected, wherein the prompt message is used to prompt that the second device is abnormal.

21. The device testing apparatus according to any one of claims 15 to 20, wherein the first device is a device under test, the second device is a device that cooperates with the first device to perform a test, and the instruction corresponding to the test request includes at least one of the following: Instructions to make a voice call; or Instructions to send a short message; or Call answering instructions; or Call hang up command.

22. A device testing apparatus, characterized in that: include: a sending unit, configured to send a test request to the third device in response to the first device establishing a connection with the third device, so that the third device sends a first instruction corresponding to the test request to the second device; Execution unit, for receiving status, Based on the status, subsequent testing procedures are performed.

23. The equipment testing device according to claim 22, characterized in that: The sending unit sends a test request to the third device in the following manner: Sending a test request including second device information for executing the first instruction; or Sending a test request that does not include information about the second device that executes the first instruction; An operation request is sent within a set time period, where the operation request is used to cooperate with the second device to execute a set function.

24. The equipment testing device according to claim 22, characterized in that: The test request includes at least one of the following: a request to make a voice call; or a request to send a short message; or A call answering request; or Request to hang up the call.

25. A device testing apparatus, characterized in that: include: The execution unit is used to execute a first instruction sent by the third device in response to the second device establishing a connection with the third device, where the first instruction corresponds to a test request used to test the first device.

26. The equipment testing device according to claim 25, characterized in that: The execution unit is also used for: In response to the second device executing the set function, an operation request corresponding to the test request sent by the first device is executed, where the operation request is an operation request sent by the first device within a set time period in cooperation with the second device to execute the set function.

27. The equipment testing device according to claim 25, characterized in that: The execution unit is also used for: In response to the second device executing the set function, executing the second instruction, the second instruction is an instruction sent by the third device when the first device fails to cooperate with the second device to execute the set function within the set time period, wherein the second instruction is used to control the second device to stop executing the set function.

28. The equipment testing device according to claim 25, characterized in that: The first instruction includes at least one of the following: Instructions to make a voice call; or Instructions to send a short message; or Call answering instructions; or Call hang up command.

29. A device testing apparatus, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to: execute the device testing method described in any one of claims 1-7; or execute the device testing method described in any one of claims 8-10; or execute the device testing method described in any one of claims 11-14.

30. A storage medium, characterized in that: The storage medium stores instructions. When the instructions in the storage medium are executed by the processor of the terminal, the terminal is enabled to execute the method described in any one of claims 1 to 7; or the terminal is enabled to execute the method described in any one of claims 8 to 10; or the terminal is enabled to execute the method described in any one of claims 11 to 14.