WO2018000918A1 - 一种基于网络的机顶盒测试方法及*** - Google Patents

一种基于网络的机顶盒测试方法及*** Download PDF

Info

Publication number
WO2018000918A1
WO2018000918A1 PCT/CN2017/081044 CN2017081044W WO2018000918A1 WO 2018000918 A1 WO2018000918 A1 WO 2018000918A1 CN 2017081044 W CN2017081044 W CN 2017081044W WO 2018000918 A1 WO2018000918 A1 WO 2018000918A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
top box
daemon
server
case
Prior art date
Application number
PCT/CN2017/081044
Other languages
English (en)
French (fr)
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 WO2018000918A1 publication Critical patent/WO2018000918A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/04Diagnosis, testing or measuring for television systems or their details for receivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2404Monitoring of server processing errors or hardware failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk

Definitions

  • the present application relates to the field of communications, and in particular, to a network-based set top box testing method and system.
  • set-top boxes have been widely used as the main digital television equipment.
  • the set-top box requires multiple tests during the production process.
  • the traditional set-top box test method is to test through interactive commands or scripts, and save the generated test files to the set-top box.
  • this increases the load on the set-top box processor, reduces the test efficiency, is not conducive to rapid testing and increase production efficiency, and greatly increases the cost of the set-top box.
  • the network-based set-top box testing system includes: a server testing end and a set-top box testing end; the server testing end is configured to generate a test case and send the test case to the set-top box test end, and receive the sent by the set-top box test end.
  • the test state generates a test report and analyzes the test report; the set top box test end runs two processes, a test process and a daemon process, and the daemon process receives the test case and sends it to the test process, and the test process executes Test the use case and return a test state to the daemon, which sends the test status to the server test end.
  • the daemon monitors the test process. If the test process is stuck, the test case executed by the test process is recorded and sent to the server test end, and then the test process is restarted, and the test case is completed. Subsequent test cases.
  • the server test end sends the test case to multiple needs The set-top box test end of the test case, and the test terminals of the plurality of set-top boxes are simultaneously tested.
  • the daemon sends a serial number of the set top box to the server test end, and the server test end sends the test case to the set top box test end whose serial number belongs to the same test batch.
  • the network-based set-top box testing method provided by the application includes the following steps:
  • S10 setting a server test end, the server test end is used to generate a test case and send it to the set top box, the test status sent by the receiver set top box generates a test report and analyzes the test report;
  • S20 Running two processes in the set top box, respectively, a test process and a daemon, the daemon receives the test case and sends it to the test process, the test process executes the test case and returns the test state to the daemon, and the daemon sends the test status to the server. Test side.
  • the step S20 further includes: monitoring the test process by the daemon process, if the test process is stuck, the test case executed by the test process is recorded and sent to the server test end, and then the test process is restarted. Then complete the test cases following the test case.
  • the method further includes: sending, by the server test end, the test case to a plurality of set top box test ends that require the test case, and the plurality of set top box test ends simultaneously testing.
  • the serial number of the set top box is sent by the daemon to the server test end, and the server test end sends the test case to the set top box test end whose serial number belongs to the same test batch.
  • An electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, The instructions are executed by the at least one processor to enable the at least one processor to generate a test case and send to the set top box, and the test status generated by the receiver set top box generates a test report and analyzes the test report.
  • the application provides a non-transitory computer readable storage medium storing computer executable instructions for generating test cases and transmitting to a set top box, and The test status sent by the receiver set-top box generates a test report and analyzes the test report.
  • the application provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, the program instructions comprising to generate an electronic device
  • the test case is sent to the set-top box, and the test status sent by the receiver set-top box generates a test report and analyzes the test report.
  • An electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, The instructions are executed by the at least one processor to enable the at least one processor to run two processes, a test process and a daemon, respectively, the daemon receiving the test case and sending it to the test process, the test process executing the test case and Returns the test state to the daemon, which sends the test status to the server test side.
  • the application provides a non-transitory computer readable storage medium storing computer executable instructions for enabling the computer to run two
  • the process is the test process and the daemon.
  • the daemon receives the test case and sends it to the test process.
  • the test process executes the test case and returns the test status to the daemon.
  • the daemon sends the test status to the server test end.
  • the application provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, the program instructions comprising to generate an electronic device It is able to run two processes, the test process and the daemon.
  • the daemon receives the test case and sends it to the test process.
  • the test process executes the test case and returns the test state to the daemon.
  • the daemon sends the test status to the server test terminal.
  • the application is based on a network-based set-top box testing method and system, and separates test cases and test report generation and analysis into a network server, and the set-top box and the server test end communicate based on the network to jointly complete the test of the set-top box, thereby greatly reducing the set-top box processor. Occupied, reducing the burden on the set-top box processor.
  • the daemon is set to communicate with the server test terminal, and the daemon process is simple and stable, and is not prone to jamming, and the network communication with the server test end is stably performed to ensure the stability of the test.
  • FIG. 1 is a structural diagram of a network-based set top box test system in an embodiment of the present application
  • FIG. 2 is a flowchart of a network-based set top box testing method in an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of hardware of an electronic device according to a network-based set top box testing method according to an embodiment of the present application.
  • FIG. 1 is a structural diagram of a network-based set top box test system in an embodiment of the present application.
  • the system includes: a server test end 100 and a set top box test end 200.
  • the server test terminal 100 is configured to generate a test case (test case) and send it to the set top box test end 200, and the test state generated by the receiver set top box test end 200 generates a test report and analyzes the test report.
  • the set-top box test end 200 runs two processes, a test process and a daemon process (a daemon process).
  • the daemon receives the test case and sends it to the test process.
  • the test process executes the test case and returns the test state to the daemon, and the daemon will test the state.
  • the protection process is set to communicate with the server test terminal 100. Since the protection process is simple and stable, the problem of jamming is not easy to occur, and the network communication with the server test terminal 100 can be stably performed to ensure the stability of the test.
  • the protection process monitors the test process. If the test process is stuck, the test case executed by the test process is recorded and sent to the server test terminal 100, and then the test process is restarted. Then complete the test cases following the test case.
  • the server test terminal 100 sends the test case to a plurality of set top box test terminals 200 that need the test case, and the plurality of set top box test ends 200 simultaneously test, thereby greatly improving the test efficiency. Further, the protection process sends the serial number of the set top box to the server test end 100, and the service The test terminal 100 sends the test case to the set top box test end 200 whose serial number belongs to the same test lot.
  • the network-based set-top box test system separates the test case and test report generation and analysis into a network server, and the set-top box test end and the server test end communicate based on the network to complete the test of the set-top box, thereby greatly reducing the occupation of the set-top box processor. , reducing the burden on the set-top box processor.
  • the protection process is set to communicate with the server test terminal, and the protection process is simple and stable, and it is not easy to be stuck, and the network communication with the server test terminal is stably performed to ensure the stability of the test.
  • the application also provides a network-based set top box testing method, as shown in FIG. 2, the method includes:
  • test case test case
  • test status sent by the receiver set top box generates a test report and analyzes the test report.
  • S20 Running two processes in the set top box, respectively, the test process and the daemon process (daemon process), the daemon receives the test case and sends it to the test process, the test process executes the test case and returns the test state to the daemon, and the daemon will test The status is sent to the server test side.
  • test case and test report generation and analysis are separated into a network server, which greatly reduces the occupation of the set top box processor and reduces the burden on the set top box processor.
  • Set the protection process to communicate with the server test terminal. Because the protection process is simple and stable, it is not easy to get stuck. It can stably communicate with the server test end to ensure the stability of the test.
  • step S20 further includes: monitoring the test process by the protection process, and if the test process is stuck, the test case executed by the test process is recorded and sent to the server. Test the side, then restart the test process, and then complete the test case subsequent test cases.
  • the method further includes: sending, by the server testing end, the test case to a plurality of set top boxes that need the test case, and the plurality of set top boxes simultaneously testing, thereby greatly improving the testing efficiency.
  • the protection process sends the serial number of the set top box to the server test end, and the server test end sends the test case to the set top box whose serial number belongs to the same test batch.
  • the network-based set-top box testing method separates test cases and test report generation and analysis into a network server, and the set-top box and the server test end communicate based on the network to complete the test of the set-top box, thereby greatly reducing the occupation of the set-top box processor and reducing The burden of the set-top box processor.
  • the protection process is set to communicate with the server test terminal, and the protection process is simple and stable, and it is not easy to be stuck, and the network communication with the server test terminal is stably performed to ensure the stability of the test.
  • the application is based on a network-based set-top box testing method and system, and separates test cases and test report generation and analysis into a network server, and the set-top box and the server test end communicate based on the network to jointly complete the test of the set-top box, thereby greatly reducing the set-top box processor. Occupied, reducing the burden on the set-top box processor.
  • the protection process is set to communicate with the server test terminal, and the protection process is simple and stable, and it is not easy to be stuck, and the network communication with the server test terminal is stably performed to ensure the stability of the test.
  • the application also provides a hardware structure diagram of an electronic device based on a network-based set-top box testing method. As shown in FIG. 3, the electronic device 30 includes:
  • processors 301 and memory 302 one processor 301 is taken as an example in FIG.
  • the processor 301 and the memory 302 can be connected by a bus or other means, and the connection by a bus is taken as an example in FIG.
  • the memory 302 stores instructions executable by at least one processor 301 that, when executed by the processor 301, can cause the processor 301 to perform the steps performed by the electronic device described above.
  • the operations performed by the processor 301 may be stored in the memory 302 in the form of program instructions.
  • the memory 302 is a non-volatile computer readable storage medium for storing non-volatile software programs, non-volatile computers. execute program.
  • the operations performed by the processor 301 are stored in the memory 302 in the form of program instructions.
  • the operation performed by the processor 301 includes, in addition to the program instruction, generating a test case and transmitting to the set top box, and generating a test report by the test state sent by the receiver set top box and reporting the test report.
  • the program instructions for performing the analysis may also be program instructions for implementing the functions performed by the electronic device in the above embodiments.
  • the operation performed by the processor 301 in addition to the program instructions includes: enabling the computer to run two processes, respectively Test the process and the daemon.
  • the daemon receives the test case and sends it to the test process.
  • the test process executes the test case and returns the test state to the daemon.
  • the daemon sends the test status to the program command on the server test side.
  • the program instructions may also be program instructions that implement the functions performed by the electronic device in the above embodiments.
  • the memory 302 can include a storage program area and an storage data area, wherein the storage program area can store an operating system, an application required for at least one function; the storage data area can store data created according to the use of the network-based set top box testing method, and the like. .
  • memory 302 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • memory 302 can optionally include memory remotely located relative to processor 301, which can be coupled to processor 301 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the application also provides a non-transitory computer readable storage medium storing computer executable instructions that are executed by one or more processors, such as one of FIG.
  • the processor 301 can cause the one or more processors to perform the network-based set top box testing method in any of the foregoing method embodiments.
  • the set-top box and the storage medium communicate based on the network, and complete the test of the set-top box, thereby greatly reducing the occupation of the set-top box processor and reducing the set-top box processor.
  • the burden At the same time, the daemon is set to communicate with the storage medium, and the daemon is simple and stable, and is not prone to jamming.
  • the network communication with the storage medium is stable, and the stability of the test is ensured.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本申请涉及一种基于网络的机顶盒测试方法及***,将测试用例和测试报告生成及分析分离到网络服务器,机顶盒和服务器测试端基于网络进行通信,共同完成机顶盒的测试,从而大大减少了对机顶盒处理器的占用,降低了机顶盒处理器的负担。同时,设置守护进程与服务器测试端进行通信,利用守护进程简单稳定、不容易发生卡死的优点,稳定的与服务器测试端进行网络通信,保证测试的稳定性。

