WO2018040604A1 - Mobile terminal testing method, apparatus, system, device, and storage medium - Google Patents

Mobile terminal testing method, apparatus, system, device, and storage medium Download PDF

Info

Publication number
WO2018040604A1
WO2018040604A1 PCT/CN2017/082600 CN2017082600W WO2018040604A1 WO 2018040604 A1 WO2018040604 A1 WO 2018040604A1 CN 2017082600 W CN2017082600 W CN 2017082600W WO 2018040604 A1 WO2018040604 A1 WO 2018040604A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
mobile terminal
tested
wireless connection
test device
Prior art date
Application number
PCT/CN2017/082600
Other languages
French (fr)
Chinese (zh)
Inventor
卢谢吉
Original Assignee
深圳市中兴微电子技术有限公司
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 深圳市中兴微电子技术有限公司 filed Critical 深圳市中兴微电子技术有限公司
Publication of WO2018040604A1 publication Critical patent/WO2018040604A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • H04L43/065Generation of reports related to network devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing

Abstract

Disclosed is a mobile terminal testing method, comprising: establishing a wireless connection between a mobile terminal to be tested and a testing device; sending a test start command to the testing device by means of the established wireless connection, and detecting whether the testing device has loaded and parsed a testing script corresponding to the mobile terminal to be tested; after it is detected that the testing device has loaded and parsed the testing script corresponding to the mobile terminal to be tested, receiving and executing a testing command sent by the testing device according to the testing script, and returning a testing result. Also disclosed are a mobile terminal testing apparatus, another mobile terminal testing method and apparatus, and a mobile terminal testing system, device, and storage medium.

Description

