CN105721864B - A kind of efficient regression testing method based on audio and video encapsulated layer parameter detecting - Google Patents

A kind of efficient regression testing method based on audio and video encapsulated layer parameter detecting Download PDF

Info

Publication number
CN105721864B
CN105721864B CN201610268188.7A CN201610268188A CN105721864B CN 105721864 B CN105721864 B CN 105721864B CN 201610268188 A CN201610268188 A CN 201610268188A CN 105721864 B CN105721864 B CN 105721864B
Authority
CN
China
Prior art keywords
new
file
tag file
metadata
audio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610268188.7A
Other languages
Chinese (zh)
Other versions
CN105721864A (en
Inventor
陈左乐
袁克东
钱永江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Dang Hong Polytron Technologies Inc
Original Assignee
Hangzhou Arcvideo Technology Co ltd
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 Hangzhou Arcvideo Technology Co ltd filed Critical Hangzhou Arcvideo Technology Co ltd
Priority to CN201610268188.7A priority Critical patent/CN105721864B/en
Publication of CN105721864A publication Critical patent/CN105721864A/en
Application granted granted Critical
Publication of CN105721864B publication Critical patent/CN105721864B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The invention discloses a kind of efficient regression testing methods based on audio and video encapsulated layer parameter detecting,The conventional parameter and metadata in a media file are extracted using analytical tool,And conventional parameter and metadata are written in a newly-built tag file A and are preserved,After analytical tool more new version,New conventional parameter and the new metadata in the same media file are extracted by the analytical tool of new version,And new conventional parameter and new metadata are written in another newly-built tag file B and are preserved,By comparing tag file A and tag file B,Export comparison result,For in various encapsulated layer regression tests,Method through the invention,It only needs to consume some times on first time prepares,The input of the module 80% test manpower can be saved in regression test from now on,Result is exported by automation can quickly be found,And evade the rollback problem occurred because increasing new function rapidly.

Description

A kind of efficient regression testing method based on audio and video encapsulated layer parameter detecting
Technical field
The present invention relates to a kind of efficient regression testing methods based on audio and video encapsulated layer parameter detecting.
Background technology
The audio and video package type that present multimedia field is related to is more, for the encapsulation parsing module after edition upgrading Test be required for covering a large amount of test materials every time, such as TS, FLV, MKV, AVI, MPG, MXF, MP4, WMV are per a kind of envelope The test for filling format, is required for traversing the parameter that it is supported, more repetitive operation can all occur in each iteration, this Sample is very big to the input of manpower, and is directed to a large amount of material and a large amount of parameter in each iterative process into pedestrian The repeated authentication of work unavoidably will appear omission, result caused to be distorted.
Invention content
Based on this, it is necessary to provide a kind of automate and export result and can avoid one kind of other factors interference based on sound The efficient regression testing method of video encapsulation layer parameter detection.
According to an aspect of the present invention, a kind of efficient regression test side based on audio and video encapsulated layer parameter detecting is provided Method includes the following steps:
Conventional parameter and metadata in one media file are extracted using analytical tool, and by conventional parameter and metadata It is written in a newly-built tag file A and preserves;
After analytical tool more new version, the new routine in the same media file is extracted by the analytical tool of new version Parameter and new metadata, and new conventional parameter and new metadata are written in another newly-built tag file B and are preserved;
By comparing tag file A and tag file B, comparison result is exported.
The store method of tag file is as follows in one of the embodiments,:
By " | Start Code | packet length | Payload | " structure information storage in a manner of store the parsing of each media file Each wide-angle data afterwards, wherein Start Code represent the start code of each structure information storage, and packet length represents The length of Payload, Payload represent valid data.
Each wide-angle data corresponds to an audio stream after media file parsing or one in one of the embodiments, Video flowing corresponds to for each wide-angle data that media file parses and generates a tag file.
The method for comparing tag file in one of the embodiments, specifically by the Start in two tag files Tri- Code, packet length and Payload parts are compared respectively.
This efficient regression testing method based on audio and video encapsulated layer parameter detecting is parsed by each encapsulation Audio and video conventional parameter and metadata are marked, and are synthesized according to the frame mode of each encapsulation itself, generate one A new tag file that former media file characteristic value is marked, when each regression test, the solution with new version The tag file that analysis tool needle generates the media file is compared to confirm whether update occurs rollback problem, this method Automation output is realized as a result, a large amount of repeated works can be saved, the efficiency of test job is not only increased, also avoids other The interference of factor.
Description of the drawings
Fig. 1 is a kind of efficient regression testing method based on audio and video encapsulated layer parameter detecting of an embodiment of the present invention In extraction media file information and the logic diagram for creating tag file step is written;
Fig. 2 is in a kind of efficient regression testing method based on audio and video encapsulated layer parameter detecting for invent an embodiment To before and after analytical tool version extracting parameter information carry out regression test step logic diagram;
Fig. 3 is the structural schematic diagram of the structure information storage of tag file in Fig. 1;
Fig. 4 is the structural schematic diagram of each wide-angle data structure preserving type of Fig. 1;
Fig. 5 is the logic diagram of the regression test process of Fig. 2.
Specific implementation mode
It to facilitate the understanding of the present invention, below will be with specific embodiment to invention is more fully described.But this Invention can be realized in many different forms, however it is not limited to embodiment described herein.On the contrary, providing this embodiment Purpose be to make the disclosure of the present invention more thorough and comprehensive.
A kind of efficient regression testing method based on audio and video encapsulated layer parameter detecting of one embodiment of the invention, including such as Lower step:
Step 1, as shown in Figure 1, extracting conventional audio and video parameter and the first number in a media file using analytical tool According to, and conventional audio and video parameter and metadata are written in a newly-built tag file A and are preserved.Specific to the present embodiment In, then it is Video Parameter, the Audio that TS file video contents are extracted by the Parser modules of analytical tool The information of Parameter and Element Stream three parts, and be written in a newly-built tag file, create tag file Name it is consistent with the TS file names, preserved as test case;
Step 2, after analytical tool more new version, extracted in the same media file by the analytical tool of new version New conventional parameter and new metadata, and new conventional parameter and new metadata are written in another newly-built tag file B and are protected It deposits, principle is the same as step 1.
Step 3, as shown in Fig. 2, by compare tag file A and tag file B, export comparison result.Pass through upper one As original record, the parameter information obtained with a collection of content with next version carries out the parameter information that a iteration version obtains Regression test obtains final testing result.
Specifically, in the present embodiment, the store method of tag file is as follows:
As shown in figure 3, by " | Start Code | packet length | Payload | " self-defined information storage organization in a manner of store Each wide-angle data after each TS document analysis, the starting that wherein Start Code represent each structure information storage are compiled Code, packet length represent the length of Payload, and Payload represents valid data.
Each wide-angle data corresponds to an audio stream or a video flowing after media file parsing, for media file Each the wide-angle data parsed, which correspond to, generates a tag file.Each for being directed to that each media file parses is wide Angular data can all generate a corresponding tag file.As shown in figure 4, for the preserving type of each wide-angle data, when one Media file has a video and an audio, then two tag files can be generated for this file, if corresponding matchmaker Body file has multiple video flowings and audio stream, then can then be directed to each video flowing and the corresponding feature text of audio stream generation Part, version is compared by these tag files before and after analytical tool, exports comparison result.
Specifically, in the present embodiment, the method for comparing tag file, as shown in figure 5, being specifically by two tag files In Start Code, tri- parts of packet length and Payload are compared respectively.
For in various encapsulated layer regression tests, method through the embodiment of the present invention then only needs to prepare in first time Upper some times of consumption can save the input of the module 80% test manpower in regression test from now on, pass through automation Output result can quickly be found, and evade the rollback problem occurred because increasing new function rapidly.
This efficient regression testing method based on audio and video encapsulated layer parameter detecting is parsed by each encapsulation Audio and video conventional parameter and metadata are marked, and are synthesized according to the frame mode of each encapsulation itself, generate one A new tag file that former media file characteristic value is marked, when each regression test, the solution with new version The tag file that analysis tool needle generates the media file is compared to confirm whether update occurs rollback problem, this method Automation output is realized as a result, a large amount of repeated works can be saved, the efficiency of test job is not only increased, also avoids other The interference of factor.
Above example only expresses the individual embodiments of the present invention, the description thereof is more specific and detailed, but can not Therefore it is interpreted as the limitation to the scope of the claims of the present invention.It should be pointed out that for those of ordinary skill in the art, Without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection model of the present invention It encloses.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (1)

1. a kind of efficient regression testing method based on audio and video encapsulated layer parameter detecting, which is characterized in that include the following steps:
Conventional parameter and metadata in one media file are extracted using analytical tool, and by the conventional parameter and the member Data are written in a newly-built tag file A and preserve;
After the analytical tool more new version, extracted in the same media file by the analytical tool of the new version New conventional parameter and new metadata, and the new conventional parameter and the new metadata are written to another newly-built feature text In part B and preserve;
The store method of the tag file A and tag file B be with " | StartCode | packet length | Payload | " information Storage organization mode stores each wide-angle data after each media file parsing, wherein the StartCode is represented The start code of each described information storage organization, the packet length represent the length of the Payload, the Payload generations Table valid data, each described wide-angle data correspond to an audio stream or a video flowing after the media file parsing, It is corresponded to for each described wide-angle data that the media file parses and generates a tag file;
By the StartCode, the packet length and the Payload tri- in the tag file A and the tag file B A part is compared respectively, and comparison result is exported by comparing the tag file A and tag file B.
CN201610268188.7A 2016-04-20 2016-04-20 A kind of efficient regression testing method based on audio and video encapsulated layer parameter detecting Active CN105721864B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610268188.7A CN105721864B (en) 2016-04-20 2016-04-20 A kind of efficient regression testing method based on audio and video encapsulated layer parameter detecting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610268188.7A CN105721864B (en) 2016-04-20 2016-04-20 A kind of efficient regression testing method based on audio and video encapsulated layer parameter detecting

Publications (2)

Publication Number Publication Date
CN105721864A CN105721864A (en) 2016-06-29
CN105721864B true CN105721864B (en) 2018-09-21

Family

ID=56162133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610268188.7A Active CN105721864B (en) 2016-04-20 2016-04-20 A kind of efficient regression testing method based on audio and video encapsulated layer parameter detecting

Country Status (1)

Country Link
CN (1) CN105721864B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10970881B2 (en) * 2018-12-21 2021-04-06 Samsung Display Co., Ltd. Fallback modes for display compression
CN112580467B (en) * 2020-12-08 2024-07-02 平安国际智慧城市科技股份有限公司 Video regression testing method and device, computer equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7366961B1 (en) * 2000-01-24 2008-04-29 Ati Technologies, Inc. Method and system for handling errors
CN101178687B (en) * 2007-11-26 2010-06-09 中兴通讯股份有限公司 Software regression testing method
CN103049367A (en) * 2011-10-11 2013-04-17 神州数码信息系统有限公司 Automatic testing method for software
CN103064781A (en) * 2011-10-18 2013-04-24 飞图科技(北京)有限公司 Mobile software automated testing method
CN103678097A (en) * 2012-09-05 2014-03-26 百度在线网络技术(北京)有限公司 Method and device for selecting regression test case

Also Published As

Publication number Publication date
CN105721864A (en) 2016-06-29

Similar Documents

Publication Publication Date Title
US8949799B2 (en) Program log record optimization
CN104699714A (en) Method and device for transferring files of book edition format into files of EPUB format
CN105721864B (en) A kind of efficient regression testing method based on audio and video encapsulated layer parameter detecting
US20080155519A1 (en) Code translator
CN103077192B (en) A kind of data processing method and system thereof
CN102243699A (en) Malicious code detection method and system
CN106547782A (en) The acquisition methods and device of log information
CN108090041B (en) Method and device for generating advertisement creativity
CN104834510A (en) Method and device for generating CAN (Controller Area Network) protocol code source file
CN110210010A (en) PSD file editing method, electronic equipment based on demixing technology realization
CN105824647A (en) Form page generating method and device
CN109558548A (en) A kind of method and Related product for eliminating CSS style redundancy
CN104298671B (en) data statistical analysis method and device
CN102289445A (en) Method and device for analyzing XML (Extensible Markup Language) file and terminal
CN101937426A (en) Method and device for processing incompatible data
Maggiolo-Schettini et al. Semantics of full statecharts based on graph rewriting
KR101433139B1 (en) Data Preprocessing System For Process Analysis
CN106326090A (en) Method and device for realizing construction of test use case
CN106354864A (en) Form saving method and system
CN106293862B (en) A kind of analysis method and device of expandable mark language XML data
CN106874147B (en) Method for recovering and analyzing pre-read file of Windows operating system
CN102147818A (en) Test file compression method
CN104320454A (en) Method and system for realizing user-defined output in HTTP protocol recovery
CN106469048A (en) A kind of method and apparatus calling content in attribute configuration file
CN109614519A (en) Data lead-in method and data importing device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310000 A Block, 16th Floor, E Building, Paradise Software Park, No. 3 Xidoumen Road, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Dang Hong Polytron Technologies Inc

Address before: 310000 B2010, two floor, North (two), six and 368 Road, Binjiang District, Hangzhou, Zhejiang.

Patentee before: HANGZHOU DANGHONG TECHNOLOGY CO., LTD.

CP03 Change of name, title or address