Description

一种基于网络的机顶盒测试方法及*** 技术领域
本申请涉及通信领域,尤其涉及一种基于网络的机顶盒测试方法及***。
背景技术
目前,机顶盒作为主要的数字电视设备,已经得到广泛使用。
为保证机顶盒的质量和性能,机顶盒在生产过程中需要进行多项测试。传统机顶盒的测试方法是通过交互式的命令或者脚本进行测试,并且将生成的测试文件保存到机顶盒中。但是这样就增大了机顶盒处理器的负荷,降低了测试效率,不利于快速的进行测试和提高生产效率,大大增加机顶盒的成本。
发明内容
有鉴于此,有必要针对上述传统机顶盒测试增大机顶盒处理器的负荷,降低了测试效率的问题,提供一种基于网络的机顶盒测试方法及***。
本申请提供的一种基于网络的机顶盒测试***,包括:服务器测试端和机顶盒测试端;所述服务器测试端用于生成测试用例并发送给所述机顶盒测试端,接收所述机顶盒测试端发送的测试状态生成测试报告并对测试报告进行分析;所述机顶盒测试端运行两个进程,分别为测试进程和守护进程,所述守护进程接收测试用例并发送给所述测试进程,所述测试进程执行测试用例并返回测试状态至所述守护进程,所述守护进程将测试状态发送至所述服务器测试端。
在其中的一个实施方式中,所述守护进程监测测试进程,若监测到测试进程卡死,将记录测试进程执行的测试用例并发送给服务器测试端,然后重新启动测试进程,再完成该测试用例后续的测试用例。
在其中的一个实施方式中,所述服务器测试端将测试用例发送给多个需要 该测试用例的机顶盒测试端,多个机顶盒测试端同时进行测试。
在其中的一个实施方式中,所述守护进程将机顶盒的序列号发送至所述服务器测试端,所述服务器测试端将测试用例发送至序列号属于同一测试批次的机顶盒测试端。
本申请提供的一种基于网络的机顶盒测试方法,包括如下步骤:
S10:设置服务器测试端,服务器测试端用于生成测试用例并发送给机顶盒,接收机顶盒发送的测试状态生成测试报告并对测试报告进行分析;
S20:在机顶盒中运行两个进程,分别为测试进程和守护进程,守护进程接收测试用例并发送给测试进程,测试进程执行测试用例并返回测试状态至守护进程,守护进程将测试状态发送至服务器测试端。
在其中的一个实施方式中,所述步骤S20还包括:由守护进程监测测试进程,若监测到测试进程卡死,将记录测试进程执行的测试用例并发送给服务器测试端,然后重新启动测试进程,再完成该测试用例后续的测试用例。
在其中的一个实施方式中,所述方法还包括:由服务器测试端将测试用例发送给多个需要该测试用例的机顶盒测试端,多个机顶盒测试端同时进行测试。
在其中的一个实施方式中,由守护进程将机顶盒的序列号发送至所述服务器测试端,所述服务器测试端将测试用例发送至序列号属于同一测试批次的机顶盒测试端。
本申请提供的一种电子设备,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够生成测试用例并发送给机顶盒,以及接收机顶盒发送的测试状态生成测试报告并对测试报告进行分析。
本申请提供一种非易失性计算机可读存储介质,所述非易失性计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于生成测试用例并发送给机顶盒,以及接收机顶盒发送的测试状态生成测试报告并对测试报告进行分析。
本申请提供一种计算机程序产品,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,所述程序指令包括用以使电子设备生成测试用例并发送给机顶盒,以及接收机顶盒发送的测试状态生成测试报告并对测试报告进行分析的指令。
本申请提供的一种电子设备,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够运行两个进程,分别为测试进程和守护进程,守护进程接收测试用例并发送给测试进程,测试进程执行测试用例并返回测试状态至守护进程,守护进程将测试状态发送至服务器测试端。
本申请提供一种非易失性计算机可读存储介质,所述非易失性计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于,使所述计算机能够运行两个进程,分别为测试进程和守护进程,守护进程接收测试用例并发送给测试进程,测试进程执行测试用例并返回测试状态至守护进程,守护进程将测试状态发送至服务器测试端。
本申请提供一种计算机程序产品,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,所述程序指令包括用以使电子设备生成能够运行两个进程,分别为测试进程和守护进程,守护进程接收测试用例并发送给测试进程,测试进程执行测试用例并返回测试状态至守护进程,守护进程将测试状态发送至服务器测试端的指令。
本申请基于网络的机顶盒测试方法及***,将测试用例和测试报告生成及分析分离到网络服务器,机顶盒和服务器测试端基于网络进行通信,共同完成机顶盒的测试,从而大大减少了对机顶盒处理器的占用,降低了机顶盒处理器的负担。同时,设置守护进程与服务器测试端进行通信,利用守护进程简单稳定、不容易发生卡死的优点,稳定的与服务器测试端进行网络通信,保证测试的稳定性。
附图说明
图1是本申请一个实施例中的基于网络的机顶盒测试***的结构图;
图2是本申请一个实施例中的基于网络的机顶盒测试方法的流程图;
图3为本申请一个实施例提供的基于网络的机顶盒测试方法的电子设备的硬件结构示意图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。
图1是本申请一个实施例中的基于网络的机顶盒测试***的结构图,如图1所示,该***包括:服务器测试端100和机顶盒测试端200。服务器测试端100用于生成测试用例(测试case)并发送给机顶盒测试端200,接收机顶盒测试端200发送的测试状态生成测试报告并对测试报告进行分析。机顶盒测试端200运行两个进程,分别为测试进程和守护进程(daemon进程),守护进程接收测试用例并发送给测试进程,测试进程执行测试用例并返回测试状态至守护进程,守护进程将测试状态发送至服务器测试端100。这样,将测试用例和测试报告生成及分析分离到网络服务器进行,大大减少了对机顶盒处理器的占用,降低了机顶盒处理器的负担。设置保护进程与服务器测试端100进行通信,由于保护进程简单稳定,不容易发生卡死的问题,能够稳定的与服务器测试端100进行网络通信,保证测试的稳定性。
为在测试进程发生问题的情况下,能够继续进行测试,保护进程监测测试进程,若监测到测试进程卡死,将记录测试进程执行的测试用例并发送给服务器测试端100,然后重新启动测试进程,再完成该测试用例后续的测试用例。
为提高测试效率,服务器测试端100将测试用例发送给多个需要该测试用例的机顶盒测试端200,多个机顶盒测试端200同时进行测试,大大提高测试效率。进一步的,保护进程将机顶盒的序列号发送至服务器测试端100,服务 器测试端100将测试用例发送至序列号属于同一测试批次的机顶盒测试端200。
该基于网络的机顶盒测试***,将测试用例和测试报告生成及分析分离到网络服务器,机顶盒测试端和服务器测试端基于网络进行通信,共同完成机顶盒的测试,从而大大减少了对机顶盒处理器的占用,降低了机顶盒处理器的负担。同时,设置保护进程与服务器测试端进行通信,利用保护进程简单稳定、不容易发生卡死的优点,稳定的与服务器测试端进行网络通信,保证测试的稳定性。
同时,本申请还提供一种基于网络的机顶盒测试方法,如图2所示,该方法包括:
S10:设置服务器测试端,服务器测试端用于生成测试用例(测试case)并发送给机顶盒,接收机顶盒发送的测试状态生成测试报告并对测试报告进行分析。
S20:在机顶盒中运行两个进程,分别为测试进程和守护进程(daemon进程),守护进程接收测试用例并发送给测试进程,测试进程执行测试用例并返回测试状态至守护进程,守护进程将测试状态发送至服务器测试端。
这样,将测试用例和测试报告生成及分析分离到网络服务器进行,大大减少了对机顶盒处理器的占用,降低了机顶盒处理器的负担。设置保护进程与服务器测试端进行通信,由于保护进程简单稳定,不容易发生卡死的问题,能够稳定的与服务器测试端进行网络通信,保证测试的稳定性。
为在测试进程发生问题的情况下,能够继续进行测试,进一步的,步骤S20还包括:由保护进程监测测试进程,若监测到测试进程卡死,将记录测试进程执行的测试用例并发送给服务器测试端,然后重新启动测试进程,再完成该测试用例后续的测试用例。
为提高测试效率,该方法还包括:由服务器测试端将测试用例发送给多个需要该测试用例的机顶盒,多个机顶盒同时进行测试,大大提高测试效率。进一步的,保护进程将机顶盒的序列号发送至服务器测试端,由服务器测试端将测试用例发送至序列号属于同一测试批次的机顶盒。
该基于网络的机顶盒测试方法,将测试用例和测试报告生成及分析分离到网络服务器,机顶盒和服务器测试端基于网络进行通信,共同完成机顶盒的测试,从而大大减少了对机顶盒处理器的占用,降低了机顶盒处理器的负担。同时,设置保护进程与服务器测试端进行通信,利用保护进程简单稳定、不容易发生卡死的优点,稳定的与服务器测试端进行网络通信,保证测试的稳定性。
本申请基于网络的机顶盒测试方法及***,将测试用例和测试报告生成及分析分离到网络服务器,机顶盒和服务器测试端基于网络进行通信,共同完成机顶盒的测试,从而大大减少了对机顶盒处理器的占用,降低了机顶盒处理器的负担。同时,设置保护进程与服务器测试端进行通信,利用保护进程简单稳定、不容易发生卡死的优点,稳定的与服务器测试端进行网络通信,保证测试的稳定性。
本申请还提供一种基于网络的机顶盒测试方法的电子设备的硬件结构示意图,如图3所示,该电子设备30包括:
一个或多个处理器301以及存储器302,图3中以一个处理器301为例。处理器301和存储器302可以通过总线或者其他方式连接,图3中以通过总线连接为例。
存储器302存储有可被至少一个处理器301执行的指令,当该执行命令被处理器301执行时,可以使处理器301能够执行上述电子设备所执行的步骤。处理器301所执行的操作可以以程序指令的方式存储在存储器302中,存储器302作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序。
其中,处理器301所执行的操作以程序指令的方式存储在存储器302中。当电子设备30为服务器等,提供计算服务的设备时,处理器301所执行的操作以程序指令除了包括:生成测试用例并发送给机顶盒,以及接收机顶盒发送的测试状态生成测试报告并对测试报告进行分析的程序指令,还可以是实现上述实施例中电子设备所执行的功能的程序指令。
当电子设备30为机顶盒等,连接电视机与外部信号源的设备时,处理器301所执行的操作以程序指令除了包括:使计算机能够运行两个进程,分别为 测试进程和守护进程,守护进程接收测试用例并发送给测试进程,测试进程执行测试用例并返回测试状态至守护进程,守护进程将测试状态发送至服务器测试端的程序指令。该程序指令还可以是是实现上述实施例中电子设备所执行的功能的程序指令。
存储器302可以包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需要的应用程序;存储数据区可存储根据基于网络的机顶盒测试方法的使用所创建的数据等。此外,存储器302可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器302可选包括相对于处理器301远程设置的存储器,这些远程存储器可以通过网络连接至处理器301。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
本申请还提供一种非易失性计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个处理器执行,例如图3中的一个处理器301,可使得上述一个或多个处理器可执行上述任意方法实施例中的基于网络的机顶盒测试方法。以达到以下效果:将测试用例和测试报告生成及分析分离到网络服务器,机顶盒和存储介质基于网络进行通信,共同完成机顶盒的测试,从而大大减少了对机顶盒处理器的占用,降低了机顶盒处理器的负担。同时,设置守护进程与存储介质进行通信,利用守护进程简单稳定、不容易发生卡死的优点,稳定的与存储介质进行网络通信,保证测试的稳定性。
通过以上的实施方式的描述,本领域普通技术人员可以清楚地了解到各实施方式可借助软件加通用硬件平台的方式来实现,当然也可以通过硬件。本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本申请的保 护范围之内。