一种移动终端测试方法、装置和系统、设备、存储介质Mobile terminal testing method, device and system, device and storage medium
相关申请的交叉引用Cross-reference to related applications
本申请基于申请号为201610801077.8、申请日为2016年09月01日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。The present application is filed on the basis of the Chinese Patent Application No. PCT Application Serial No.
技术领域Technical field
本发明涉及移动终端测试技术,尤其涉及一种移动终端测试方法、装置和系统、设备、存储介质。The present invention relates to mobile terminal testing technologies, and in particular, to a mobile terminal testing method, apparatus and system, device, and storage medium.
背景技术Background technique
随着移动通信技术的快速发展,移动终端产品越来越丰富,移动终端的功能也变得越来越强大,为满足用户的大量使用需求,则需大规模地生产移动终端,并将生产的大规模移动终端投入市场,这就促使了移动终端的研发周期缩短。因此,在移动终端的研发过程中,需要对移动终端的业务性能进行检测,以确保投入市场前的移动终端的业务性能能够满足预先设定的需求,从而保障移动终端产品的质量和性能。这时,往往需要一些移动终端厂商或者运营商对移动终端进行测试。With the rapid development of mobile communication technologies, mobile terminal products are becoming more and more abundant, and the functions of mobile terminals are becoming more and more powerful. In order to meet the large-scale use requirements of users, it is necessary to mass-produce mobile terminals and produce them. Large-scale mobile terminals are put on the market, which has led to a shortened development cycle for mobile terminals. Therefore, in the development process of the mobile terminal, the service performance of the mobile terminal needs to be detected to ensure that the service performance of the mobile terminal before entering the market can meet the preset requirements, thereby ensuring the quality and performance of the mobile terminal product. At this time, it is often necessary for some mobile terminal manufacturers or operators to test the mobile terminal.
在目前的生产测试领域中,对移动终端进行测试的典型方法是在移动终端和测试设备之间采用有线连接,通过第三方设备如计算机与测试设备相连,进而控制测试设备对移动终端进行自动测试。由上述传统的测试方法可见,该方法是由计算机来控制整个测试流程的,且由于计算机是通过通用串行总线(USB,Universal Serial Bus)与移动终端相连,而一台计算机的USB接口数量是有限的,那么一台计算机只能同时对几个有限的移动 终端进行测试。In the current production test field, a typical method for testing a mobile terminal is to use a wired connection between the mobile terminal and the test device, and connect to the test device through a third-party device such as a computer, thereby controlling the test device to automatically test the mobile terminal. . It can be seen from the above-mentioned conventional testing method that the method is controlled by a computer to control the entire testing process, and since the computer is connected to the mobile terminal through a Universal Serial Bus (USB), the number of USB interfaces of one computer is Limited, then a computer can only have several limited moves at the same time The terminal is tested.
由于现有移动终端的测试方法采用有线连接方式,因此,对测试环境有一定的限制,即不能实现同时测试多个不同地域的移动终端,且测试结果容易出错;尤其是当并发测试多个移动终端时,对测试效率和质量的提升有较大制约;另外,这种采用测试设备进行主控的方式,在测试过程中,将会在测试设备和移动终端之间来回切换操作,从而影响测试效率。Since the test method of the existing mobile terminal adopts the wired connection mode, there is a certain limitation on the test environment, that is, the mobile terminal of multiple different regions cannot be tested at the same time, and the test result is easy to be wrong; especially when multiple mobile phones are tested concurrently. When the terminal is used, there is a big constraint on the improvement of test efficiency and quality. In addition, the method of using the test device for master control will switch back and forth between the test device and the mobile terminal during the test, thereby affecting the test. effectiveness.
发明内容Summary of the invention
有鉴于此,本发明实施例期望提供一种移动终端测试方法、装置和系统、设备、存储介质,以解决现有测试环境对空间的过度依赖、测试过程中容易出现的误操作、以及测试环境切换不灵活、操作繁琐的问题。In view of this, embodiments of the present invention are directed to providing a mobile terminal testing method, apparatus, and system, device, and storage medium, which are to solve the excessive dependence of the existing testing environment on space, the misoperation that is easy to occur in the testing process, and the testing environment. Switching is inflexible and cumbersome.
为达到上述目的,本发明实施例的技术方案是这样实现的:To achieve the above objective, the technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供一种移动终端测试方法,所述方法包括:An embodiment of the present invention provides a mobile terminal testing method, where the method includes:
建立待测移动终端与测试设备之间的无线连接;Establishing a wireless connection between the mobile terminal to be tested and the test device;
将开始测试的命令通过所建立的无线连接发送给所述测试设备,并检测所述测试设备是否已加载、解析与所述待测移动终端对应的测试脚本;Sending a command to start testing to the test device through the established wireless connection, and detecting whether the test device has loaded and parsed a test script corresponding to the mobile terminal to be tested;
在检测到所述测试设备已加载、解析与所述待测移动终端对应的测试脚本后,接收并执行所述测试设备根据所述测试脚本发送的测试命令,并返回测试结果。After detecting that the test device has loaded and parsed the test script corresponding to the mobile terminal to be tested, the test command sent by the test device according to the test script is received and executed, and the test result is returned.
本发明实施例还提供一种移动终端测试方法,所述方法包括:An embodiment of the present invention further provides a mobile terminal testing method, where the method includes:
建立测试设备与待测移动终端之间的无线连接;Establishing a wireless connection between the test device and the mobile terminal to be tested;
接收所述待测移动终端通过所建立的无线连接发送的开始测试的命令,并加载、解析与所述待测移动终端对应的测试脚本;Receiving a command to start testing sent by the mobile terminal to be tested through the established wireless connection, and loading and parsing a test script corresponding to the mobile terminal to be tested;
在加载、解析与所述待测移动终端对应的测试脚本后,根据所述测试脚本将测试命令发送给所述待测移动终端;After the test script corresponding to the mobile terminal to be tested is loaded and parsed, the test command is sent to the mobile terminal to be tested according to the test script;
接收所述待测移动终端返回的测试结果。 Receiving the test result returned by the mobile terminal to be tested.
本发明实施例还提供一种移动终端测试装置,所述装置包括:第一连接建立模块、检测模块、执行模块;其中,The embodiment of the present invention further provides a mobile terminal testing device, where the device includes: a first connection establishing module, a detecting module, and an executing module;
所述第一连接建立模块,配置为建立待测移动终端与测试设备之间的无线连接;The first connection establishing module is configured to establish a wireless connection between the mobile terminal to be tested and the test device;
所述检测模块,配置为将开始测试的命令通过所建立的无线连接发送给所述测试设备,并检测所述测试设备是否已加载、解析与所述待测移动终端对应的测试脚本;The detecting module is configured to send a command to start testing to the testing device through the established wireless connection, and detect whether the testing device has loaded and parsed a test script corresponding to the mobile terminal to be tested;
所述执行模块,配置为在所述检测模块检测到所述测试设备已加载、解析与所述待测移动终端对应的测试脚本后,接收并执行所述测试设备根据所述测试脚本发送的测试命令,并返回测试结果。The execution module is configured to receive and execute a test sent by the test device according to the test script after the detection module detects that the test device has loaded and parsed a test script corresponding to the mobile terminal to be tested. Command and return the test results.
本发明实施例还提供一种移动终端测试装置,所述装置包括:第二连接建立模块、处理模块;其中,The embodiment of the present invention further provides a mobile terminal testing device, where the device includes: a second connection establishing module and a processing module;
所述第二连接建立模块,配置为建立测试设备与待测移动终端之间的无线连接;The second connection establishing module is configured to establish a wireless connection between the test device and the mobile terminal to be tested;
所述处理模块,配置为接收所述待测移动终端通过所建立的无线连接发送的开始测试的命令,并加载、解析与所述待测移动终端对应的测试脚本;还配置为在加载、解析与所述待测移动终端对应的测试脚本后,根据所述测试脚本将测试命令发送给所述待测移动终端,并接收所述待测移动终端返回的测试结果。The processing module is configured to receive a command to start testing sent by the mobile terminal to be tested through the established wireless connection, and load and parse a test script corresponding to the mobile terminal to be tested; and further configured to load and parse After the test script corresponding to the mobile terminal to be tested, the test command is sent to the mobile terminal to be tested according to the test script, and the test result returned by the mobile terminal to be tested is received.
本发明实施例还提供一种移动终端测试系统,所述系统包括:待测移动终端、测试设备;其中,The embodiment of the present invention further provides a mobile terminal testing system, where the system includes: a mobile terminal to be tested, and a testing device;
所述待测移动终端,配置为与所述测试设备建立无线连接后,将开始测试的命令通过所建立的无线连接发送给所述测试设备,并检测所述测试设备是否已加载、解析与所述待测移动终端对应的测试脚本;还配置为在检测到所述测试设备已加载、解析与所述待测移动终端对应的测试脚本后, 接收并执行所述测试设备根据所述测试脚本发送的测试命令,并返回测试结果;The mobile terminal to be tested is configured to establish a wireless connection with the test device, send a command to start testing to the test device through the established wireless connection, and detect whether the test device is loaded, parsed, and Determining a test script corresponding to the mobile terminal to be tested; and further configured to: after detecting that the test device has loaded and parsed the test script corresponding to the mobile terminal to be tested, Receiving and executing a test command sent by the test device according to the test script, and returning a test result;
所述测试设备,配置为与所述待测移动终端建立无线连接后,接收所述待测移动终端通过所建立的无线连接发送的开始测试的命令,并加载、解析与所述待测移动终端对应的测试脚本;还配置为在加载、解析与所述待测移动终端对应的测试脚本后,根据所述测试脚本将测试命令发送给所述待测移动终端,并接收所述待测移动终端返回的测试结果。The test device is configured to: after establishing a wireless connection with the mobile terminal to be tested, receive a command to start testing sent by the mobile terminal to be tested through the established wireless connection, and load and parse the mobile terminal to be tested. Corresponding test script; configured to: after loading and parsing the test script corresponding to the mobile terminal to be tested, send a test command to the mobile terminal to be tested according to the test script, and receive the mobile terminal to be tested The returned test results.
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行上述的移动终端测试方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions for executing the mobile terminal testing method described above.
本发明实施例还提供一种移动终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述移动终端侧的移动终端测试方法。An embodiment of the present invention further provides a mobile terminal, including a memory, a processor, and a computer program stored on the memory and operable on the processor, where the processor executes the mobile terminal-side mobile terminal test when the program is executed by the processor method.
本发明实施例还提供一种测试设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述的测试设备侧的移动终端测试方法。An embodiment of the present invention further provides a test device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, where the processor implements the mobile terminal on the test device side when the program is executed testing method.
本发明实施例所提供的移动终端测试方法、装置和系统、设备、存储介质,建立待测移动终端与测试设备之间的无线连接;待测移动终端将开始测试的命令通过所建立的无线连接发送给所述测试设备,并检测所述测试设备是否已加载、解析与所述待测移动终端对应的测试脚本;在检测到所述测试设备已加载、解析与所述待测移动终端对应的测试脚本后,接收并执行所述测试设备根据所述测试脚本发送的测试命令,并返回测试结果。如此,将待测移动终端与测试设备之间通过无线网络自动连接,与现有的有线连接技术相比,不会受空间和资源的限制,且切换测试环境更加灵活,操作更加方便;另外,本发明实施例由待测移动终端发起测试,采用完全 由待测移动终端来实现测试流程控制的方式,不需要在测试设备和待测移动终端间来回切换操作,极大提升测试效率,降低测试成本。The mobile terminal testing method, device, system, device, and storage medium provided by the embodiments of the present invention establish a wireless connection between the mobile terminal to be tested and the testing device; the mobile terminal to be tested starts the test command through the established wireless connection. Sending to the test device, and detecting whether the test device has loaded and parsed a test script corresponding to the mobile terminal to be tested; detecting that the test device has been loaded and parsed corresponding to the mobile terminal to be tested After testing the script, the test device sent by the test device according to the test script is received and executed, and the test result is returned. In this way, the mobile terminal to be tested and the test device are automatically connected through the wireless network, which is not limited by space and resources compared with the existing wired connection technology, and the switching test environment is more flexible and more convenient to operate; The embodiment of the present invention initiates a test by the mobile terminal to be tested, and adopts complete The test flow control mode is implemented by the mobile terminal to be tested, and there is no need to switch back and forth between the test device and the mobile terminal to be tested, thereby greatly improving test efficiency and reducing test cost.
附图说明DRAWINGS
图1为本发明实施例一的移动终端测试方法的流程示意图;1 is a schematic flowchart of a method for testing a mobile terminal according to Embodiment 1 of the present invention;
图2为本发明实施例一的测试设备和待测移动终端连接示意图;2 is a schematic diagram of connection between a test device and a mobile terminal to be tested according to Embodiment 1 of the present invention;
图3为本发明实施例一的测试脚本的处理交互示意图;3 is a schematic diagram of processing interaction of a test script according to Embodiment 1 of the present invention;
图4为本发明实施例二的移动终端测试方法的流程示意图;4 is a schematic flowchart of a method for testing a mobile terminal according to Embodiment 2 of the present invention;
图5为本发明实施例待测移动终端为一个时测试过程交互示意图;FIG. 5 is a schematic diagram of interaction of a test process when a mobile terminal to be tested is a test according to an embodiment of the present invention; FIG.
图6为本发明实施例待测移动终端为两个时测试过程交互示意图;FIG. 6 is a schematic diagram of interaction between test terminals when the mobile terminal to be tested is two according to an embodiment of the present invention; FIG.
图7为本发明实施例三的移动终端测试装置的组成结构示意图;7 is a schematic structural diagram of a mobile terminal testing apparatus according to Embodiment 3 of the present invention;
图8为本发明实施例四的移动终端测试装置的组成结构示意图;8 is a schematic structural diagram of a mobile terminal testing apparatus according to Embodiment 4 of the present invention;
图9为本发明实施例五的移动终端测试系统的组成结构示意图。FIG. 9 is a schematic structural diagram of a mobile terminal testing system according to Embodiment 5 of the present invention.
具体实施方式detailed description
为了能够更加详尽地了解本发明实施例的特点与技术内容,下面结合附图对本发明实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本发明。The embodiments of the present invention are described in detail with reference to the accompanying drawings.
在本发明的所有实施例中,所述待测移动终端可以包括但不限于手机、平板、掌上电脑等移动设备。In all embodiments of the present invention, the mobile terminal to be tested may include, but is not limited to, a mobile device such as a mobile phone, a tablet, a palmtop computer, or the like.
实施例一:Embodiment 1:
本实施例是以待测移动终端侧为例来详细说明移动终端测试方法的实现过程。In this embodiment, the implementation process of the mobile terminal testing method is described in detail by taking the mobile terminal side to be tested as an example.
如图1所示,本发明实施例中移动终端测试方法的实现流程,包括以下步骤:As shown in FIG. 1, the implementation process of the mobile terminal testing method in the embodiment of the present invention includes the following steps:
步骤101:建立待测移动终端与测试设备之间的无线连接; Step 101: Establish a wireless connection between the mobile terminal to be tested and the test device.
这里,在执行本步骤之前,所述方法还包括:构建无线局域网络的测试环境,提供测试平台,所述测试平台包括测试设备和至少一个待测移动终端。Here, before performing the step, the method further includes: constructing a test environment of the wireless local area network, and providing a test platform, where the test platform comprises a test device and at least one mobile terminal to be tested.
图2给出了测试设备和待测移动终端连接的示意图,如图2所示,一台测试设备可以与多个待测移动终端同时建立连接,其实现过程大致如下:将待测移动终端接入无线局域网络后,待测移动终端向测试设备发起无线连接建立请求,在测试设备收到无线连接建立请求后,将与至少一个待测移动终端通过无线局域网络建立无线连接。Figure 2 shows the connection between the test equipment and the mobile terminal to be tested. As shown in Figure 2, one test equipment can establish a connection with multiple mobile terminals to be tested at the same time. The implementation process is as follows: connect the mobile terminal to be tested. After entering the wireless local area network, the mobile terminal to be tested initiates a wireless connection establishment request to the test device, and after the test device receives the wireless connection establishment request, establishes a wireless connection with the at least one mobile terminal to be tested through the wireless local area network.
这里,所述无线连接可以是远距离的无线连接,也可以是近距离的无线连接;其中,所述远距离的无线连接包括无线保真(WiFi,Wireless Fidelity)连接等;所述近距离的无线连接可以为蓝牙连接、近场通信(NFC,Near Field Communication)连接、射频识别(RFID)连接、红外数据标准协议(IrDA)连接、超宽带(UWB)连接、紫蜂连接等任意一种。Here, the wireless connection may be a long-distance wireless connection, or may be a short-range wireless connection; wherein the long-distance wireless connection includes a wireless fidelity (WiFi) connection, etc.; The wireless connection may be any of a Bluetooth connection, a Near Field Communication (NFC) connection, a Radio Frequency Identification (RFID) connection, an Infrared Data Standard Protocol (IrDA) connection, an Ultra Wide Band (UWB) connection, and a ZigBee connection.
在测试设备与待测移动终端之间建立无线连接后,还可以在待测移动终端上对测试脚本进行查看和编辑,图3给出了测试脚本的处理交互示意图,如图3所示,待测移动终端接收到测试设备发送的本地原始测试脚本后,在待测移动终端上对本地原始测试脚本进行查看编辑;在对本地原始测试脚本进行查看编辑后,将编辑好的测试脚本发送给测试设备,测试设备将此时编辑好的测试脚本设置为当前待测移动终端的测试脚本。After the wireless connection is established between the test device and the mobile terminal to be tested, the test script can be viewed and edited on the mobile terminal to be tested. Figure 3 shows the processing interaction diagram of the test script, as shown in Figure 3. After the mobile terminal receives the local original test script sent by the test device, the local original test script is viewed and edited on the mobile terminal to be tested; after the local original test script is viewed and edited, the edited test script is sent to the test. The device and the test device set the test script edited at this time as the test script of the current mobile terminal to be tested.
其中,可通过待测移动终端的显示屏幕对测试脚本进行查看和编辑。The test script can be viewed and edited through the display screen of the mobile terminal to be tested.
步骤102:将开始测试的命令通过所建立的无线连接发送给所述测试设备,并检测所述测试设备是否已加载、解析与所述待测移动终端对应的测试脚本;Step 102: Send a command to start testing to the test device by using the established wireless connection, and detect whether the test device has loaded and parsed a test script corresponding to the mobile terminal to be tested.
这里,当所述待测移动终端为至少两个时,每个待测移动终端分别向所述测试设备发起开始测试的命令;其中,所述开始测试的命令中含有区 分不同待测移动终端的唯一标识。Here, when the mobile terminals to be tested are at least two, each of the mobile terminals to be tested respectively initiates a command to start testing to the test device; wherein the command for starting the test includes a region Different identifiers of different mobile terminals to be tested.
需要说明的是,先发起开始测试的命令的待测移动终端,先检测测试设备是否已加载、解析与待测移动终端对应的测试脚本。It should be noted that the mobile terminal to be tested that initiates the test to start the test first detects whether the test device has been loaded and parses the test script corresponding to the mobile terminal to be tested.
这里,与所述待测移动终端对应的测试脚本可以是本地原始测试脚本,也可以是对本地原始测试脚本进行编辑修改后的测试脚本。Here, the test script corresponding to the mobile terminal to be tested may be a local original test script, or may be a test script after editing and modifying the local original test script.
步骤103:在检测到所述测试设备已加载、解析与所述待测移动终端对应的测试脚本后,接收并执行所述测试设备根据所述测试脚本发送的测试命令,并返回测试结果。Step 103: After detecting that the test device has loaded and parsed the test script corresponding to the mobile terminal to be tested, the test command sent by the test device according to the test script is received and executed, and the test result is returned.
这里,测试设备下达的测试命令可以为多个不同的命令,配置为检测待测移动终端不同的业务性能,以确保投入市场前的移动终端的业务性能能够满足预先设定的需求。Here, the test command issued by the test device may be a plurality of different commands configured to detect different service performances of the mobile terminal to be tested, so as to ensure that the service performance of the mobile terminal before entering the market can meet the preset requirements.
其中,测试过程中的Log和最终的测试结果会在相应的待测移动终端的显示屏幕上显示,这样就避免了测试结果和待测移动终端设备不对应而导致做出的错误判断。The Log and the final test result in the test process are displayed on the display screen of the corresponding mobile terminal to be tested, thereby avoiding the wrong judgment caused by the test result not corresponding to the mobile terminal device to be tested.
这里,当待测移动终端执行完测试脚本命令或测试设备收到待测移动终端发来的停止命令时,测试流程结束。其中,在测试过程中,若想退出当前的测试环境,则可以通过断开所述待测移动终端与测试设备之间的无线连接,或直接退出无线局域网络来实现;若想进入下一项的测试,则可接入另一个无线局域网络,参照上述过程,即可快速的进入测试过程。Here, when the mobile terminal to be tested executes the test script command or the test device receives the stop command sent by the mobile terminal to be tested, the test flow ends. In the test process, if you want to exit the current test environment, you can disconnect the wireless connection between the mobile terminal to be tested and the test device, or directly exit the wireless local area network; if you want to enter the next item Test, you can access another wireless local area network, refer to the above process, you can quickly enter the test process.
实施例二:Embodiment 2:
本实施例是以测试设备侧为例来详细说明移动终端测试方法的实现过程。In this embodiment, the implementation process of the mobile terminal testing method is described in detail by taking the test device side as an example.
如图4所示,本发明实施例中移动终端测试方法的实现流程,包括以下步骤:As shown in FIG. 4, the implementation process of the mobile terminal testing method in the embodiment of the present invention includes the following steps:
步骤401:建立测试设备与待测移动终端之间的无线连接; Step 401: Establish a wireless connection between the test device and the mobile terminal to be tested.
这里,在执行本步骤之前,所述方法还包括:构建无线局域网络的测试环境,提供测试平台,所述测试平台包括测试设备和至少一个待测移动终端。Here, before performing the step, the method further includes: constructing a test environment of the wireless local area network, and providing a test platform, where the test platform comprises a test device and at least one mobile terminal to be tested.
图2给出了测试设备和待测移动终端连接的示意图,如图2所示,一台测试设备可以与多个待测移动终端同时建立连接,其实现过程大致如下:将待测移动终端接入无线局域网络后,待测移动终端向测试设备发起无线连接建立请求,在测试设备收到无线连接建立请求后,将与至少一个待测移动终端通过无线局域网络建立无线连接。Figure 2 shows the connection between the test equipment and the mobile terminal to be tested. As shown in Figure 2, one test equipment can establish a connection with multiple mobile terminals to be tested at the same time. The implementation process is as follows: connect the mobile terminal to be tested. After entering the wireless local area network, the mobile terminal to be tested initiates a wireless connection establishment request to the test device, and after the test device receives the wireless connection establishment request, establishes a wireless connection with the at least one mobile terminal to be tested through the wireless local area network.
这里,所述无线连接可以是远距离的无线连接,也可以是近距离的无线连接;其中,所述远距离的无线连接包括WiFi连接等;所述近距离的无线连接可以为蓝牙连接、NFC,连接、RFID连接、IrDA连接、UWB连接、紫蜂连接等任意一种。Here, the wireless connection may be a long-distance wireless connection or a short-range wireless connection; wherein the long-distance wireless connection includes a WiFi connection or the like; the short-range wireless connection may be a Bluetooth connection, NFC , connection, RFID connection, IrDA connection, UWB connection, Zigbee connection, etc.
步骤402:接收所述待测移动终端通过所建立的无线连接发送的开始测试的命令,并加载、解析与所述待测移动终端对应的测试脚本;Step 402: Receive a command to start testing sent by the mobile terminal to be tested through the established wireless connection, and load and parse a test script corresponding to the mobile terminal to be tested.
这里,当所述待测移动终端为至少两个时,所述测试设备接收每个待测移动终端分别发送的开始测试的命令;其中,所述开始测试的命令中含有区分不同待测移动终端的唯一标识。Here, when the mobile terminal to be tested is at least two, the test device receives a command to start a test respectively sent by each mobile terminal to be tested; wherein the command to start testing includes distinguishing different mobile terminals to be tested Unique identifier.
其中,与所述待测移动终端对应的测试脚本可以是本地原始测试脚本,也可以是对本地原始测试脚本进行编辑修改后的测试脚本。The test script corresponding to the mobile terminal to be tested may be a local original test script, or may be a test script after editing and modifying the local original test script.
步骤403:在加载、解析与所述待测移动终端对应的测试脚本后,根据所述测试脚本将测试命令发送给所述待测移动终端;Step 403: After loading and parsing the test script corresponding to the mobile terminal to be tested, send a test command to the mobile terminal to be tested according to the test script;
这里,测试设备下达的测试命令可以为多个不同的命令,配置为检测待测移动终端的不同的业务性能,以确保投入市场前的移动终端的业务性能能够满足预先设定的需求。Here, the test command issued by the test device may be a plurality of different commands configured to detect different service performances of the mobile terminal to be tested, so as to ensure that the service performance of the mobile terminal before entering the market can meet the preset requirements.
步骤404:接收所述待测移动终端返回的测试结果。 Step 404: Receive a test result returned by the mobile terminal to be tested.
这里,测试过程中的Log和最终的测试结果会在相应的待测移动终端的显示屏幕上显示,这样就避免了测试结果和待测移动终端设备不对应而导致做出的错误判断。Here, the Log and the final test result in the test process are displayed on the display screen of the corresponding mobile terminal to be tested, so that the wrong judgment made by the test result and the mobile terminal device to be tested does not correspond.
这里,当待测移动终端执行完测试脚本命令或测试设备收到待测移动终端发来的停止命令时,测试流程结束。其中,在测试过程中,若想退出当前的测试环境,则可以通过断开所述待测移动终端与测试设备之间的无线连接,或直接退出无线局域网络来实现;若想进入下一项的测试,则可接入另一个无线局域网络,参照上述过程,即可快速的进入测试过程。Here, when the mobile terminal to be tested executes the test script command or the test device receives the stop command sent by the mobile terminal to be tested, the test flow ends. In the test process, if you want to exit the current test environment, you can disconnect the wireless connection between the mobile terminal to be tested and the test device, or directly exit the wireless local area network; if you want to enter the next item Test, you can access another wireless local area network, refer to the above process, you can quickly enter the test process.
下面对本发明实施例移动终端测试方法的实现过程做进一步地详细说明。The implementation process of the mobile terminal testing method in the embodiment of the present invention is further described in detail below.
图5给出了测试设备支持一个待测移动终端的测试过程交互示意图,如图5所示,在待测移动终端与测试设备之间建立无线连接后,待测移动终端将开始测试的命令通过所建立的无线连接发送给测试设备;在测试设备接收到待测移动终端发送来的开始测试的命令后,开始加载、解析与待测移动终端对应的测试脚本,并根据测试脚本向待测移动终端发送多个不同的测试命令(1、2……i……n,n为正整数);待测移动终端接收并执行测试设备发送的不同的测试命令,并将不同的测试结果分别返回给测试设备,直到执行完该测试脚本命令或收到待测移动终端发来的停止命令时,整个测试流程结束。FIG. 5 is a schematic diagram showing the test process interaction of the test device supporting a mobile terminal to be tested. As shown in FIG. 5, after the wireless connection is established between the mobile terminal to be tested and the test device, the command to be tested by the mobile terminal to be tested passes the command. The established wireless connection is sent to the test device; after the test device receives the command to start the test sent by the mobile terminal to be tested, the test script corresponding to the mobile terminal to be tested is started to be loaded and parsed, and the test script is moved according to the test script. The terminal sends a plurality of different test commands (1, 2, ..., i, n, n is a positive integer); the mobile terminal to be tested receives and executes different test commands sent by the test device, and returns different test results to The test device ends until the test script command is executed or the stop command sent by the mobile terminal to be tested is received.
此外,测试设备还可以支持至少两个待测移动终端,下面以支持两个待测移动终端为例来说明整个测试过程。In addition, the test device can also support at least two mobile terminals to be tested. The following test process is supported by supporting two mobile terminals to be tested as an example.
图6给出了测试设备支持两个待测移动终端的测试过程交互示意图,如图6所示,假设两个待测移动终端分别为待测移动终端a和待测移动终端b,且待测移动终端a和待测移动终端b分别向测试设备发起开始测试的命令,其中,所述开始测试的命令中含有区分不同待测移动终端的唯一标 识;并在测试设备上加载、解析与待测移动终端a和待测移动终端b对应的测试脚本,根据不同的测试脚本分别向待测移动终端a和待测移动终端b发送多个不同的测试命令(其中,测试设备向待测移动终端a发送的多个测试命令分别为a1、a2……ai……an,n为正整数;测试设备向待测移动终端b发送的多个测试命令分别为b1、b2……bi……bn,n为正整数)。待测移动终端a和待测移动终端b分别接收并执行测试设备发送来的相应的测试命令后,将不同的测试结果分别返回给测试设备,直达执行完该测试脚本命令或收到待测移动终端发来的停止命令时,整个测试流程结束。FIG. 6 is a schematic diagram showing the test process interaction of the test device supporting two mobile terminals to be tested, as shown in FIG. 6, assuming that the two mobile terminals to be tested are the mobile terminal a to be tested and the mobile terminal b to be tested, and are to be tested. The mobile terminal a and the mobile terminal to be tested b respectively initiate a test to start a test to the test device, where the command for starting the test includes a unique identifier that distinguishes different mobile terminals to be tested; and loads, parses, and tests the test device. The test script corresponding to the mobile terminal a and the mobile terminal b to be tested sends a plurality of different test commands to the mobile terminal a to be tested and the mobile terminal to be tested according to different test scripts (wherein the test device is to the mobile terminal to be tested a) The plurality of test commands sent are a 1 , a 2 ... a i ... a n , n is a positive integer; the plurality of test commands sent by the test device to the mobile terminal b to be tested are b 1 , b 2 , respectively... b i ... b n , n is a positive integer). After the mobile terminal a to be tested and the mobile terminal to be tested respectively receive and execute the corresponding test commands sent by the test device, respectively return different test results to the test device, and directly execute the test script command or receive the mobile phone to be tested. When the stop command sent by the terminal, the entire test process ends.
实施例三:Embodiment 3:
为实现上述方法,本发明实施例还提供了一种移动终端测试装置,如图7所示,该装置包括第一连接建立模块701、检测模块702、执行模块703;其中,In order to implement the above method, the embodiment of the present invention further provides a mobile terminal testing device. As shown in FIG. 7, the device includes a first connection establishing module 701, a detecting module 702, and an executing module 703.
所述第一连接建立模块701,配置为建立待测移动终端与测试设备之间的无线连接;The first connection establishing module 701 is configured to establish a wireless connection between the mobile terminal to be tested and the test device;
所述检测模块702,配置为将开始测试的命令通过所建立的无线连接发送给所述测试设备,并检测所述测试设备是否已加载、解析与所述待测移动终端对应的测试脚本;The detecting module 702 is configured to send a command to start testing to the test device by using the established wireless connection, and detect whether the test device has loaded and parsed a test script corresponding to the mobile terminal to be tested.
所述执行模块703,配置为在所述检测模块702检测到所述测试设备已加载、解析与所述待测移动终端对应的测试脚本后,接收并执行所述测试设备根据所述测试脚本发送的测试命令,并返回测试结果。The execution module 703 is configured to receive and execute the test device according to the test script after the detection module 702 detects that the test device has loaded and parsed the test script corresponding to the mobile terminal to be tested. Test the command and return the test results.
这里,所述装置还包括:第一测试平台建立模块704,配置为在所述第一连接建立模块701建立待测移动终端与测试设备之间的无线连接之前,构建无线局域网络的测试环境,提供测试平台,所述测试平台包括测试设备和至少一个待测移动终端。Here, the device further includes: a first test platform establishing module 704, configured to construct a test environment of the wireless local area network before the first connection establishing module 701 establishes a wireless connection between the mobile terminal to be tested and the test device, A test platform is provided, the test platform comprising a test device and at least one mobile terminal to be tested.
其中,当所述待测移动终端为至少两个时,每个待测移动终端分别向 所述测试设备发起开始测试的命令;所述开始测试的命令中含有区分不同待测移动终端的唯一标识。Wherein, when the mobile terminals to be tested are at least two, each mobile terminal to be tested is respectively directed to The test device initiates a command to start testing; the command to start testing includes a unique identifier that distinguishes different mobile terminals to be tested.
所述装置还包括:第一脚本编辑模块705,配置为在所述第一连接建立模块701建立待测移动终端与测试设备之间的无线连接之后,接收所述测试设备发送的本地原始测试脚本,在对所述本地原始测试脚本进行查看编辑后,将编辑后的测试脚本作为当前待测移动终端的测试脚本发送给所述测试设备。The device further includes: a first script editing module 705, configured to receive a local original test script sent by the test device after the first connection establishing module 701 establishes a wireless connection between the mobile terminal to be tested and the test device After the local original test script is viewed and edited, the edited test script is sent to the test device as a test script of the current mobile terminal to be tested.
所述装置还包括:第一退出模块706,配置为断开所述待测移动终端与测试设备之间的无线连接,退出当前的测试环境;或直接退出所述无线局域网络。The device further includes: a first exiting module 706 configured to disconnect the wireless connection between the mobile terminal to be tested and the test device, exit the current test environment; or directly exit the wireless local area network.
实施例四:Embodiment 4:
为实现上述方法,本发明实施例还提供了一种移动终端测试装置,如图8所示,该装置包括第二连接建立模块801、处理模块802;其中,In order to implement the above method, the embodiment of the present invention further provides a mobile terminal testing device. As shown in FIG. 8, the device includes a second connection establishing module 801 and a processing module 802.
所述第二连接建立模块801,配置为建立测试设备与待测移动终端之间的无线连接;The second connection establishing module 801 is configured to establish a wireless connection between the test device and the mobile terminal to be tested.
所述处理模块802,配置为接收所述待测移动终端通过所建立的无线连接发送的开始测试的命令,并加载、解析与所述待测移动终端对应的测试脚本;还配置为在加载、解析与所述待测移动终端对应的测试脚本后,根据所述测试脚本将测试命令发送给所述待测移动终端,并接收所述待测移动终端返回的测试结果。The processing module 802 is configured to receive a command to start testing sent by the mobile terminal to be tested through the established wireless connection, and load and parse a test script corresponding to the mobile terminal to be tested; After the test script corresponding to the mobile terminal to be tested is parsed, the test command is sent to the mobile terminal to be tested according to the test script, and the test result returned by the mobile terminal to be tested is received.
这里,所述装置还包括:第二测试平台建立模块803,配置为在所述第二连接建立模块801建立测试设备与待测移动终端之间的无线连接之前,构建无线局域网络的测试环境,提供测试平台,所述测试平台包括测试设备和至少一个待测移动终端。Here, the device further includes: a second test platform establishing module 803 configured to construct a test environment of the wireless local area network before the second connection establishing module 801 establishes a wireless connection between the test device and the mobile terminal to be tested, A test platform is provided, the test platform comprising a test device and at least one mobile terminal to be tested.
其中,当所述待测移动终端为至少两个时,所述测试设备接收每个待 测移动终端分别发送的开始测试的命令;所述开始测试的命令中含有区分不同待测移动终端的唯一标识。Wherein, when the mobile terminals to be tested are at least two, the test device receives each to be The command for starting the test sent by the mobile terminal is respectively measured; the command for starting the test includes a unique identifier that distinguishes different mobile terminals to be tested.
所述处理模块802,还配置为在所述第二连接建立模块801建立测试设备与待测移动终端之间的无线连接之后,将本地原始测试脚本发送给所述待测移动终端,在所述待测移动终端对所述本地原始测试脚本进行查看编辑后,接收所述待测移动终端发送的编辑后的测试脚本。The processing module 802 is further configured to: after the second connection establishing module 801 establishes a wireless connection between the test device and the mobile terminal to be tested, send a local original test script to the mobile terminal to be tested, where After the mobile terminal to be tested checks and edits the local original test script, it receives the edited test script sent by the mobile terminal to be tested.
所述装置还包括:第二退出模块804,配置为断开所述测试设备与待测移动终端之间的无线连接,退出当前的测试环境;或直接退出所述无线局域网络。The device further includes: a second exiting module 804 configured to disconnect the wireless connection between the test device and the mobile terminal to be tested, exit the current test environment; or directly exit the wireless local area network.
在实际应用中,所述第一连接建立模块701、检测模块702、执行模块703、第一测试平台建立模块704、第一脚本编辑模块705、第一退出模块706、第二连接建立模块801、处理模块802、第二测试平台建立模块803、第二退出模块804均可由位于待测移动终端上的中央处理器(CPU,Central Processing Unit)、微处理器(MPU,Micro Processor Unit)、数字信号处理器(DSP,Digital Signal Processor)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等实现。In a practical application, the first connection establishing module 701, the detecting module 702, the executing module 703, the first testing platform establishing module 704, the first script editing module 705, the first exiting module 706, the second connection establishing module 801, The processing module 802, the second test platform establishing module 803, and the second exiting module 804 may each be a central processing unit (CPU), a microprocessor (MPU, a digital processor unit), and a digital signal located on the mobile terminal to be tested. Processor (DSP, Digital Signal Processor), or Field Programmable Gate Array (FPGA) implementation.
实施例五:Embodiment 5:
为实现上述方法,本发明实施例还提供了一种移动终端测试系统,如图9所示,该系统包括:待测移动终端901、测试设备902;其中,In order to implement the above method, the embodiment of the present invention further provides a mobile terminal testing system, as shown in FIG. 9, the system includes: a mobile terminal 901 to be tested, and a testing device 902;
所述待测移动终端901,配置为与所述测试设备902建立无线连接后,将开始测试的命令通过所建立的无线连接发送给所述测试设备902,并检测所述测试设备902是否已加载、解析与所述待测移动终端901对应的测试脚本;还配置为在检测到所述测试设备902已加载、解析与所述待测移动终端901对应的测试脚本后,接收并执行所述测试设备902根据所述测试脚本发送的测试命令,并返回测试结果; The mobile terminal 901 to be tested is configured to establish a wireless connection with the test device 902, send a command to start testing to the test device 902 through the established wireless connection, and detect whether the test device 902 is loaded. And parsing the test script corresponding to the mobile terminal 901 to be tested; and configured to receive and execute the test after detecting that the test device 902 has loaded and parsed the test script corresponding to the mobile terminal 901 to be tested. The device 902 returns a test result according to the test command sent by the test script;
所述测试设备902,配置为与所述待测移动终端901建立无线连接后,接收所述待测移动终端901通过所建立的无线连接发送的开始测试的命令,并加载、解析与所述待测移动终端901对应的测试脚本;还配置为在加载、解析与所述待测移动终端901对应的测试脚本后,根据所述测试脚本将测试命令发送给所述待测移动终端901,并接收所述待测移动终端901返回的测试结果。The test device 902 is configured to: after establishing a wireless connection with the mobile terminal 901 to be tested, receive a command to start testing sent by the mobile terminal 901 to be tested through the established wireless connection, and load, parse, and After the test script corresponding to the mobile terminal 901 is loaded and parsed, the test script is sent to the mobile terminal 901 to be tested according to the test script, and is received. The test result returned by the mobile terminal 901 to be tested.
其中,所述待测移动终端901的数量为一个或至少两个。The number of the mobile terminals 901 to be tested is one or at least two.
本发明实施例建立待测移动终端与测试设备之间的无线连接;待测移动终端将开始测试的命令通过所建立的无线连接发送给所述测试设备,并检测所述测试设备是否已加载、解析与所述待测移动终端对应的测试脚本;在检测到所述测试设备已加载、解析与所述待测移动终端对应的测试脚本后,接收并执行所述测试设备根据所述测试脚本发送的测试命令,并返回测试结果。如此,将待测移动终端与测试设备之间通过无线网络自动连接,与现有的有线连接技术相比,不会受空间和资源的限制,且切换测试环境更加灵活,操作更加方便;另外,本发明实施例由待测移动终端发起测试,采用完全由待测移动终端来实现测试流程控制的方式,不需要在测试设备和待测移动终端间来回切换操作,极大提升测试效率,降低测试成本。The embodiment of the present invention establishes a wireless connection between the mobile terminal to be tested and the test device; the command to be tested by the mobile terminal to be tested is sent to the test device through the established wireless connection, and detects whether the test device is loaded, Parsing a test script corresponding to the mobile terminal to be tested; after detecting that the test device has loaded and parsed the test script corresponding to the mobile terminal to be tested, receiving and executing the test device according to the test script Test the command and return the test results. In this way, the mobile terminal to be tested and the test device are automatically connected through the wireless network, which is not limited by space and resources compared with the existing wired connection technology, and the switching test environment is more flexible and more convenient to operate; In the embodiment of the present invention, the test is initiated by the mobile terminal to be tested, and the test flow control is completely implemented by the mobile terminal to be tested, and the operation between the test device and the mobile terminal to be tested does not need to be switched back and forth, thereby greatly improving the test efficiency and reducing the test. cost.
本发明实施例中,如果以软件功能模块的形式实现上述的移动终端测试方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的 介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。In the embodiment of the present invention, if the above mobile terminal testing method is implemented in the form of a software function module and sold or used as a stand-alone product, it may also be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk, and the like, which can store program codes. medium. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
相应地,本发明的实施例提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行上述的移动终端测试方法。Accordingly, embodiments of the present invention provide a computer storage medium having stored therein computer executable instructions for performing the mobile terminal testing method described above.
相应地,本发明的实施例提供一种移动终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述的移动终端测试方法。Accordingly, embodiments of the present invention provide a mobile terminal including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the mobile terminal test described above when the program is executed method.
相应地,本发明的实施例提供一种测试设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述的移动终端测试方法。Accordingly, embodiments of the present invention provide a test apparatus including a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor implementing the above-described mobile terminal test when the program is executed method.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the computer is readable and stored The instructions in the reservoir produce an article of manufacture comprising an instruction device that implements the functions specified in one or more blocks of the flow or in a flow or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in Within the scope of protection of the present invention.
工业实用性Industrial applicability
本发明实施例中,将待测移动终端与测试设备之间通过无线网络自动连接,与现有的有线连接技术相比,不会受空间和资源的限制,且切换测试环境更加灵活,操作更加方便;另外,本发明实施例由待测移动终端发起测试,采用完全由待测移动终端来实现测试流程控制的方式,不需要在测试设备和待测移动终端间来回切换操作,极大提升测试效率,降低测试成本。 In the embodiment of the present invention, the mobile terminal to be tested and the test device are automatically connected through a wireless network, which is not limited by space and resources compared with the existing wired connection technology, and the switching test environment is more flexible and more operable. In addition, the embodiment of the present invention initiates a test by the mobile terminal to be tested, and adopts a method in which the test flow control is completely implemented by the mobile terminal to be tested, and does not need to switch back and forth between the test device and the mobile terminal to be tested, thereby greatly improving the test. Efficiency, reducing test costs.

