[go: up one dir, main page]

CN104881342A - Terminal testing method and device - Google Patents

Terminal testing method and device Download PDF

Info

Publication number
CN104881342A
CN104881342A CN201510354712.8A CN201510354712A CN104881342A CN 104881342 A CN104881342 A CN 104881342A CN 201510354712 A CN201510354712 A CN 201510354712A CN 104881342 A CN104881342 A CN 104881342A
Authority
CN
China
Prior art keywords
test
terminal
event
instance
command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510354712.8A
Other languages
Chinese (zh)
Other versions
CN104881342B (en
Inventor
周志彬
张鹏
赵孟磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510354712.8A priority Critical patent/CN104881342B/en
Publication of CN104881342A publication Critical patent/CN104881342A/en
Application granted granted Critical
Publication of CN104881342B publication Critical patent/CN104881342B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

本公开是关于终端测试方法及装置,所述方法应用于第一终端上,包括:当需要对第一测试事件进行交互测试时,确定所述第一测试事件对应的第一测试命令;将所述第一测试命令发送至第二终端,以使所述第二终端根据所第一测试命令生成所述第一测试事件对应的第一测试实例;接收所述第二终端返回的所述第一测试事件对应的第一测试实例;根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。因此,本公开可以通过第二终端完成了对第一终端的交互测试,并且第一终端可以自主选择测试时机,第二终端为其提供测试实例,从而降低了终端测试的难度,并提高了终端测试的效率。

The present disclosure relates to a terminal testing method and device. The method is applied to a first terminal, and includes: when an interactive test needs to be performed on a first test event, determining a first test command corresponding to the first test event; Send the first test command to the second terminal, so that the second terminal generates a first test instance corresponding to the first test event according to the first test command; receive the first test instance returned by the second terminal A first test instance corresponding to the test event; performing a test according to the first test instance to obtain a test result corresponding to the first test event. Therefore, in the present disclosure, the interactive test of the first terminal can be completed through the second terminal, and the first terminal can independently select a test opportunity, and the second terminal provides a test instance for it, thereby reducing the difficulty of terminal testing and improving the terminal performance. Test efficiency.

Description

终端测试方法及装置Terminal testing method and device

技术领域technical field

本公开涉及网络通信技术领域,尤其涉及终端测试方法及装置。The present disclosure relates to the technical field of network communication, in particular to a terminal testing method and device.

背景技术Background technique

随着网络通信技术的不断发展,终端设备的应用越来越广泛。因此,对终端设备进行各项功能测试变得越来越重要。相关技术中,对终端设备的功能测试或压力测试仅限于单个终端设备。由此可知,相关技术中的终端测试不能很好地完成终端之间的交互测试。With the continuous development of network communication technology, the application of terminal equipment is more and more extensive. Therefore, it is becoming more and more important to perform various functional tests on terminal equipment. In the related art, the function test or stress test of the terminal equipment is limited to a single terminal equipment. It can be seen from this that the terminal test in the related art cannot well complete the interaction test between terminals.

发明内容Contents of the invention

本公开提供了终端测试方法及装置,以解决现有技术中的测试方法不能很好地完成终端之间的交互测试的问题。The present disclosure provides a terminal testing method and device to solve the problem that the testing method in the prior art cannot well complete the interactive testing between terminals.

根据本公开实施例的第一方面,提供了一种终端测试方法,所述方法应用于第一终端上,包括:According to a first aspect of an embodiment of the present disclosure, a terminal testing method is provided, the method is applied to a first terminal, including:

当需要对第一测试事件进行交互测试时,确定所述第一测试事件对应的第一测试命令;When it is necessary to perform an interactive test on the first test event, determine a first test command corresponding to the first test event;

将所述第一测试命令发送至第二终端,以使所述第二终端根据所第一测试命令生成所述第一测试事件对应的第一测试实例;sending the first test command to a second terminal, so that the second terminal generates a first test instance corresponding to the first test event according to the first test command;

接收所述第二终端返回的所述第一测试事件对应的第一测试实例;receiving a first test instance corresponding to the first test event returned by the second terminal;

根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。A test is performed according to the first test instance, and a test result corresponding to the first test event is obtained.

可选的,所述第一测试事件为电话测试、短信测试、即时通讯IM消息测试、蓝牙配对测试和无线网络WIFI热点共享测试中的至少一种。Optionally, the first test event is at least one of a phone call test, a short message test, an instant messaging IM message test, a Bluetooth pairing test, and a wireless network WIFI hotspot sharing test.

可选的,所述将所述第一测试命令发送至第二终端,以使所述第二终端根据所第一测试命令生成所述第一测试事件对应的第一测试实例,包括:Optionally, the sending the first test command to the second terminal, so that the second terminal generates the first test instance corresponding to the first test event according to the first test command, includes:

将携带有第一测试事件的事件标识和第一终端的设备标识的第一测试命令发送至第二终端,以使所述第二终端根据所述事件标识生成所述第一测试事件对应的第一测试实例,并根据所述设备标识将所述第一测试实例返回所述第一终端。Sending the first test command carrying the event identifier of the first test event and the device identifier of the first terminal to the second terminal, so that the second terminal generates the first test command corresponding to the first test event according to the event identifier. A test instance is generated, and the first test instance is returned to the first terminal according to the device identifier.

可选的,所述方法还包括:Optionally, the method also includes:

将预设的测试事件和对应的测试命令发送至所述第二终端,以使所述第二终端建立所述测试事件和所述测试命令的对应关系;sending a preset test event and a corresponding test command to the second terminal, so that the second terminal establishes a correspondence between the test event and the test command;

或者,接收所述第二终端发送的预设的测试事件和对应的测试命令,并建立所述测试事件和所述测试命令的对应关系。Or, receiving a preset test event and a corresponding test command sent by the second terminal, and establishing a correspondence between the test event and the test command.

可选的,所述方法还包括:Optionally, the method also includes:

接收第二终端发送的第二测试命令,所述第二测试命令是所述第二终端需要对第二测试事件进行交互测试时所确定的所述第二测试事件对应的测试命令;receiving a second test command sent by the second terminal, where the second test command is a test command corresponding to the second test event determined when the second terminal needs to perform an interactive test on the second test event;

根据所述第二测试命令生成所述第二测试事件对应的第二测试实例;generating a second test instance corresponding to the second test event according to the second test command;

将所述第二测试实例发送至所述第二终端,以使所述第二终端根据所第二述测试实例进行测试,得到所述第二测试事件对应的测试结果。Sending the second test instance to the second terminal, so that the second terminal performs a test according to the second test instance, and obtains a test result corresponding to the second test event.

可选的,所述第二测试事件为电话测试、短信测试、IM消息测试、蓝牙配对测试和WIFI热点共享测试中的至少一种。Optionally, the second test event is at least one of a phone call test, a short message test, an IM message test, a Bluetooth pairing test and a WIFI hotspot sharing test.

可选的,所述根据所述第二测试命令生成所述第二测试事件对应的第二测试实例,包括:Optionally, the generating the second test instance corresponding to the second test event according to the second test command includes:

若所述第二测试事件为电话测试,则生成的第二测试实例为一个测试电话;If the second test event is a phone test, the generated second test instance is a test phone;

若所述第二测试事件为短信测试,则生成的第二测试实例为一个测试短信;If the second test event is a short message test, the generated second test instance is a test short message;

若所述第二测试事件为IM消息测试,则生成的第二测试实例为一个测试IM消息;If the second test event is an IM message test, the generated second test instance is a test IM message;

若所述第二测试事件为蓝牙配对测试,则生成的第二测试实例为一个测试蓝牙配对消息;If the second test event is a Bluetooth pairing test, the generated second test instance is a test Bluetooth pairing message;

若所述第二测试事件为WIFI热点共享测试,则生成的第二测试实例为一个测试WIFI热点共享消息。If the second test event is a WIFI hotspot sharing test, the generated second test instance is a test WIFI hotspot sharing message.

根据本公开实施例的第二方面,提供了一种终端测试方法,所述方法应用于第一终端上,包括:According to a second aspect of an embodiment of the present disclosure, a terminal testing method is provided, the method is applied to a first terminal, including:

当需要对第一测试事件进行交互测试时,确定所述第一测试事件对应的第一测试命令;When it is necessary to perform an interactive test on the first test event, determine a first test command corresponding to the first test event;

将所述第一测试命令发送至服务器,以使所述服务器根据所第一测试命令生成所述第一测试事件对应的第一测试实例;sending the first test command to a server, so that the server generates a first test instance corresponding to the first test event according to the first test command;

接收所述服务器返回的所述第一测试事件对应的第一测试实例;receiving a first test instance corresponding to the first test event returned by the server;

根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。A test is performed according to the first test instance, and a test result corresponding to the first test event is obtained.

根据本公开实施例的第三方面,提供了一种终端测试方法,所述方法应用于服务器上,包括:According to a third aspect of the embodiments of the present disclosure, a terminal testing method is provided, the method is applied on a server, including:

接收第一终端发送的第一测试命令,所述第一测试命令是所述第一终端需要对第一测试事件进行交互测试时所确定的所述第一测试事件对应的测试命令;receiving a first test command sent by the first terminal, where the first test command is a test command corresponding to the first test event determined when the first terminal needs to perform an interactive test on the first test event;

根据所述第一测试命令生成所述第一测试事件对应的第一测试实例;generating a first test instance corresponding to the first test event according to the first test command;

将所述第一测试实例发送至所述第一终端,以使所述第一终端根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。Sending the first test instance to the first terminal, so that the first terminal performs a test according to the first test instance, and obtains a test result corresponding to the first test event.

根据本公开实施例的第四方面,提供了一种终端测试装置,所述装置应用于第一终端上,包括:According to a fourth aspect of the embodiments of the present disclosure, there is provided a terminal testing device, the device is applied to a first terminal, including:

测试命令确定单元,用于当需要对第一测试事件进行交互测试时,确定所述第一测试事件对应的第一测试命令;A test command determination unit, configured to determine a first test command corresponding to the first test event when interactive testing of the first test event is required;

第一发送单元,用于将所述第一测试命令发送至第二终端,以使所述第二终端根据所第一测试命令生成所述第一测试事件对应的第一测试实例;a first sending unit, configured to send the first test command to a second terminal, so that the second terminal generates a first test instance corresponding to the first test event according to the first test command;

第一接收单元,用于接收所述第二终端返回的所述第一测试事件对应的第一测试实例;a first receiving unit, configured to receive a first test instance corresponding to the first test event returned by the second terminal;

测试单元,用于根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。The testing unit is configured to perform a test according to the first test instance, and obtain a test result corresponding to the first test event.

可选的,所述第一测试事件为电话测试、短信测试、即时通讯IM消息测试、蓝牙配对测试和无线网络WIFI热点共享测试中的至少一种。Optionally, the first test event is at least one of a phone call test, a short message test, an instant messaging IM message test, a Bluetooth pairing test, and a wireless network WIFI hotspot sharing test.

可选的,所述第一发送单元用于将携带有第一测试事件的事件标识和第一终端的设备标识的第一测试命令发送至第二终端,以使所述第二终端根据所述事件标识生成所述第一测试事件对应的第一测试实例,并根据所述设备标识将所述第一测试实例返回所述第一终端。Optionally, the first sending unit is configured to send the first test command carrying the event identifier of the first test event and the device identifier of the first terminal to the second terminal, so that the second terminal according to the The event identifier generates a first test instance corresponding to the first test event, and returns the first test instance to the first terminal according to the device identifier.

可选的,所述装置还包括:Optionally, the device also includes:

收发单元,用于将预设的测试事件和对应的测试命令发送至所述第二终端,以使所述第二终端建立所述测试事件和所述测试命令的对应关系;或者,接收所述第二终端发送的预设的测试事件和对应的测试命令,并建立所述测试事件和所述测试命令的对应关系。a transceiver unit, configured to send a preset test event and a corresponding test command to the second terminal, so that the second terminal establishes a correspondence between the test event and the test command; or, receives the The second terminal sends a preset test event and a corresponding test command, and establishes a correspondence between the test event and the test command.

可选的,所述装置还包括:Optionally, the device also includes:

第二接收单元,用于接收第二终端发送的第二测试命令,所述第二测试命令是所述第二终端需要对第二测试事件进行交互测试时所确定的所述第二测试事件对应的测试命令;The second receiving unit is configured to receive a second test command sent by the second terminal, where the second test command is the second test event corresponding to the second test event determined when the second terminal needs to perform an interactive test on the second test event. the test command;

测试实例生成单元,用于根据所述第二测试命令生成所述第二测试事件对应的第二测试实例;a test instance generating unit, configured to generate a second test instance corresponding to the second test event according to the second test command;

第二发送单元,用于将所述第二测试实例发送至所述第二终端,以使所述第二终端根据所第二述测试实例进行测试,得到所述第二测试事件对应的测试结果。A second sending unit, configured to send the second test instance to the second terminal, so that the second terminal performs a test according to the second test instance, and obtains a test result corresponding to the second test event .

可选的,所述第二测试事件为电话测试、短信测试、IM消息测试、蓝牙配对测试和WIFI热点共享测试中的至少一种。Optionally, the second test event is at least one of a phone call test, a short message test, an IM message test, a Bluetooth pairing test and a WIFI hotspot sharing test.

可选的,所述测试实例生成单元用于若所述第二测试事件为电话测试,则生成的第二测试实例为一个测试电话;若所述第二测试事件为短信测试,则生成的第二测试实例为一个测试短信;若所述第二测试事件为IM消息测试,则生成的第二测试实例为一个测试IM消息;若所述第二测试事件为蓝牙配对测试,则生成的第二测试实例为一个测试蓝牙配对消息;若所述第二测试事件为WIFI热点共享测试,则生成的第二测试实例为一个测试WIFI热点共享消息。Optionally, the test instance generating unit is configured to if the second test event is a phone test, the generated second test instance is a test phone; if the second test event is a short message test, the generated second test instance The second test instance is a test message; if the second test event is an IM message test, the generated second test instance is a test IM message; if the second test event is a bluetooth pairing test, the generated second The test instance is a test Bluetooth pairing message; if the second test event is a WIFI hotspot sharing test, the generated second test instance is a test WIFI hotspot sharing message.

根据本公开实施例的第五方面,提供了一种终端测试装置,所述装置应用于第一终端上,包括:According to a fifth aspect of the embodiments of the present disclosure, there is provided a terminal testing device, the device is applied to a first terminal, including:

测试命令确定单元,用于当需要对第一测试事件进行交互测试时,确定所述第一测试事件对应的第一测试命令;A test command determination unit, configured to determine a first test command corresponding to the first test event when interactive testing of the first test event is required;

发送单元,用于将所述第一测试命令发送至服务器,以使所述服务器根据所第一测试命令生成所述第一测试事件对应的第一测试实例;a sending unit, configured to send the first test command to a server, so that the server generates a first test instance corresponding to the first test event according to the first test command;

接收单元,用于接收所述服务器返回的所述第一测试事件对应的第一测试实例;a receiving unit, configured to receive a first test instance corresponding to the first test event returned by the server;

测试单元,用于根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。The testing unit is configured to perform a test according to the first test instance, and obtain a test result corresponding to the first test event.

根据本公开实施例的第六方面,提供了一种终端测试装置,所述装置应用于服务器上,包括:According to a sixth aspect of the embodiments of the present disclosure, a terminal testing device is provided, and the device is applied to a server, including:

接收单元,用于接收第一终端发送的第一测试命令,所述第一测试命令是所述第一终端需要对第一测试事件进行交互测试时所确定的所述第一测试事件对应的测试命令;A receiving unit, configured to receive a first test command sent by the first terminal, where the first test command is a test corresponding to the first test event determined when the first terminal needs to perform an interactive test on the first test event Order;

测试实例生成单元,用于根据所述第一测试命令生成所述第一测试事件对应的第一测试实例;a test instance generating unit, configured to generate a first test instance corresponding to the first test event according to the first test command;

第二发送单元,用于将所述第一测试实例发送至所述第一终端,以使所述第一终端根据所第一述测试实例进行测试,得到所述第一测试事件对应的测试结果。A second sending unit, configured to send the first test instance to the first terminal, so that the first terminal performs a test according to the first test instance, and obtains a test result corresponding to the first test event .

根据本公开实施例的第七方面,提供了一种终端测试装置,所述装置应用于第一终端上,包括:According to a seventh aspect of the embodiments of the present disclosure, there is provided a terminal testing device, the device is applied to a first terminal, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

当需要对第一测试事件进行交互测试时,确定所述第一测试事件对应的第一测试命令;When it is necessary to perform an interactive test on the first test event, determine a first test command corresponding to the first test event;

将所述第一测试命令发送至第二终端,以使所述第二终端根据所第一测试命令生成所述第一测试事件对应的第一测试实例;sending the first test command to a second terminal, so that the second terminal generates a first test instance corresponding to the first test event according to the first test command;

接收所述第二终端返回的所述第一测试事件对应的第一测试实例;receiving a first test instance corresponding to the first test event returned by the second terminal;

根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。A test is performed according to the first test instance, and a test result corresponding to the first test event is obtained.

根据本公开实施例的第八方面,提供了一种终端测试装置,所述装置应用于第一终端上,包括:According to an eighth aspect of the embodiments of the present disclosure, there is provided a terminal testing device, the device is applied to a first terminal, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

当需要对第一测试事件进行交互测试时,确定所述第一测试事件对应的第一测试命令;When it is necessary to perform an interactive test on the first test event, determine a first test command corresponding to the first test event;

将所述第一测试命令发送至服务器,以使所述服务器根据所第一测试命令生成所述第一测试事件对应的第一测试实例;sending the first test command to a server, so that the server generates a first test instance corresponding to the first test event according to the first test command;

接收所述服务器返回的所述第一测试事件对应的第一测试实例;receiving a first test instance corresponding to the first test event returned by the server;

根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。A test is performed according to the first test instance, and a test result corresponding to the first test event is obtained.

根据本公开实施例的第九方面,提供了一种终端测试装置,所述装置应用于服务器上,包括:According to a ninth aspect of the embodiments of the present disclosure, there is provided a terminal testing device, the device is applied to a server, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

接收第一终端发送的第一测试命令,所述第一测试命令是所述第一终端需要对第一测试事件进行交互测试时所确定的所述第一测试事件对应的测试命令;receiving a first test command sent by the first terminal, where the first test command is a test command corresponding to the first test event determined when the first terminal needs to perform an interactive test on the first test event;

根据所述第一测试命令生成所述第一测试事件对应的第一测试实例;generating a first test instance corresponding to the first test event according to the first test command;

将所述第一测试实例发送至所述第一终端,以使所述第一终端根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。Sending the first test instance to the first terminal, so that the first terminal performs a test according to the first test instance, and obtains a test result corresponding to the first test event.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

本公开中当需要对第一测试事件进行交互测试时,第一终端确定第一测试事件对应的第一测试命令,将第一测试命令发送至第二终端,以使第二终端根据第一测试命令生成第一测试事件对应的第一测试实例,接收第二终端返回的第一测试事件对应的第一测试实例,根据第一测试实例进行测试,得到第一测试事件对应的测试结果,使得通过第二终端完成了对第一终端的交互测试,并且第一终端可以自主选择测试时机,第二终端为其提供测试实例,从而降低了终端测试的难度,并提高了终端测试的效率。In the present disclosure, when it is necessary to perform an interactive test on the first test event, the first terminal determines the first test command corresponding to the first test event, and sends the first test command to the second terminal, so that the second terminal according to the first test The command generates the first test instance corresponding to the first test event, receives the first test instance corresponding to the first test event returned by the second terminal, performs the test according to the first test instance, and obtains the test result corresponding to the first test event, so that the pass The second terminal has completed the interactive test of the first terminal, and the first terminal can independently choose a test opportunity, and the second terminal provides a test instance for it, thereby reducing the difficulty of terminal testing and improving the efficiency of terminal testing.

本公开中第一终端也可以成为第二终端的载体,为其提供测试实例,从而更好地完成了终端之间的交互测试,并降低了终端测试的难度,以及提高了终端测试的效率。In the present disclosure, the first terminal can also serve as the carrier of the second terminal, providing test examples for it, thereby better completing the interaction test between terminals, reducing the difficulty of terminal testing, and improving the efficiency of terminal testing.

本公开中当需要对第一测试事件进行交互测试时,第一终端确定第一测试事件对应的第一测试命令,将第一测试命令发送至服务器,以使服务器根据第一测试命令生成第一测试事件对应的第一测试实例,接收服务器返回的第一测试事件对应的第一测试实例,根据第一测试实例进行测试,得到第一测试事件对应的测试结果,使得通过服务器完成了对第一终端的交互测试,并且第一终端可以自主选择测试时机,服务器为其提供测试实例,从而降低了终端测试的难度,并提高了终端测试的效率。In the present disclosure, when an interactive test is required for the first test event, the first terminal determines the first test command corresponding to the first test event, and sends the first test command to the server, so that the server generates the first test command according to the first test command. The first test instance corresponding to the test event receives the first test instance corresponding to the first test event returned by the server, performs the test according to the first test instance, and obtains the test result corresponding to the first test event, so that the first test event is completed by the server. The interactive test of the terminal, and the first terminal can independently choose the test timing, and the server provides the test instance, thereby reducing the difficulty of the terminal test and improving the efficiency of the terminal test.

本公开中服务器可以成为第一终端的载体,为其提供测试实例,从而更好地完成了终端和服务器之间的交互测试,并降低了终端测试的难度,以及提高了终端测试的效率。In the present disclosure, the server can be the carrier of the first terminal and provide a test instance for it, thereby better completing the interaction test between the terminal and the server, reducing the difficulty of terminal testing, and improving the efficiency of terminal testing.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是本公开根据一示例性实施例示出的一种终端测试方法流程图;Fig. 1 is a flow chart of a terminal testing method according to an exemplary embodiment of the present disclosure;

图2是本公开根据一示例性实施例示出的另一种终端测试方法流程图;Fig. 2 is a flowchart of another terminal testing method according to an exemplary embodiment of the present disclosure;

图3是本公开根据一示例性实施例示出的另一种终端测试方法流程图;Fig. 3 is a flowchart of another terminal testing method according to an exemplary embodiment of the present disclosure;

图4是本公开根据一示例性实施例示出的另一种终端测试方法流程图;Fig. 4 is a flowchart of another terminal testing method according to an exemplary embodiment of the present disclosure;

图5是本公开根据一示例性实施例示出的一种终端测试方法的应用场景图;Fig. 5 is an application scenario diagram of a terminal testing method according to an exemplary embodiment of the present disclosure;

图6是本公开根据一示例性实施例示出的另一种终端测试方法的应用场景图;Fig. 6 is an application scenario diagram of another terminal testing method according to an exemplary embodiment of the present disclosure;

图7是本公开根据一示例性实施例示出的一种终端测试装置的框图;Fig. 7 is a block diagram of a terminal testing device according to an exemplary embodiment of the present disclosure;

图8是本公开根据一示例性实施例示出的另一种终端测试装置的框图;Fig. 8 is a block diagram of another terminal testing device according to an exemplary embodiment of the present disclosure;

图9是本公开根据一示例性实施例示出的另一种终端测试装置的框图;Fig. 9 is a block diagram of another terminal testing device according to an exemplary embodiment of the present disclosure;

图10是本公开根据一示例性实施例示出的另一种终端测试装置的框图;Fig. 10 is a block diagram of another terminal testing device according to an exemplary embodiment of the present disclosure;

图11是本公开根据一示例性实施例示出的另一种终端测试装置的框图;Fig. 11 is a block diagram of another terminal testing device according to an exemplary embodiment of the present disclosure;

图12是本公开根据一示例性实施例示出的一种用于终端测试装置的一结构示意图;Fig. 12 is a schematic structural diagram of a terminal testing device according to an exemplary embodiment of the present disclosure;

图13是本公开根据一示例性实施例示出的一种用于终端测试装置的另一结构示意图。Fig. 13 is another schematic structural diagram of a terminal testing device according to an exemplary embodiment of the present disclosure.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

在本公开使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开。在本公开和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the present disclosure is for the purpose of describing particular embodiments only, and is not intended to limit the present disclosure. As used in this disclosure and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

应当理解,尽管在本公开可能采用术语第一、第一、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本公开范围的情况下,第一信息也可以被称为第一信息,类似地,第一信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, first, third, etc. may be used in the present disclosure to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of the present disclosure, first information may also be called first information, and similarly, first information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination."

如图1所示,图1是本公开根据一示例性实施例示出的一种终端测试方法流程图,该方法可以用于第一终端上,并且需要第二终端提供测试实例,该第二终端是为第一终端提供测试实例的载体。As shown in FIG. 1, FIG. 1 is a flow chart of a terminal testing method according to an exemplary embodiment of the present disclosure. This method can be used on a first terminal and requires a second terminal to provide a test instance. The second terminal It is a carrier that provides test instances for the first terminal.

该方法包括以下步骤:The method includes the following steps:

在步骤110中,当需要对第一测试事件进行交互测试时,确定第一测试事件对应的第一测试命令。In step 110, when an interactive test needs to be performed on the first test event, a first test command corresponding to the first test event is determined.

本公开实施例中,交互测试可以为终端与终端之间的测试,也可以为终端与服务器之间的测试。对第一测试事件进行交互测试中的第一测试事件需要两个终端才能完成,或者需要一个终端和一个服务器才能完成。In the embodiment of the present disclosure, the interaction test may be a test between terminals, or a test between a terminal and a server. The first test event in the interactive test for the first test event needs two terminals to complete, or needs a terminal and a server to complete.

其中,该第一测试事件可以为电话测试、短信测试、即时通讯(InstantMessaging,IM)消息测试、蓝牙配对测试和无线网络WIFI热点共享测试中的至少一种。另外,该第一测试事件还可以是其他的测试事件,只要该测试事件需要两个终端才能完成,或者需要一个终端和一个服务器才能完成即可。Wherein, the first test event may be at least one of a phone call test, a short message test, an Instant Messaging (IM) message test, a Bluetooth pairing test, and a wireless network WIFI hotspot sharing test. In addition, the first test event may also be other test events, as long as the test event requires two terminals to complete, or requires a terminal and a server to complete.

比如,若第一测试事件为电话测试,即需要第二终端向第一终端发起电话呼叫,此时,第一终端需要确定该电话测试对应的测试命令,目的是第二终端识别该测试命令后,向自身打一个测试电话。其中,第一终端确定的测试命令格式是和第二终端提前协商一致的,即测试事件与测试命令相对应,当第二终端接收到第一终端确定的测试命令,就能够根据该测试命令获知对应的测试事件,并生成对应的测试实例。其中,生成对应的测试实例可以是可读信息,也可以是测试操作。For example, if the first test event is a phone test, the second terminal needs to initiate a phone call to the first terminal. At this time, the first terminal needs to determine the test command corresponding to the phone test. The purpose is that after the second terminal recognizes the test command , making a test call to itself. Wherein, the test command format determined by the first terminal is agreed with the second terminal in advance, that is, the test event corresponds to the test command, and when the second terminal receives the test command determined by the first terminal, it can know the Corresponding test events, and generate corresponding test instances. Wherein, generating a corresponding test instance may be readable information or a test operation.

在步骤120中,将第一测试命令发送至第二终端,以使第二终端根据第一测试命令生成第一测试事件对应的第一测试实例。In step 120, the first test command is sent to the second terminal, so that the second terminal generates a first test instance corresponding to the first test event according to the first test command.

本公开实施例中,第一终端可以以消息的形式将第一测试命令发送至第二终端。并且,第二终端生成的第一测试实例和第一测试事件相对应。比如:第一测试事件为电话测试,第一测试实例为测试电话;第一测试事件为短信测试,第一测试实例为测试短信等。In the embodiment of the present disclosure, the first terminal may send the first test command to the second terminal in the form of a message. Moreover, the first test instance generated by the second terminal corresponds to the first test event. For example: the first test event is a phone call test, and the first test instance is a test phone call; the first test event is a short message test, and the first test instance is a test short message.

可选的,第一测试命令可以携带有第一测试事件的事件标识和第一终端的设备标识。比如:该第一测试命令为一文本短信,其文本短信的内容包括第一测试事件的事件标识+第一终端的设备标识。Optionally, the first test command may carry the event identifier of the first test event and the device identifier of the first terminal. For example: the first test command is a text message, and the content of the text message includes the event identifier of the first test event+the device identifier of the first terminal.

第一终端可以将携带有第一测试事件的事件标识和第一终端的设备标识的第一测试命令发送至第二终端,以使第二终端根据第一测试事件的事件标识生成第一测试事件对应的第一测试实例,并根据第一终端的设备标识将第一测试实例返回第一终端。The first terminal may send the first test command carrying the event identifier of the first test event and the device identifier of the first terminal to the second terminal, so that the second terminal generates the first test event according to the event identifier of the first test event corresponding to the first test instance, and return the first test instance to the first terminal according to the device identifier of the first terminal.

比如,第一测试命令为“MTcall+18612345678”,MTcall为电话这一测试事件的时间标识,18612345678为第一终端的电话号码,该电话号码可以是第一终端的设备标识。第二终端接收到该第一测试命令后,根据MTcall获知是电话测试的测试事件,根据18612345678获知第一终端的电话号码,则第二终端生成的第一测试实例为向18612345678打一个测试电话。For example, the first test command is "MTcall+18612345678", MTcall is the time identifier of the test event of the phone call, and 18612345678 is the phone number of the first terminal, and the phone number may be the device identifier of the first terminal. After the second terminal receives the first test command, it learns from MTcall that it is a test event of a phone test, and learns the phone number of the first terminal from 18612345678, then the first test instance generated by the second terminal is to make a test call to 18612345678.

另外,第一测试命令中也可以不包括第一终端的设备标识,第二终端可以从第一测试命令相关的详情信息中自动获取第一终端的设备标识,比如,第一终端的电话号码。In addition, the device identifier of the first terminal may not be included in the first test command, and the second terminal may automatically obtain the device identifier of the first terminal, such as the phone number of the first terminal, from detailed information related to the first test command.

在步骤130中,接收第二终端返回的第一测试事件对应的第一测试实例。In step 130, the first test instance corresponding to the first test event returned by the second terminal is received.

本公开实施例中,第一测试实例可以是可读信息,比如,测试短信;也可以是测试操作,比如,测试电话。In the embodiment of the present disclosure, the first test instance may be readable information, such as a test text message; it may also be a test operation, such as a test phone call.

比如:第一测试事件为短信测试,则第一测试实例为第二终端向第一终端发送一个测试短信,该短信内容可以是第二终端自定义的一些可读信息。For example, if the first test event is a short message test, then the first test instance is that the second terminal sends a test short message to the first terminal, and the content of the short message may be some readable information customized by the second terminal.

又比如:第一测试事件为电话测试,则第一测试实例为第二终端向第一终端打一个测试电话,至于电话内容可以是第二终端自定义的一些信息。For another example: if the first test event is a phone call test, then the first test instance is that the second terminal makes a test call to the first terminal, and the content of the call may be some information customized by the second terminal.

在步骤140中,根据第一测试实例进行测试,得到第一测试事件对应的测试结果。In step 140, a test is performed according to the first test instance, and a test result corresponding to the first test event is obtained.

本公开实施例中,由于第一终端需要测试的第一测试事件不同,使得第二终端生成的第一测试实例不同,故根据第一测试实例的测试过程也不同。In the embodiments of the present disclosure, since the first test event to be tested by the first terminal is different, the first test instance generated by the second terminal is different, so the test process according to the first test instance is also different.

比如:第一测试事件为电话测试,第一测试实例为第二终端向第一终端打一个测试电话,第一终端接收到测试电话后,可以切换到免提进行测试,从而得到测试结果。For example: the first test event is a telephone test, the first test instance is that the second terminal makes a test call to the first terminal, and after receiving the test call, the first terminal can switch to the hands-free test to obtain the test result.

另外,在上述步骤110至140之外,第一终端和第二终端还要对预设的测试事件和对应的测试命令进行协商,尤其是测试命令的格式。故第一终端和第二终端的协商过程可以有以下两种方式:In addition, in addition to the above steps 110 to 140, the first terminal and the second terminal need to negotiate the preset test event and the corresponding test command, especially the format of the test command. Therefore, the negotiation process between the first terminal and the second terminal can have the following two methods:

方式一:第一终端将预设的测试事件和对应的测试命令发送至第二终端,以使第二终端建立测试事件和测试命令的对应关系。Way 1: The first terminal sends the preset test event and the corresponding test command to the second terminal, so that the second terminal establishes a corresponding relationship between the test event and the test command.

方式二:第一终端接收第二终端发送的预设的测试事件和对应的测试命令,并建立所述测试事件和测试命令的对应关系。Mode 2: The first terminal receives the preset test event and the corresponding test command sent by the second terminal, and establishes a corresponding relationship between the test event and the test command.

由上述实施例可见,当需要对第一测试事件进行交互测试时,第一终端确定第一测试事件对应的第一测试命令,将第一测试命令发送至第二终端,以使第二终端根据第一测试命令生成第一测试事件对应的第一测试实例,接收第二终端返回的第一测试事件对应的第一测试实例,根据第一测试实例进行测试,得到第一测试事件对应的测试结果,使得通过第二终端完成了对第一终端的交互测试,并且第一终端可以自主选择测试时机,第二终端为其提供测试实例,从而降低了终端测试的难度,并提高了终端测试的效率。It can be seen from the above embodiments that when an interactive test is required for the first test event, the first terminal determines the first test command corresponding to the first test event, and sends the first test command to the second terminal, so that the second terminal according to The first test command generates the first test instance corresponding to the first test event, receives the first test instance corresponding to the first test event returned by the second terminal, performs the test according to the first test instance, and obtains the test result corresponding to the first test event , so that the interactive test of the first terminal is completed through the second terminal, and the first terminal can independently choose the test timing, and the second terminal provides a test instance for it, thereby reducing the difficulty of terminal testing and improving the efficiency of terminal testing .

如图2所示,图2是本公开根据一示例性实施例示出的另一种终端测试方法流程图,该方法可以用于第一终端上,并且该第一终端是能够为第二终端提供测试实例的载体。As shown in FIG. 2, FIG. 2 is a flow chart of another terminal testing method according to an exemplary embodiment of the present disclosure. The method can be used on a first terminal, and the first terminal can provide the second terminal with A vector of test instances.

该方法包括以下步骤:The method includes the following steps:

在步骤210中,接收第二终端发送的第二测试命令,该第二测试命令是第二终端需要对第二测试事件进行交互测试时所确定的第二测试事件对应的测试命令。In step 210, a second test command sent by the second terminal is received, and the second test command is a test command corresponding to the second test event determined when the second terminal needs to perform an interactive test on the second test event.

本公开实施例中,第二测试事件可以为电话测试、短信测试、IM消息测试、蓝牙配对测试和WIFI热点共享测试中的至少一种。另外,该第二测试事件还可以是其他的测试事件,只要该测试事件需要两个终端才能完成。In the embodiment of the present disclosure, the second test event may be at least one of a phone call test, a short message test, an IM message test, a Bluetooth pairing test, and a WIFI hotspot sharing test. In addition, the second test event may also be other test events, as long as the test event requires two terminals to complete.

其中,第二测试命令和第二测试事件是相对应的,并且测试命令和测试时间对应关系,尤其是测试命令的格式是第一终端和第二终端事先协商一致的。Wherein, the second test command corresponds to the second test event, and the corresponding relationship between the test command and the test time, especially the format of the test command is agreed upon in advance by the first terminal and the second terminal.

在步骤220中,根据第二测试命令生成第二测试事件对应的第二测试实例。In step 220, a second test instance corresponding to the second test event is generated according to the second test command.

本公开实施例中,当第一终端接收到第二测试命令后,能够根据该测试命令获知对应的测试事件,并生成该测试事件对应的测试实例,In the embodiment of the present disclosure, after receiving the second test command, the first terminal can learn the corresponding test event according to the test command, and generate a test instance corresponding to the test event,

可选的,根据第二测试命令生成第二测试事件对应的第二测试实例时,可以包括以下方式中的至少一种:Optionally, when generating the second test instance corresponding to the second test event according to the second test command, at least one of the following methods may be included:

若第二测试事件为电话测试,则生成的第二测试实例为一个测试电话;If the second test event is a phone test, the generated second test instance is a test phone;

若第二测试事件为短信测试,则生成的第二测试实例为一个测试短信;If the second test event is a short message test, the generated second test instance is a test short message;

若第二测试事件为IM消息测试,则生成的第二测试实例为一个测试IM消息;If the second test event is an IM message test, the generated second test instance is a test IM message;

若第二测试事件为蓝牙配对测试,则生成的第二测试实例为一个测试蓝牙配对消息;If the second test event is a Bluetooth pairing test, the generated second test instance is a test Bluetooth pairing message;

若第二测试事件为WIFI热点共享测试,则生成的第二测试实例为一个测试WIFI热点共享消息。If the second test event is a WIFI hotspot sharing test, the generated second test instance is a test WIFI hotspot sharing message.

在步骤230中,将第二测试实例发送至第二终端,以使第二终端根据第二测试实例进行测试,得到第二测试事件对应的测试结果。In step 230, the second test instance is sent to the second terminal, so that the second terminal performs a test according to the second test instance, and obtains a test result corresponding to the second test event.

本公开实施例中,根据第二测试实例的不同,当将第二测试实例发送至第二终端时,可以有不同的发送方式。若第二测试实例为测试电话,则第一终端向第二终端打一个测试电话;若第二测试实例为测试短信,则第一终端向第二终端发送一个测试短信等。In the embodiments of the present disclosure, according to different second test instances, when the second test instance is sent to the second terminal, there may be different sending manners. If the second test instance is a test call, the first terminal makes a test call to the second terminal; if the second test instance is a test message, the first terminal sends a test message to the second terminal.

由上述实施例可见,第一终端也可以成为第二终端的载体,为其提供测试实例,从而更好地完成了终端之间的交互测试,并降低了终端测试的难度,以及提高了终端测试的效率。It can be seen from the above-mentioned embodiments that the first terminal can also serve as the carrier of the second terminal and provide test examples for it, thereby better completing the interaction test between terminals, reducing the difficulty of terminal testing, and improving the efficiency of terminal testing. s efficiency.

如图3所示,图3是本公开根据一示例性实施例示出的另一种终端测试方法流程图,该方法可以用于第一终端上,并且需要服务器提供测试实例,其中,服务器是为第一终端提供测试实例的载体。As shown in FIG. 3, FIG. 3 is a flow chart of another terminal testing method according to an exemplary embodiment of the present disclosure. This method can be used on the first terminal and requires a server to provide a test instance, wherein the server is The first terminal provides the carrier of the test instance.

该方法包括以下步骤:The method includes the following steps:

在步骤310中,当需要对第一测试事件进行交互测试时,确定第一测试事件对应的第一测试命令。In step 310, when an interactive test needs to be performed on the first test event, a first test command corresponding to the first test event is determined.

本公开实施例中,对第一测试事件进行交互测试中的第一测试事件需要一个终端和一个服务器才能完成。In the embodiment of the present disclosure, a terminal and a server are required to complete the first test event in the interactive test for the first test event.

其中,该第一测试事件可以为电话测试、短信测试IM消息测试、蓝牙配对测试和WIFI热点共享测试中的至少一种。另外,该第一测试事件还可以是其他的测试事件,只要该测试事件需要一个终端和一个服务器才能完成即可。Wherein, the first test event may be at least one of phone test, SMS test, IM message test, Bluetooth pairing test and WIFI hotspot sharing test. In addition, the first test event may also be other test events, as long as the test event requires a terminal and a server to complete.

在步骤320中,将第一测试命令发送至服务器,以使服务器根据第一测试命令生成第一测试事件对应的第一测试实例。In step 320, the first test command is sent to the server, so that the server generates a first test instance corresponding to the first test event according to the first test command.

本公开实施例中,第一终端可以以消息的形式将第一测试命令发送至第服务器。并且,服务器生成的第一测试实例和第一测试事件相对应。比如:第一测试事件为电话测试,第一测试实例为测试电话;第一测试事件为短信测试,第一测试实例为测试短信等。In this embodiment of the present disclosure, the first terminal may send the first test command to the second server in the form of a message. And, the first test instance generated by the server corresponds to the first test event. For example: the first test event is a phone call test, and the first test instance is a test phone call; the first test event is a short message test, and the first test instance is a test short message.

可选的,第一测试命令可以携带有第一测试事件的事件标识和第一终端的设备标识。比如:该第一测试命令为一文本短信,其文本短信的内容包括第一测试事件的事件标识+第一终端的设备标识。Optionally, the first test command may carry the event identifier of the first test event and the device identifier of the first terminal. For example: the first test command is a text message, and the content of the text message includes the event identifier of the first test event+the device identifier of the first terminal.

第一终端可以将携带有第一测试事件的事件标识和第一终端的设备标识的第一测试命令发送至服务器,以使服务器根据第一测试事件的事件标识生成第一测试事件对应的第一测试实例,并根据第一终端的设备标识将第一测试实例返回第一终端。The first terminal may send the first test command carrying the event identifier of the first test event and the device identifier of the first terminal to the server, so that the server generates the first test command corresponding to the first test event according to the event identifier of the first test event. test instance, and return the first test instance to the first terminal according to the device identifier of the first terminal.

另外,第一测试命令中也可以不包括第一终端的设备标识,服务器可以从第一测试命令相关的详情信息中自动获取第一终端的设备标识,比如,第一终端的电话号码。In addition, the first test command may not include the device identifier of the first terminal, and the server may automatically obtain the device identifier of the first terminal, such as the phone number of the first terminal, from detailed information related to the first test command.

在步骤330中,接收服务器返回的第一测试事件对应的第一测试实例。In step 330, the first test instance corresponding to the first test event returned by the server is received.

本公开实施例中,第一测试实例可以是可读信息,比如,测试短信;也可以是测试操作,比如,测试电话。In the embodiment of the present disclosure, the first test instance may be readable information, such as a test text message; it may also be a test operation, such as a test phone call.

比如:第一测试事件为短信测试,则第一测试实例为服务器向第一终端发送一个测试短信,该短信内容可以是服务器自定义的一些可读信息。For example, if the first test event is a short message test, then the first test instance is that the server sends a test short message to the first terminal, and the content of the short message may be some readable information customized by the server.

又比如:第一测试事件为电话测试,则第一测试实例为服务器向第一终端打一个测试电话,至于电话内容可以是服务器自定义的一些信息。For another example: if the first test event is a phone call test, then the first test instance is that the server makes a test call to the first terminal, and the call content may be some information customized by the server.

在步骤340中,根据第一测试实例进行测试,得到第一测试事件对应的测试结果。In step 340, the test is performed according to the first test instance, and the test result corresponding to the first test event is obtained.

本公开实施例中,由于第一终端需要测试的第一测试事件不同,使得服务器生成的第一测试实例不同,故根据第一测试实例的测试过程也不同。In the embodiments of the present disclosure, since the first test event to be tested by the first terminal is different, the first test instance generated by the server is different, so the test process according to the first test instance is also different.

比如:第一测试事件为电话测试,第一测试实例为服务器向第一终端打一个测试电话,第一终端接收到测试电话后,可以切换到免提进行测试,从而得到测试结果。For example: the first test event is a phone test, and the first test instance is that the server makes a test call to the first terminal. After receiving the test call, the first terminal can switch to the hands-free test to obtain the test result.

另外,在上述步骤310至340之外,第一终端和服务器还要对预设的测试事件和对应的测试命令进行协商,尤其是测试命令的格式。故第一终端和服务器的协商过程可以有以下两种方式:In addition, in addition to the above steps 310 to 340, the first terminal and the server need to negotiate the preset test event and the corresponding test command, especially the format of the test command. Therefore, the negotiation process between the first terminal and the server can have the following two methods:

方式一:第一终端将预设的测试事件和对应的测试命令发送至服务器,以使第一终端建立测试事件和测试命令的对应关系。Way 1: The first terminal sends the preset test event and the corresponding test command to the server, so that the first terminal establishes a corresponding relationship between the test event and the test command.

方式二:第二终端接收服务器发送的预设的测试事件和对应的测试命令,并建立测试事件和测试命令的对应关系。Mode 2: The second terminal receives the preset test event and the corresponding test command sent by the server, and establishes a corresponding relationship between the test event and the test command.

由上述实施例可见,当需要对第一测试事件进行交互测试时,第一终端确定第一测试事件对应的第一测试命令,将第一测试命令发送至服务器,以使服务器根据第一测试命令生成第一测试事件对应的第一测试实例,接收服务器返回的第一测试事件对应的第一测试实例,根据第一测试实例进行测试,得到第一测试事件对应的测试结果,使得通过服务器完成了对第一终端的交互测试,并且第一终端可以自主选择测试时机,服务器为其提供测试实例,从而降低了终端测试的难度,并提高了终端测试的效率。It can be seen from the above embodiments that when an interactive test is required for the first test event, the first terminal determines the first test command corresponding to the first test event, and sends the first test command to the server, so that the server Generate the first test instance corresponding to the first test event, receive the first test instance corresponding to the first test event returned by the server, perform the test according to the first test instance, and obtain the test result corresponding to the first test event, so that the server completes For the interactive test of the first terminal, and the first terminal can independently choose a test opportunity, and the server provides a test instance for it, thereby reducing the difficulty of terminal testing and improving the efficiency of terminal testing.

如图4所示,图4是本公开根据一示例性实施例示出的另一种终端测试方法流程图,该方法可以用于服务器上,并且该服务器可以是能够为第一终端提供测试实例的载体。As shown in FIG. 4, FIG. 4 is a flowchart of another terminal testing method according to an exemplary embodiment of the present disclosure. The method can be used on a server, and the server can provide a test instance for the first terminal. carrier.

该方法包括以下步骤:The method includes the following steps:

在步骤410中,接收第一终端发送的第一测试命令,该第一测试命令是第一终端需要对第一测试事件进行交互测试时所确定的第一测试事件对应的测试命令。In step 410, a first test command sent by the first terminal is received, the first test command is a test command corresponding to the first test event determined when the first terminal needs to perform an interactive test on the first test event.

本公开实施例中,第一测试事件可以为电话测试、短信测试、IM消息测试、蓝牙配对测试和WIFI热点共享测试中的至少一种。另外,该第一测试事件还可以是其他的测试事件,只要该测试事件需要一个终端和一个服务器才能完成即可。In the embodiment of the present disclosure, the first test event may be at least one of a phone call test, a short message test, an IM message test, a Bluetooth pairing test, and a WIFI hotspot sharing test. In addition, the first test event may also be other test events, as long as the test event requires a terminal and a server to complete.

其中,第一测试命令和第一测试事件是相对应的,并且测试命令和测试时间对应关系,尤其是测试命令的格式是服务器和第一终端事先协商一致的。Wherein, the first test command corresponds to the first test event, and the corresponding relationship between the test command and the test time, especially the format of the test command is agreed upon in advance by the server and the first terminal.

在步骤420中,根据第一测试命令生成第一测试事件对应的第一测试实例。In step 420, a first test instance corresponding to the first test event is generated according to the first test command.

本公开实施例中,当服务器接收到第一测试命令后,能够根据该测试命令获知对应的测试事件,并生成该测试事件对应的测试实例,In the embodiment of the present disclosure, after the server receives the first test command, it can learn the corresponding test event according to the test command, and generate a test instance corresponding to the test event,

可选的,根据第一测试命令生成第一测试事件对应的第一测试实例时,可以包括以下方式中的至少一种:Optionally, when generating the first test instance corresponding to the first test event according to the first test command, at least one of the following methods may be included:

若第一测试事件为电话测试,则生成的第一测试实例为一个测试电话;If the first test event is a phone test, the generated first test instance is a test phone;

若第一测试事件为短信测试,则生成的第一测试实例为一个测试短信;If the first test event is a short message test, the generated first test instance is a test short message;

若第一测试事件为IM消息测试,则生成的第一测试实例为一个测试IM消息;If the first test event is an IM message test, the generated first test instance is a test IM message;

若第一测试事件为蓝牙配对测试,则生成的第一测试实例为一个测试蓝牙配对消息;If the first test event is a Bluetooth pairing test, the generated first test instance is a test Bluetooth pairing message;

若第一测试事件为WIFI热点共享测试,则生成的第一测试实例为一个测试WIFI热点共享消息。If the first test event is a WIFI hotspot sharing test, the generated first test instance is a test WIFI hotspot sharing message.

在步骤430中,将第一测试实例发送至第一终端,以使第一终端根据第一测试实例进行测试,得到第一测试事件对应的测试结果。In step 430, the first test instance is sent to the first terminal, so that the first terminal performs a test according to the first test instance, and obtains a test result corresponding to the first test event.

本公开实施例中,根据第一测试实例的不同,当将第一测试实例发送至第一终端时,可以有不同的发送方式。若第一测试实例为测试电话,则服务器向第一终端打一个测试电话;若第一测试实例为测试短信,则服务器向第一终端发送一个测试短信等。In the embodiments of the present disclosure, according to different first test instances, when the first test instance is sent to the first terminal, there may be different sending manners. If the first test instance is a test call, the server makes a test call to the first terminal; if the first test instance is a test message, the server sends a test message to the first terminal.

由上述实施例可见,服务器可以成为第一终端的载体,为其提供测试实例,从而更好地完成了终端和服务器之间的交互测试,并降低了终端测试的难度,以及提高了终端测试的效率。It can be seen from the foregoing embodiments that the server can become the carrier of the first terminal and provide test instances for it, thereby better completing the interaction test between the terminal and the server, reducing the difficulty of terminal testing, and improving the efficiency of terminal testing. efficiency.

如图5所示,图5是本公开根据一示例性实施例示出的一种终端测试方法的应用场景图。该用于场景包括第一终端和第二终端。As shown in FIG. 5 , FIG. 5 is an application scenario diagram of a terminal testing method according to an exemplary embodiment of the present disclosure. The usage scenario includes the first terminal and the second terminal.

第一终端当需要对第一测试事件进行交互测试时,确定第一测试事件对应的第一测试命令。When the first terminal needs to perform an interactive test on the first test event, it determines a first test command corresponding to the first test event.

第一终端将第一测试命令发送至第二终端。The first terminal sends the first test command to the second terminal.

第二终端接收到第一终端发送的第一测试命令后,根据第一测试命令生成第一测试事件对应的第一测试实例。After receiving the first test command sent by the first terminal, the second terminal generates a first test instance corresponding to the first test event according to the first test command.

第二终端将第一测试实例发送至第一终端,the second terminal sends the first test instance to the first terminal,

第一终端接收第一测试实例后,根据第一测试实例进行测试,得到第一测试事件对应的测试结果。After receiving the first test instance, the first terminal performs a test according to the first test instance, and obtains a test result corresponding to the first test event.

上述第一测试事件可以为电话测试、短信测试、即时通讯(InstantMessaging,IM)消息测试、蓝牙配对测试和无线网络WIFI热点共享测试中的至少一种。The above-mentioned first test event may be at least one of a phone call test, a short message test, an Instant Messaging (IM) message test, a Bluetooth pairing test, and a wireless network WIFI hotspot sharing test.

第二终端生成的第一测试实例可以包括以下方式中的至少一种:The first test instance generated by the second terminal may include at least one of the following methods:

若第一测试事件为电话测试,则生成的第一测试实例为一个测试电话;If the first test event is a phone test, the generated first test instance is a test phone;

若第一测试事件为短信测试,则生成的第一测试实例为一个测试短信;If the first test event is a short message test, the generated first test instance is a test short message;

若第一测试事件为IM消息测试,则生成的第一测试实例为一个测试IM消息;If the first test event is an IM message test, the generated first test instance is a test IM message;

若第一测试事件为蓝牙配对测试,则生成的第一测试实例为一个测试蓝牙配对消息;If the first test event is a Bluetooth pairing test, the generated first test instance is a test Bluetooth pairing message;

若第一测试事件为WIFI热点共享测试,则生成的第一测试实例为一个测试WIFI热点共享消息。If the first test event is a WIFI hotspot sharing test, the generated first test instance is a test WIFI hotspot sharing message.

同理,第一终端和第二终端可以成为互为对方提供测试实例的载体。Similarly, the first terminal and the second terminal may become carriers that provide test instances for each other.

第二终端当需要对第二测试事件进行交互测试时,确定第二测试事件对应的第二测试命令。When the second terminal needs to perform an interactive test on the second test event, it determines a second test command corresponding to the second test event.

第二终端将第二测试命令发送至第一终端。The second terminal sends the second test command to the first terminal.

第一终端接收到第二终端发送的第二测试命令后,根据第二测试命令生成第二测试事件对应的第二测试实例。After receiving the second test command sent by the second terminal, the first terminal generates a second test instance corresponding to the second test event according to the second test command.

第一终端将第二测试实例发送至第二终端,the first terminal sends the second test instance to the second terminal,

第二终端接收第二测试实例后,根据第二测试实例进行测试,得到第二测试事件对应的测试结果。After receiving the second test instance, the second terminal performs a test according to the second test instance, and obtains a test result corresponding to the second test event.

上述第二测试事件可以为电话测试、短信测试、即时通讯(InstantMessaging,IM)消息测试、蓝牙配对测试和无线网络WIFI热点共享测试中的至少一种。The above-mentioned second test event may be at least one of a phone call test, a short message test, an Instant Messaging (IM) message test, a Bluetooth pairing test, and a wireless network WIFI hotspot sharing test.

第一终端生成的第二测试实例可以包括以下方式中的至少一种:The second test instance generated by the first terminal may include at least one of the following methods:

若第二测试事件为电话测试,则生成的第二测试实例为一个测试电话;If the second test event is a phone test, the generated second test instance is a test phone;

若第二测试事件为短信测试,则生成的第二测试实例为一个测试短信;If the second test event is a short message test, the generated second test instance is a test short message;

若第二测试事件为IM消息测试,则生成的第二测试实例为一个测试IM消息;If the second test event is an IM message test, the generated second test instance is a test IM message;

若第二测试事件为蓝牙配对测试,则生成的第二测试实例为一个测试蓝牙配对消息;If the second test event is a Bluetooth pairing test, the generated second test instance is a test Bluetooth pairing message;

若第二测试事件为WIFI热点共享测试,则生成的第二测试实例为一个测试WIFI热点共享消息。If the second test event is a WIFI hotspot sharing test, the generated second test instance is a test WIFI hotspot sharing message.

如图6所示,图6是本公开根据一示例性实施例示出的一种终端测试方法的应用场景图。该用于场景包括第一终端和服务器。As shown in FIG. 6 , FIG. 6 is an application scenario diagram of a terminal testing method according to an exemplary embodiment of the present disclosure. The application scenario includes a first terminal and a server.

第一终端当需要对第一测试事件进行交互测试时,确定第一测试事件对应的第一测试命令。When the first terminal needs to perform an interactive test on the first test event, it determines a first test command corresponding to the first test event.

第一终端将第一测试命令发送至服务器。The first terminal sends the first test command to the server.

服务器接收到第一终端发送的第一测试命令后,根据第一测试命令生成第一测试事件对应的第一测试实例。After receiving the first test command sent by the first terminal, the server generates a first test instance corresponding to the first test event according to the first test command.

服务器将第一测试实例发送至第一终端,the server sends the first test instance to the first terminal,

第一终端接收第一测试实例后,根据第一测试实例进行测试,得到第一测试事件对应的测试结果。After receiving the first test instance, the first terminal performs a test according to the first test instance, and obtains a test result corresponding to the first test event.

与前述终端测试方法实施例相对应,本公开还提供了终端测试装置的实施例。Corresponding to the aforementioned embodiments of the terminal testing method, the present disclosure also provides embodiments of a terminal testing device.

如图7所示,图7是本公开根据一示例性实施例示出的一种终端测试装置的框图,所述装置应用于第一终端上,并用于执行图1所示的终端测试方法,所述装置包括:测试命令确定单元71、第一发送单元72、第一接收单元73和测试单元74。As shown in FIG. 7 , FIG. 7 is a block diagram of a terminal testing device according to an exemplary embodiment of the present disclosure. The device is applied to a first terminal and is used to execute the terminal testing method shown in FIG. 1 . The device includes: a test command determining unit 71 , a first sending unit 72 , a first receiving unit 73 and a testing unit 74 .

其中,测试命令确定单元71被配置为当需要对第一测试事件进行交互测试时,确定所述第一测试事件对应的第一测试命令;Wherein, the test command determination unit 71 is configured to determine the first test command corresponding to the first test event when the first test event needs to be interactively tested;

第一发送单元72被配置为将所述第一测试命令发送至第二终端,以使所述第二终端根据所第一测试命令生成所述第一测试事件对应的第一测试实例;The first sending unit 72 is configured to send the first test command to the second terminal, so that the second terminal generates a first test instance corresponding to the first test event according to the first test command;

第一接收单元73被配置为接收所述第二终端返回的所述第一测试事件对应的第一测试实例;The first receiving unit 73 is configured to receive the first test instance corresponding to the first test event returned by the second terminal;

测试单元74被配置为根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。The testing unit 74 is configured to perform a test according to the first test instance, and obtain a test result corresponding to the first test event.

上述第一测试事件为电话测试、短信测试、即时通讯IM消息测试、蓝牙配对测试和无线网络WIFI热点共享测试中的至少一种。The above-mentioned first test event is at least one of a phone call test, a short message test, an instant messaging IM message test, a Bluetooth pairing test, and a wireless network WIFI hotspot sharing test.

可选的,所述第一发送单元72被配置为将携带有第一测试事件的事件标识和第一终端的设备标识的第一测试命令发送至第二终端,以使所述第二终端根据所述事件标识生成所述第一测试事件对应的第一测试实例,并根据所述设备标识将所述第一测试实例返回所述第一终端。Optionally, the first sending unit 72 is configured to send the first test command carrying the event identifier of the first test event and the device identifier of the first terminal to the second terminal, so that the second terminal according to The event identifier generates a first test instance corresponding to the first test event, and returns the first test instance to the first terminal according to the device identifier.

由上述实施例可见,当需要对第一测试事件进行交互测试时,可以确定第一测试事件对应的第一测试命令,将第一测试命令发送至第二终端,以使第二终端根据第一测试命令生成第一测试事件对应的第一测试实例,接收第二终端返回的第一测试事件对应的第一测试实例,根据第一测试实例进行测试,得到第一测试事件对应的测试结果,使得通过第二终端完成了对第一终端的交互测试,并且第一终端可以自主选择测试时机,第二终端为其提供测试实例,从而降低了终端测试的难度,并提高了终端测试的效率。It can be seen from the above embodiments that when an interactive test is required for the first test event, the first test command corresponding to the first test event can be determined, and the first test command can be sent to the second terminal, so that the second terminal can The test command generates the first test instance corresponding to the first test event, receives the first test instance corresponding to the first test event returned by the second terminal, performs the test according to the first test instance, and obtains the test result corresponding to the first test event, so that The interactive test of the first terminal is completed through the second terminal, and the first terminal can independently select a test opportunity, and the second terminal provides a test instance for it, thereby reducing the difficulty of terminal testing and improving the efficiency of terminal testing.

如图8所示,图8是本公开根据一示例性实施例示出的另一种终端测试装置的框图,所述装置应用于第一终端上,并建立在图7所示的基础上,该装置还可以包括:收发单元81。As shown in FIG. 8 , FIG. 8 is a block diagram of another terminal testing device according to an exemplary embodiment of the present disclosure. The device is applied to the first terminal and is based on the basis shown in FIG. 7 . The device may further include: a transceiver unit 81 .

其中,收发单元81被配置为将预设的测试事件和对应的测试命令发送至所述第二终端,以使所述第二终端建立所述测试事件和所述测试命令的对应关系;或者,接收所述第二终端发送的预设的测试事件和对应的测试命令,并建立所述测试事件和所述测试命令的对应关系。Wherein, the transceiver unit 81 is configured to send a preset test event and a corresponding test command to the second terminal, so that the second terminal establishes a correspondence between the test event and the test command; or, receiving a preset test event and a corresponding test command sent by the second terminal, and establishing a correspondence between the test event and the test command.

如图9所示,图9是本公开根据一示例性实施例示出的另一种终端测试装置的框图,所述装置应用于第一终端上,并建立在图7所示的基础上,该装置还可以包括:第二接收单元91、测试实例生成单元92和第二发送单元93。As shown in FIG. 9 , FIG. 9 is a block diagram of another terminal testing device according to an exemplary embodiment of the present disclosure. The device is applied to the first terminal and is based on the basis shown in FIG. 7 . The device may further include: a second receiving unit 91 , a test instance generating unit 92 and a second sending unit 93 .

其中,第二接收单元91被配置为接收第二终端发送的第二测试命令,所述第二测试命令是所述第二终端需要对第二测试事件进行交互测试时所确定的所述第二测试事件对应的测试命令;Wherein, the second receiving unit 91 is configured to receive a second test command sent by the second terminal, and the second test command is the second test command determined when the second terminal needs to perform an interactive test on the second test event. The test command corresponding to the test event;

测试实例生成单元92被配置为根据所述第二测试命令生成所述第二测试事件对应的第二测试实例;The test instance generation unit 92 is configured to generate a second test instance corresponding to the second test event according to the second test command;

第二发送单元93被配置为将所述第二测试实例发送至所述第二终端,以使所述第二终端根据所第二述测试实例进行测试,得到所述第二测试事件对应的测试结果。The second sending unit 93 is configured to send the second test instance to the second terminal, so that the second terminal performs a test according to the second test instance, and obtains a test event corresponding to the second test event. result.

上述第二测试事件为电话测试、短信测试、IM消息测试、蓝牙配对测试和WIFI热点共享测试中的至少一种。The above-mentioned second test event is at least one of a phone call test, a short message test, an IM message test, a Bluetooth pairing test and a WIFI hotspot sharing test.

可选的,测试实例生成单元92被配置为若所述第二测试事件为电话测试,则生成的第二测试实例为一个测试电话;若所述第二测试事件为短信测试,则生成的第二测试实例为一个测试短信;若所述第二测试事件为IM消息测试,则生成的第二测试实例为一个测试IM消息;若所述第二测试事件为蓝牙配对测试,则生成的第二测试实例为一个测试蓝牙配对消息;若所述第二测试事件为WIFI热点共享测试,则生成的第二测试实例为一个测试WIFI热点共享消息。Optionally, the test instance generation unit 92 is configured such that if the second test event is a phone test, the generated second test instance is a test phone; if the second test event is a short message test, the generated second test instance The second test instance is a test message; if the second test event is an IM message test, the generated second test instance is a test IM message; if the second test event is a bluetooth pairing test, the generated second The test instance is a test Bluetooth pairing message; if the second test event is a WIFI hotspot sharing test, the generated second test instance is a test WIFI hotspot sharing message.

由上述实施例可见,第一终端也可以成为第二终端的载体,为其提供测试实例,从而更好地完成了终端之间的交互测试,并降低了终端测试的难度,以及提高了终端测试的效率。It can be seen from the above-mentioned embodiments that the first terminal can also serve as the carrier of the second terminal and provide test examples for it, thereby better completing the interaction test between terminals, reducing the difficulty of terminal testing, and improving the efficiency of terminal testing. s efficiency.

如图10所示,图10是本公开根据一示例性实施例示出的另一种终端测试装置的框图,所述装置应用于第一终端上,并用于执行图3所示的终端测试方法,所述装置包括:测试命令确定单元101、发送单元102、接收单元103和测试单元104。As shown in FIG. 10 , FIG. 10 is a block diagram of another terminal testing device according to an exemplary embodiment of the present disclosure. The device is applied to a first terminal and is used to execute the terminal testing method shown in FIG. 3 , The device includes: a test command determining unit 101 , a sending unit 102 , a receiving unit 103 and a testing unit 104 .

其中,测试命令确定单元101被配置为当需要对第一测试事件进行交互测试时,确定所述第一测试事件对应的第一测试命令;Wherein, the test command determination unit 101 is configured to determine the first test command corresponding to the first test event when the first test event needs to be interactively tested;

发送单元102被配置为将所述第一测试命令发送至服务器,以使所述服务器根据所第一测试命令生成所述第一测试事件对应的第一测试实例;The sending unit 102 is configured to send the first test command to a server, so that the server generates a first test instance corresponding to the first test event according to the first test command;

接收单元103被配置为接收所述服务器返回的所述第一测试事件对应的第一测试实例;The receiving unit 103 is configured to receive the first test instance corresponding to the first test event returned by the server;

测试单元104被配置为根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。The testing unit 104 is configured to perform a test according to the first test instance, and obtain a test result corresponding to the first test event.

上述第一测试事件为电话测试、短信测试、即时通讯IM消息测试、蓝牙配对测试和无线网络WIFI热点共享测试中的至少一种。The above-mentioned first test event is at least one of a phone call test, a short message test, an instant messaging IM message test, a Bluetooth pairing test, and a wireless network WIFI hotspot sharing test.

可选的,发送单元102被配置为将携带有第一测试事件的事件标识和第一终端的设备标识的第一测试命令发送至服务器,以使所述服务器根据所述事件标识生成所述第一测试事件对应的第一测试实例,并根据所述设备标识将所述第一测试实例返回所述第一终端。Optionally, the sending unit 102 is configured to send the first test command carrying the event identifier of the first test event and the device identifier of the first terminal to the server, so that the server generates the first test command according to the event identifier. A first test instance corresponding to a test event, and return the first test instance to the first terminal according to the device identifier.

由上述实施例可见,当需要对第一测试事件进行交互测试时,可以确定第一测试事件对应的第一测试命令,将第一测试命令发送至服务器,以使服务器根据第一测试命令生成第一测试事件对应的第一测试实例,接收服务器返回的第一测试事件对应的第一测试实例,根据第一测试实例进行测试,得到第一测试事件对应的测试结果,使得通过服务器完成了对第一终端的交互测试,并且第一终端可以自主选择测试时机,服务器为其提供测试实例,从而降低了终端测试的难度,并提高了终端测试的效率。It can be seen from the above embodiments that when an interactive test is required for the first test event, the first test command corresponding to the first test event can be determined, and the first test command is sent to the server, so that the server can generate the first test command according to the first test command. A first test instance corresponding to a test event receives the first test instance corresponding to the first test event returned by the server, performs a test according to the first test instance, and obtains a test result corresponding to the first test event, so that the server completes the first test instance corresponding to the first test event. The interactive test of one terminal, and the first terminal can independently choose the test timing, and the server provides it with a test instance, thereby reducing the difficulty of terminal testing and improving the efficiency of terminal testing.

如图11所示,图11是本公开根据一示例性实施例示出的另一种终端测试装置的框图,所述装置应用于服务器上,并用于执行图4所示的终端测试方法,所述装置包括:接收单元111、测试实例生成单元112和发送单元113。As shown in FIG. 11 , FIG. 11 is a block diagram of another terminal testing device according to an exemplary embodiment of the present disclosure. The device is applied to a server and is used to execute the terminal testing method shown in FIG. 4 . The device includes: a receiving unit 111 , a test instance generating unit 112 and a sending unit 113 .

其中,接收单元111被配置为接收第一终端发送的第一测试命令,所述第一测试命令是所述第一终端需要对第一测试事件进行交互测试时所确定的所述第一测试事件对应的测试命令;Wherein, the receiving unit 111 is configured to receive a first test command sent by the first terminal, the first test command is the first test event determined when the first terminal needs to perform an interactive test on the first test event Corresponding test command;

测试实例生成单元112被配置为根据所述第一测试命令生成所述第一测试事件对应的第一测试实例;The test instance generation unit 112 is configured to generate a first test instance corresponding to the first test event according to the first test command;

发送单元113被配置为将所述第一测试实例发送至所述第一终端,以使所述第一终端根据所第一述测试实例进行测试,得到所述第一测试事件对应的测试结果。The sending unit 113 is configured to send the first test instance to the first terminal, so that the first terminal performs a test according to the first test instance, and obtains a test result corresponding to the first test event.

由上述实施例可见,服务器可以成为第一终端的载体,为其提供测试实例,从而更好地完成了终端和服务器之间的交互测试,并降低了终端测试的难度,以及提高了终端测试的效率。It can be seen from the foregoing embodiments that the server can become the carrier of the first terminal and provide test instances for it, thereby better completing the interaction test between the terminal and the server, reducing the difficulty of terminal testing, and improving the efficiency of terminal testing. efficiency.

与图7相应的,本公开还提供另一种终端测试装置,所述装置应用于第一终端上,包括:Corresponding to FIG. 7 , the present disclosure also provides another terminal testing device, which is applied to the first terminal, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

当需要对第一测试事件进行交互测试时,确定所述第一测试事件对应的第一测试命令;When it is necessary to perform an interactive test on the first test event, determine a first test command corresponding to the first test event;

将所述第一测试命令发送至第二终端,以使所述第二终端根据所第一测试命令生成所述第一测试事件对应的第一测试实例;sending the first test command to a second terminal, so that the second terminal generates a first test instance corresponding to the first test event according to the first test command;

接收所述第二终端返回的所述第一测试事件对应的第一测试实例;receiving a first test instance corresponding to the first test event returned by the second terminal;

根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。A test is performed according to the first test instance, and a test result corresponding to the first test event is obtained.

与图10相应的,本公开还提供另一种终端测试装置,所述装置应用于第一终端上,包括:Corresponding to FIG. 10 , the present disclosure also provides another terminal testing device, which is applied to the first terminal, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

当需要对第一测试事件进行交互测试时,确定所述第一测试事件对应的第一测试命令;When it is necessary to perform an interactive test on the first test event, determine a first test command corresponding to the first test event;

将所述第一测试命令发送至服务器,以使所述服务器根据所第一测试命令生成所述第一测试事件对应的第一测试实例;sending the first test command to a server, so that the server generates a first test instance corresponding to the first test event according to the first test command;

接收所述服务器返回的所述第一测试事件对应的第一测试实例;receiving a first test instance corresponding to the first test event returned by the server;

根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。A test is performed according to the first test instance, and a test result corresponding to the first test event is obtained.

与图11相应的,本公开还提供另一种终端测试装置,所述装置应用于服务器上,包括:Corresponding to FIG. 11 , the present disclosure also provides another terminal testing device, which is applied to a server, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

接收第一终端发送的第一测试命令,所述第一测试命令是所述第一终端需要对第一测试事件进行交互测试时所确定的所述第一测试事件对应的测试命令;receiving a first test command sent by the first terminal, where the first test command is a test command corresponding to the first test event determined when the first terminal needs to perform an interactive test on the first test event;

根据所述第一测试命令生成所述第一测试事件对应的第一测试实例;generating a first test instance corresponding to the first test event according to the first test command;

将所述第一测试实例发送至所述第一终端,以使所述第一终端根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。Sending the first test instance to the first terminal, so that the first terminal performs a test according to the first test instance, and obtains a test result corresponding to the first test event.

上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and effects of each unit in the above device, please refer to the implementation process of the corresponding steps in the above method for details, and will not be repeated here.

对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本公开方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment. The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. It can be understood and implemented by those skilled in the art without creative effort.

如图12所示,图12是根据一示例性实施例示出的一种用于终端测试装置1900的一结构示意图(服务器侧),例如,装置1900包括处理组件1922,其进一步包括一个或多个处理器,以及由存储器1932所代表的存储器资源,用于存储可由处理部件1922的执行的指令,例如应用程序。存储器1932中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1922被配置为执行指令。As shown in FIG. 12, FIG. 12 is a schematic structural diagram (server side) of a terminal testing device 1900 according to an exemplary embodiment. For example, the device 1900 includes a processing component 1922, which further includes one or more The processor, as well as memory resources represented by memory 1932 , are used to store instructions executable by processing component 1922 , such as application programs. The application programs stored in memory 1932 may include one or more modules each corresponding to a set of instructions. Additionally, the processing component 1922 is configured to execute the instructions.

装置1900还可以包括一个电源组件1926被配置为执行装置1900的电源管理,一个有线或无线网络接口1950被配置为将装置1900连接到网络,和一个输入输出(I/O)接口1958。装置1900可以操作基于存储在存储器1932的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。Device 1900 may also include a power component 1926 configured to perform power management of device 1900 , a wired or wireless network interface 1950 configured to connect device 1900 to a network, and an input-output (I/O) interface 1958 . The device 1900 can operate based on an operating system stored in the memory 1932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

如图13所示,图13是本公开根据一示例性实施例示出的一种用于终端测试装置1300的另一结构示意图(终端设备侧)。例如,装置1300可以是具有路由功能的移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。As shown in FIG. 13 , FIG. 13 is another schematic structural diagram (terminal device side) of a device for testing a terminal 1300 according to an exemplary embodiment of the present disclosure. For example, the apparatus 1300 may be a mobile phone with a routing function, 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, and the like.

参照图13,装置1300可以包括以下一个或多个组件:处理组件1302,存储器1304,电源组件1306,多媒体组件1308,音频组件1310,输入/输出(I/O)的接口1312,传感器组件1314,以及通信组件1316。13, device 1300 may include one or more of the following components: processing component 1302, memory 1304, power supply component 1306, multimedia component 1308, audio component 1310, input/output (I/O) interface 1312, sensor component 1314, and communication component 1316.

处理组件1302通常控制装置1300的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件1302可以包括一个或多个处理器1320来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1302可以包括一个或多个模块,便于处理组件1302和其他组件之间的交互。例如,处理组件1302可以包括多媒体模块,以方便多媒体组件1308和处理组件1302之间的交互。The processing component 1302 generally controls the overall operations of the device 1300, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1302 may include one or more processors 1320 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 1302 may include one or more modules that facilitate interaction between processing component 1302 and other components. For example, processing component 1302 may include a multimedia module to facilitate interaction between multimedia component 1308 and processing component 1302 .

存储器1304被配置为存储各种类型的数据以支持在装置1300的操作。这些数据的示例包括用于在装置1300上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1304可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 1304 is configured to store various types of data to support operations at the device 1300 . Examples of such data include instructions for any application or method operating on device 1300, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1304 can be implemented by any type of volatile or non-volatile storage device or their combination, 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 or Optical Disk.

电源组件1306为装置1300的各种组件提供电力。电源组件1306可以包括电源管理系统,一个或多个电源,及其他与为装置1300生成、管理和分配电力相关联的组件。The power supply component 1306 provides power to various components of the device 1300 . Power components 1306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 1300 .

多媒体组件1308包括在所述装置1300和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1308包括一个前置摄像头和/或后置摄像头。当装置1300处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 1308 includes a screen that provides an output interface between the device 1300 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 a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 1308 includes a front camera and/or a rear camera. When the device 1300 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件1310被配置为输出和/或输入音频信号。例如,音频组件1310包括一个麦克风(MIC),当装置1300处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1304或经由通信组件1316发送。在一些实施例中,音频组件1310还包括一个扬声器,用于输出音频信号。The audio component 1310 is configured to output and/or input audio signals. For example, the audio component 1310 includes a microphone (MIC), which is configured to receive external audio signals when the device 1300 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 1304 or sent via communication component 1316 . In some embodiments, the audio component 1310 also includes a speaker for outputting audio signals.

I/O接口1312为处理组件1302和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 1312 provides an interface between the processing component 1302 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件1314包括一个或多个传感器,用于为装置1300提供各个方面的状态评估。例如,传感器组件1314可以检测到装置1300的打开/关闭状态,组件的相对定位,例如所述组件为装置1300的显示器和小键盘,传感器组件1314还可以检测装置1300或装置1300一个组件的位置改变,用户与装置1300接触的存在或不存在,装置1300方位或加速/减速和装置1300的温度变化。传感器组件1314可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1314还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1314还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器,微波传感器或温度传感器。Sensor assembly 1314 includes one or more sensors for providing various aspects of status assessment for device 1300 . For example, the sensor component 1314 can detect the open/closed state of the device 1300, the relative positioning of components, such as the display and keypad of the device 1300, and the sensor component 1314 can also detect a change in the position of the device 1300 or a component of the device 1300 , the presence or absence of user contact with the device 1300 , the device 1300 orientation or acceleration/deceleration and the temperature change of the device 1300 . Sensor assembly 1314 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 1314 may also include optical sensors, such as CMOS or CCD image sensors, for use in imaging applications. In some embodiments, the sensor component 1314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, a microwave sensor or a temperature sensor.

通信组件1316被配置为便于装置1300和其他设备之间有线或无线方式的通信。装置1300可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件1316经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件1316还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 1316 is configured to facilitate wired or wireless communication between the apparatus 1300 and other devices. The device 1300 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 1316 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 1316 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置1300可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 1300 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1304,上述指令可由装置1300的处理器1320执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 1304 including instructions, which can be executed by the processor 1320 of the device 1300 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The present disclosure is intended to cover any modification, use or adaptation of the present disclosure. These modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure. . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (21)

1.一种终端测试方法,其特征在于,所述方法应用于第一终端上,包括:1. A terminal testing method, characterized in that said method is applied to a first terminal, comprising: 当需要对第一测试事件进行交互测试时,确定所述第一测试事件对应的第一测试命令;When it is necessary to perform an interactive test on the first test event, determine a first test command corresponding to the first test event; 将所述第一测试命令发送至第二终端,以使所述第二终端根据所第一测试命令生成所述第一测试事件对应的第一测试实例;sending the first test command to a second terminal, so that the second terminal generates a first test instance corresponding to the first test event according to the first test command; 接收所述第二终端返回的所述第一测试事件对应的第一测试实例;receiving a first test instance corresponding to the first test event returned by the second terminal; 根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。A test is performed according to the first test instance, and a test result corresponding to the first test event is obtained. 2.根据权利要求1所述的方法,其特征在于,所述第一测试事件为电话测试、短信测试、即时通讯IM消息测试、蓝牙配对测试和无线网络WIFI热点共享测试中的至少一种。2. The method according to claim 1, wherein the first test event is at least one of a phone test, a short message test, an instant messaging IM message test, a Bluetooth pairing test and a wireless network WIFI hotspot sharing test. 3.根据权利要求1所述的方法,其特征在于,所述将所述第一测试命令发送至第二终端,以使所述第二终端根据所第一测试命令生成所述第一测试事件对应的第一测试实例,包括:3. The method according to claim 1, wherein the first test command is sent to a second terminal, so that the second terminal generates the first test event according to the first test command The corresponding first test instance includes: 将携带有第一测试事件的事件标识和第一终端的设备标识的第一测试命令发送至第二终端,以使所述第二终端根据所述事件标识生成所述第一测试事件对应的第一测试实例,并根据所述设备标识将所述第一测试实例返回所述第一终端。Sending the first test command carrying the event identifier of the first test event and the device identifier of the first terminal to the second terminal, so that the second terminal generates the first test command corresponding to the first test event according to the event identifier. A test instance is generated, and the first test instance is returned to the first terminal according to the device identifier. 4.根据权利要求1所述的方法,其特征在于,所述方法还包括:4. The method according to claim 1, wherein the method further comprises: 将预设的测试事件和对应的测试命令发送至所述第二终端,以使所述第二终端建立所述测试事件和所述测试命令的对应关系;sending a preset test event and a corresponding test command to the second terminal, so that the second terminal establishes a correspondence between the test event and the test command; 或者,接收所述第二终端发送的预设的测试事件和对应的测试命令,并建立所述测试事件和所述测试命令的对应关系。Or, receiving a preset test event and a corresponding test command sent by the second terminal, and establishing a correspondence between the test event and the test command. 5.根据权利要求1所述的方法,其特征在于,所述方法还包括:5. The method according to claim 1, wherein the method further comprises: 接收第二终端发送的第二测试命令,所述第二测试命令是所述第二终端需要对第二测试事件进行交互测试时所确定的所述第二测试事件对应的测试命令;receiving a second test command sent by the second terminal, where the second test command is a test command corresponding to the second test event determined when the second terminal needs to perform an interactive test on the second test event; 根据所述第二测试命令生成所述第二测试事件对应的第二测试实例;generating a second test instance corresponding to the second test event according to the second test command; 将所述第二测试实例发送至所述第二终端,以使所述第二终端根据所第二述测试实例进行测试,得到所述第二测试事件对应的测试结果。Sending the second test instance to the second terminal, so that the second terminal performs a test according to the second test instance, and obtains a test result corresponding to the second test event. 6.根据权利要求5所述的方法,其特征在于,所述第二测试事件为电话测试、短信测试、IM消息测试、蓝牙配对测试和WIFI热点共享测试中的至少一种。6. The method according to claim 5, wherein the second test event is at least one of a phone test, a short message test, an IM message test, a Bluetooth pairing test and a WIFI hotspot sharing test. 7.根据权利要求5所述的方法,其特征在于,所述根据所述第二测试命令生成所述第二测试事件对应的第二测试实例,包括:7. The method according to claim 5, wherein the generating the second test instance corresponding to the second test event according to the second test command comprises: 若所述第二测试事件为电话测试,则生成的第二测试实例为一个测试电话;If the second test event is a phone test, the generated second test instance is a test phone; 若所述第二测试事件为短信测试,则生成的第二测试实例为一个测试短信;If the second test event is a short message test, the generated second test instance is a test short message; 若所述第二测试事件为IM消息测试,则生成的第二测试实例为一个测试IM消息;If the second test event is an IM message test, the generated second test instance is a test IM message; 若所述第二测试事件为蓝牙配对测试,则生成的第二测试实例为一个测试蓝牙配对消息;If the second test event is a Bluetooth pairing test, the generated second test instance is a test Bluetooth pairing message; 若所述第二测试事件为WIFI热点共享测试,则生成的第二测试实例为一个测试WIFI热点共享消息。If the second test event is a WIFI hotspot sharing test, the generated second test instance is a test WIFI hotspot sharing message. 8.一种终端测试方法,其特征在于,所述方法应用于第一终端上,包括:8. A terminal testing method, characterized in that the method is applied to the first terminal, comprising: 当需要对第一测试事件进行交互测试时,确定所述第一测试事件对应的第一测试命令;When it is necessary to perform an interactive test on the first test event, determine a first test command corresponding to the first test event; 将所述第一测试命令发送至服务器,以使所述服务器根据所第一测试命令生成所述第一测试事件对应的第一测试实例;sending the first test command to a server, so that the server generates a first test instance corresponding to the first test event according to the first test command; 接收所述服务器返回的所述第一测试事件对应的第一测试实例;receiving a first test instance corresponding to the first test event returned by the server; 根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。A test is performed according to the first test instance, and a test result corresponding to the first test event is obtained. 9.一种终端测试方法,其特征在于,所述方法应用于服务器上,包括:9. A terminal testing method, characterized in that said method is applied on a server, comprising: 接收第一终端发送的第一测试命令,所述第一测试命令是所述第一终端需要对第一测试事件进行交互测试时所确定的所述第一测试事件对应的测试命令;receiving a first test command sent by the first terminal, where the first test command is a test command corresponding to the first test event determined when the first terminal needs to perform an interactive test on the first test event; 根据所述第一测试命令生成所述第一测试事件对应的第一测试实例;generating a first test instance corresponding to the first test event according to the first test command; 将所述第一测试实例发送至所述第一终端,以使所述第一终端根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。Sending the first test instance to the first terminal, so that the first terminal performs a test according to the first test instance, and obtains a test result corresponding to the first test event. 10.一种终端测试装置,其特征在于,所述装置应用于第一终端上,包括:10. A terminal testing device, characterized in that the device is applied to a first terminal, comprising: 测试命令确定单元,用于当需要对第一测试事件进行交互测试时,确定所述第一测试事件对应的第一测试命令;A test command determination unit, configured to determine a first test command corresponding to the first test event when interactive testing of the first test event is required; 第一发送单元,用于将所述第一测试命令发送至第二终端,以使所述第二终端根据所第一测试命令生成所述第一测试事件对应的第一测试实例;a first sending unit, configured to send the first test command to a second terminal, so that the second terminal generates a first test instance corresponding to the first test event according to the first test command; 第一接收单元,用于接收所述第二终端返回的所述第一测试事件对应的第一测试实例;a first receiving unit, configured to receive a first test instance corresponding to the first test event returned by the second terminal; 测试单元,用于根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。The testing unit is configured to perform a test according to the first test instance, and obtain a test result corresponding to the first test event. 11.根据权利要求10所述的装置,其特征在于,所述第一测试事件为电话测试、短信测试、即时通讯IM消息测试、蓝牙配对测试和无线网络WIFI热点共享测试中的至少一种。11. The device according to claim 10, wherein the first test event is at least one of a phone call test, a short message test, an instant messaging IM message test, a Bluetooth pairing test, and a wireless network WIFI hotspot sharing test. 12.根据权利要求10所述的装置,其特征在于,所述第一发送单元用于将携带有第一测试事件的事件标识和第一终端的设备标识的第一测试命令发送至第二终端,以使所述第二终端根据所述事件标识生成所述第一测试事件对应的第一测试实例,并根据所述设备标识将所述第一测试实例返回所述第一终端。12. The device according to claim 10, wherein the first sending unit is configured to send the first test command carrying the event identifier of the first test event and the device identifier of the first terminal to the second terminal so that the second terminal generates a first test instance corresponding to the first test event according to the event identifier, and returns the first test instance to the first terminal according to the device identifier. 13.根据权利要求10所述的装置,其特征在于,所述装置还包括:13. The device according to claim 10, further comprising: 收发单元,用于将预设的测试事件和对应的测试命令发送至所述第二终端,以使所述第二终端建立所述测试事件和所述测试命令的对应关系;或者,接收所述第二终端发送的预设的测试事件和对应的测试命令,并建立所述测试事件和所述测试命令的对应关系。a transceiver unit, configured to send a preset test event and a corresponding test command to the second terminal, so that the second terminal establishes a correspondence between the test event and the test command; or, receives the The second terminal sends a preset test event and a corresponding test command, and establishes a correspondence between the test event and the test command. 14.根据权利要求10所述的装置,其特征在于,所述装置还包括:14. The device according to claim 10, further comprising: 第二接收单元,用于接收第二终端发送的第二测试命令,所述第二测试命令是所述第二终端需要对第二测试事件进行交互测试时所确定的所述第二测试事件对应的测试命令;The second receiving unit is configured to receive a second test command sent by the second terminal, where the second test command is the second test event corresponding to the second test event determined when the second terminal needs to perform an interactive test on the second test event. the test command; 测试实例生成单元,用于根据所述第二测试命令生成所述第二测试事件对应的第二测试实例;a test instance generating unit, configured to generate a second test instance corresponding to the second test event according to the second test command; 第二发送单元,用于将所述第二测试实例发送至所述第二终端,以使所述第二终端根据所第二述测试实例进行测试,得到所述第二测试事件对应的测试结果。A second sending unit, configured to send the second test instance to the second terminal, so that the second terminal performs a test according to the second test instance, and obtains a test result corresponding to the second test event . 15.根据权利要求14所述的装置,其特征在于,所述第二测试事件为电话测试、短信测试、IM消息测试、蓝牙配对测试和WIFI热点共享测试中的至少一种。15. The device according to claim 14, wherein the second test event is at least one of a phone call test, a short message test, an IM message test, a Bluetooth pairing test and a WIFI hotspot sharing test. 16.根据权利要求14所述的装置,其特征在于,所述测试实例生成单元用于若所述第二测试事件为电话测试,则生成的第二测试实例为一个测试电话;若所述第二测试事件为短信测试,则生成的第二测试实例为一个测试短信;若所述第二测试事件为IM消息测试,则生成的第二测试实例为一个测试IM消息;若所述第二测试事件为蓝牙配对测试,则生成的第二测试实例为一个测试蓝牙配对消息;若所述第二测试事件为WIFI热点共享测试,则生成的第二测试实例为一个测试WIFI热点共享消息。16. The device according to claim 14, wherein the test instance generating unit is configured to if the second test event is a phone test, the generated second test instance is a test phone; if the first The second test event is a short message test, then the second test instance generated is a test message; if the second test event is an IM message test, the second test instance generated is a test IM message; if the second test If the event is a Bluetooth pairing test, the generated second test instance is a test Bluetooth pairing message; if the second test event is a WIFI hotspot sharing test, then the generated second test instance is a test WIFI hotspot sharing message. 17.一种终端测试装置,其特征在于,所述装置应用于第一终端上,包括:17. A terminal testing device, characterized in that the device is applied to a first terminal, comprising: 测试命令确定单元,用于当需要对第一测试事件进行交互测试时,确定所述第一测试事件对应的第一测试命令;A test command determination unit, configured to determine a first test command corresponding to the first test event when interactive testing of the first test event is required; 发送单元,用于将所述第一测试命令发送至服务器,以使所述服务器根据所第一测试命令生成所述第一测试事件对应的第一测试实例;a sending unit, configured to send the first test command to a server, so that the server generates a first test instance corresponding to the first test event according to the first test command; 接收单元,用于接收所述服务器返回的所述第一测试事件对应的第一测试实例;a receiving unit, configured to receive a first test instance corresponding to the first test event returned by the server; 测试单元,用于根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。The testing unit is configured to perform a test according to the first test instance, and obtain a test result corresponding to the first test event. 18.一种终端测试装置,其特征在于,所述装置应用于服务器上,包括:18. A terminal testing device, characterized in that the device is applied to a server, comprising: 接收单元,用于接收第一终端发送的第一测试命令,所述第一测试命令是所述第一终端需要对第一测试事件进行交互测试时所确定的所述第一测试事件对应的测试命令;A receiving unit, configured to receive a first test command sent by the first terminal, where the first test command is a test corresponding to the first test event determined when the first terminal needs to perform an interactive test on the first test event Order; 测试实例生成单元,用于根据所述第一测试命令生成所述第一测试事件对应的第一测试实例;a test instance generating unit, configured to generate a first test instance corresponding to the first test event according to the first test command; 发送单元,用于将所述第一测试实例发送至所述第一终端,以使所述第一终端根据所第一述测试实例进行测试,得到所述第一测试事件对应的测试结果。A sending unit, configured to send the first test instance to the first terminal, so that the first terminal performs a test according to the first test instance, and obtains a test result corresponding to the first test event. 19.一种终端测试装置,其特征在于,所述装置应用于第一终端上,包括:19. A terminal testing device, characterized in that the device is applied to a first terminal, comprising: 处理器;processor; 用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions; 其中,所述处理器被配置为:Wherein, the processor is configured as: 当需要对第一测试事件进行交互测试时,确定所述第一测试事件对应的第一测试命令;When it is necessary to perform an interactive test on the first test event, determine a first test command corresponding to the first test event; 将所述第一测试命令发送至第二终端,以使所述第二终端根据所第一测试命令生成所述第一测试事件对应的第一测试实例;sending the first test command to a second terminal, so that the second terminal generates a first test instance corresponding to the first test event according to the first test command; 接收所述第二终端返回的所述第一测试事件对应的第一测试实例;receiving a first test instance corresponding to the first test event returned by the second terminal; 根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。A test is performed according to the first test instance, and a test result corresponding to the first test event is obtained. 20.一种终端测试装置,其特征在于,所述装置应用于第一终端上,包括:20. A terminal testing device, characterized in that the device is applied to a first terminal, comprising: 处理器;processor; 用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions; 其中,所述处理器被配置为:Wherein, the processor is configured as: 当需要对第一测试事件进行交互测试时,确定所述第一测试事件对应的第一测试命令;When it is necessary to perform an interactive test on the first test event, determine a first test command corresponding to the first test event; 将所述第一测试命令发送至服务器,以使所述服务器根据所第一测试命令生成所述第一测试事件对应的第一测试实例;sending the first test command to a server, so that the server generates a first test instance corresponding to the first test event according to the first test command; 接收所述服务器返回的所述第一测试事件对应的第一测试实例;receiving a first test instance corresponding to the first test event returned by the server; 根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。A test is performed according to the first test instance, and a test result corresponding to the first test event is obtained. 21.一种终端测试装置,其特征在于,所述装置应用于服务器上,包括:21. A terminal testing device, characterized in that said device is applied to a server, comprising: 处理器;processor; 用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions; 其中,所述处理器被配置为:Wherein, the processor is configured as: 接收第一终端发送的第一测试命令,所述第一测试命令是所述第一终端需要对第一测试事件进行交互测试时所确定的所述第一测试事件对应的测试命令;receiving a first test command sent by the first terminal, where the first test command is a test command corresponding to the first test event determined when the first terminal needs to perform an interactive test on the first test event; 根据所述第一测试命令生成所述第一测试事件对应的第一测试实例;generating a first test instance corresponding to the first test event according to the first test command; 将所述第一测试实例发送至所述第一终端,以使所述第一终端根据所述第一测试实例进行测试,得到所述第一测试事件对应的测试结果。Sending the first test instance to the first terminal, so that the first terminal performs a test according to the first test instance, and obtains a test result corresponding to the first test event.
CN201510354712.8A 2015-06-24 2015-06-24 terminal test method and device Expired - Fee Related CN104881342B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510354712.8A CN104881342B (en) 2015-06-24 2015-06-24 terminal test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510354712.8A CN104881342B (en) 2015-06-24 2015-06-24 terminal test method and device

Publications (2)

Publication Number Publication Date
CN104881342A true CN104881342A (en) 2015-09-02
CN104881342B CN104881342B (en) 2018-10-12

Family

ID=53948846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510354712.8A Expired - Fee Related CN104881342B (en) 2015-06-24 2015-06-24 terminal test method and device

Country Status (1)

Country Link
CN (1) CN104881342B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105790801A (en) * 2016-03-11 2016-07-20 青岛海信电器股份有限公司 Pairing testing method and testing apparatus for electronic equipment and bluetooth equipment
CN106131869A (en) * 2016-06-12 2016-11-16 百度在线网络技术(北京)有限公司 Method of testing and device, test system for mobile terminal
CN108156597A (en) * 2017-12-15 2018-06-12 北京海泰方圆科技股份有限公司 A kind of bluetooth equipment and its test method
CN109921866A (en) * 2019-03-22 2019-06-21 广东顺德智勤科技有限公司 Exempt to match test macro, method, test equipment and wireless receiver
CN110401576A (en) * 2018-04-24 2019-11-01 北京嘀嘀无限科技发展有限公司 Network interaction test method and device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020048856A1 (en) * 2000-09-18 2002-04-25 Atsuo Mangyo Method of testing a semiconductor memory device
JP2002163126A (en) * 2000-11-28 2002-06-07 Nec Microsystems Ltd Event detecting circuit embedded in debugging cpu, event detecting method, and external peripheral circuit
CN101453711A (en) * 2007-12-06 2009-06-10 中兴通讯股份有限公司 Automatic test system and test method for mobile phone short message
CN102420714A (en) * 2011-08-29 2012-04-18 展讯通信(上海)有限公司 Test management method, test management system master control center and test management system
CN103037329A (en) * 2011-09-29 2013-04-10 北京神州泰岳软件股份有限公司 Short message function testing platform and short message function testing method
CN103344863A (en) * 2013-07-15 2013-10-09 惠州Tcl移动通信有限公司 Mobile terminal testing method and mobile terminal testing system
CN103455413A (en) * 2012-05-31 2013-12-18 联想(北京)有限公司 Method, device and system for interaction scenario test data processing of communication terminals
CN103716465A (en) * 2013-12-27 2014-04-09 上海斐讯数据通信技术有限公司 Two-mobile-terminal mutual testing method and system
CN104519502A (en) * 2014-12-08 2015-04-15 广东欧珀移动通信有限公司 Method for terminal call performance test and terminal
CN104702756A (en) * 2015-02-10 2015-06-10 小米科技有限责任公司 Detecting method and detecting device for soundless call

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020048856A1 (en) * 2000-09-18 2002-04-25 Atsuo Mangyo Method of testing a semiconductor memory device
JP2002163126A (en) * 2000-11-28 2002-06-07 Nec Microsystems Ltd Event detecting circuit embedded in debugging cpu, event detecting method, and external peripheral circuit
CN101453711A (en) * 2007-12-06 2009-06-10 中兴通讯股份有限公司 Automatic test system and test method for mobile phone short message
CN102420714A (en) * 2011-08-29 2012-04-18 展讯通信(上海)有限公司 Test management method, test management system master control center and test management system
CN103037329A (en) * 2011-09-29 2013-04-10 北京神州泰岳软件股份有限公司 Short message function testing platform and short message function testing method
CN103455413A (en) * 2012-05-31 2013-12-18 联想(北京)有限公司 Method, device and system for interaction scenario test data processing of communication terminals
CN103344863A (en) * 2013-07-15 2013-10-09 惠州Tcl移动通信有限公司 Mobile terminal testing method and mobile terminal testing system
CN103716465A (en) * 2013-12-27 2014-04-09 上海斐讯数据通信技术有限公司 Two-mobile-terminal mutual testing method and system
CN104519502A (en) * 2014-12-08 2015-04-15 广东欧珀移动通信有限公司 Method for terminal call performance test and terminal
CN104702756A (en) * 2015-02-10 2015-06-10 小米科技有限责任公司 Detecting method and detecting device for soundless call

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105790801A (en) * 2016-03-11 2016-07-20 青岛海信电器股份有限公司 Pairing testing method and testing apparatus for electronic equipment and bluetooth equipment
CN106131869A (en) * 2016-06-12 2016-11-16 百度在线网络技术(北京)有限公司 Method of testing and device, test system for mobile terminal
CN108156597A (en) * 2017-12-15 2018-06-12 北京海泰方圆科技股份有限公司 A kind of bluetooth equipment and its test method
CN110401576A (en) * 2018-04-24 2019-11-01 北京嘀嘀无限科技发展有限公司 Network interaction test method and device
CN110401576B (en) * 2018-04-24 2021-03-09 北京嘀嘀无限科技发展有限公司 Network interaction testing method and device
CN109921866A (en) * 2019-03-22 2019-06-21 广东顺德智勤科技有限公司 Exempt to match test macro, method, test equipment and wireless receiver
CN109921866B (en) * 2019-03-22 2021-11-09 广东顺德智勤科技有限公司 Pairing-free test system, method, test equipment and wireless receiver

Also Published As

Publication number Publication date
CN104881342B (en) 2018-10-12

Similar Documents

Publication Publication Date Title
CN106487622B (en) Device control right sharing method and device
CN106488251B (en) Method and device for connecting microphones in live broadcast, anchor client and user client
CN109451866B (en) Information configuration method and device, base station and user equipment
CN107204883B (en) Network fault processing method and device
CN114554571A (en) Method and device for using network slice
EP3713325A1 (en) Communication link configuration method and device
CN104881342B (en) terminal test method and device
CN106507282A (en) Wireless connection control method and device
CN107562500A (en) Debugging apparatus, method and apparatus
CN107135147A (en) Method, device and the computer-readable recording medium of sharing position information
CN106453032B (en) Information-pushing method and device, system
US12356312B2 (en) Communication control method and communication control apparatus
CN104298576B (en) terminal test method and device
CN106598540A (en) Audio playing method and device
CN105843894A (en) Information recommending method and device
CN105912202A (en) Application sharing method and device
US20170201479A1 (en) Group message display method, device and medium
CN107885464A (en) Date storage method, device and computer-readable recording medium
CN107241432A (en) Message receival method and device, information push method and device
CN109451863B (en) Method and device for expanding PBCH
CN106658668A (en) Information processing method and device
CN105634928A (en) Social reminding method and device based on wearable device
CN108702702B (en) Method and device for accessing a base station
WO2019153236A1 (en) Method, apparatus and system for establishing connection between terminal and core network to be accessed
CN108234764A (en) Display methods, device and the terminal of terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181012

CF01 Termination of patent right due to non-payment of annual fee