Claims (14)

  1. 一种基于网络的机顶盒测试***,其特征在于,包括:服务器测试端和机顶盒测试端;所述服务器测试端用于生成测试用例并发送给所述机顶盒测试端,接收所述机顶盒测试端发送的测试状态生成测试报告并对测试报告进行分析;所述机顶盒测试端运行两个进程,分别为测试进程和守护进程,所述守护进程接收测试用例并发送给所述测试进程,所述测试进程执行测试用例并返回测试状态至所述守护进程,所述守护进程将测试状态发送至所述服务器测试端。
  2. 根据权利要求1所述的基于网络的机顶盒测试***,其特征在于,所述守护进程监测测试进程,若监测到测试进程卡死,将记录测试进程执行的测试用例并发送给服务器测试端,然后重新启动测试进程,再完成该测试用例后续的测试用例。
  3. 根据权利要求1所述的基于网络的机顶盒测试***,其特征在于,所述服务器测试端将测试用例发送给多个需要该测试用例的机顶盒测试端,多个机顶盒测试端同时进行测试。
  4. 根据权利要求3所述的基于网络的机顶盒测试***,其特征在于,所述守护进程将机顶盒的序列号发送至所述服务器测试端,所述服务器测试端将测试用例发送至序列号属于同一测试批次的机顶盒测试端。
  5. 一种基于网络的机顶盒测试方法,其特征在于,包括如下步骤:
    S10:设置服务器测试端,服务器测试端用于生成测试用例并发送给机顶盒,接收机顶盒发送的测试状态生成测试报告并对测试报告进行分析;
    S20:在机顶盒中运行两个进程,分别为测试进程和守护进程,守护进程接收测试用例并发送给测试进程,测试进程执行测试用例并返回测试状态至守护进程,守护进程将测试状态发送至服务器测试端。
  6. 根据权利要求5所述的基于网络的机顶盒测试方法,其特征在于,所述步骤S20还包括:由守护进程监测测试进程,若监测到测试进程卡死,将记录测试进程执行的测试用例并发送给服务器测试端,然后重新启动测试进程,再 完成该测试用例后续的测试用例。
  7. 根据权利要求5所述的基于网络的机顶盒测试方法,其特征在于,所述方法还包括:由服务器测试端将测试用例发送给多个需要该测试用例的机顶盒测试端,多个机顶盒测试端同时进行测试。
  8. 根据权利要求7所述的基于网络的机顶盒测试方法,其特征在于,由守护进程将机顶盒的序列号发送至所述服务器测试端,所述服务器测试端将测试用例发送至序列号属于同一测试批次的机顶盒测试端。
  9. 一种电子设备,其特征在于,包括:
    至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够生成测试用例并发送给机顶盒,以及接收机顶盒发送的测试状态生成测试报告并对测试报告进行分析。
  10. 一种非易失性计算机可读存储介质,其特征在于,所述非易失性计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令包括用以使电子设备生成测试用例并发送给机顶盒,以及接收机顶盒发送的测试状态生成测试报告并对测试报告进行分析的指令。
  11. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,所述程序指令包括用以使电子设备生成测试用例并发送给机顶盒,以及接收机顶盒发送的测试状态生成测试报告并对测试报告进行分析的指令。
  12. 一种电子设备,其特征在于,包括:
    至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够运行两个进程,分别为测试进程和守护进程,守护进程接收测试用例并发送给测试进程,测试进程执行测试用例并返回测试状态至守护进程,守护进程将测试状态发送至服务器测试端。
  13. 一种非易失性计算机可读存储介质,其特征在于,所述非易失性计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令包括用以使电子设备生成能够运行两个进程,分别为测试进程和守护进程,守护进程接收测试用例并发送给测试进程,测试进程执行测试用例并返回测试状态至守护进程,守护进程将测试状态发送至服务器测试端的指令。
  14. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,所述程序指令包括用以使电子设备生成能够运行两个进程,分别为测试进程和守护进程,守护进程接收测试用例并发送给测试进程,测试进程执行测试用例并返回测试状态至守护进程,守护进程将测试状态发送至服务器测试端的指令。