Claims (23)

  1. 一种移动终端测试方法,所述方法包括:A mobile terminal testing method, the method comprising:
    建立待测移动终端与测试设备之间的无线连接;Establishing a wireless connection between the mobile terminal to be tested and the test device;
    将开始测试的命令通过所建立的无线连接发送给所述测试设备,并检测所述测试设备是否已加载、解析与所述待测移动终端对应的测试脚本;Sending a command to start testing to the test device through the established wireless connection, and detecting whether the test device has loaded and parsed a test script corresponding to the mobile terminal to be tested;
    在检测到所述测试设备已加载、解析与所述待测移动终端对应的测试脚本后,接收并执行所述测试设备根据所述测试脚本发送的测试命令,并返回测试结果。After detecting that the test device has loaded and parsed the test script corresponding to the mobile terminal to be tested, the test command sent by the test device according to the test script is received and executed, and the test result is returned.
  2. 根据权利要求1所述的方法,其中,在所述建立待测移动终端与测试设备之间的无线连接之前,所述方法还包括:The method of claim 1, wherein before the establishing a wireless connection between the mobile terminal to be tested and the test device, the method further comprises:
    构建无线局域网络的测试环境,提供测试平台,所述测试平台包括测试设备和至少一个待测移动终端。A test environment for constructing a wireless local area network is provided, and a test platform is provided, the test platform including a test device and at least one mobile terminal to be tested.
  3. 根据权利要求2所述的方法,其中,当所述待测移动终端为至少两个时,每个待测移动终端分别向所述测试设备发起开始测试的命令;其中,The method according to claim 2, wherein when the mobile terminals to be tested are at least two, each of the mobile terminals to be tested respectively initiates a command to start testing to the test device;
    所述开始测试的命令中含有区分不同待测移动终端的唯一标识。The command to start testing contains a unique identifier that distinguishes different mobile terminals to be tested.
  4. 根据权利要求1所述的方法,其中,在所述建立待测移动终端与测试设备之间的无线连接之后,所述方法还包括:The method of claim 1, wherein after the establishing a wireless connection between the mobile terminal to be tested and the test device, the method further comprises:
    接收所述测试设备发送的本地原始测试脚本,在对所述本地原始测试脚本进行查看编辑后,将编辑后的测试脚本作为当前待测移动终端的测试脚本发送给所述测试设备。The local original test script sent by the test device is received, and after the local original test script is viewed and edited, the edited test script is sent to the test device as a test script of the current mobile terminal to be tested.
  5. 根据权利要求2所述的方法,其中,所述方法还包括:断开所述待测移动终端与测试设备之间的无线连接,退出当前的测试环境;或直接退出所述无线局域网络。 The method according to claim 2, wherein the method further comprises: disconnecting the wireless connection between the mobile terminal to be tested and the test device, exiting the current test environment; or directly exiting the wireless local area network.
  6. 一种移动终端测试方法,所述方法包括:A mobile terminal testing method, the method comprising:
    建立测试设备与待测移动终端之间的无线连接;Establishing a wireless connection between the test device and the mobile terminal to be tested;
    接收所述待测移动终端通过所建立的无线连接发送的开始测试的命令,并加载、解析与所述待测移动终端对应的测试脚本;Receiving a command to start testing sent by the mobile terminal to be tested through the established wireless connection, and loading and parsing a test script corresponding to the mobile terminal to be tested;
    在加载、解析与所述待测移动终端对应的测试脚本后,根据所述测试脚本将测试命令发送给所述待测移动终端;After the test script corresponding to the mobile terminal to be tested is loaded and parsed, the test command is sent to the mobile terminal to be tested according to the test script;
    接收所述待测移动终端返回的测试结果。Receiving the test result returned by the mobile terminal to be tested.
  7. 根据权利要求6所述的方法,其中,在所述建立测试设备与待测移动终端之间的无线连接之前,所述方法还包括:The method of claim 6, wherein before the establishing a wireless connection between the test device and the mobile terminal to be tested, the method further comprises:
    构建无线局域网络的测试环境,提供测试平台,所述测试平台包括测试设备和至少一个待测移动终端。A test environment for constructing a wireless local area network is provided, and a test platform is provided, the test platform including a test device and at least one mobile terminal to be tested.
  8. 根据权利要求7所述的方法,其中,当所述待测移动终端为至少两个时,所述测试设备接收每个待测移动终端分别发送的开始测试的命令;其中,所述开始测试的命令中含有区分不同待测移动终端的唯一标识。The method according to claim 7, wherein when the mobile terminals to be tested are at least two, the test device receives a command for starting a test respectively sent by each mobile terminal to be tested; wherein the starting of the test The command contains a unique identifier that distinguishes different mobile terminals to be tested.
  9. 根据权利要求6所述的方法,其中,在所述建立测试设备与待测移动终端之间的无线连接之后,所述方法还包括:The method of claim 6, wherein after the establishing a wireless connection between the test device and the mobile terminal to be tested, the method further comprises:
    将本地原始测试脚本发送给所述待测移动终端,在所述待测移动终端对所述本地原始测试脚本进行查看编辑后,接收所述待测移动终端发送的编辑后的测试脚本。Sending the local original test script to the mobile terminal to be tested, and after the mobile terminal to be tested views and edits the local original test script, receiving the edited test script sent by the mobile terminal to be tested.
  10. 根据权利要求7所述的方法,其中,所述方法还包括:断开所述测试设备与待测移动终端之间的无线连接,退出当前的测试环境;或直接退出所述无线局域网络。The method of claim 7, wherein the method further comprises: disconnecting the wireless connection between the test device and the mobile terminal to be tested, exiting the current test environment; or directly exiting the wireless local area network.
  11. 一种移动终端测试装置,所述装置包括:第一连接建立模块、检测模块、执行模块;其中, A mobile terminal testing device, the device comprising: a first connection establishing module, a detecting module, and an executing module; wherein
    所述第一连接建立模块,配置为建立待测移动终端与测试设备之间的无线连接;The first connection establishing module is configured to establish a wireless connection between the mobile terminal to be tested and the test device;
    所述检测模块,配置为将开始测试的命令通过所建立的无线连接发送给所述测试设备,并检测所述测试设备是否已加载、解析与所述待测移动终端对应的测试脚本;The detecting module is configured to send a command to start testing to the testing device through the established wireless connection, and detect whether the testing device has loaded and parsed a test script corresponding to the mobile terminal to be tested;
    所述执行模块,配置为在所述检测模块检测到所述测试设备已加载、解析与所述待测移动终端对应的测试脚本后,接收并执行所述测试设备根据所述测试脚本发送的测试命令,并返回测试结果。The execution module is configured to receive and execute a test sent by the test device according to the test script after the detection module detects that the test device has loaded and parsed a test script corresponding to the mobile terminal to be tested. Command and return the test results.
  12. 根据权利要求11所述的装置,其中,所述装置还包括:第一测试平台建立模块,配置为在所述第一连接建立模块建立待测移动终端与测试设备之间的无线连接之前,构建无线局域网络的测试环境,提供测试平台,所述测试平台包括测试设备和至少一个待测移动终端。The apparatus according to claim 11, wherein the apparatus further comprises: a first test platform establishing module configured to construct before the first connection establishing module establishes a wireless connection between the mobile terminal to be tested and the test device A test environment of a wireless local area network, providing a test platform, the test platform including a test device and at least one mobile terminal to be tested.
  13. 根据权利要求11所述的装置,其中,所述装置还包括:第一脚本编辑模块,配置为在所述第一连接建立模块建立待测移动终端与测试设备之间的无线连接之后,接收所述测试设备发送的本地原始测试脚本,在对所述本地原始测试脚本进行查看编辑后,将编辑后的测试脚本作为当前待测移动终端的测试脚本发送给所述测试设备。The apparatus according to claim 11, wherein the apparatus further comprises: a first script editing module configured to receive the wireless connection after the first connection establishing module establishes a wireless connection between the mobile terminal to be tested and the test device The local original test script sent by the test device sends the edited test script to the test device as the test script of the current mobile terminal to be tested after viewing and editing the local original test script.
  14. 根据权利要求12所述的装置,其中,所述装置还包括:第一退出模块,配置为断开所述待测移动终端与测试设备之间的无线连接,退出当前的测试环境;或直接退出所述无线局域网络。The device according to claim 12, wherein the device further comprises: a first exiting module configured to disconnect the wireless connection between the mobile terminal to be tested and the test device, exit the current test environment; or exit directly The wireless local area network.
  15. 一种移动终端测试装置,所述装置包括:第二连接建立模块、处理模块;其中,A mobile terminal testing device, the device comprising: a second connection establishing module and a processing module; wherein
    所述第二连接建立模块,配置为建立测试设备与待测移动终端之间的无线连接;The second connection establishing module is configured to establish a wireless connection between the test device and the mobile terminal to be tested;
    所述处理模块,配置为接收所述待测移动终端通过所建立的无线连 接发送的开始测试的命令,并加载、解析与所述待测移动终端对应的测试脚本;还配置为在加载、解析与所述待测移动终端对应的测试脚本后,根据所述测试脚本将测试命令发送给所述待测移动终端,并接收所述待测移动终端返回的测试结果。The processing module is configured to receive, by the mobile terminal to be tested, the established wireless connection And sending a test command to start the test, and loading and parsing the test script corresponding to the mobile terminal to be tested; and configuring, after loading and parsing the test script corresponding to the mobile terminal to be tested, according to the test script The test command is sent to the mobile terminal to be tested, and receives a test result returned by the mobile terminal to be tested.
  16. 根据权利要求15所述的装置,其中,所述装置还包括:第二测试平台建立模块,配置为在所述第二连接建立模块建立测试设备与待测移动终端之间的无线连接之前,构建无线局域网络的测试环境,提供测试平台,所述测试平台包括测试设备和至少一个待测移动终端。The apparatus of claim 15, wherein the apparatus further comprises: a second test platform establishing module configured to construct before the second connection establishing module establishes a wireless connection between the test device and the mobile terminal to be tested A test environment of a wireless local area network, providing a test platform, the test platform including a test device and at least one mobile terminal to be tested.
  17. 根据权利要求15所述的装置,其中,所述处理模块,还配置为在所述第二连接建立模块建立测试设备与待测移动终端之间的无线连接之后,将本地原始测试脚本发送给所述待测移动终端,在所述待测移动终端对所述本地原始测试脚本进行查看编辑后,接收所述待测移动终端发送的编辑后的测试脚本。The apparatus according to claim 15, wherein the processing module is further configured to: after the second connection establishing module establishes a wireless connection between the test device and the mobile terminal to be tested, send the local original test script to the device After the mobile terminal to be tested views and edits the local original test script, the mobile terminal to be tested receives the edited test script sent by the mobile terminal to be tested.
  18. 根据权利要求16所述的装置,其中,所述装置还包括:第二退出模块,配置为断开所述测试设备与待测移动终端之间的无线连接,退出当前的测试环境;或直接退出所述无线局域网络。The device according to claim 16, wherein the device further comprises: a second exiting module configured to disconnect the wireless connection between the test device and the mobile terminal to be tested, exit the current test environment; or exit directly The wireless local area network.
  19. 一种移动终端测试系统,所述系统包括:待测移动终端、测试设备;其中,A mobile terminal testing system, the system comprising: a mobile terminal to be tested, and a testing device; wherein
    所述待测移动终端,配置为与所述测试设备建立无线连接后,将开始测试的命令通过所建立的无线连接发送给所述测试设备,并检测所述测试设备是否已加载、解析与所述待测移动终端对应的测试脚本;还配置为在检测到所述测试设备已加载、解析与所述待测移动终端对应的测试脚本后,接收并执行所述测试设备根据所述测试脚本发送的测试命令,并返回测试结果;The mobile terminal to be tested is configured to establish a wireless connection with the test device, send a command to start testing to the test device through the established wireless connection, and detect whether the test device is loaded, parsed, and Determining a test script corresponding to the mobile terminal to be tested; and configured to receive and execute the test script sent according to the test script after detecting that the test device has loaded and parsed the test script corresponding to the mobile terminal to be tested Test command and return test results;
    所述测试设备,配置为与所述待测移动终端建立无线连接后,接收 所述待测移动终端通过所建立的无线连接发送的开始测试的命令,并加载、解析与所述待测移动终端对应的测试脚本;还配置为在加载、解析与所述待测移动终端对应的测试脚本后,根据所述测试脚本将测试命令发送给所述待测移动终端,并接收所述待测移动终端返回的测试结果。The test device is configured to receive a wireless connection with the mobile terminal to be tested, and receive And the test script corresponding to the mobile terminal to be tested is sent and parsed by the mobile terminal to be tested, and is configured to load and parse the mobile terminal corresponding to the mobile terminal to be tested. After the test script, the test command is sent to the mobile terminal to be tested according to the test script, and the test result returned by the mobile terminal to be tested is received.
  20. 根据权利要求19所述的系统,其中,所述待测移动终端的数量为一个或至少两个。The system of claim 19, wherein the number of mobile terminals to be tested is one or at least two.
  21. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行上述权利要求1至5任一项或6至10任一项的移动终端测试方法。A computer storage medium storing computer executable instructions for performing the mobile terminal testing method according to any one of claims 1 to 5 or 6 to 10.
  22. 一种移动终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述权利要求1至5任一项的移动终端测试方法。A mobile terminal comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor executing the program to implement the mobile terminal testing method according to any one of claims 1 to 5 .
  23. 一种测试设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述权利要求6至10任一项的移动终端测试方法。 A test device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor executing the program to implement the mobile terminal test method according to any one of claims 6 to 10 .
