CN102147818A - Test file compression method - Google Patents
Test file compression method Download PDFInfo
- Publication number
- CN102147818A CN102147818A CN2011101271045A CN201110127104A CN102147818A CN 102147818 A CN102147818 A CN 102147818A CN 2011101271045 A CN2011101271045 A CN 2011101271045A CN 201110127104 A CN201110127104 A CN 201110127104A CN 102147818 A CN102147818 A CN 102147818A
- Authority
- CN
- China
- Prior art keywords
- data
- test file
- type
- thumbnail
- compression
- 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.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 91
- 238000007906 compression Methods 0.000 title claims abstract description 67
- 230000006835 compression Effects 0.000 title claims abstract description 67
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000013144 data compression Methods 0.000 claims description 6
- 241001269238 Data Species 0.000 description 4
- 238000010586 diagram Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a test file compression method which is used for compressing an original test file and comprises the following steps: setting a type module; searching the original test file line by line according to bytes; matching the data of the original test file and the type module so as to determine the type of the data of the original test file; and compressing the continuous data of the same type according to lines, and representing each compressed part with a thumbnail. The test file compression method is used for compressing the test file according to the type of the data and leads a browser to rapidly read the test file.
Description
Technical field
The present invention relates to field tests, relate in particular to a kind of test file compression method.
Background technology
The capacity of the test file that the integrated circuit testing field produces is usually much larger than 2G, for example, VEC formatted file, WGL formatted file, ATP formatted file etc., adopt present browser (as UE) to be difficult to read this class high capacity file, promptly enable to read, reading speed is also very slow, and how making browser read jumbo test file fast is a urgent problem.
Summary of the invention
The object of the present invention is to provide a kind of test file compression method,, make browser read test file fast by data type compression verification file.
To achieve the above object, the invention provides a kind of test file compression method, be used to compress original test file, this compression method may further comprise the steps: type block is set; Search for described original test file line by line by byte, the data of described original test file and the type block of above-mentioned setting are mated, with the type of the data of determining described original test file; By row, data continuous, that type is identical are compressed, and characterized each compression section with thumbnail.
Above-mentioned test file compression method wherein, is provided with type block according to the type of the data of text, the corresponding a kind of data type of type block, and described type block has defined the feature of its pairing data type.
Above-mentioned test file compression method, wherein, described original test file is VEC formatted file, WGL formatted file or ATP formatted file etc.
Above-mentioned test file compression method wherein, when determining the type of data of described original test file, is determined according to the feature of the data type of described type block definition.
Above-mentioned test file compression method wherein, in the described original test file, if comprise polytype with the data of delegation, then compresses data continuous, that type is identical, and each compression section all uses a thumbnail to characterize; If all belong to same type, then, characterize with a thumbnail with the data of delegation with the data compression of this row together; If continuously the data of multirow all belong to same type, and the line number quantity of this continuous multirow is smaller or equal to a setting value, then, characterizes with a thumbnail with the data compression of this multirow together; If the data of multirow all belong to same type continuously, and the line number quantity of this continuous multirow is greater than above-mentioned setting value, then should be divided into many parts by continuous multirow, every part is compressed respectively, and each compression section all uses a thumbnail to characterize, wherein, every part of line number quantity that is comprised is smaller or equal to above-mentioned setting value, and every part of row that is comprised is continuous.
Above-mentioned test file compression method, wherein, described thumbnail comprises brief description, plus sige sign "+" and minus sign sign "-", described brief description is used for simply introducing the content of the pairing compression section of this thumbnail, described plus sige sign "+" is used to open the particular content of the pairing compression section of this thumbnail, and described minus sign sign "-" is used to close the particular content of the opened pairing compression section of this thumbnail.
Test file compression method of the present invention according to data type, by the row original test file is compressed, and characterize each compression section with thumbnail, therefore, when using browser to read the detecting large volume file, do not need to read out the full content of test file is disposable, piecemeal reads selectively, and this will improve reading speed greatly.
Description of drawings
Test file compression method of the present invention is provided by following embodiment and accompanying drawing.
Fig. 1 is the process flow diagram of test file compression method of the present invention.
Embodiment
Below with reference to Fig. 1 test file compression method of the present invention is described in further detail.
Referring to Fig. 1, test file compression method of the present invention may further comprise the steps:
Step 1 is provided with type block;
Type according to the data of general text (being the TXT file) is provided with type block, normally, the content of text shows (being that text is made up of data of different types) by data of different types, for example, lteral data, character data, numerical data, time series data, name data, the programming language data, according to the data type that general text comprised type block is set, for example, the lteral data module is set, the character data module, digital data modules, the time series data module, the name data module, the programming language data module;
The corresponding a kind of data type of type block, described type block has defined the feature of its pairing data type;
Step 2 is searched for original test file line by line by byte, the type block that the data of original test file and step 1 are provided with is mated, with the type of the data of determining described original test file;
Test file compression method of the present invention is considered as vector file with original test file, and each row of original test file all is considered as a vector, therefore, when determining the type of each data of original test file, searches for original test file line by line by byte;
Described original test file for example is VEC formatted file, WGL formatted file or ATP formatted file etc.;
Each data of original test file all will be mated with described type block, to determine the type of each data, when determining the type of data of original test file, determine according to the feature of the data type of described type block definition;
Step 3 by row, is compressed data continuous, that type is identical, and is characterized each compression section with thumbnail;
In the described original test file, if the data with delegation comprise polytype, then to continuous, the data that type is identical are compressed, promptly the data of this row are compressed by the data type and the position of arranging, data compressed together not only type are identical, and arrange continuously, each compression section all uses a thumbnail to characterize, for example, the data of certain delegation of one original test file are " test result of the 3rd group of specimen is 0111110011110 ", the data of this row comprise two types, first kind is lteral data, second kind is numerical data, and whole lteral datas that this row comprised are arranged continuously, the whole numerical datas that comprised are also arranged continuously, and the whole lteral datas in this row " test result of the 3rd group of specimen is " are compressed together, and characterize this compression section with a thumbnail, whole numerical datas " 0111110011110 " in this row are compressed together, also characterize this compression section with a thumbnail;
If all belong to same type, then, characterize with a thumbnail with the data of delegation with the data compression of this row together;
If continuously the data of multirow all belong to same type, and the line number quantity of this continuous multirow is smaller or equal to a setting value, then, characterizes with a thumbnail with the data compression of this multirow together;
If the data of multirow all belong to same type continuously, and the line number quantity of this continuous multirow is greater than above-mentioned setting value, then should be divided into many parts by continuous multirow, every part is compressed respectively, and each compression section all uses a thumbnail to characterize, wherein, every part of line number quantity that is comprised is smaller or equal to above-mentioned setting value, and every part of row that is comprised is continuous, and for example, original test file has the numerical data of continuous 2,200,000 row, if it is the numerical data of these 2,200,000 row is all compressed together, capacity is bigger, and reading speed is slow, at this moment, can set each line number quantity of being comprised of compression and be 500,000 row to the maximum, like this, the numerical data of these 2,200,000 row can be divided into 5 parts, and every part of line number quantity that is comprised is all smaller or equal to 500,000 row, every part is compressed respectively, all use a thumbnail to characterize after every part of compression, after promptly the numerical data of these 2,200,000 row is compressed through test file compression method of the present invention, be shown as 5 thumbnails.
Original test file is shown as the test file of being made up of thumbnail after adopting test file compression method compression of the present invention, that is to say, adopt the test file after test file compression method of the present invention compresses the particular content of test file not to be shown, but characterize compressed content with thumbnail one by one, because test file compression method of the present invention is considered as vector file with original test file, each row of original test file all is considered as a vector, therefore, test file compression method of the present invention compresses original test file by row, and the layout of the test file after the compression is identical with the layout of original test file;
Described thumbnail comprises brief description, plus sige sign "+" and minus sign sign "-", described brief description is used for simply introducing the content of the pairing compression section of this thumbnail, described plus sige sign "+" is used to open the particular content of the pairing compression section of this thumbnail, described minus sign sign "-" is used to close the particular content of the opened pairing compression section of this thumbnail, because the test file after the compression does not show the particular content of test file, therefore, when using the test file after browser is read compression, can understand the content of the pairing compression section of this thumbnail earlier by the brief description of thumbnail, the plus sige sign "+" of clicking this thumbnail again just can be opened the particular content of the pairing compression section of this thumbnail, clicks the minus sign sign "-" of this thumbnail and just can close opened particular content.
Test file compression method of the present invention according to data type, by the row original test file is compressed, and characterize each compression section with thumbnail, therefore, the mode that can adopt part to read reads the test file after the compression, that is to say, when using browser to read the detecting large volume file, do not need to read out the full content of test file is disposable, piecemeal reads selectively, and this will improve reading speed greatly.
Test file compression method of the present invention is provided with type block according to the data type of text, when using the test file after browser reads compression, the display mode of the test file after the compression is identical with the display mode of text, and can the test file after the compression be carried out and the text identical operations, for example, duplicate, paste, select, revise or the like.
Claims (6)
1. a test file compression method is used to compress original test file, it is characterized in that, may further comprise the steps:
Type block is set;
Search for described original test file line by line by byte, the data of described original test file and the type block of above-mentioned setting are mated, with the type of the data of determining described original test file;
By row, data continuous, that type is identical are compressed, and characterized each compression section with thumbnail.
2. test file compression method as claimed in claim 1 is characterized in that, according to the type of the data of text type block is set, the corresponding a kind of data type of type block, and described type block has defined the feature of its pairing data type.
3. test file compression method as claimed in claim 1 is characterized in that, described original test file is VEC formatted file, WGL formatted file or ATP formatted file.
4. test file compression method as claimed in claim 2 is characterized in that, when determining the type of data of described original test file, determines according to the feature of the data type of described type block definition.
5. test file compression method as claimed in claim 1, it is characterized in that, in the described original test file, if comprise polytype with the data of delegation, then data continuous, that type is identical are compressed, each compression section all uses a thumbnail to characterize; If all belong to same type, then, characterize with a thumbnail with the data of delegation with the data compression of this row together; If continuously the data of multirow all belong to same type, and the line number quantity of this continuous multirow is smaller or equal to a setting value, then, characterizes with a thumbnail with the data compression of this multirow together; If the data of multirow all belong to same type continuously, and the line number quantity of this continuous multirow is greater than above-mentioned setting value, then should be divided into many parts by continuous multirow, every part is compressed respectively, and each compression section all uses a thumbnail to characterize, wherein, every part of line number quantity that is comprised is smaller or equal to above-mentioned setting value, and every part of row that is comprised is continuous.
6. test file compression method as claimed in claim 5, it is characterized in that, described thumbnail comprises brief description, plus sige sign "+" and minus sign sign "-", described brief description is used for simply introducing the content of the pairing compression section of this thumbnail, described plus sige sign "+" is used to open the particular content of the pairing compression section of this thumbnail, and described minus sign sign "-" is used to close the particular content of the opened pairing compression section of this thumbnail.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110127104.5A CN102147818B (en) | 2011-05-17 | 2011-05-17 | Test file compression method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110127104.5A CN102147818B (en) | 2011-05-17 | 2011-05-17 | Test file compression method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102147818A true CN102147818A (en) | 2011-08-10 |
CN102147818B CN102147818B (en) | 2013-09-25 |
Family
ID=44422083
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110127104.5A Expired - Fee Related CN102147818B (en) | 2011-05-17 | 2011-05-17 | Test file compression method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102147818B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571820A (en) * | 2012-02-21 | 2012-07-11 | 华为技术有限公司 | Method used for transmitting data, compression server and terminal |
CN105335531A (en) * | 2015-12-14 | 2016-02-17 | 北京奇虎科技有限公司 | Document compression and decompression method and device |
CN105512305A (en) * | 2015-12-14 | 2016-04-20 | 北京奇虎科技有限公司 | Serialization-based document compression and decompression method and device |
CN107835158A (en) * | 2017-10-18 | 2018-03-23 | 中国银行股份有限公司 | The transmission method and device of interaction data under SNA network system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1405705A (en) * | 2001-08-20 | 2003-03-26 | 北京九州计算机网络有限公司 | Intelligent compression method for file of computer |
-
2011
- 2011-05-17 CN CN201110127104.5A patent/CN102147818B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1405705A (en) * | 2001-08-20 | 2003-03-26 | 北京九州计算机网络有限公司 | Intelligent compression method for file of computer |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571820A (en) * | 2012-02-21 | 2012-07-11 | 华为技术有限公司 | Method used for transmitting data, compression server and terminal |
CN102571820B (en) * | 2012-02-21 | 2015-11-25 | 华为技术有限公司 | For transmitting the method for data, compression service device and terminal |
CN105335531A (en) * | 2015-12-14 | 2016-02-17 | 北京奇虎科技有限公司 | Document compression and decompression method and device |
CN105512305A (en) * | 2015-12-14 | 2016-04-20 | 北京奇虎科技有限公司 | Serialization-based document compression and decompression method and device |
CN105512305B (en) * | 2015-12-14 | 2019-04-26 | 北京奇虎科技有限公司 | A kind of document compression, document decompressing method and device based on serializing |
CN105335531B (en) * | 2015-12-14 | 2019-06-04 | 北京奇虎科技有限公司 | A kind of compression of document, decompressing method and device |
CN107835158A (en) * | 2017-10-18 | 2018-03-23 | 中国银行股份有限公司 | The transmission method and device of interaction data under SNA network system |
CN107835158B (en) * | 2017-10-18 | 2021-06-18 | 中国银行股份有限公司 | Method and device for transmitting interactive data under SNA network system |
Also Published As
Publication number | Publication date |
---|---|
CN102147818B (en) | 2013-09-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107273280B (en) | Log processing method and device, electronic equipment and storage medium | |
CN104504109B (en) | Image searching method and device | |
CN103077164B (en) | Text analyzing method and text analyzer | |
US20150207704A1 (en) | Public opinion information display system and method | |
CN102567494B (en) | Website classification method and device | |
CN102147818B (en) | Test file compression method | |
CN107704539A (en) | The method and device of extensive text message batch structuring | |
CN115236260A (en) | Chromatographic data storage method and device, electronic equipment and storage medium | |
CN112380838A (en) | Patent file intelligent indexing method and device based on big data | |
CN104462268B (en) | A kind of method and system of html document information extraction expression formula | |
US20130227391A1 (en) | Method and apparatus for displaying webpage | |
CN104503988A (en) | Searching method and device | |
CN106897289B (en) | Information search optimization method and device | |
CN110688315A (en) | Interface code detection report generation method, electronic device, and storage medium | |
CN104881428A (en) | Information graph extracting and retrieving method and device for information graph webpages | |
CN101021851B (en) | Text search device, text search method | |
CN106598852A (en) | Software testing method and system | |
CN104267941A (en) | Dynamic responsive web generation method and device | |
CN111898351B (en) | Automatic Excel data importing method and device based on Aviator, terminal equipment and storage medium | |
CN103365844B (en) | A kind of method and device that searching route is provided | |
CN104331443A (en) | Industry data source detection method | |
CN108228802B (en) | Recommendation method and device for input association | |
CN103309993B (en) | The extracting method of a kind of key word and device | |
CN103488643B (en) | A kind of method and device browsing cloud massive data | |
CN108090139A (en) | A kind of document retrieval method and 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 | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130925 |
|
CF01 | Termination of patent right due to non-payment of annual fee |