PCT/CN2017/081044 2016-06-28 2017-04-19 一种基于网络的机顶盒测试方法及*** WO2018000918A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610489838.0A CN106210886A (zh) 2016-06-28 2016-06-28 一种基于网络的机顶盒测试方法及***
CN201610489838.0 2016-06-28

Publications (1)

Publication Number Publication Date
WO2018000918A1 true WO2018000918A1 (zh) 2018-01-04

Family

ID=57462284

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/081044 WO2018000918A1 (zh) 2016-06-28 2017-04-19 一种基于网络的机顶盒测试方法及***

Country Status (2)

Country Link
CN (1) CN106210886A (zh)
WO (1) WO2018000918A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113407438A (zh) * 2021-05-10 2021-09-17 深圳市广和通无线股份有限公司 模块的测试方法、计算机设备和存储介质
CN113852808A (zh) * 2021-09-24 2021-12-28 杭州国芯科技股份有限公司 一种机顶盒信道自动测试***及测试方法

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210886A (zh) * 2016-06-28 2016-12-07 深圳市九洲电器有限公司 一种基于网络的机顶盒测试方法及***
CN107766209B (zh) * 2017-10-31 2020-11-17 北京新能源汽车股份有限公司 中控自动化测试方法、装置、设备及计算机可读存储介质
CN109144861A (zh) * 2018-08-09 2019-01-04 京信通信***(中国)有限公司 多功能自动化测试方法和***

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101118513A (zh) * 2006-08-03 2008-02-06 鸿富锦精密工业(深圳)有限公司 板卡测试***及方法
CN101252471A (zh) * 2008-03-20 2008-08-27 中兴通讯股份有限公司 一种分布式自动化测试***及其方法
US20120054567A1 (en) * 2010-08-30 2012-03-01 Contec Llc Multimedia device test system
CN103024438A (zh) * 2012-12-31 2013-04-03 深圳市九洲电器有限公司 一种机顶盒及其生产测试方法、***
CN105306928A (zh) * 2015-11-19 2016-02-03 浪潮软件集团有限公司 一种测试机顶盒浏览器的方法及装置
CN106210886A (zh) * 2016-06-28 2016-12-07 深圳市九洲电器有限公司 一种基于网络的机顶盒测试方法及***

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201123074Y (zh) * 2007-11-27 2008-09-24 上海未来宽带技术及应用工程研究中心有限公司 一种用于检测机顶盒稳定性的测试装置
CN102340687A (zh) * 2011-10-17 2012-02-01 四川长虹电器股份有限公司 机顶盒测试***和方法
CN103345446B (zh) * 2013-07-10 2016-04-20 四川九洲电器集团有限责任公司 一种适用于遥控类产品的自动化测试方法
CN104391705A (zh) * 2014-12-03 2015-03-04 浪潮集团有限公司 一种应用于高可用集群软件的分布式自动化测试框架

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101118513A (zh) * 2006-08-03 2008-02-06 鸿富锦精密工业(深圳)有限公司 板卡测试***及方法
CN101252471A (zh) * 2008-03-20 2008-08-27 中兴通讯股份有限公司 一种分布式自动化测试***及其方法
US20120054567A1 (en) * 2010-08-30 2012-03-01 Contec Llc Multimedia device test system
CN103024438A (zh) * 2012-12-31 2013-04-03 深圳市九洲电器有限公司 一种机顶盒及其生产测试方法、***
CN105306928A (zh) * 2015-11-19 2016-02-03 浪潮软件集团有限公司 一种测试机顶盒浏览器的方法及装置
CN106210886A (zh) * 2016-06-28 2016-12-07 深圳市九洲电器有限公司 一种基于网络的机顶盒测试方法及***

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113407438A (zh) * 2021-05-10 2021-09-17 深圳市广和通无线股份有限公司 模块的测试方法、计算机设备和存储介质
CN113852808A (zh) * 2021-09-24 2021-12-28 杭州国芯科技股份有限公司 一种机顶盒信道自动测试***及测试方法
CN113852808B (zh) * 2021-09-24 2024-03-29 杭州国芯科技股份有限公司 一种机顶盒信道自动测试方法