PCT/CN2017/082600 2016-09-01 2017-04-28 Mobile terminal testing method, apparatus, system, device, and storage medium WO2018040604A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610801077.8 2016-09-01
CN201610801077.8A CN108306778A (en) 2016-09-01 2016-09-01 A kind of mobile terminal test method, device and system

Publications (1)

Publication Number Publication Date
WO2018040604A1 true WO2018040604A1 (en) 2018-03-08

Family

ID=61299952

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/082600 WO2018040604A1 (en) 2016-09-01 2017-04-28 Mobile terminal testing method, apparatus, system, device, and storage medium

Country Status (2)

Country Link
CN (1) CN108306778A (en)
WO (1) WO2018040604A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413678A (en) * 2018-12-25 2019-03-01 欧普照明股份有限公司 A kind of Wi-Fi module automatic test approach and test macro
CN111343326A (en) * 2020-04-22 2020-06-26 Oppo广东移动通信有限公司 Method and related device for acquiring test log
CN111999707A (en) * 2020-08-19 2020-11-27 无锡威孚高科技集团股份有限公司 Automatic testing method, device and system for millimeter wave radar
CN112929226A (en) * 2019-12-06 2021-06-08 深圳富泰宏精密工业有限公司 Test system and method
CN113794602A (en) * 2021-08-20 2021-12-14 海南视联大健康智慧医疗科技有限公司 Equipment testing method and device, terminal equipment and storage medium
CN114089086A (en) * 2021-10-29 2022-02-25 深圳市康必达控制技术有限公司 Communication manager test equipment and test method thereof

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107124333B (en) * 2017-06-13 2019-08-13 烽火通信科技股份有限公司 A kind of network-building method of automatic test environment
CN109669084A (en) * 2018-12-13 2019-04-23 歌尔科技有限公司 Equipment ESD test method and system
CN111404782B (en) * 2020-03-17 2023-08-18 深圳市潮流网络技术有限公司 Terminal test method and device, computing equipment and storage medium
CN112015607B (en) * 2020-08-06 2024-03-19 百富计算机技术(深圳)有限公司 On-off test method, tested equipment and tool equipment
CN114338490A (en) * 2021-12-30 2022-04-12 奇安信科技集团股份有限公司 Test method and test management module of terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103354022A (en) * 2013-06-16 2013-10-16 武汉江海天地科技有限公司 On-site test data wireless transmission method
CN104270204A (en) * 2014-08-30 2015-01-07 杭州华为数字技术有限公司 Testing method and testing equipment for wireless communication module
CN105246094A (en) * 2015-11-03 2016-01-13 青岛海信移动通信技术股份有限公司 Communication method and testing method
CN105512029A (en) * 2015-11-27 2016-04-20 北京奇虎科技有限公司 Method, server and system for testing intelligent terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012140477A1 (en) * 2011-04-15 2012-10-18 Nokia Corporation Method and apparatus for providing secret delegation
CN104581785B (en) * 2014-12-29 2018-11-06 大唐移动通信设备有限公司 wireless network test method, test device and mobile terminal
CN105224456B (en) * 2015-09-29 2019-05-31 北京奇虎科技有限公司 A kind of test script generation method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103354022A (en) * 2013-06-16 2013-10-16 武汉江海天地科技有限公司 On-site test data wireless transmission method
CN104270204A (en) * 2014-08-30 2015-01-07 杭州华为数字技术有限公司 Testing method and testing equipment for wireless communication module
CN105246094A (en) * 2015-11-03 2016-01-13 青岛海信移动通信技术股份有限公司 Communication method and testing method
CN105512029A (en) * 2015-11-27 2016-04-20 北京奇虎科技有限公司 Method, server and system for testing intelligent terminal

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413678A (en) * 2018-12-25 2019-03-01 欧普照明股份有限公司 A kind of Wi-Fi module automatic test approach and test macro
CN112929226A (en) * 2019-12-06 2021-06-08 深圳富泰宏精密工业有限公司 Test system and method
CN112929226B (en) * 2019-12-06 2023-05-02 深圳富泰宏精密工业有限公司 Test system and method
CN111343326A (en) * 2020-04-22 2020-06-26 Oppo广东移动通信有限公司 Method and related device for acquiring test log
CN111999707A (en) * 2020-08-19 2020-11-27 无锡威孚高科技集团股份有限公司 Automatic testing method, device and system for millimeter wave radar
CN113794602A (en) * 2021-08-20 2021-12-14 海南视联大健康智慧医疗科技有限公司 Equipment testing method and device, terminal equipment and storage medium
CN114089086A (en) * 2021-10-29 2022-02-25 深圳市康必达控制技术有限公司 Communication manager test equipment and test method thereof

