WO2011107058A2 - Measurement method, measurement server and measurement user terminal of internet protocol television (iptv) terminal - Google Patents

Measurement method, measurement server and measurement user terminal of internet protocol television (iptv) terminal Download PDF

Info

Publication number
WO2011107058A2
WO2011107058A2 PCT/CN2011/073091 CN2011073091W WO2011107058A2 WO 2011107058 A2 WO2011107058 A2 WO 2011107058A2 CN 2011073091 W CN2011073091 W CN 2011073091W WO 2011107058 A2 WO2011107058 A2 WO 2011107058A2
Authority
WO
WIPO (PCT)
Prior art keywords
test
task
tested
client
test client
Prior art date
Application number
PCT/CN2011/073091
Other languages
French (fr)
Chinese (zh)
Other versions
WO2011107058A3 (en
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 华为技术有限公司
Priority to PCT/CN2011/073091 priority Critical patent/WO2011107058A2/en
Priority to CN201180000257.1A priority patent/CN102845021B/en
Publication of WO2011107058A2 publication Critical patent/WO2011107058A2/en
Publication of WO2011107058A3 publication Critical patent/WO2011107058A3/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems

Definitions

  • Test method test server and test client for IPTV terminal
  • the present invention relates to the field of communications technologies, and in particular, to a test method, a test server, and a test client for an IPTV terminal.
  • the IPTV (Internet Protocol Televiation) service refers to a television broadcasting service based on the IP (Internet Protocol) protocol.
  • IP Internet Protocol
  • an end-to-end method is generally used to test the quality of IPTV terminal presentation services.
  • the test client runs the test script sent by the test server, and remotely controls the IPTV terminal to operate, so that the IPTV terminal obtains the execution result of the test script; meanwhile, the test server passes the video capture card from the IPTV.
  • the terminal obtains the execution result, and saves the result as an image and sends the image to the test client.
  • the test client compares the image with the local reference image to obtain the quality of the IPTV terminal presentation service.
  • the test server needs to develop different test scripts for different IPTV terminals, and cannot test various types of IPTV terminals.
  • the embodiment of the invention provides a test method, a test server and a test client of the IPTV terminal, which improves the scalability of testing the IPTV terminal.
  • a test method for an IPTV terminal including:
  • a test method for an IPTV terminal comprising: Send configuration information to the test server;
  • the task to be tested is executed, and the IPTV terminal corresponding to the test client itself is tested.
  • test server that includes:
  • An obtaining unit configured to acquire configuration information of at least two test clients and a task to be tested; and a determining unit, configured to determine, according to the to-be-tested task and the configuration information, a target test client that matches the to-be-tested task;
  • a task sending unit configured to send the to-be-tested task to the target test client, so that the target test client uses the to-be-tested task pair corresponding to the target test client
  • the IPTV terminal is tested.
  • test client that includes:
  • An information sending unit configured to send configuration information to the test server
  • a task receiving unit configured to receive a task to be tested that is sent by the test server and that matches the test client itself, where the task to be tested is determined by the server to be tested according to the task to be tested and Configuration information distribution;
  • the task execution unit is configured to execute the to-be-tested task, and test the IPTV terminal corresponding to the test client itself.
  • the test method, the test server, and the test client of the IPTV terminal obtained configuration information of at least two test clients and a task to be tested; and determine and describe according to the task to be tested and the configuration information.
  • a target test client that matches the task to be tested; and the task to be tested is sent to the target test client, so that the target test client uses the IPTV corresponding to the target test client by using the task to be tested
  • the terminal is tested. Since the test server can obtain the target test client from the plurality of test clients to complete the task to be tested for the IPTV terminal, the test server can pass the technical solution of the embodiment of the present invention. Extending the number of test clients to test multiple types of IPTV terminals and improving the scalability of IPTV terminal testing.
  • FIG. 1 is a flowchart of a method for testing an IPTV terminal according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for testing an IPTV terminal according to Embodiment 2 of the present invention
  • FIG. 3 is a flowchart of a method for testing an IPTV terminal according to Embodiment 3 of the present invention.
  • FIG. 4 is a schematic diagram of a test server according to Embodiment 4 of the present invention.
  • FIG. 5 is still another schematic diagram of a test server according to Embodiment 4 of the present invention.
  • FIG. 6 is still another schematic diagram of a test server according to Embodiment 4 of the present invention.
  • FIG. 7 is a schematic diagram of testing a client according to Embodiment 5 of the present invention.
  • Embodiment 8 is a schematic diagram of a task execution unit in Embodiment 5 of the present invention.
  • FIG. 9 is still another schematic diagram of testing a client according to Embodiment 5 of the present invention.
  • FIG. 10 is a schematic diagram of an IPTV terminal testing system according to an embodiment of the present invention.
  • a first embodiment of the present invention provides a test method for an IPTV terminal, including the following steps:
  • Step 11 The test server obtains configuration information of at least two test clients and a task to be tested.
  • the manner in which the test server obtains the configuration information of the test client may be: First, the test server sends an address notification message to the test client, where the address notification message includes address information of the test server. Then, the test server receives the test client and sends the message according to the address notification message. Configuration information.
  • the configuration information includes at least a CPU parameter of the test client, memory information, and address information of the test client.
  • the tester can send a test task to the test server. Specifically, the tester can design a task to be tested according to the test requirement of the IPTV terminal and send it to the test server.
  • Step 12 The test server determines, according to the task to be tested and the configuration information, a target test client that matches the task to be tested.
  • the test server parses the task to be tested, and obtains the type of the task to be tested. Then, the type of the task to be tested is compared with the configuration information, and the type of the task to be tested is obtained. Matching target configuration information; and further determining the test client having the target configuration information as the target test client.
  • Step 13 The test server sends the to-be-tested task to the target test client, so that the target test client uses the to-be-tested task to test the IPTV terminal corresponding to the target test client.
  • test server can obtain the target test client from the plurality of test clients to complete the task to be tested for the IPTV terminal, the test server can complete the test by expanding the number of test clients by using the technical solution of the embodiment of the present invention.
  • the testing of multiple types of IPTV terminals has improved the scalability of IPTV terminal testing.
  • the second embodiment of the present invention provides a testing method for an IPTV terminal, including the following steps:
  • Step 21 The test client sends configuration information to the test server.
  • the test client receives the address notification message sent by the test server, where the address notification message includes address information of the test server, and then the test client sends a message according to the address notification message.
  • the test server sends configuration information.
  • the configuration information includes at least a CPU parameter of the test client, memory information, and address information of the test client. Wait.
  • Step 22 The test client receives the task to be tested that is sent by the test server and matches the test client itself, where the task to be tested is determined by the server to be tested according to the task to be tested and the Configuration information is assigned.
  • the task to be tested includes a description file, a test suite file, and a screen capture software package file
  • the test suite file includes a test case file, a reference image file, and a key value mapping file.
  • the description file describes a file type, a file name, and a file path.
  • the test case file is used to enable the test client to execute a task to be tested.
  • the key value mapping file is used to enable the test client to acquire a terminal. a key value mapping table; the screen capture software package file and the reference image are used to enable the test client to obtain a test result. Specifically, the test client obtains a screen capture by the IPTV terminal by using the screen capture software package file. And comparing the screen shot image with the reference image to obtain a test result.
  • Step 23 The test client performs the task to be tested, and tests the IPTV terminal corresponding to the test client itself. Since the test server can obtain the target test client from the plurality of test clients to complete the task to be tested for the IPTV terminal, the test server can complete the test by expanding the number of test clients by using the technical solution of the embodiment of the present invention. The testing of multiple types of IPTV terminals has improved the scalability of IPTV terminal testing.
  • Embodiment 3 of the present invention provides a testing method for an IPTV terminal, including the following steps:
  • Step 31 The test server sends an address notification message to the test client, where the address information of the test server is included in the address notification message.
  • the test client first performs an initialization operation. After initialization, the test client reads its own configuration information, pulls up the listener, and listens for messages sent by the test server. At this time, the test server sends an address notification message to the test client, and the address notification message includes the address information of the test server, so that the test client sends the configuration information to the test client according to the address information.
  • the test server Specifically, the address notification message may be a multicast bearer, and its TTL (Time To Live) is equal to 1. Wherein, the configuration letter The information includes at least the test client's CPU parameters, memory information, test client address information, and so on. Step 32: The test client receives the address notification message, and sends its own configuration information to the test server according to the address information.
  • Step 33 The test server obtains configuration information of at least two test clients and a task to be tested.
  • step 1 1 This step is referred to step 1 1 in the first embodiment.
  • Step 34 The test server determines, according to the task to be tested and the configuration information, a target test client that matches the task to be tested.
  • This step is referred to step 12 in the first embodiment.
  • Step 35 The test server selects a test client for performing the test task from the target test client.
  • the test server in order for the test server to accurately deliver the task to be tested to the target client, the test server first determines whether the target test client is in an available state, if the target test client If the terminal is not in the available state, the task to be tested is cancelled; if the target test client is in the available state, it is further determined whether the available target test client is in an idle state.
  • the test server may periodically send a first status query message to the target test client, and when the first status response message of the target test client is received, determine, that the target test client is available.
  • the available target test client for the status can be determined by the operator.
  • test server determines that the target test client is in an available state. Whether the client is in an idle state, if the available target test client is not in an idle state, canceling the task to be tested, and if the available target test client is in an idle state, then the available target in the idle state.
  • the test client delivers the task to be tested.
  • the test server may periodically send the available target test client.
  • the second status query message determines, when the second status response message of the available target test client is received, the available target test client as an available target test client in an idle state.
  • the period may be determined by an operator.
  • the first status query message and the second status query message may be the same status query message, and the first status response message and the second status response message may also be the same status response message.
  • Step 36 The test server delivers the to-be-tested task to the available target test client in the idle state.
  • the test server may also identify the type of the IPTV terminal corresponding to the test client.
  • Step 37 The test client executes the task to be tested, and obtains a test result.
  • the test client first parses the task to be tested, and delivers the screen capture software package file to the IPTV terminal and loads a terminal key value mapping table to the hardware box of the IPTV terminal.
  • the test client loads the terminal key value mapping table into the hardware box of the IPTV terminal, the description file is first read, and the path of the key value mapping file is obtained by the description file; further, The path and the key value mapping file acquire a terminal key value mapping table, and load the terminal key value mapping table to a hardware box of the IPTV terminal.
  • the test client parses the test case file, and sends a script execution request to the hardware box of the IPTV terminal; then, the hardware box of the IPTV terminal passes the preset actuator according to the script execution request.
  • the package file captures the screenshot image during the operation.
  • test client Since the test client does not need to obtain screenshot images through other test devices (for example, video capture cards), the cost of testing the IPTV terminal is reduced.
  • test client compares the screen capture image with the reference image file to obtain a test result.
  • the test client may pass the same process as the reference image by the screen capture image. Degree, get the corresponding test results.
  • Step 38 The test client sends the test result to the test server.
  • the test client can send the test result to the test server.
  • the test server can obtain the target test client from the plurality of test clients to complete the task to be tested for the IPTV terminal, and each target test client can automatically perform the task to be tested without manual operation, therefore, the implementation of the present invention is implemented.
  • the test server can complete testing of various types of IPTV terminals by expanding the number of test clients, improve the scalability of testing the IPTV terminal, and improve the efficiency of the IPTV terminal test.
  • a fourth embodiment of the present invention provides a test server, including: an obtaining unit 41, configured to acquire configuration information of at least two test clients and a task to be tested; and a determining unit 42 The test task and the configuration information determine a target test client that matches the to-be-tested task; the task delivery unit 43 is configured to deliver the to-be-tested task to the target test client, so that the target test is performed.
  • the client uses the to-be-tested task to test the IPTV terminal corresponding to the target test client.
  • the obtaining unit 41 includes: a message sending module, configured to send an address notification message to the test client, where the address notification message includes address information of the test server, so that the test client is configured according to the And the information receiving module is configured to receive the configuration information that is sent by the test client according to the address notification message, and the task obtaining module is configured to acquire the task to be tested.
  • the determining unit 42 includes: a comparison module, configured to compare the type of the task to be tested with the configuration information; and an information obtaining module, configured to acquire target configuration information that matches a type of the task to be tested; a determining module, configured to determine a test client having the target configuration information as a target test client.
  • the test server further includes: a first determining unit 51, configured to: Determining an available target test client in an available state from the target test client;
  • the determining unit 52 is configured to determine, from the available target test client, an available target test client that is in an idle state.
  • the task sending unit 43 is specifically configured to deliver the to-be-tested task to the available target test client in the idle state.
  • the first determining unit 51 includes: a first message sending module, configured to send a first state query message to the target test client; and a first determining module, configured to receive the first target test client When the status response message is received, the target test client is determined to be an available target test client in an available state.
  • the second determining unit 52 includes: a second message sending module, configured to send a second state query message to the available target test client; and a second determining module, configured to receive the first target test client When the two status response message is received, the available target test client is determined to be an available target test client in an idle state.
  • the first status query message and the second status query message may be the same status query message, and the first status response message and the second status response message may also be the same status response message.
  • the test server further includes: a receiving unit 61, configured to receive a test result of the target test client.
  • test server The working principle of the test server can be referred to the description in the method embodiment.
  • test server can obtain the target test client from the plurality of test clients to complete the task to be tested for the IPTV terminal
  • the test server of the embodiment of the present invention can complete the plurality of test clients by expanding the number of test clients. Testing of types of IPTV terminals improves the scalability of IPTV terminal testing.
  • a fifth embodiment of the present invention provides a test client, including: an information sending unit 71, configured to send configuration information to a test server; and a task receiving unit 72, configured to receive the test server a task to be tested that matches the test client itself, wherein the task to be tested is allocated by the server to be tested according to the task to be tested and the configuration information; a task execution unit 73 is configured to execute The test task is described, and the IPTV terminal corresponding to the test client itself is tested.
  • the information sending unit 71 includes: a message receiving module, configured to receive an address notification message sent by the test server, where the address notification message includes address information of a test server, and an information sending module, configured to The address notification message sends configuration information to the test server.
  • the task to be tested includes a description file, a test suite file, and a screen capture software package file
  • the test suite file includes a test case file, a reference image file, and a key value mapping file.
  • the task execution unit 73 includes: a task processing module 731, configured to parse the task to be tested, and send the screen capture software package file to the IPTV terminal and to the IPTV terminal
  • the hardware box loads the terminal key value mapping table
  • the task execution module 732 is configured to parse the test case file, and send a script execution request to the hardware box of the IPTV terminal, and the hardware box of the IPTV terminal utilizes the terminal
  • the key value mapping table controls the IPTV terminal to perform a corresponding operation, and the IPTV terminal acquires the screen capture image during the operation process by using the screen capture software package file
  • the result obtaining module 733 is configured to acquire the Screen capture image, and comparing the screen capture image with the reference image file to obtain a test result.
  • the task processing module 731 includes: a parsing sub-module, configured to parse the task to be tested; a sub-module, configured to deliver the screen capture software package file to the IPTV terminal; And the loading submodule is configured to acquire a terminal key value mapping table from the mapping path and the key value mapping file, to the IPTV terminal, to read the description file, and obtain a mapping path of the key value mapping file.
  • the hardware box loads the terminal key value mapping table.
  • the task execution module 732 includes: a parsing sub-module for parsing the test case file; a requesting sub-module, configured to send a script execution request to the hardware box of the IPTV terminal;
  • the hardware box parses the script file acquired by the test case file by a preset executor according to the script execution request, and acquires a terminal key value;
  • the control submodule is configured to use the terminal key value and the terminal
  • the key value mapping table controls the IPTV terminal to operate.
  • the test client further includes: a result sending unit 91, and sending the test result to the test server.
  • the working principle of the test client can be referred to the description in the method embodiment.
  • test server can obtain the target test client from the plurality of test clients to complete the task to be tested for the IPTV terminal, and each target test client can automatically perform the task to be tested without manual operation, therefore, the implementation of the present invention is implemented.
  • the test client of the example improves the scalability of IPTV terminal testing and improves the efficiency of IPTV terminal testing.
  • FIG. 10 shows a schematic diagram of an IPTV terminal test system in a specific application, which includes a service system 101, a test server 102, a test client 103, an IPTV terminal 104, and a hardware box 105 of the IPTV terminal.
  • the IPTV terminal 104 is configured to request an IPTV service from the service system 101, where the service system 101 and the IPTV terminal 104 mutually complete an IPTV terminal presentation service; the test server 102 is configured to manage and monitor the test.
  • the client 103 sends a test task to the test client 103.
  • the test client 103 is configured to receive and execute a task to be tested, and report the test result to the test server 102.
  • the hardware of the IPTV terminal The box 105 is configured to receive a task execution instruction of the test client 103, and control the IPTV terminal 104 to perform operations to complete a task to be tested.
  • the test server 102 can be the test server described in any of FIG. 4 to FIG. 6, and the test client 103 can be the test client described in any of FIGS. 7-9.
  • the test server obtains configuration information of at least two test clients and a task to be tested, and determines a target test client that matches the task to be tested according to the task to be tested and the configuration information, and further
  • the target test client delivers the to-be-tested task, so that the target test client uses the to-be-tested task to test the IPTV terminal corresponding to the target test client. Therefore, the scalability of the IPTV terminal test is improved by using the technical solution of the embodiment of the present invention.

Abstract

A measurement method, measurement server and measurement user terminal of an Internet Protocol Television (IPTV) terminal are provided by the embodiments of the present invention, which relate to communications technology field and are invented to improve the expandability for measuring the IPTV terminal. The method includes: obtaining disposition information of at least two measurement user terminals and a task to be measured; determining a target measurement user terminal matching with the task to be measured, according to the task to be measured and the disposition information; sending down the task to be measured to the target measurement user terminal to make the target measurement user terminal can use the task to be measured to perform measurement for the IPTV terminal corresponding to the target measurement user terminal. The embodiments of the present invention are mostly used for all kinds of IPTV terminal measurement.

Description

一种 IPTV终端的测试方法、 测试服务器及测试客户端 技术领域  Test method, test server and test client for IPTV terminal
本发明涉及通信技术领域, 尤其涉及一种 IPTV终端的测试方法、 测试服 务器及测试客户端。  The present invention relates to the field of communications technologies, and in particular, to a test method, a test server, and a test client for an IPTV terminal.
背景技术 Background technique
IPTV ( Internet Protocol Televi s ion , 因特网十办议电视) 业务是指基 于 IP ( Internet Protocol , 因特网协议)协议的电视广播服务。 目前, 一般 使用端到端的方法测试 IPTV终端呈现业务的质量。 在测试过程中, 首先, 测 试客户端运行测试服务器下发的测试脚本, 并远程控制 IPTV终端进行操作, 使该 IPTV终端获取测试脚本的执行结果; 同时, 测试服务器通过视频采集卡 由所述 IPTV终端获取该执行结果, 并将该结果保存成图像发送至所述测试客 户端, 由所述测试客户端将该图像与本地参考图像进行对比, 获取 IPTV终端 呈现业务的质量。  The IPTV (Internet Protocol Televiation) service refers to a television broadcasting service based on the IP (Internet Protocol) protocol. Currently, an end-to-end method is generally used to test the quality of IPTV terminal presentation services. In the test process, first, the test client runs the test script sent by the test server, and remotely controls the IPTV terminal to operate, so that the IPTV terminal obtains the execution result of the test script; meanwhile, the test server passes the video capture card from the IPTV. The terminal obtains the execution result, and saves the result as an image and sends the image to the test client. The test client compares the image with the local reference image to obtain the quality of the IPTV terminal presentation service.
在实现上述 IPTV终端呈现业务测试的过程中, 发明人发现现有技术中至 少存在如下问题:测试服务器需要针对不同的 IPTV终端开发不同的测试脚本, 不能实现多种类型 IPTV终端的测试。  In the process of implementing the above-mentioned IPTV terminal presentation service test, the inventors found that at least the following problems exist in the prior art: the test server needs to develop different test scripts for different IPTV terminals, and cannot test various types of IPTV terminals.
发明内容 Summary of the invention
本发明实施例提供一种 IPTV终端的测试方法、测试服务器及测试客户端, 提高了对 IPTV终端进行测试时的可扩展性。  The embodiment of the invention provides a test method, a test server and a test client of the IPTV terminal, which improves the scalability of testing the IPTV terminal.
本发明实施例采用如下技术方案:  The embodiment of the invention adopts the following technical solutions:
一种 IPTV终端的测试方法, 包括:  A test method for an IPTV terminal, including:
获取至少两个测试客户端的配置信息以及待测试任务;  Obtain configuration information of at least two test clients and tasks to be tested;
根据所述待测试任务以及所述配置信息确定与所述待测试任务相匹配的 目标测试客户端;  Determining, according to the task to be tested and the configuration information, a target test client that matches the task to be tested;
向所述目标测试客户端下发所述待测试任务, 使得所述目标测试客户端 利用所述待测试任务对与所述目标测试客户端对应的 IPTV终端进行测试。  And sending the to-be-tested task to the target test client, so that the target test client tests the IPTV terminal corresponding to the target test client by using the to-be-tested task.
一种 IPTV终端的测试方法, 包括: 向测试服务器发送配置信息; A test method for an IPTV terminal, comprising: Send configuration information to the test server;
接收所述测试服务器下发的与测试客户端自身相匹配的待测试任务, 其 中所述待测试任务是由所述待测试服务器根据所述待测试任务和所述配置信 息分配的;  Receiving, by the test server, a task to be tested that matches the test client itself, where the task to be tested is allocated by the server to be tested according to the task to be tested and the configuration information;
执行所述待测试任务, 对与所述测试客户端自身对应的 IPTV终端进行测 试。  The task to be tested is executed, and the IPTV terminal corresponding to the test client itself is tested.
一种测试服务器, 包括:  A test server that includes:
获取单元, 用于获取至少两个测试客户端的配置信息以及待测试任务; 确定单元, 用于根据所述待测试任务以及所述配置信息确定与所述待测 试任务相匹配的目标测试客户端;  An obtaining unit, configured to acquire configuration information of at least two test clients and a task to be tested; and a determining unit, configured to determine, according to the to-be-tested task and the configuration information, a target test client that matches the to-be-tested task;
任务下发单元, 用于向所述目标测试客户端下发所述待测试任务, 使得 所述目标测试客户端利用所述待测试任务对与所述目标测试客户端对应的 a task sending unit, configured to send the to-be-tested task to the target test client, so that the target test client uses the to-be-tested task pair corresponding to the target test client
IPTV终端进行测试。 The IPTV terminal is tested.
一种测试客户端, 包括:  A test client that includes:
信息发送单元, 用于向测试服务器发送配置信息;  An information sending unit, configured to send configuration information to the test server;
任务接收单元, 用于接收所述测试服务器下发的与所述测试客户端自身 相匹配的待测试任务, 其中所述待测试任务是由所述待测试服务器根据所述 待测试任务和所述配置信息分配的;  a task receiving unit, configured to receive a task to be tested that is sent by the test server and that matches the test client itself, where the task to be tested is determined by the server to be tested according to the task to be tested and Configuration information distribution;
任务执行单元, 用于执行所述待测试任务, 对与所述测试客户端自身对 应的 IPTV终端进行测试。  The task execution unit is configured to execute the to-be-tested task, and test the IPTV terminal corresponding to the test client itself.
本发明实施例提供的一种 IPTV终端的测试方法、 测试服务器及测试客户 端, 获取至少两个测试客户端的配置信息以及待测试任务; 根据所述待测试 任务以及所述配置信息确定与所述待测试任务相匹配的目标测试客户端; 向 所述目标测试客户端下发所述待测试任务, 使得所述目标测试客户端利用所 述待测试任务对与所述目标测试客户端对应的 IPTV终端进行测试。 由于测试 服务器可以由多个测试客户端中获取目标测试客户端, 以完成针对 IPTV终端 的待测试任务, 因此, 利用本发明实施例的技术方案, 测试服务器可以通过 扩展测试客户端的数量来完成对多种类型的 IPTV终端的测试,提高了对 IPTV 终端测试的可扩展性。 The test method, the test server, and the test client of the IPTV terminal provided by the embodiment of the present invention obtain configuration information of at least two test clients and a task to be tested; and determine and describe according to the task to be tested and the configuration information. a target test client that matches the task to be tested; and the task to be tested is sent to the target test client, so that the target test client uses the IPTV corresponding to the target test client by using the task to be tested The terminal is tested. Since the test server can obtain the target test client from the plurality of test clients to complete the task to be tested for the IPTV terminal, the test server can pass the technical solution of the embodiment of the present invention. Extending the number of test clients to test multiple types of IPTV terminals and improving the scalability of IPTV terminal testing.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例描述中所 需要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图仅仅是本 发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的 前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following drawings will be briefly described, and the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings.
图 1为本发明实施例一 IPTV终端的测试方法的流程图;  1 is a flowchart of a method for testing an IPTV terminal according to an embodiment of the present invention;
图 2为本发明实施例二 IPTV终端的测试方法的流程图;  2 is a flowchart of a method for testing an IPTV terminal according to Embodiment 2 of the present invention;
图 3为本发明实施例三 IPTV终端的测试方法的流程图;  3 is a flowchart of a method for testing an IPTV terminal according to Embodiment 3 of the present invention;
图 4 为本发明实施例四测试服务器的示意图;  4 is a schematic diagram of a test server according to Embodiment 4 of the present invention;
图 5 为本发明实施例四测试服务器的又一示意图;  FIG. 5 is still another schematic diagram of a test server according to Embodiment 4 of the present invention; FIG.
图 6 为本发明实施例四测试服务器的再一示意图;  FIG. 6 is still another schematic diagram of a test server according to Embodiment 4 of the present invention; FIG.
图 7 为本发明实施例五测试客户端的示意图;  7 is a schematic diagram of testing a client according to Embodiment 5 of the present invention;
图 8 为本发明实施例五中的任务执行单元的示意图;  8 is a schematic diagram of a task execution unit in Embodiment 5 of the present invention;
图 9为本发明实施例五测试客户端的又一示意图;  FIG. 9 is still another schematic diagram of testing a client according to Embodiment 5 of the present invention; FIG.
图 10为本发明实施例 IPTV终端测试系统的示意图。  FIG. 10 is a schematic diagram of an IPTV terminal testing system according to an embodiment of the present invention.
具体实施方式 detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
如图 1所示, 本发明实施例一提供了一种 IPTV终端的测试方法, 包括如 下步骤:  As shown in FIG. 1, a first embodiment of the present invention provides a test method for an IPTV terminal, including the following steps:
步骤 11、 测试服务器获取至少两个测试客户端的配置信息以及待测试任 务。  Step 11. The test server obtains configuration information of at least two test clients and a task to be tested.
在本实施例中, 测试服务器获取测试客户端的配置信息的方式可以为: 首先, 所述测试服务器向所述测试客户端发送地址通知消息, 在所述地址通 知消息中包括测试服务器的地址信息; 然后, 所述测试服务器接收所述测试 客户端根据所述地址通知消息发送的配置信息。 In this embodiment, the manner in which the test server obtains the configuration information of the test client may be: First, the test server sends an address notification message to the test client, where the address notification message includes address information of the test server. Then, the test server receives the test client and sends the message according to the address notification message. Configuration information.
其中, 所述配置信息至少包括测试客户端的 CPU参数、 内存信息、 测试 客户端的地址信息等。  The configuration information includes at least a CPU parameter of the test client, memory information, and address information of the test client.
测试人员可以向所述测试服务器下发待测试任务, 具体的, 所述测试人 员可以根据对 IPTV终端的测试需求设计待测试任务并下发给测试服务器。  The tester can send a test task to the test server. Specifically, the tester can design a task to be tested according to the test requirement of the IPTV terminal and send it to the test server.
步骤 12、 测试服务器根据所述待测试任务以及所述配置信息确定与所述 待测试任务相匹配的目标测试客户端。  Step 12: The test server determines, according to the task to be tested and the configuration information, a target test client that matches the task to be tested.
其中, 所述测试服务器解析所述待测试任务, 获取所述待测试任务的类 型; 然后, 将所述待测试任务的类型与所述配置信息进行比较, 获取与所述 待测试任务的类型相匹配的目标配置信息; 进而将具有所述目标配置信息的 测试客户端确定为目标测试客户端。  The test server parses the task to be tested, and obtains the type of the task to be tested. Then, the type of the task to be tested is compared with the configuration information, and the type of the task to be tested is obtained. Matching target configuration information; and further determining the test client having the target configuration information as the target test client.
步骤 13、 测试服务器向所述目标测试客户端下发所述待测试任务, 使得 所述目标测试客户端利用所述待测试任务对与所述目标测试客户端对应的 IPTV终端进行测试。  Step 13: The test server sends the to-be-tested task to the target test client, so that the target test client uses the to-be-tested task to test the IPTV terminal corresponding to the target test client.
由于测试服务器可以由多个测试客户端中获取目标测试客户端, 以完成 针对 IPTV终端的待测试任务, 因此, 利用本发明实施例的技术方案, 测试服 务器可以通过扩展测试客户端的数量来完成对多种类型的 IPTV终端的测试, 提高了对 IPTV终端测试的可扩展性。  Since the test server can obtain the target test client from the plurality of test clients to complete the task to be tested for the IPTV terminal, the test server can complete the test by expanding the number of test clients by using the technical solution of the embodiment of the present invention. The testing of multiple types of IPTV terminals has improved the scalability of IPTV terminal testing.
如图 2所示, 本发明实施例二提供了一种 IPTV终端的测试方法, 包括如 下步骤:  As shown in FIG. 2, the second embodiment of the present invention provides a testing method for an IPTV terminal, including the following steps:
步骤 21、 测试客户端向测试服务器发送配置信息。  Step 21: The test client sends configuration information to the test server.
在本实施例中, 所述测试客户端接收所述测试服务器发送的地址通知消 息, 其中, 所述地址通知消息包括测试服务器的地址信息, 然后所述测试客 户端根据所述地址通知消息向所述测试服务器发送配置信息。 其中, 所述配 置信息至少包括测试客户端的 CPU参数、 内存信息、 测试客户端的地址信息 等。 In this embodiment, the test client receives the address notification message sent by the test server, where the address notification message includes address information of the test server, and then the test client sends a message according to the address notification message. The test server sends configuration information. The configuration information includes at least a CPU parameter of the test client, memory information, and address information of the test client. Wait.
步骤 22、 测试客户端接收所述测试服务器下发的与所述测试客户端自身 相匹配的待测试任务, 其中所述待测试任务是由所述待测试服务器根据所述 待测试任务和所述配置信息分配的。  Step 22: The test client receives the task to be tested that is sent by the test server and matches the test client itself, where the task to be tested is determined by the server to be tested according to the task to be tested and the Configuration information is assigned.
其中, 所述待测试任务中包括描述文件, 测试套文件和截屏软件包文件, 所述测试套文件包括测试用例文件、 参考图像文件以及键值映射文件。 其中, 所述描述文件描述了文件类型、 文件名和文件路径; 所述测试用例文件用于 使所述测试客户端执行待测试任务; 所述键值映射文件用于使所述测试客户 端获取终端键值映射表; 所述截屏软件包文件和所述参考图像用于使所述测 试客户端获取测试结果, 具体的, 所述测试客户端利用所述截屏软件包文件 由所述 IPTV终端获取截屏图像,并将所述截屏图像和所述参考图像进行比较, 获取测试结果。  The task to be tested includes a description file, a test suite file, and a screen capture software package file, and the test suite file includes a test case file, a reference image file, and a key value mapping file. The description file describes a file type, a file name, and a file path. The test case file is used to enable the test client to execute a task to be tested. The key value mapping file is used to enable the test client to acquire a terminal. a key value mapping table; the screen capture software package file and the reference image are used to enable the test client to obtain a test result. Specifically, the test client obtains a screen capture by the IPTV terminal by using the screen capture software package file. And comparing the screen shot image with the reference image to obtain a test result.
步骤 23、 测试客户端执行所述待测试任务, 对与所述测试客户端自身对 应的 IPTV终端进行测试。 由于测试服务器可以由多个测试客户端中获取目标 测试客户端, 以完成针对 IPTV终端的待测试任务, 因此, 利用本发明实施例 的技术方案, 测试服务器可以通过扩展测试客户端的数量来完成对多种类型 的 IPTV终端的测试, 提高了对 IPTV终端测试的可扩展性。  Step 23: The test client performs the task to be tested, and tests the IPTV terminal corresponding to the test client itself. Since the test server can obtain the target test client from the plurality of test clients to complete the task to be tested for the IPTV terminal, the test server can complete the test by expanding the number of test clients by using the technical solution of the embodiment of the present invention. The testing of multiple types of IPTV terminals has improved the scalability of IPTV terminal testing.
如图 3所示, 本发明实施例三提供了一种 IPTV终端的测试方法, 包括如 下步骤:  As shown in FIG. 3, Embodiment 3 of the present invention provides a testing method for an IPTV terminal, including the following steps:
步骤 31、 测试服务器向测试客户端发送地址通知消息, 在所述地址通知 消息中包括测试服务器的地址信息。  Step 31: The test server sends an address notification message to the test client, where the address information of the test server is included in the address notification message.
在本实施例中, 所述测试客户端首先进行初始化操作。 在初始化之后, 测试客户端读取自身的配置信息, 拉起监听, 监听测试服务器侧发送的消息。 此时, 所述测试服务器向所述测试客户端发送地址通知消息, 在所述地址通 知消息中包括测试服务器的地址信息, 便于所述测试客户端根据所述地址信 息将其自身配置信息发送给所述测试服务器。 具体的, 所述地址通知消息可 以以组播承载, 其 TTL (Time To L ive, 生存时间)等于 1。 其中, 所述配置信 息至少包括测试客户端的 CPU参数、 内存信息、 测试客户端的地址信息等。 步骤 32、 测试客户端接收所述地址通知消息, 并根据所述地址信息向测 试服务器发送其自身配置信息。 In this embodiment, the test client first performs an initialization operation. After initialization, the test client reads its own configuration information, pulls up the listener, and listens for messages sent by the test server. At this time, the test server sends an address notification message to the test client, and the address notification message includes the address information of the test server, so that the test client sends the configuration information to the test client according to the address information. The test server. Specifically, the address notification message may be a multicast bearer, and its TTL (Time To Live) is equal to 1. Wherein, the configuration letter The information includes at least the test client's CPU parameters, memory information, test client address information, and so on. Step 32: The test client receives the address notification message, and sends its own configuration information to the test server according to the address information.
步骤 33、 测试服务器获取至少两个测试客户端的配置信息以及待测试任 务。  Step 33: The test server obtains configuration information of at least two test clients and a task to be tested.
此步骤参照实施例一中的步骤 1 1。  This step is referred to step 1 1 in the first embodiment.
步骤 34、 测试服务器根据所述待测试任务以及所述配置信息确定与所述 待测试任务相匹配的目标测试客户端。  Step 34: The test server determines, according to the task to be tested and the configuration information, a target test client that matches the task to be tested.
此步骤参照实施例一中的步骤 12。  This step is referred to step 12 in the first embodiment.
步骤 35、 测试服务器从所述目标测试客户端中选择用于执行该测试任务 的测试客户端。  Step 35: The test server selects a test client for performing the test task from the target test client.
在本实施例中, 为了使所述测试服务器准确地将所述待测试任务下发到 目标客户端, 所述测试服务器首先判断所述目标测试客户端是否处于可用状 态, 若所述目标测试客户端不处于可用状态, 那么取消下发所述待测试任务; 若所述目标测试客户端处于可用状态, 那么进一步判断所述可用目标测试客 户端是否处于空闲状态。  In this embodiment, in order for the test server to accurately deliver the task to be tested to the target client, the test server first determines whether the target test client is in an available state, if the target test client If the terminal is not in the available state, the task to be tested is cancelled; if the target test client is in the available state, it is further determined whether the available target test client is in an idle state.
具体的, 所述测试服务器可以周期性地向所述目标测试客户端发送第一 状态查询消息, 当接收到目标测试客户端的第一状态响应消息时, 将所述目 标测试客户端确定为处于可用状态的可用目标测试客户端。 其中, 所述周期 可以由运营商确定。  Specifically, the test server may periodically send a first status query message to the target test client, and when the first status response message of the target test client is received, determine, that the target test client is available. The available target test client for the status. The period can be determined by the operator.
进一步的, 为了使所述测试服务器成功地将待测试任务下发给所述可用 目标测试客户端, 所述测试服务器确定所述目标测试客户端处于可用状态之 后, 还要确定所述可用目标测试客户端是否处于空闲状态, 若所述可用目标 测试客户端不处于空闲状态, 那么取消所述待测试任务, 若所述可用目标测 试客户端处于空闲状态, 那么向所述处于空闲状态的可用目标测试客户端下 发所述待测试任务。  Further, in order to enable the test server to successfully send the task to be tested to the available target test client, after the test server determines that the target test client is in an available state, determine the available target test. Whether the client is in an idle state, if the available target test client is not in an idle state, canceling the task to be tested, and if the available target test client is in an idle state, then the available target in the idle state The test client delivers the task to be tested.
具体的, 所述测试服务器可以周期性地向所述可用目标测试客户端发送 第二状态查询消息, 当接收到所述可用目标测试客户端的第二状态响应消息 时, 将所述可用目标测试客户端确定为处于空闲状态的可用目标测试客户端。 其中, 所述周期可以由运营商确定。 Specifically, the test server may periodically send the available target test client. The second status query message determines, when the second status response message of the available target test client is received, the available target test client as an available target test client in an idle state. The period may be determined by an operator.
其中, 所述第一状态查询消息和所述第二状态查询消息可以为同一个状 态查询消息, 所述第一状态响应消息和所述第二状态响应消息也可以为同一 个状态响应消息。  The first status query message and the second status query message may be the same status query message, and the first status response message and the second status response message may also be the same status response message.
步骤 36、 测试服务器向所述处于空闲状态的可用目标测试客户端下发所 述待测试任务。  Step 36: The test server delivers the to-be-tested task to the available target test client in the idle state.
所述测试服务器向处于空闲状态的可用目标测试客户端下发所述待测试 任务之后, 还可标识与所述测试客户端相对应的 IPTV终端类型。  After the test server delivers the to-be-tested task to the available target test client in an idle state, the test server may also identify the type of the IPTV terminal corresponding to the test client.
步骤 37、 测试客户端执行所述待测试任务, 并获取测试结果。  Step 37: The test client executes the task to be tested, and obtains a test result.
在本实施例中,所述测试客户端首先解析所述待测试任务,并向所述 IPTV 终端下发所述截屏软件包文件以及向所述 IPTV终端的硬件盒加载终端键值映 射表。 其中, 所述测试客户端向所述 IPTV终端的硬件盒加载终端键值映射表 时, 先读取所述描述文件, 由所述描述文件获取所述键值映射文件的路径; 进一步的, 由所述路径以及所述键值映射文件获取终端键值映射表, 并向所 述 IPTV终端的硬件盒加载所述终端键值映射表。  In this embodiment, the test client first parses the task to be tested, and delivers the screen capture software package file to the IPTV terminal and loads a terminal key value mapping table to the hardware box of the IPTV terminal. When the test client loads the terminal key value mapping table into the hardware box of the IPTV terminal, the description file is first read, and the path of the key value mapping file is obtained by the description file; further, The path and the key value mapping file acquire a terminal key value mapping table, and load the terminal key value mapping table to a hardware box of the IPTV terminal.
然后, 所述测试客户端解析所述测试用例文件, 向所述 IPTV终端的硬件 盒下发脚本执行请求;接着,所述 IPTV终端的硬件盒根据所述脚本执行请求, 通过预置的执行器解析由所述测试用例文件获取的脚本文件, 并获取终端键 值, 进而利用所述终端键值以及所述终端键值映射表控制所述 IPTV终端进行 操作; 所述 IPTV终端利用所述截屏软件包文件获取操作过程中的截屏图像。  Then, the test client parses the test case file, and sends a script execution request to the hardware box of the IPTV terminal; then, the hardware box of the IPTV terminal passes the preset actuator according to the script execution request. Parsing a script file obtained by the test case file, and acquiring a terminal key value, and then controlling the IPTV terminal to operate by using the terminal key value and the terminal key value mapping table; the IPTV terminal using the screen capture software The package file captures the screenshot image during the operation.
由于所述测试客户端无需通过其他测试设备(例如, 视频采集卡) 获取 截屏图像, 降低了对 IPTV终端测试的成本。  Since the test client does not need to obtain screenshot images through other test devices (for example, video capture cards), the cost of testing the IPTV terminal is reduced.
最后, 所述测试客户端将所述截屏图像与所述参考图像文件进行比较, 获得测试结果。  Finally, the test client compares the screen capture image with the reference image file to obtain a test result.
其中, 所述测试客户端可以通过所述截屏图像与所述参考图像的相同程 度, 获取相应的测试结果。 The test client may pass the same process as the reference image by the screen capture image. Degree, get the corresponding test results.
步骤 38、 测试客户端将所述测试结果发送给测试服务器。  Step 38: The test client sends the test result to the test server.
为了便于运营商对所述测试结果进行分析, 提高 IPTV终端呈现质量, 测 试客户端可以将所述测试结果发送给测试服务器。  In order to facilitate the operator to analyze the test result and improve the presentation quality of the IPTV terminal, the test client can send the test result to the test server.
由于测试服务器可以由多个测试客户端中获取目标测试客户端以完成针 对 IPTV终端的待测试任务, 并且每个目标测试客户端无需人工操作就可以自 动执行待测试任务, 因此, 利用本发明实施例的技术方案, 测试服务器可以 通过扩展测试客户端的数量来完成对多种类型的 IPTV终端的测试, 提高了对 IPTV终端测试的可扩展性, 并且提高了 IPTV终端测试的效率。  Since the test server can obtain the target test client from the plurality of test clients to complete the task to be tested for the IPTV terminal, and each target test client can automatically perform the task to be tested without manual operation, therefore, the implementation of the present invention is implemented. In the technical solution of the example, the test server can complete testing of various types of IPTV terminals by expanding the number of test clients, improve the scalability of testing the IPTV terminal, and improve the efficiency of the IPTV terminal test.
如图 4 所示, 本发明实施例四提供了一种测试服务器, 包括: 获取单元 41 , 用于获取至少两个测试客户端的配置信息以及待测试任务; 确定单元 42 , 用于根据所述待测试任务以及所述配置信息确定与所述待测试任务相匹配的 目标测试客户端; 任务下发单元 43 , 用于向所述目标测试客户端下发所述待 测试任务, 使得所述目标测试客户端利用所述待测试任务对与所述目标测试 客户端对应的 IPTV终端进行测试。  As shown in FIG. 4, a fourth embodiment of the present invention provides a test server, including: an obtaining unit 41, configured to acquire configuration information of at least two test clients and a task to be tested; and a determining unit 42 The test task and the configuration information determine a target test client that matches the to-be-tested task; the task delivery unit 43 is configured to deliver the to-be-tested task to the target test client, so that the target test is performed. The client uses the to-be-tested task to test the IPTV terminal corresponding to the target test client.
其中, 所述获取单元 41包括: 消息发送模块, 用于向所述测试客户端发 送地址通知消息, 在所述地址通知消息中包括测试服务器的地址信息, 以使 所述测试客户端根据所述地址信息发送配置信息; 信息接收模块, 用于接收 所述测试客户端根据所述地址通知消息发送的配置信息; 任务获取模块, 用 于获取待测试任务。  The obtaining unit 41 includes: a message sending module, configured to send an address notification message to the test client, where the address notification message includes address information of the test server, so that the test client is configured according to the And the information receiving module is configured to receive the configuration information that is sent by the test client according to the address notification message, and the task obtaining module is configured to acquire the task to be tested.
所述确定单元 42包括: 比较模块, 用于将所述待测试任务的类型与所述 配置信息进行比较; 信息获取模块, 用于获取与所述待测试任务的类型相匹 配的目标配置信息; 确定模块, 用于将具有所述目标配置信息的测试客户端 确定为目标测试客户端。  The determining unit 42 includes: a comparison module, configured to compare the type of the task to be tested with the configuration information; and an information obtaining module, configured to acquire target configuration information that matches a type of the task to be tested; a determining module, configured to determine a test client having the target configuration information as a target test client.
为了使所述测试服务器准确地向所述目标测试客户端下发待测试任务, 如图 5所示, 在图 4的基石出上, 所述测试服务器还包括: 第一确定单元 51 , 用于从所述目标测试客户端中确定处于可用状态的可用目标测试客户端; 第 二确定单元 52 , 用于从所述可用目标测试客户端中确定处于空闲状态的可用 目标测试客户端。 此时, 所述任务下发单元 43具体用于向所述处于空闲状态 的可用目标测试客户端下发所述待测试任务。 In order to enable the test server to accurately send a test task to the target test client, as shown in FIG. 5, on the basis of the core of FIG. 4, the test server further includes: a first determining unit 51, configured to: Determining an available target test client in an available state from the target test client; The determining unit 52 is configured to determine, from the available target test client, an available target test client that is in an idle state. At this time, the task sending unit 43 is specifically configured to deliver the to-be-tested task to the available target test client in the idle state.
具体的, 所述第一确定单元 51包括: 第一消息发送模块, 用于向所述目 标测试客户端发送第一状态查询消息; 第一确定模块, 用于当接收到目标测 试客户端的第一状态响应消息时, 将所述目标测试客户端确定为处于可用状 态的可用目标测试客户端。  Specifically, the first determining unit 51 includes: a first message sending module, configured to send a first state query message to the target test client; and a first determining module, configured to receive the first target test client When the status response message is received, the target test client is determined to be an available target test client in an available state.
所述第二确定单元 52包括: 第二消息发送模块, 用于向所述可用目标测 试客户端发送第二状态查询消息; 第二确定模块, 用于当接收到所述可用目 标测试客户端的第二状态响应消息时, 将所述可用目标测试客户端确定为处 于空闲状态的可用目标测试客户端。  The second determining unit 52 includes: a second message sending module, configured to send a second state query message to the available target test client; and a second determining module, configured to receive the first target test client When the two status response message is received, the available target test client is determined to be an available target test client in an idle state.
其中, 所述第一状态查询消息和所述第二状态查询消息可以为同一个状 态查询消息, 所述第一状态响应消息和所述第二状态响应消息也可以为同一 个状态响应消息。  The first status query message and the second status query message may be the same status query message, and the first status response message and the second status response message may also be the same status response message.
如图 6所示, 在图 5的基石出上, 所述测试服务器还包括: 接收单元 61 , 用于接收所述目标测试客户端的测试结果。  As shown in FIG. 6, on the basis of the core of FIG. 5, the test server further includes: a receiving unit 61, configured to receive a test result of the target test client.
其中, 所述测试服务器的工作原理可以参照方法实施例中的描述。  The working principle of the test server can be referred to the description in the method embodiment.
由于测试服务器可以由多个测试客户端中获取目标测试客户端, 以完成 针对 IPTV终端的待测试任务, 因此, 利用本发明实施例的测试服务器, 可以 通过扩展测试客户端的数量来完成对多种类型的 IPTV终端的测试, 提高了对 IPTV终端测试的可扩展性。  Since the test server can obtain the target test client from the plurality of test clients to complete the task to be tested for the IPTV terminal, the test server of the embodiment of the present invention can complete the plurality of test clients by expanding the number of test clients. Testing of types of IPTV terminals improves the scalability of IPTV terminal testing.
如图 7 所示, 本发明实施例五提供了一种测试客户端, 包括: 信息发送 单元 71 , 用于向测试服务器发送配置信息; 任务接收单元 72 , 用于接收所述 测试服务器下发的与所述测试客户端自身相匹配的待测试任务, 其中所述待 测试任务是由所述待测试服务器根据所述待测试任务和所述配置信息分配 的; 任务执行单元 73 , 用于执行所述待测试任务, 对与所述测试客户端自身 对应的 IPTV终端进行测试。 其中, 所述信息发送单元 71包括: 消息接收模块, 用于接收所述测试服 务器发送的地址通知消息, 在所述地址通知消息中包括测试服务器的地址信 息; 信息发送模块, 用于根据所述地址通知消息向所述测试服务器发送配置 信息。 As shown in FIG. 7, a fifth embodiment of the present invention provides a test client, including: an information sending unit 71, configured to send configuration information to a test server; and a task receiving unit 72, configured to receive the test server a task to be tested that matches the test client itself, wherein the task to be tested is allocated by the server to be tested according to the task to be tested and the configuration information; a task execution unit 73 is configured to execute The test task is described, and the IPTV terminal corresponding to the test client itself is tested. The information sending unit 71 includes: a message receiving module, configured to receive an address notification message sent by the test server, where the address notification message includes address information of a test server, and an information sending module, configured to The address notification message sends configuration information to the test server.
在本实施例中, 所述待测试任务中包括描述文件, 测试套文件和截屏软 件包文件, 所述测试套文件包括测试用例文件、 参考图像文件以及键值映射 文件。  In this embodiment, the task to be tested includes a description file, a test suite file, and a screen capture software package file, and the test suite file includes a test case file, a reference image file, and a key value mapping file.
具体的, 如图 8所示, 所述任务执行单元 73包括: 任务处理模块 731 , 用于解析所述待测试任务, 向所述 IPTV终端下发所述截屏软件包文件以及向 所述 IPTV终端的硬件盒加载终端键值映射表; 任务执行模块 732 , 用于解析 所述测试用例文件,向所述 IPTV终端的硬件盒下发脚本执行请求,由所述 IPTV 终端的硬件盒利用所述终端键值映射表控制所述 IPTV终端进行相应的操作, 并由所述 IPTV终端利用所述截屏软件包文件获取操作过程中的截屏图像; 结 果获取模块 733 , 用于由所述 IPTV终端获取所述截屏图像, 并将所述截屏图 像与所述参考图像文件进行比较, 获得测试结果。  Specifically, as shown in FIG. 8, the task execution unit 73 includes: a task processing module 731, configured to parse the task to be tested, and send the screen capture software package file to the IPTV terminal and to the IPTV terminal The hardware box loads the terminal key value mapping table; the task execution module 732 is configured to parse the test case file, and send a script execution request to the hardware box of the IPTV terminal, and the hardware box of the IPTV terminal utilizes the terminal The key value mapping table controls the IPTV terminal to perform a corresponding operation, and the IPTV terminal acquires the screen capture image during the operation process by using the screen capture software package file; the result obtaining module 733 is configured to acquire the Screen capture image, and comparing the screen capture image with the reference image file to obtain a test result.
其中, 所述任务处理模块 731 包括: 解析子模块, 用于解析所述待测试 任务; 下发子模块, 用于向所述 IPTV终端下发所述截屏软件包文件; 路径获 取子模块, 用于读取所述描述文件, 获取所述键值映射文件的映射路径; 加 载子模块, 用于由所述映射路径以及所述键值映射文件获取终端键值映射表, 向所述 IPTV终端的硬件盒加载所述终端键值映射表。  The task processing module 731 includes: a parsing sub-module, configured to parse the task to be tested; a sub-module, configured to deliver the screen capture software package file to the IPTV terminal; And the loading submodule is configured to acquire a terminal key value mapping table from the mapping path and the key value mapping file, to the IPTV terminal, to read the description file, and obtain a mapping path of the key value mapping file. The hardware box loads the terminal key value mapping table.
任务执行模块 732 包括: 解析子模块, 用于解析所述测试用例文件; 请 求下发子模块, 用于向所述 IPTV终端的硬件盒下发脚本执行请求; 键值获取 子模块, 用于所述硬件盒根据所述脚本执行请求, 通过预置的执行器解析由 所述测试用例文件获取的脚本文件, 并获取终端键值; 控制子模块, 用于利 用所述终端键值以及所述终端键值映射表控制所述 IPTV终端进行操作。  The task execution module 732 includes: a parsing sub-module for parsing the test case file; a requesting sub-module, configured to send a script execution request to the hardware box of the IPTV terminal; The hardware box parses the script file acquired by the test case file by a preset executor according to the script execution request, and acquires a terminal key value; the control submodule is configured to use the terminal key value and the terminal The key value mapping table controls the IPTV terminal to operate.
如图 9所示, 在图 7的基础上, 所述测试客户端还包括: 结果发送单元 91 , 向所述测试服务器发送所述测试结果。 其中, 所述测试客户端的工作原理可以参照方法实施例中的描述。 As shown in FIG. 9, on the basis of FIG. 7, the test client further includes: a result sending unit 91, and sending the test result to the test server. The working principle of the test client can be referred to the description in the method embodiment.
由于测试服务器可以由多个测试客户端中获取目标测试客户端以完成针 对 IPTV终端的待测试任务, 并且每个目标测试客户端无需人工操作就可以自 动执行待测试任务, 因此, 利用本发明实施例的测试客户端, 提高了对 IPTV 终端测试的可扩展性, 并且提高了 IPTV终端测试的效率。  Since the test server can obtain the target test client from the plurality of test clients to complete the task to be tested for the IPTV terminal, and each target test client can automatically perform the task to be tested without manual operation, therefore, the implementation of the present invention is implemented. The test client of the example improves the scalability of IPTV terminal testing and improves the efficiency of IPTV terminal testing.
另外, 图 10显示了具体应用中 IPTV终端测试系统的示意图, 该系统包 括业务系统 101、 测试服务器 102、 测试客户端 103、 IPTV终端 104以及 IPTV 终端的硬件盒 105。  In addition, FIG. 10 shows a schematic diagram of an IPTV terminal test system in a specific application, which includes a service system 101, a test server 102, a test client 103, an IPTV terminal 104, and a hardware box 105 of the IPTV terminal.
其中, 所述 IPTV终端 104用于向所述业务系统 101请求 IPTV业务, 所 述业务系统 101和所述 IPTV终端 104交互完成 IPTV终端呈现业务; 所述测 试服务器 102用于管理和监测所述测试客户端 103 , 并向所述测试客户端 103 下发待测试任务; 所述测试客户端 103 , 用于接收并执行待测试任务, 并将测 试结果上报给测试服务器 102; 所述 IPTV终端的硬件盒 105用于接收所述测 试客户端 103的任务执行指令, 控制所述 IPTV终端 104进行操作以完成待测 试任务。  The IPTV terminal 104 is configured to request an IPTV service from the service system 101, where the service system 101 and the IPTV terminal 104 mutually complete an IPTV terminal presentation service; the test server 102 is configured to manage and monitor the test. The client 103 sends a test task to the test client 103. The test client 103 is configured to receive and execute a task to be tested, and report the test result to the test server 102. The hardware of the IPTV terminal The box 105 is configured to receive a task execution instruction of the test client 103, and control the IPTV terminal 104 to perform operations to complete a task to be tested.
所述测试服务器 102可以为图 4-图 6任一所述的测试服务器, 所述测试 客户端 103可以为图 7-图 9任一所述的测试客户端。  The test server 102 can be the test server described in any of FIG. 4 to FIG. 6, and the test client 103 can be the test client described in any of FIGS. 7-9.
综上所述, 测试服务器获取至少两个测试客户端的配置信息以及待测试 任务, 并根据所述待测试任务以及所述配置信息确定与所述待测试任务相匹 配的目标测试客户端, 进而向所述目标测试客户端下发所述待测试任务, 使 得所述目标测试客户端利用所述待测试任务对与所述目标测试客户端对应的 IPTV终端进行测试。 因此, 利用本发明实施例的技术方案, 提高了 IPTV终端 测试的可扩展性。  In summary, the test server obtains configuration information of at least two test clients and a task to be tested, and determines a target test client that matches the task to be tested according to the task to be tested and the configuration information, and further The target test client delivers the to-be-tested task, so that the target test client uses the to-be-tested task to test the IPTV terminal corresponding to the target test client. Therefore, the scalability of the IPTV terminal test is improved by using the technical solution of the embodiment of the present invention.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应以所述权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims

权利要求 书 Claim
1、 一种 IPTV终端的测试方法, 其特征在于, 包括:  A test method for an IPTV terminal, characterized in that it comprises:
获取至少两个测试客户端的配置信息以及待测试任务;  Obtain configuration information of at least two test clients and tasks to be tested;
根据所述待测试任务以及所述配置信息确定与所述待测试任务相匹配的目 标测试客户端;  Determining, according to the task to be tested and the configuration information, a target test client that matches the task to be tested;
向所述目标测试客户端下发所述待测试任务, 使得所述目标测试客户端利 用所述待测试任务对与所述目标测试客户端对应的 IPTV终端进行测试。  And sending the to-be-tested task to the target test client, so that the target test client uses the to-be-tested task to test the IPTV terminal corresponding to the target test client.
2、 根据权利要求 1所述的方法, 其特征在于, 所述获取至少两个测试客户 端的配置信息包括:  2. The method according to claim 1, wherein the obtaining configuration information of the at least two test clients comprises:
向所述测试客户端发送地址通知消息, 在所述地址通知消息中包括测试服 务器的地址信息;  Sending an address notification message to the test client, where the address notification message includes address information of the test server;
接收所述测试客户端根据所述地址通知消息向所述测试服务器发送的配置 信息。  Receiving configuration information sent by the test client to the test server according to the address notification message.
3、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述待测试任务以 及所述配置信息确定与所述待测试任务相匹配的目标测试客户端包括:  The method according to claim 1, wherein the determining, by the task to be tested and the configuration information, that the target test client matches the task to be tested comprises:
将所述待测试任务的类型与所述配置信息进行比较, 获取与所述待测试任 务的类型相匹配的目标配置信息;  Comparing the type of the task to be tested with the configuration information, and acquiring target configuration information that matches the type of the task to be tested;
将具有所述目标配置信息的测试客户端确定为目标测试客户端。  A test client having the target configuration information is determined as a target test client.
4、 根据权利要求 1所述的方法, 其特征在于, 在向所述目标测试客户端下 发所述待测试任务之前, 所述方法还包括:  The method according to claim 1, wherein before the sending the task to be tested to the target test client, the method further includes:
从所述目标测试客户端中确定处于可用状态的可用目标测试客户端; 从所述可用目标测试客户端中确定处于空闲状态的可用目标测试客户端; 所述向所述目标测试客户端下发所述待测试任务包括:  Determining an available target test client in an available state from the target test client; determining an available target test client in an idle state from the available target test client; sending the test to the target test client The tasks to be tested include:
向所述处于空闲状态的可用目标测试客户端下发所述待测试任务。  The task to be tested is delivered to the available target test client in an idle state.
5、 根据权利要求 4所述的方法, 其特征在于, 所述从所述目标测试客户端 中确定处于可用状态的可用目标测试客户端包括:  The method according to claim 4, wherein the determining, from the target test client, that the available target test client is in an available state comprises:
向所述目标测试客户端发送第一状态查询消息, 当接收到目标测试客户端 的第一状态响应消息时, 将所述目标测试客户端确定为处于可用状态的可用目 标测试客户端; Sending a first status query message to the target test client, when receiving the target test client When the first status response message is received, the target test client is determined to be an available target test client in an available state;
所述从所述可用目标测试客户端中确定处于空闲状态的可用目标测试客户 端包括:  The available target test clients determined to be in an idle state from the available target test clients include:
向所述可用目标测试客户端发送第二状态查询消息, 当接收到所述可用目 标测试客户端的第二状态响应消息时, 将所述可用目标测试客户端确定为处于 空闲状态的可用目标测试客户端。  Sending a second status query message to the available target test client, and when receiving the second status response message of the available target test client, determining the available target test client as an available target test client in an idle state end.
6、 根据权利要求 1-5任一所述的方法, 其特征在于, 在向所述目标测试客 户端下发所述待测试任务后, 所述方法还包括:  The method according to any one of claims 1-5, wherein after the sending the task to be tested to the target test client, the method further includes:
接收所述目标测试客户端的测试结果。  Receiving test results of the target test client.
7、 一种 IPTV终端的测试方法, 其特征在于, 包括:  7. A test method for an IPTV terminal, characterized in that:
向测试服务器发送配置信息;  Send configuration information to the test server;
接收所述测试服务器下发的与测试客户端自身相匹配的待测试任务, 其中 所述待测试任务是由所述待测试服务器根据所述待测试任务和所述配置信息分 配的;  Receiving a task to be tested that is sent by the test server and matching the test client itself, where the task to be tested is allocated by the server to be tested according to the task to be tested and the configuration information;
执行所述待测试任务,对与所述测试客户端自身对应的 IPTV终端进行测试。  Performing the task to be tested, and testing the IPTV terminal corresponding to the test client itself.
8、 根据权利要求 7所述的方法, 其特征在于, 所述向测试服务器发送配置 信息包括:  8. The method according to claim 7, wherein the sending the configuration information to the test server comprises:
接收所述测试服务器发送的地址通知消息, 在所述地址通知消息中包括所 述测试服务器的地址信息;  Receiving an address notification message sent by the test server, where the address notification message includes address information of the test server;
根据所述地址通知消息向所述测试服务器发送配置信息。  Sending configuration information to the test server according to the address notification message.
9、 根据权利要求 7所述的方法, 其特征在于, 所述待测试任务中包括描述 文件, 测试套文件和截屏软件包文件, 所述测试套文件包括测试用例文件、 参 考图像文件以及键值映射文件;  The method according to claim 7, wherein the task to be tested includes a description file, a test suite file and a screen capture software package file, and the test suite file includes a test case file, a reference image file, and a key value. Mapping file
所述执行所述待测试任务, 对与所述测试客户端自身对应的 IPTV终端进行 测试包括:  The performing the test to be tested, and testing the IPTV terminal corresponding to the test client itself includes:
解析所述待测试任务, 向所述 IPTV终端下发所述截屏软件包文件以及向所 述 IPTV终端的硬件盒加载终端键值映射表; Parsing the to-be-tested task, and delivering the screenshot software package file to the IPTV terminal a hardware box loading terminal key value mapping table of the IPTV terminal;
解析所述测试用例文件, 向所述 IPTV终端的硬件盒下发脚本执行请求, 由 所述 IPTV终端的硬件盒利用所述终端键值映射表控制所述 IPTV终端进行相应 的操作, 并由所述 IPTV终端利用所述截屏软件包文件获取操作过程中的截屏图 像;  Parsing the test case file, and sending a script execution request to the hardware box of the IPTV terminal, wherein the hardware box of the IPTV terminal controls the IPTV terminal to perform a corresponding operation by using the terminal key value mapping table, and The IPTV terminal uses the screenshot software package file to acquire a screen capture image during the operation;
由所述 IPTV终端获取所述截屏图像, 并将所述截屏图像与所述参考图像文 件进行比较, 获得测试结果。  The screen capture image is acquired by the IPTV terminal, and the screen capture image is compared with the reference image file to obtain a test result.
10、 根据权利要求 9所述的方法, 其特征在于, 所述向所述 IPTV终端的硬 件盒加载终端键值映射表包括:  The method according to claim 9, wherein the loading a terminal key value mapping table to the hardware box of the IPTV terminal comprises:
读取所述描述文件, 获取所述键值映射文件的映射路径;  Reading the description file to obtain a mapping path of the key value mapping file;
由所述映射路径以及所述键值映射文件获取终端键值映射表, 向所述 IPTV 终端的硬件盒加载所述终端键值映射表。  Obtaining a terminal key value mapping table from the mapping path and the key value mapping file, and loading the terminal key value mapping table to a hardware box of the IPTV terminal.
11、 根据权利要求 9所述的方法, 其特征在于, 所述使得所述 IPTV终端的 硬件盒利用所述终端键值映射表控制所述 IPTV终端进行相应的操作包括:  The method according to claim 9, wherein the controlling the IPTV terminal to perform corresponding operations by using the terminal key mapping table by the hardware box of the IPTV terminal comprises:
所述硬件盒根据所述脚本执行请求, 通过预置的执行器解析由所述测试用 例文件获取的脚本文件, 并获取终端键值; 利用所述终端键值以及所述终端键 值映射表控制所述 IPTV终端进行操作。  The hardware box parses the script file acquired by the test case file by a preset executor according to the script execution request, and acquires a terminal key value; and controls the terminal key value and the terminal key value mapping table by using the terminal key value The IPTV terminal operates.
12、 根据权利要求 7-11任一所述的方法, 其特征在于, 所述方法还包括: 向所述测试服务器发送所述测试结果。  The method according to any one of claims 7-11, wherein the method further comprises: sending the test result to the test server.
13、 一种测试服务器, 其特征在于, 包括:  13. A test server, comprising:
获取单元, 用于获取至少两个测试客户端的配置信息以及待测试任务; 确定单元, 用于根据所述待测试任务以及所述配置信息确定与所述待测试 任务相匹配的目标测试客户端;  An obtaining unit, configured to acquire configuration information of at least two test clients and a task to be tested; and a determining unit, configured to determine, according to the to-be-tested task and the configuration information, a target test client that matches the to-be-tested task;
任务下发单元, 用于向所述目标测试客户端下发所述待测试任务, 使得所 述目标测试客户端利用所述待测试任务对与所述目标测试客户端对应的 IPTV终 端进行测试。  And a task sending unit, configured to send the to-be-tested task to the target test client, so that the target test client uses the to-be-tested task to test the IPTV terminal corresponding to the target test client.
14、根据权利要求 13所述的测试服务器, 其特征在于, 所述获取单元包括: 消息发送模块, 用于向所述测试客户端发送地址通知消息, 在所述地址通 知消息中包括测试服务器的地址信息; The test server according to claim 13, wherein the obtaining unit comprises: a message sending module, configured to send an address notification message to the test client, where the address notification message includes address information of the test server;
信息接收模块, 用于接收所述测试客户端根据所述地址通知消息向所述测 试服务器发送的配置信息;  An information receiving module, configured to receive configuration information that is sent by the test client to the test server according to the address notification message;
任务获取模块, 用于获取待测试任务。  A task acquisition module is used to obtain a task to be tested.
15、根据权利要求 1 3所述的测试服务器, 其特征在于, 所述确定单元包括: 比较模块, 用于将所述待测试任务的类型与所述配置信息进行比较; 信息获取模块, 用于获取与所述待测试任务的类型相匹配的目标配置信息; 确定模块, 用于将具有所述目标配置信息的测试客户端确定为目标测试客 户端。  The test server according to claim 13, wherein the determining unit comprises: a comparing module, configured to compare the type of the task to be tested with the configuration information; and an information acquiring module, configured to: Obtaining target configuration information that matches the type of the task to be tested; and determining a module, configured to determine the test client having the target configuration information as the target test client.
16、 根据权利要求 1 3所述的测试服务器, 其特征在于, 所述测试服务器还 包括:  The test server according to claim 13, wherein the test server further comprises:
第一确定单元, 用于从所述目标测试客户端中确定处于可用状态的可用目 标测试客户端;  a first determining unit, configured to determine, from the target test client, an available target test client that is in an available state;
第二确定单元, 用于从所述可用目标测试客户端中确定处于空闲状态的可 用目标测试客户端;  a second determining unit, configured to determine, from the available target test client, an available target test client that is in an idle state;
所述任务下发单元具体用于向所述处于空闲状态的可用目标测试客户端下 发所述待测试任务。  The task sending unit is specifically configured to deliver the to-be-tested task to the available target test client in an idle state.
17、 根据权利要求 16所述的方法, 其特征在于, 所述第一确定单元包括: 第一消息发送模块, 用于向所述目标测试客户端发送第一状态查询消息; 第一确定模块, 用于当接收到目标测试客户端的第一状态响应消息时, 将 所述目标测试客户端确定为处于可用状态的可用目标测试客户端。  The method of claim 16, wherein the first determining unit comprises: a first message sending module, configured to send a first state query message to the target test client; And when the first test response message of the target test client is received, the target test client is determined to be an available target test client in an available state.
18、 根据权利要求 16所述的测试服务器, 其特征在于, 所述第二确定单元 包括:  The test server according to claim 16, wherein the second determining unit comprises:
第二消息发送模块, 用于向所述可用目标测试客户端发送第二状态查询消 息;  a second message sending module, configured to send a second state query message to the available target test client;
第二确定模块, 用于当接收到所述可用目标测试客户端的第二状态响应消 息时, 将所述可用目标测试客户端确定为处于空闲状态的可用目标测试客户端。a second determining module, configured to: when receiving the second state response of the available target test client When available, the available target test client is determined to be an available target test client in an idle state.
19、 根据权利要求 13-18任一所述的测试服务器, 其特征在于, 还包括: 接收单元, 用于接收所述目标测试客户端的测试结果。 The test server according to any one of claims 13 to 18, further comprising: a receiving unit, configured to receive a test result of the target test client.
20、 一种测试客户端, 其特征在于, 包括:  20. A test client, comprising:
信息发送单元, 用于向测试服务器发送配置信息;  An information sending unit, configured to send configuration information to the test server;
任务接收单元, 用于接收所述测试服务器下发的与所述测试客户端自身相 匹配的待测试任务, 其中所述待测试任务是由所述待测试服务器根据所述待测 试任务和所述配置信息分配的;  a task receiving unit, configured to receive a task to be tested that is sent by the test server and that matches the test client itself, where the task to be tested is determined by the server to be tested according to the task to be tested and Configuration information distribution;
任务执行单元, 用于执行所述待测试任务, 对与所述测试客户端自身对应 的 IPTV终端进行测试。  The task execution unit is configured to perform the test to be tested, and test the IPTV terminal corresponding to the test client itself.
21、 根据权利要求 20所述的测试客户端, 其特征在于, 所述信息发送单元 包括:  The test client according to claim 20, wherein the information sending unit comprises:
消息接收模块, 用于接收所述测试服务器发送的地址通知消息, 在所述地 址通知消息中包括所述测试服务器的地址信息;  a message receiving module, configured to receive an address notification message sent by the test server, where the address information of the test server is included in the address notification message;
信息发送模块, 用于根据所述地址通知消息向所述测试服务器发送配置信 息。  And an information sending module, configured to send configuration information to the test server according to the address notification message.
22、 根据权利要求 20所述的测试客户端, 其特征在于, 所述待测试任务中 包括描述文件, 测试套文件和截屏软件包文件, 所述测试套文件包括测试用例 文件、 参考图像文件以及键值映射文件; 所述任务执行单元包括:  The test client according to claim 20, wherein the task to be tested includes a description file, a test suite file and a screen capture package file, and the test suite file includes a test case file, a reference image file, and Key value mapping file; the task execution unit includes:
任务处理模块, 用于解析所述待测试任务, 向所述 IPTV终端下发所述截屏 软件包文件以及向所述 IPTV终端的硬件盒加载终端键值映射表;  a task processing module, configured to parse the to-be-tested task, send the screen capture software package file to the IPTV terminal, and load a terminal key value mapping table to the hardware box of the IPTV terminal;
任务执行模块, 用于解析所述测试用例文件, 向所述 IPTV终端的硬件盒下 发脚本执行请求, 由所述 IPTV终端的硬件盒利用所述终端键值映射表控制所述 IPTV终端进行相应的操作,并由所述 IPTV终端利用所述截屏软件包文件获取操 作过程中的截屏图像;  a task execution module, configured to parse the test case file, and send a script execution request to a hardware box of the IPTV terminal, where the hardware box of the IPTV terminal uses the terminal key value mapping table to control the IPTV terminal to perform corresponding And the IPTV terminal uses the screenshot software package file to acquire a screen capture image during operation;
结果获取模块, 用于由所述 IPTV终端获取所述截屏图像, 并将所述截屏图 像与所述参考图像文件进行比较, 获得测试结果。 And a result obtaining module, configured to acquire the screen capture image by the IPTV terminal, and compare the screen capture image with the reference image file to obtain a test result.
23、 根据权利要求 22所述的测试客户端, 其特征在于, 所述任务处理模块 包括: The test client according to claim 22, wherein the task processing module comprises:
解析子模块, 用于解析所述待测试任务;  a parsing submodule, configured to parse the task to be tested;
下发子模块, 用于向所述 IPTV终端下发所述截屏软件包文件;  And the sending the sub-module, where the screenshot software package file is sent to the IPTV terminal;
路径获取子模块, 用于读取所述描述文件, 获取所述键值映射文件的映射 路径;  a path obtaining submodule, configured to read the description file, and obtain a mapping path of the key value mapping file;
加载子模块, 用于由所述映射路径以及所述键值映射文件获取终端键值映 射表, 向所述 IPTV终端的硬件盒加载所述终端键值映射表。  And loading a submodule, configured to acquire a terminal key value mapping table by the mapping path and the key value mapping file, and load the terminal key value mapping table to a hardware box of the IPTV terminal.
24、 根据权利要求 22所述的测试客户端, 其特征在于, 所述任务执行模块 包括:  The test client according to claim 22, wherein the task execution module comprises:
解析子模块, 用于解析所述测试用例文件;  a parsing submodule, configured to parse the test case file;
请求下发子模块, 用于向所述 IPTV终端的硬件盒下发脚本执行请求; 键值获取子模块, 用于所述硬件盒根据所述脚本执行请求, 通过预置的执 行器解析由所述测试用例文件获取的脚本文件, 并获取终端键值;  a requesting a sub-module, configured to send a script execution request to a hardware box of the IPTV terminal; a key-value obtaining sub-module, configured to parse, by the preset executor, the hardware box according to the script execution request Describe the script file obtained by the test case file, and obtain the terminal key value;
控制子模块, 用于利用所述终端键值以及所述终端键值映射表控制所述 a control submodule, configured to control, by using the terminal key value and the terminal key value mapping table
IPTV终端进行操作。 The IPTV terminal operates.
25、 根据权利要求 20-24所述的测试客户端, 其特征在于, 还包括: 结果发送单元, 用于向所述测试服务器发送所述测试结果。  The test client according to any one of claims 20-24, further comprising: a result sending unit, configured to send the test result to the test server.
PCT/CN2011/073091 2011-04-20 2011-04-20 Measurement method, measurement server and measurement user terminal of internet protocol television (iptv) terminal WO2011107058A2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2011/073091 WO2011107058A2 (en) 2011-04-20 2011-04-20 Measurement method, measurement server and measurement user terminal of internet protocol television (iptv) terminal
CN201180000257.1A CN102845021B (en) 2011-04-20 2011-04-20 Measurement method, measurement server and measurement user terminal of internet protocol television (iptv) terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/073091 WO2011107058A2 (en) 2011-04-20 2011-04-20 Measurement method, measurement server and measurement user terminal of internet protocol television (iptv) terminal

Publications (2)

Publication Number Publication Date
WO2011107058A2 true WO2011107058A2 (en) 2011-09-09
WO2011107058A3 WO2011107058A3 (en) 2012-04-05

Family

ID=44542643

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/073091 WO2011107058A2 (en) 2011-04-20 2011-04-20 Measurement method, measurement server and measurement user terminal of internet protocol television (iptv) terminal

Country Status (2)

Country Link
CN (1) CN102845021B (en)
WO (1) WO2011107058A2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016173192A1 (en) * 2015-04-27 2016-11-03 深圳Tcl数字技术有限公司 Television stability test method and device
CN108415398A (en) * 2017-02-10 2018-08-17 上海辇联网络科技有限公司 Automobile information safety automation tests system and test method
CN113489848A (en) * 2021-07-06 2021-10-08 厦门亿联网络技术股份有限公司 Terminal device testing method and device, electronic device and storage medium
CN113613099A (en) * 2021-08-06 2021-11-05 国网浙江省电力有限公司检修分公司 Secondary equipment test system based on internet of things

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120679B (en) * 2018-07-27 2021-09-28 平安科技(深圳)有限公司 Task allocation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070195705A1 (en) * 2006-02-17 2007-08-23 Sbc Knowledge Ventures L.P. System and method for detecting continuity of network lines
CN101483562A (en) * 2009-02-19 2009-07-15 中兴通讯股份有限公司 Method, system and related equipment for routine test
CN101605345A (en) * 2009-07-20 2009-12-16 深圳华为通信技术有限公司 A kind of method of testing external field services, equipment and system
CN101983498A (en) * 2008-04-03 2011-03-02 诺基亚西门子通信公司 Method and device for data processing and communication system comprising such device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070195705A1 (en) * 2006-02-17 2007-08-23 Sbc Knowledge Ventures L.P. System and method for detecting continuity of network lines
CN101983498A (en) * 2008-04-03 2011-03-02 诺基亚西门子通信公司 Method and device for data processing and communication system comprising such device
CN101483562A (en) * 2009-02-19 2009-07-15 中兴通讯股份有限公司 Method, system and related equipment for routine test
CN101605345A (en) * 2009-07-20 2009-12-16 深圳华为通信技术有限公司 A kind of method of testing external field services, equipment and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016173192A1 (en) * 2015-04-27 2016-11-03 深圳Tcl数字技术有限公司 Television stability test method and device
CN108415398A (en) * 2017-02-10 2018-08-17 上海辇联网络科技有限公司 Automobile information safety automation tests system and test method
CN113489848A (en) * 2021-07-06 2021-10-08 厦门亿联网络技术股份有限公司 Terminal device testing method and device, electronic device and storage medium
CN113489848B (en) * 2021-07-06 2023-09-29 厦门亿联网络技术股份有限公司 Terminal equipment testing method and device, electronic equipment and storage medium
CN113613099A (en) * 2021-08-06 2021-11-05 国网浙江省电力有限公司检修分公司 Secondary equipment test system based on internet of things

Also Published As

Publication number Publication date
WO2011107058A3 (en) 2012-04-05
CN102845021A (en) 2012-12-26
CN102845021B (en) 2015-03-11

Similar Documents

Publication Publication Date Title
US10282246B2 (en) Application error detection method for cloud streaming service, and apparatus and system therefor
CN108200468B (en) Screen projection implementation method, storage medium, electronic device and system
WO2011107058A2 (en) Measurement method, measurement server and measurement user terminal of internet protocol television (iptv) terminal
US20100095370A1 (en) Selective packet capturing method and apparatus using kernel probe
US10374933B2 (en) Systems and methods for monitoring operational statuses of network services
CN108431782B (en) Techniques to determine client-side impact of server-side behavior using canary analysis
WO2019041930A1 (en) Inspection method, device and system, computer apparatus, and storage medium
CN108616389B (en) Network evaluation method, equipment, storage medium and device based on cloud server
CN113207018A (en) Remote screen projection method, system, equipment and storage medium
CN113438527A (en) Video screen projection method, device, equipment and storage medium
JP2020184805A (en) Video service quality assessment method and apparatus
WO2017050106A1 (en) Set-top box fault information processing method and apparatus, and set-top box
US20080109545A1 (en) Method and system for two-phase mechanism for discovering web services based management service
KR20160004377A (en) Ott video quality monitoring method, apparatus, and system
CN108243222A (en) Server network architecture method and device
CN111190755A (en) Application program function exception handling method and device
CN105337814A (en) Network equipment connection method, equipment and system
CN109729346B (en) Remote debugging method and system for television, debugging terminal and television terminal
CN107493486B (en) Method, system and terminal equipment for video playing termination
US9819933B2 (en) Automated testing of media devices
CN114265760A (en) Micro-service request fault injection method and device based on eBPF
CN107835449B (en) Method for realizing multi-terminal synchronous screen connection based on network on Android platform
WO2019128187A1 (en) Video stream inspection method and system, and computer device and storage medium
CN114040232A (en) Screen projection system, method, electronic device and storage medium
CN110046068B (en) Test method, device and equipment

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180000257.1

Country of ref document: CN

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

Ref document number: 11750211

Country of ref document: EP

Kind code of ref document: A2

NENP Non-entry into the national phase in:

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11750211

Country of ref document: EP

Kind code of ref document: A2