CN104363470B - A streaming service testing methods and systems - Google Patents

A streaming service testing methods and systems Download PDF

Info

Publication number
CN104363470B
CN104363470B CN201410709189.1A CN201410709189A CN104363470B CN 104363470 B CN104363470 B CN 104363470B CN 201410709189 A CN201410709189 A CN 201410709189A CN 104363470 B CN104363470 B CN 104363470B
Authority
CN
China
Prior art keywords
time
test program
real
program
test
Prior art date
Application number
CN201410709189.1A
Other languages
Chinese (zh)
Other versions
CN104363470A (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 CN201410709189.1A priority Critical patent/CN104363470B/en
Publication of CN104363470A publication Critical patent/CN104363470A/en
Application granted granted Critical
Publication of CN104363470B publication Critical patent/CN104363470B/en

Links

Abstract

本发明公开了一种流服务测试方法及系统,该方法包括获取待测节目的地址;多次依据所述待测节目的地址下载数据,分别确定各次所述待测节目的实时下载速率;使用预设经验滤值对各次所述待测节目的实时下载速率进行极值滤除处理;对所述经过极值滤除处理后的实时下载速率利用均值算法计算出所述待测节目的拉流均值速率。 The present invention discloses a method and system for streaming service test, the method comprising acquiring an address of the test program; multiple download data according to the address of the test program, respectively, each time determining the real time rate of the download test program; experience was filtered using a preset value each time the real-time download speed test program performs a filtering process extremum; real-time download rate through the extremum after the filtering process using the algorithm to calculate mean test program pull mean flow rate. 本发明有效地提高了流服务测试中拉流均值速率计算结果的准确性,能够很好地对服务策略进行调整,极大地提升了用户体验。 The present invention effectively improves the accuracy of the streaming service tests mean pull flow rate calculation results can be a good service strategy adjustment, greatly enhance the user experience.

Description

一种流服务测试方法和系统 A streaming service testing methods and systems

技术领域 FIELD

[0001] 本发明涉及网络流媒体服务领域,特别是涉及一种流服务测试方法和系统。 [0001] The present invention relates to the field of network streaming media services, particularly to a testing method and system for streaming services.

背景技术 Background technique

[0002] 近些年来,随着互联网的高速发展,带宽接入速度的提高,越来越多的人选^通过电脑或终端设备例如机顶盒来在线观看网络直播。 [0002] In recent years, with the rapid development of Internet, broadband access speeds improve, more and more candidates ^ set-top box to watch the webcast online via computer or terminal device such as. 由于不同时段用户对于不同服务节目的点播不同,连入不同节目服务器的用户数量也不同。 Because different users in different periods for different services on demand programs, the number of users connected to the different programs of different servers. 有的时候会出现连入同一台服务器的数量过多而影响节目服务质量的问题,这时候就需要在服务策略的调整上自动化的完成相关节目服务器的重新部署。 Sometimes there will be the number connected to the same server too much impact on the quality of program service problem, this time we need to complete the re-deployment of automated server-related programs in the adjustment of service policy. 服务部署所依赖的调节参数很多。 Service deployment depends adjust many parameters. 其中,拉流测试结果即拉流均值速率是其中不可忽略的关键参数。 Wherein the pull-pull i.e. flow test results mean flow rate is a critical parameter which can not be ignored.

[0003] 这里所说的拉流测试指的是一种通过服务节目被下载的速率来判断当前终端网络环境、服务器的服务质量和连接数等信息,用于调整服务器组群的部署的关键测试。 [0003] pull mentioned here means a test flow rate of the program to be downloaded is determined by the service information of the current terminal network environment, the quality of the service server and the number of connected, for adjusting the deployment of server farms key test .

[0004] 现有的拉流测试主要使用人工操作的方式,由此得到的拉流测试结果偏差很大, 影响到节目服务器的重新部署和调整,进而使得服务节目不能实施应对,影响终端客户的体验。 [0004] The conventional manner used to pull the main flow testing manual operation, thereby pulling the test results obtained flow deviation greatly affects the redeployment and adjust the program server, thereby making the service program can not respond embodiment, the influence of the client terminal experience.

[0005] 因此,如何有效提高拉流测试结果的准确性是本领域技术人员需要解决的问题。 [0005] Therefore, how to effectively improve the accuracy of the test results to pull the flow of skilled personnel need to be resolved.

发明内容 SUMMARY

[0006] 本发明的目的是提供一种流服务测试方法,有效地提高了流服务测试中拉流均值速率计算结果的准确性,能够很好地对服务策略进行调整,极大地提升了用户体验;本发明的另一目的是提供一种流服务测试系统。 [0006] The object of the present invention is to provide a test method for a streaming service, effectively improve the accuracy of the flow test pull service flow rate calculation result of the mean, it can be well adjusted to the service policy, greatly enhance the user experience ; another object of the present invention is to provide a streaming service test system.

[0007] 为解决上述技术问题,本发明提供了一种流服务测试方法,包括: [0007] In order to solve the above technical problem, the present invention provides a test method for a streaming service, comprising:

[0008] 获取待测节目的地址; [0008] obtain the address of the test program;

[0009] 多次依据所述待测节目的地址下载数据,分别确定各次所述待测节目的实时下载速率; [0009] multiple times to download data according to the address of the test program, respectively, each time determining the real time rate of the download test program;

[0010]使用预设经验滤值对各次所述待测节目的实时下载速率进行极值滤除处理; [0010] Using default real-time download rate experienced by filtration of the measured values ​​for the respective program winsorizing filtering process;

[0011]对所述经过极值滤除处理后的实时下载速率利用均值算法计算出所述待测节目的拉流均值速率。 Calculate the mean flow rate of the pull-test program [0011] means algorithm using the real-time download rate through the extremum after the filtering process.

[0012] 优选的,所述获取待测节目的地址的过程具体包括: [0012] Preferably, the address acquisition process of test program comprises:

[0013] 从数据库中获取待测节目的地址。 [0013] Gets the program address of the device from the database.

[0014]优选的,所述待测节目的个数为一个。 [0014] Preferably, the number is a test program.

[0015]优选的,所述待测节目的个数为多个。 [0015] Preferably, the number of the plurality of test program.

[0016]优选的,所述预设经验滤值包括极大值阈值和极小值阈值。 [0016] Preferably, the predetermined value comprises a maximum value filter empirical threshold and a minimum threshold value.

[0017]优选的,在使用所述预设经验滤值对确定的所述实时下载速率进行矫正前,所述方法还包括:使用正则表达式对各个所述待测节目的实时下载速率进行读取分类。 [0017] Preferably, before using the preset value of the filter experiences a rate determined downloaded in real time is corrected, the method further comprising: using a regular expression for each of the real-time download speed test program read take classification.

[0018]优选的,利用所述均值算法计算出所述待测节目的拉流均值速率后,所述方法还包括:自动汇总并生成各个所述待测节目的所述拉流均值速率列表。 After [0018] Preferably, the calculated mean flow rate of the pull-test program algorithm using the average value, the method further comprising: automatically generating a summary of each of the test program and the average flow rate of pull list.

[0019] 为了解决上述问题,本发明还提供了一种流服务测试系统,包括: [0019] In order to solve the above problems, the present invention also provides a streaming service testing system, comprising:

[0020] 地址获取模块,用于获取待测节目的地址; [0020] The address acquisition module for acquiring the address of a program to be tested;

[0021] 数据下载模块,用于多次依据所述待测节目的地址下载数据,分别确定各次所述待测节目的实时下载速率; [0021] The data download means for downloading a plurality of times according to the address data of the program to be tested, respectively, is determined each time the real-time download speed test program;

[0022]数据矫正模块,用于使用预设经验滤值对确定的所述实时下载速率进行极值滤除处理; [0022] The data correction module is configured to use the default values ​​for the real-time experience by filtration download rate determined extremum filtering process is performed;

[0023] 数据计算模块,用于对所述经过极值滤除处理后的实时下载速率利用均值算法计算出所述待测节目的拉流均值速率。 [0023] The data calculation means for calculating the mean flow rate of the pull-test program by means algorithm for real-time download rate through the extremum after the filtering process.

[0024] 优选的,所述待测节目的个数为多个时,所述系统坯包括数据分类模块,用于使用正则表达式对各个所述待测节目的实时下载速率进行读取分类。 [0024] Preferably, the number of the plurality of test program, said system comprising a blank data classification module, a regular expression for the real-time download rate for each of the tested programs read classification.

[0025]优选的,所述待测节目的个数为多个时,所述系统还包括自动汇总模块,用于自动汇总并生成各个所述待测节目的所述拉流均值速率列表。 [0025] Preferably, the number of the plurality of test program, said system further comprises an automatic summary module for automatically generating a summary of each of the test program and the average flow rate of pull list.

[0026]本技术方案提供的一种流服务测试方法和系统,不同于以往的人工进行拉流均值速率计算,本发明首先获取待测节目的地址,然后依据待测节目的地址下载数据,以确定待测节目的实时下载速率,再使用预设经验滤值对确定的实时下载速率进行极值滤除处理, 最后对经过极值滤除处理后的实时下载速率利用均值算法计算出待测节目的拉流均值速率。 [0026] A service stream testing method and system provided by the present technical solution, different from the conventional manually pull the mean flow rate is calculated, the present invention first obtains the address of the program to be tested, then tested according to the address to download program data to determining the real time rate of the test program is downloaded, and then use the default value of the filtered real-time experience download rate determined extremum filtering process is performed, after the last extremum downloaded in real time rate after filtering process using the test program algorithm to calculate the mean the average flow rate of pull. 本发明有效地提高了流服务测试中拉流均值速率计算结果的准确性,能够很好地对服务策略进行调整,极大地提升了用户体验。 The present invention effectively improves the accuracy of the streaming service tests mean pull flow rate calculation results can be a good service strategy adjustment, greatly enhance the user experience.

附图说明 BRIEF DESCRIPTION

[0027]为了更清楚地说明本发明实施例中的技术方案,下面将对现有技术和实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 [0027] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following prior art will embodiments and the accompanying drawings as required briefly described embodiment, be apparent in the following description of the drawings are merely present Some embodiments of the invention, those of ordinary skill in the art is concerned, without creative efforts, can derive from these drawings other drawings.

[0028]图1为本发明提供的一种流服务测试方法的过程的流程图; Flowchart of a process flow of a testing method of the present invention to provide a service [0028] FIG 1;

[0029]图2为本发明提供的另一种流服务测试方法的过程的流程图; [0029] FIG 2 is a flowchart of another process flow of the service provided by the test method of the present invention;

[0030]图3为本发明提供的一种流服务测试系统的结构示意图。 Schematic structural diagram of [0030] FIG 3 a streaming service test system of the present disclosure.

具体实施方式 Detailed ways

[0031] 本发明的核心是提供一种流服务测试方法,有效地提高了流服务测试中拉流均值速率计算结果的准确性,能够很好地对服务策略进行调整,极大地提升了用户体验;本发明的另一核心是提供一种流服务测试系统。 [0031] The core of the invention is to provide a test method for a streaming service, effectively improve the accuracy of the flow test pull service flow rate calculation result of the mean, it can be well adjusted to the service policy, greatly enhance the user experience ; another core of the present invention is to provide a streaming service test system.

[0032] 为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。 [0032] In order that the invention object, technical solutions, and advantages of the embodiments more clearly, the following the present invention in the accompanying drawings, technical solutions of embodiments of the present invention are clearly and completely described, obviously, the described the embodiment is an embodiment of the present invention is a part, but not all embodiments. 基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, all other embodiments of ordinary skill in the art without any creative effort shall fall within the scope of the present invention.

[0033]值得注意的是,本发明中所指的一种流服务测试方法,具体指的是一种拉流均值速率的获取方法。 [0033] Notably, a streaming service according to the present invention, the test method referred to, it refers to a specific acquisition method of the mean flow rate of pull.

[0034] 实施例一 [0034] Example a

[0035]请参照图1,图1为本发明提供的一种流服务测试方法的过程的流程图,该方法包括: [0035] Referring to FIG. 1, FIG. 1 is a flowchart of the procedure of a streaming service of the present invention provides a testing method, the method comprising:

[0036] 步骤slOl:获取待测节目的地址; [0036] Step slOl: acquiring the address of a program to be tested;

[0037]可以理解的是,操作人员双击或者在控制台下打开程序名运行程序,程序首先获取待测节目的地址,这里待测节目的地址可以为一个也可以为多个。 [0037] It will be appreciated that the, or double-click to open an operator to run the program name in console, the program first obtains the address of the test program, the address where the test program may also be a plurality.

[0038] 值得注意的是,同一个服务节目在一个服务器上只有一个地址,在不同的服务器上有不同的地址,因此,多个服务节目便有多个地址。 [0038] It is noteworthy that only one address, have different addresses on different servers on a single server with a service program, therefore, will have more than one address multiple service programs.

[0039]另外,这里的待测节目可以人为指定,例如针对一些预测播放量特别大的服务节目就可以人为指定,但也可以利用计算机进行随机选取,例如如果服务节目的数量很多,为了保证效率就得随机选取。 [0039] Further, where the test program can be manually specified, for example, you can specify the number of people playing particularly large prediction service program, but may be randomly selected by a computer, for example, if the high number of service programs, in order to ensure efficiency We have randomly selected. 具体待测节目是人为指定还是随机选取,在此不做特别的限定, 能实现本发明技术效果的待测节目选取方式均在本发明的保护范围之内。 Specific test program is manually specified or randomly selected, which is not particularly limited, and can be achieved technical effect of the invention were tested in a manner selected program within the scope of the present invention.

[0040] 步骤S102:多次依据待测节目的地址下载数据,分别确定各次待测节目的实时下载速率; [0040] the step S102: multiple downloads data according to the address of the test program, the download rate are determined in real time each time a test program;

[0041] 可以理解的是,在获得待测节目的地址以后,程序便根据地址对待测节目在所在服务器上的实时下载速率进行多次下载。 [0041] it is understood that, after obtaining the address of the test program, the program will download multiple real-time download speed test program on the treatment of address of the server.

[0042] 值得注意的是,这里是通过执行Shel 1脚本中包含的Wget-a和Sleep指令来完成待测节目的实时下载速率的下载功能的,但本发明在此不做特别的限定,能实现本发明待测节目的实时下载速率的下载功能的指令或程序均在本发明的保护范围之内。 [0042] Notably, this is accomplished in real-time download program download rate measured by performing Wget-a and Shel 1 Sleep instructions contained in the script, but the present invention is not particularly limited herein, can real-time download speed test program download function of the present invention, the instructions or programs are within the scope of the present invention.

[0043] 步骤S103:使用预设经验滤值对各次待测节目的实时下载速率进行极值滤除处理; [0043] Step S103: Experience was filtered using a preset value each time the real-time download speed test program extremum filtering process is performed;

[0044]可以理解的是,待测节目的实时下载速率由于受到网络环境、连接服务器数量等多种外界条件的影响,因此待测节目的实时下载速率数值是有波动的,对于这种由外界条件影响而导致待测节目的实时下载速率数值存在严重偏差的,应该使用经验滤值对确定的实时下载速率进行极值滤除处理,即去除掉在极值以外的严重偏差的实时下载速率。 [0044] It will be appreciated that, due to the network environment in real time download speed test program, the number of connections and other external conditions of the plurality of servers, download rate value measured in real time and therefore there is a fluctuation of the program, from the outside for this conditions on the download speed real value caused by the presence of the test program serious deviation should be downloaded in real time rate determined extremum value filtering process experience filtered off, i.e. to remove the real-time download rate than serious deviation extremum.

[0045] 步骤sl04:对经过极值滤除处理后的实时下载速率利用均值算法计算出待测节目的拉流均值速率。 [0045] Step sl04: pulling the calculated mean flow rate through the test program is downloaded in real time rate after the filtering process using extremum means algorithm.

[0046]可以理解的是,在对待测节目的实时下载速率数值极值滤除处理以后,当待测节目为多个时,采用同类相加的原则,即对一个待测节目在一台服务器上的所有实时下载速率进行相加,并用均值算法进行计算,最终得到各个待测节目的实时下载速率的平均值,即各个待测节目的拉流均值速率。 [0046] It will be appreciated that, after the treatment of the measured values ​​in real time program download rate extremum filtering process, when a plurality of the test program, using the same principles added, i.e., a test program for a server on all real-time download rate are summed, and calculation means algorithm, ultimately resulting in real-time download rate for each program tested the average value, i.e., the mean flow rate of each pull test program.

[0047]当待测节目为一个时,则直接对其所有的实时下载速率进行相加,并用均值算法进行计算,最终得到待测节目的实时下载速率的平均值,即这个待测节目的拉流均值速率。 [0047] When the test program is a mean value, the real time of all its direct addition download speed, and calculation means algorithm, the finally obtained program downloaded in real time rate to be measured, i.e., the pull-test program mean flow rate. [0048]本技术方案提供的一种流服务测试方法,不同于以往的人工进行拉流均值速率计算方法,本发明首先获取待测节目的地址,然后依据待测节目的地址下载数据,以确定待测节目的实时下载速率,再使用预设经验滤值对确定的实时下载速率进行极值滤除处理,最后对经过极值滤除处理后的实时下载速率利用均值算法计算出待测节目的拉流均值速率。 [0048] A service stream testing method provided by the present technical solution, different from the previous average flow rate calculating method of pulling manually, the present invention first obtains the address of the program to be tested, then tested according to the address to download the program data to determine real-time download speed test program, and then filtered using a preset value experience downloaded in real time rate determined extremum filtering process is performed, and finally the real-time download rate through the extremum after the filtering process using the algorithm to calculate mean test program pull mean flow rate. 本发明有效地提高了流服务测试中拉流均值速率计算结果的准确性,能够很好地对服务策略进行调整,极大地提升了用户体验。 The present invention effectively improves the accuracy of the streaming service tests mean pull flow rate calculation results can be a good service strategy adjustment, greatly enhance the user experience.

[0049] 实施例二 [0049] Second Embodiment

[0050] 请参照图2,图2为本发明提供的另一种流服务测试方法的过程的流程图,该方法包括: [0050] Referring to FIG. 2, FIG. 2 is a flowchart of another process of providing streaming services testing method of the present invention, the method comprising:

[0051] 步骤S201:获取待测节目的地址; [0051] Step S201: acquiring the address of a program to be tested;

[0052]可选的,待测节目的个数为一个。 [0052] Alternatively, for a number of test programs.

[0053]可选的,待测节目的个数为多个。 [0053] Alternatively, the number of the plurality of test programs.

[0054]可以理解的是,操作人员双击或者在控制台下打开程序名运行程序,程序首先获取待测节目的地址,当待测节目为多个时,将获取到的待测节目的地址生成服务地址列表。 [0054] It will be appreciated that the, or double-click to open an operator to run the program name in console, the program first obtains the address of the test program, when a plurality of the test program address acquired program for generating test service address list. [0055]值得注意的是,这里待测节目的地址是从数据库中获取的,或者更进一步的可以说是从服务节目文档中获取的,服务节目文档中存放着很多从数据库中读取的节目服务信息。 [0055] It is noteworthy that, the address where the program to be tested is taken from a database, or further can be said to be obtained from the service program document, document storage service program with many programs read from the database Service Information. 其中,这里的节目服务信息包括节目播放地址、节目名以及节目内容描述等信息。 Among them, program service information here includes information program broadcast address, the program name and program content description.

[0056] 另外,这里的数据库为Mysql (My Structured Query Language,即关系型数据库管理系统)数据库。 [0056] In addition, where the database is Mysql (My Structured Query Language, i.e., relational database management system) database. Mysql数据库中保存着很多与节目相关的信息,例如节目名、播放地址、 节目上线时间等,而服务节目文档里的这些数据是保存在数据库中。 Mysql database holds a lot of program-related information such as program name, broadcast address, time line on the program, the service program documentation of these data are stored in the database. 当然,数据库有很多种,具体选用那种数据库,在此不做特别的限定,能实现本发明技术效果的数据库均在本发明的保护范围之内。 Of course, there are a variety of databases, particularly the choice of the kind of database, which is not particularly limited, and database technology to achieve the effect of the present invention are within the scope of the present invention.

[0057]步骤s202:多次依据待测节目的地址下载数据,分别确定各次待测节目的实时下载速率; [0057] Step s202: multiple downloads data according to the address of the test program, the download rate are determined in real time each time a test program;

[0058]步骤S203:使用正则表达式对各个待测节目的实时下载速率进行读取分类; [0058] Step S203: a regular expression for each real-time download speed test program for reading classification;

[0059]可以理解的是,当待测节目为多个时,运用正则表达式对各个待测节目的实时下载速率进行读取,每个单位设定时间对一个节目的一个实时下载速率进行读取并分类,在各个待测节目的全部实时下载速率被读取完成后,各个待测节目的所有实时下载速率的分类也就完成。 [0059] It will be appreciated that, when a plurality of the test program, the use of regular expressions to be tested in real-time download rate for each program is read, each time a unit is set to a real-time download rate program read taking and classification, all in real time are read completion rate of each test program is downloaded, the download rate for all real-time classification of each of the test program is finished.

[0060] 值得注意的是,当待测节目多一个时,则运用正则表达式进行读取后直接分为一类。 [0060] It is noted that, when measured when a multi-program, the direct use of the latter category is divided into a regular expression read.

[0061] 步骤S204:使用预设经验滤值对确定的实时下载速率进行极值滤除处理; [0061] Step S204: Experience was filtered using a preset value downloaded in real time rate determined extremum filtering process is performed;

[0062]可以理解的是,若待测节目为多个,在各个待测节目的所有实时下载速率分类完成后,使用预设经验滤值对实时下载速率进行矫正。 [0062] It will be appreciated that, if a plurality of test program, after all real-time downloading the program classification rate of each test is completed, the experience was filtered using a preset value of speed corrected in real time to download. 若待测节目为一个,则直接使用预设经验滤值对实时下载速率进行矫正。 If a test program, directly using the default value of the real-time experience by filtration download rate is corrected.

[0063] 进一步的,预设经验滤值包括极大值阈值和极小值阈值。 [0063] Further, the preset maximum value experience filtered value comprises a threshold value and the minimum value of the threshold.

[0064]可以理解的是,这里的极大值阈值和极小值阈值都是人为设定的,具体数值大小根据实际情况及具体精度来确定,在此不做特别的限定,能实现本发明目的的极大值阈值和极小值阈值均在本发明的保护范围之内。 [0064] It will be appreciated that, where the maximum value and the minimum threshold value of the threshold value is set manually, the values ​​determined according to the actual size and specific accuracy, which is not particularly limited, the present invention can be realized maximum value and the minimum threshold purposes threshold value are within the scope of the present invention.

[0065] 在确定完极大值阈值和极小值阈值以后,对确定的实时下载速率进行极值处理, 即滤除掉实时下载速率中比极大值阈值大的数值以及比极小值阈值小的数值。 [0065] After the completion of the threshold value is determined maximum value and the minimum value of the threshold, the real-time download rate determined extremum is processed, i.e. filtered out large value than the maximum value of the threshold in real-time and download rates than the minimum threshold value small numbers.

[0066]步骤s2〇5:对经过极值滤除处理后的实时下载速率利用均值算法计算出待测节目的拉流均值速率; [0066] Step s2〇5: Real-time elapsed after the download rate extremum filtering process using the algorithm to calculate the mean measured average flow rate of pull program;

[0067] 步骤S206:自动汇总并生成各个待测节目的拉流均值速率列表。 [0067] Step S206: automatically generates summary and list the mean rate of each stream pull test program.

[0068]可以理解的是,若待测节目为多个,在程序计算出各个待测节目的拉流均值速率后,程序将各个待测节目的拉流均值速率自动汇总并生成各个待测节目的拉流均值速率列表,并将拉流均值速率列表反馈给操作人员。 [0068] It will be appreciated that, if the test program for the plurality of pull-in program calculates the mean flow rate of each test program, the program will pull the average flow rate of each test program automatically generates aggregate and individual test program the average flow rate of pull list, and pull the mean flow rate feedback to the operator list.

[0069]若待测节目为一个,则直接将拉流均值速率反馈给操作人员。 [0069] The mean rate feedback to the operator if a test program, directly pull the stream.

[0070] 本技术方案提供的是另一种流服务测试方法,在实施例一所提供的一种流服务测试方法的基础上,针对待测节目为多个的情况,本实施例增加了在对实时下载速率进行极值滤除处理前,使用正则表达式对各个待测节目的实时下载速率进行读取分类,以及在利用均值算法计算出各个待测节目的拉流均值速率后,自动汇总并生成各个所述待测节目的所述拉流均值速率列表这两个步骤,在有效提高自动化流服务测试中拉流均值速率计算结果的准确性的基础上,提高了程序的运算速度以及拉流均值速率的精度,极大地提升了用户体验。 [0070] The present technology provides a streaming service is another test method, based on a streaming service embodiment provides a test method of the embodiment, the test program for a case where a plurality of, in the present embodiment increases the before downloading the real-time rate extreme value filtering process, a regular expression for each real-time download speed test program read classification, and in the calculation of the mean flow rate of each pull test program by means algorithm automatically aggregate the accuracy of said base and said generating respective pull-test program listing flow rates mean that two steps, increased automation in the effective pull service test stream flow rate calculation on the mean value, increases the operation speed of the program and pull the accuracy of the mean flow rate, greatly enhance the user experience.

[0071] 与上述实施例相对应,本发明实施例还提供了一种流服务测试系统,请参照图3, 图3为本发明提供的一种流服务测试系统的结构示意图,该系统包括: [0071] corresponds to the above-described embodiments, embodiments of the present invention further provides a test system stream service, please refer to 3, a schematic structural diagram of a streaming service test system of the present invention provides FIG. 3, the system comprising:

[0072]地址获取模块10,用于获取待测节目的地址; [0072] The address obtaining module 10, configured to obtain the address of the test program;

[0073]数据下载模块20,用于多次依据待测节目的地址下载数据,分别确定各次待测节目的实时下载速率; [0073] The data download module 20, according to the address data for a plurality of times to download the test program, the download rate are determined in real time each time a test program;

[0074]数据矫正模块40,用于使用预设经验滤值对确定的实时下载速率进行极值滤除处理; [0074] The data correction module 40 is configured to use default values ​​for real-time experience by filtration download rate determined extremum filtering process is performed;

[0075]数据计算模块50,用于对经过极值滤除处理后的实时下载速率利用均值算法计算出待测节目的拉流均值速率。 [0075] The data computing module 50, for real-time download rate through the extremum filtered processed using the program test means algorithm calculated mean flow rate of pull.

[0076]进一步的,该系统还包括数据分类模块30,用于待测节目的个数为多个时,使用正则表达式对各个待测节目的实时下载速率进行读取分类。 [0076] Further, the system further comprises a data classification module 30, a number of the plurality of test program is, a regular expression for each real-time download speed test program read classification.

[0077]更进一步的,该系统还包括自动汇总模块60,用于待测节目的个数为多个时,自动汇总并生成各个待测节目的拉流均值速率列表。 [0077] Still further, the system further comprises an automatic summary module 60, a number of the plurality of test program is automatically generated summary and the mean flow rate of a listing of each pull-test program.

[0078]可以理解的是,对应上述一种流服务测试方法,每个模块执行的具体操作可以参考前述的的方法实施例,在此不再赘述。 [0078] It will be appreciated that a streaming service corresponding to the above-described test method, the specific operation of each module can be performed with reference to the foregoing embodiments of the method, it is not repeated here.

[0079]本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。 [0079] In the present specification, the various embodiments described in a progressive manner, differences from the embodiment and the other embodiments each of which emphasizes embodiment, the same or similar portions between the various embodiments refer to each other. 对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。 For the disclosed embodiment of the apparatus embodiment, since it corresponds to the method disclosed embodiments, the description is relatively simple, see Methods of the correlation can be described.

[0080]专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。 [0080] professionals may further appreciate that the various means disclosed herein and algorithm steps described exemplary embodiments, by electronic hardware, computer software, or a combination thereof. In order to clearly illustrate the hardware and software interchangeability, in the above description, according to functions generally described compositions and steps of the examples. 这些功能宄竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。 These features traitor to actually perform hardware or software depends upon the particular application and design constraints of the technical solutions. 专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。 Professional technical staff may use different methods for each specific application to implement the described functionality, but such implementation should not be considered outside the scope of the present invention.

[GG81]结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。 [GG81] steps of a method or algorithm described in the embodiments disclosed herein may be implemented in hardware, or a combination thereof, in a software module executed by a processor implemented directly. 软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM或技术领域内所公知的任意其它形式的存储介质中。 A software module may be placed in a random access memory (RAM), a memory, a read only memory (ROM), electrically programmable ROM, an electrically erasable programmable within the well-known ROM, a register, a hard disk, a removable disk, CD-ROM or Field any other form of storage medium.

[0082]对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。 [0082] The above description of the disclosed embodiments enables those skilled in the art to make or use the present invention. 对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。 Various modifications to these professionals skilled in the art of the present embodiments will be apparent, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. 因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。 Accordingly, the present invention will not be limited to the embodiments shown herein but is to be accorded herein consistent with the principles and novel features disclosed widest scope.

Claims (5)

1. 一种流服务测试方法,其特征在于,包括: 获取随机选取的待测节目的地址; 多次依据所述待测节目的地址下载数据,分别确定各次所述待测节目的实时下载速率; 使用预设经验滤值对各次所述待测节目的实时下载速率进行极值滤除处理; 对经过极值滤除处理后的实时下载速率利用均值算法计算出所述待测节目的拉流均值速率; 其中,所述待测节目的个数为多个; 在使用所述预设经验滤值对确定的所述实时下载速率进行矫正前,所述方法还包括: 使用正则表达式对各个所述待测节目的实时下载速率进行读取分类; 所述预设经验滤值包括极大值阈值和极小值阈值。 A service stream testing method, comprising: obtaining address randomly selected test program; a plurality of times according to the address data of the test program is downloaded separately determined each time the program is downloaded in real time test rate; experience filtered using a preset value each time the real-time download speed test program performs a filtering process extremum; real-time download rate through the extremum filtering process using an algorithm to calculate the mean of the test program pull mean flow rate; wherein the number of the plurality of test programs; prior experience in using the preset value determined by filtration of the download rate is corrected in real time, the method further comprising: using regular expressions downloading the real-time rate of each test program for reading classification; experience the predetermined value filter comprises a maximum value and the minimum threshold value of the threshold.
2. 根据权利要求1所述的方法,其特征在于,所述获取待测节目的地址的过程具体包括: 从数据库中获取待测节目的地址。 2. The method according to the process according to claim 1, wherein the obtaining the address of the program under test comprises: obtaining the address of the device from the database program.
3. 根据权利要求1所述的方法,其特征在于,利用所述均值算法计算出所述待测节目的拉流均值速率后,所述方法还包括:自动汇总并生成各个所述待测节目的所述拉流均值速率列表。 3. The method according to claim 1, wherein, after using the pull-means algorithm to calculate the mean flow rate of the test program, the method further comprising: automatically generating a summary of each of the test program, and the average flow rate of pull list.
4. 一种流服务测试系统,其特征在于,包括: 地址获取模块,用于获取随机选取的待测节目的地址; 数据下载模块,用于多次依据所述待测节目的地址下载数据,分别确定各次所述待测节目的实时下载速率; 数据矫正模块,用于使用预设经验滤值对确定的所述实时下载速率进行极值滤除处理; 数据计算模块,用于对经过极值滤除处理后的实时下载速率利用均值算法计算出所述待测节目的拉流均值速率; 其中,所述待测节目的个数为多个时,所述系统还包括数据分类模块,用于使用正则表达式对各个所述待测节目的实时下载速率进行读取分类; 所述预设经验滤值包括极大值阈值和极小值阈值。 A service flow test system comprising: an address obtaining module, configured to obtain an address randomly selected test program; data download means for downloading a plurality of times according to the address data of the test program, They are determined each time the real-time download rate of the test program; and a data correcting means for using the preset value of the real-time experience by filtration download rate determined extremum filtering process is performed; data calculation module for after a very real-time filtered values ​​processed download rate calculated mean flow rate of the pull-test program by means algorithm; wherein the number of the plurality of test program, said system further comprises a data classification module, with real-time in a regular expression download rate for each of the tested programs read classification; experience the predetermined value filter comprises a maximum value and the minimum threshold value of the threshold.
5.根据权利要求4所述的系统,其特征在于,所述待测节目的个数为多个时,所述系统还包括自动汇总模块,用于自动汇总并生成各个所述待测节目的所述拉流均值速率列表。 5. The system as claimed in claim 4, wherein the number of the plurality of test program, said system further comprises an automatic summary module for automatically generating a summary of each of the test program and the the average flow rate of pull list.
CN201410709189.1A 2014-11-26 2014-11-26 A streaming service testing methods and systems CN104363470B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410709189.1A CN104363470B (en) 2014-11-26 2014-11-26 A streaming service testing methods and systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410709189.1A CN104363470B (en) 2014-11-26 2014-11-26 A streaming service testing methods and systems

Publications (2)

Publication Number Publication Date
CN104363470A CN104363470A (en) 2015-02-18
CN104363470B true CN104363470B (en) 2018-04-20

Family

ID=52530689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410709189.1A CN104363470B (en) 2014-11-26 2014-11-26 A streaming service testing methods and systems

Country Status (1)

Country Link
CN (1) CN104363470B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306299A (en) * 2015-11-02 2016-02-03 上海聚力传媒技术有限公司 Streaming media server performance test method and test system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6138163A (en) * 1996-11-20 2000-10-24 Electronics And Telecommunications Research Institute Mediate server and real time delivery method between different networks
CN1518285A (en) * 2003-01-16 2004-08-04 华为技术有限公司 Network bandwidth detecting method for implementing stream medium service
CN101072327A (en) * 2007-06-19 2007-11-14 中兴通讯股份有限公司 Flow media performance testing method
CN103731851A (en) * 2014-01-15 2014-04-16 中国移动通信集团陕西有限公司 Network performance evaluation method and device
CN104092722A (en) * 2014-03-26 2014-10-08 腾讯科技(深圳)有限公司 Network file downloading method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6138163A (en) * 1996-11-20 2000-10-24 Electronics And Telecommunications Research Institute Mediate server and real time delivery method between different networks
CN1518285A (en) * 2003-01-16 2004-08-04 华为技术有限公司 Network bandwidth detecting method for implementing stream medium service
CN101072327A (en) * 2007-06-19 2007-11-14 中兴通讯股份有限公司 Flow media performance testing method
CN103731851A (en) * 2014-01-15 2014-04-16 中国移动通信集团陕西有限公司 Network performance evaluation method and device
CN104092722A (en) * 2014-03-26 2014-10-08 腾讯科技(深圳)有限公司 Network file downloading method and device

Also Published As

Publication number Publication date
CN104363470A (en) 2015-02-18

Similar Documents

Publication Publication Date Title
CN103533016B (en) For broadband network speed and intelligent analysis
CN101729571A (en) Method, server and system for counting network on-line user number
CN103186457A (en) Method and device for automatically generating test case
EP2950551A1 (en) Method for recommending multimedia resource and apparatus thereof
JP2011081491A (en) Time series analysis device, time series analysis method and program
CN103455522B (en) Application extension tools recommended method and system
CN101635655A (en) Method, device and system for page performance test
CN101526919A (en) Method for generating script files to test Web application software and device thereof
CN104135507B (en) A method and apparatus for preventing Daolian
CN103401763B (en) Method for receiving group messages, the group message processing method and apparatus
CN104462245B (en) A user preference data identifying access method
CN101399708B (en) Method and device for establishing network performance model
CN104596035B (en) The location-based matching method and system for air-conditioning controller and a mobile terminal
CN104013410B (en) The audio playing method, apparatus and system for
CN103778254A (en) Method, device and system for processing page access data
CN102523493A (en) Method and system for grading television program according to mood
US8935581B2 (en) Upstream fault detection
CN104572998B (en) Q sorting method and apparatus for model updating QA System
CN102508907A (en) Dynamic recommendation method based on training set optimization for recommendation system
CN102882738B (en) A method and apparatus for detecting network access speed
CN104598505B (en) Multimedia resource recommendation method and apparatus
US9971324B2 (en) Storage for real time process
CN104575503B (en) Voice recognition method and apparatus
CN103716370B (en) Method and apparatus for data synchronization between a plurality of client
CN103064858B (en) Method and apparatus for detecting poor image of the social networking site

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01