Also Published As

Publication number Publication date
CN108306778A (en) 2018-07-20

Similar Documents

Publication Publication Date Title
WO2018040604A1 (en) Mobile terminal testing method, apparatus, system, device, and storage medium
US11350200B2 (en) Wireless audio source switching
TWI699138B (en) Network access method and device
US10171997B2 (en) Method and apparatus for interconnection between terminal device and gateway device
EP3468256B1 (en) Fast wireless fidelity connection method and apparatus
US20180063298A1 (en) Communication apparatus, control method thereof, and non-transitory computer-readable storage medium
US10178613B2 (en) Wireless access method and related device and system
CN104080194A (en) Method for wirelessly configuring WIFI access parameters of zero-input terminal equipment through mobile phone
TW201306507A (en) Method of configuring Bluetooth SIM access profile of communication device
KR101821689B1 (en) Wireless docking
CN103780672A (en) Wi-fi p2p communication terminal device and communication method thereof
KR20160021179A (en) Vicinity-based undocking for a wireless docking application
KR102514692B1 (en) Electronic device suporting multiple wireless communication protocols and method therefor
US9325385B2 (en) User equipment, communication method, program, and communication system
WO2017076029A1 (en) Method and system for wireless fidelity connection between smart terminal and router
US10708775B2 (en) Method for establishing network connection by using WPS, and mobile Wi-Fi device
CN104581847A (en) Wireless device configuration method and apparatus
CN104519482A (en) Equipment parameter configuration method and device
CN103052068B (en) A kind of intelligent terminal security protection method of testing and system
WO2017076028A1 (en) Method and system for one key connection between mobile terminal and display device
WO2014153912A1 (en) Method and device for displaying and processing application name of multimode card of mobile terminal
WO2017031870A1 (en) Playing device grouping control method and user terminal
CN105208574A (en) Method and device for detecting performance of wireless module of terminal
CN103517373A (en) Network access method and device
CN106997291B (en) Control method, master node and slave node

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17844912

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17844912

Country of ref document: EP

Kind code of ref document: A1