Also Published As

Publication number Publication date
CN106210886A (zh) 2016-12-07

Similar Documents

Publication Publication Date Title
WO2018000918A1 (zh) 一种基于网络的机顶盒测试方法及***
WO2017181591A1 (zh) 测试方法及***
JP6587330B2 (ja) ランダムフォレストモデルの訓練方法、電子装置及び記憶媒体
WO2017096968A1 (zh) 日志上传方法及装置
US10824537B2 (en) Method, device, and computer readable medium for tracing computing system
US11201812B2 (en) Virtual probes
WO2018184420A1 (zh) 软件测试方法、装置、电子设备及介质
US11113181B2 (en) Debugging a live streaming application
CN108459951B (zh) 测试方法和装置
US10489585B2 (en) Generation of a random value for a child process
CN107453953B (zh) 一种基于httpclient的数据更新***及方法
CN111193633B (zh) 异常网络连接的检测方法及装置
WO2019184527A1 (zh) 一种测试机顶盒稳定性的方法、装置及电子设备
CN111258913A (zh) 算法自动测试方法、装置、计算机***及可读存储介质
CN105872850A (zh) 基于白名单的直播数据推送方法及设备
US10083070B2 (en) Log file reduction according to problem-space network topology
US20150227381A1 (en) Transmitting encapsulated snmp commands to virtual machines
CN113946816A (zh) 基于云服务的鉴权方法、装置、电子设备和存储介质
CN113791792B (zh) 应用调用信息的获取方法、设备以及存储介质
US8838548B2 (en) Performing automated data integrity verification testing for file systems
CN112738153B (zh) 业务***中的网关选择方法、***、装置、服务器及介质
CN108288135B (zh) ***兼容方法及装置、计算机可读存储介质及电子设备
US20190050282A1 (en) Information processing device, information processing method, and non-transitory computer-readable storage medium
CN114691125B (zh) 一种应用资源映射转换的方法、***、介质和电子设备
US20170060914A1 (en) Recording medium, log management method, and log management apparatus

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: 17818915

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: 17818915

Country of ref document: EP

Kind code of ref document: A1