A method for testing a terminal, performed by a device under test, comprising: establishing a connection with a preset device when a preset trigger condition is detected, wherein connection manners of the preset device include a wireless network equipment technology connection manner, a Bluetooth connection manner and a Near Field Communication connection manner; starting (S102, S203, S304) an automatic detection program to obtain an automatic detection result; and sending the automatic detection result to the preset device. wherein the step of sending the automatic detection result to the preset device comprises: generating (S204, S305) a detection log according to the automatic detection result; and sending (S205, S306) the detection log to the preset device, wherein the preset device is a network access device; characterized in that it further comprises: the step of sending the detection log to the preset device comprises: sending the detection log to the network access device, and instructing the network access device to transfer the detection log to a test host; and after the step of establishing a connection with a preset device, the method further comprises: sending a wake-up message to the network access device, and instructing the network access device to transfer the wake-up message to the test host, so that the test host enters in a working state according to the wake-up message; the sending the detection log to the network access device, and instructing the network access device to transfer the detection log to a test host comprising: after sending the wake-up message to the network access device, sending the detection log to the network access device, and instructing the network access device to transfer the detection log to the test host. establishing a connection with a preset device when a preset trigger condition is detected, wherein connection manners of the preset device include a wireless network equipment technology connection manner, a Bluetooth connection manner and a Near Field Communication connection manner; starting (S102, S203, S304) an automatic detection program to obtain an automatic detection result; and sending the automatic detection result to the preset device. generating (S204, S305) a detection log according to the automatic detection result; and sending (S205, S306) the detection log to the preset device, the step of sending the detection log to the preset device comprises: sending the detection log to the network access device, and instructing the network access device to transfer the detection log to a test host; and after the step of establishing a connection with a preset device, the method further comprises: sending a wake-up message to the network access device, and instructing the network access device to transfer the wake-up message to the test host, so that the test host enters in a working state according to the wake-up message; the sending the detection log to the network access device, and instructing the network access device to transfer the detection log to a test host comprising: after sending the wake-up message to the network access device, sending the detection log to the network access device, and instructing the network access device to transfer the detection log to the test host. sending a wake-up message to the network access device, and instructing the network access device to transfer the wake-up message to the test host, so that the test host enters in a working state according to the wake-up message; the sending the detection log to the network access device, and instructing the network access device to transfer the detection log to a test host comprising: after sending the wake-up message to the network access device, sending the detection log to the network access device, and instructing the network access device to transfer the detection log to the test host.