CN101742531B - Method and device for storing test data - Google Patents
Method and device for storing test data Download PDFInfo
- Publication number
- CN101742531B CN101742531B CN2008102263379A CN200810226337A CN101742531B CN 101742531 B CN101742531 B CN 101742531B CN 2008102263379 A CN2008102263379 A CN 2008102263379A CN 200810226337 A CN200810226337 A CN 200810226337A CN 101742531 B CN101742531 B CN 101742531B
- Authority
- CN
- China
- Prior art keywords
- data
- test result
- type
- types
- file
- 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
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention relates to the field of mobile communication, in particular to a technology for storing test data of a mobile communication air interface. The method comprises the following steps of: determining the type of data in a test result according to a pre-known data format of the test result after acquiring the test result; and correspondingly storing the data in the test result and the type of the data. The type of the data in the test result can be determined according to the data format of the test result after the test result is obtained and the data in the test result and the type of the data can be correspondingly recorded, thereby enhancing the readability of the stored test data and ensuring that testers can conveniently know the required data for analyzing and sharing.
Description
Technical field
The present invention relates to moving communicating field, relate in particular to the technology that the test data of mobile communication air interface is stored.
Background technology
In mobile communication air interface field tests, the storage for test data all is that the test result data that in test process equipment under test (such as tested mobile terminal) is sent is directly stored at present.
But the form of the test result data of its output also just varies because producer is different, model is different even the identical product version is different for different equipment under tests.If need to analyze these test result data in the later stage, then the analyst needs to determine one by one the form of these test result data, and therefrom extracted valid data is analyzed.For example, Fig. 1 shows a kind of test data of preserving with the hexadecimal form.Obviously, the analyst is difficult to directly obtain needed or interested data analysis from preserving type shown in Figure 1.And Fig. 2 shows a kind of test data of preserving with form of data frames, and preserving type shown in Figure 2 records each test data frame successively for the order according to the Frame that obtains the test gained.Obviously, for this test data preserving type of Fig. 2, the analyst also can't conveniently obtain needed or interested data.
And when the tester need to unify to analyze to the test data of the various forms of distinct device, this will be a very loaded down with trivial details job.Because the tester has in the face of test data miscellaneous, then respectively from these test datas the form according to these test datas extract own needed data, just can carry out next step analytical work.
Therefore, the storage means of the test data of prior art is unfavorable for that the tester analyzes and shares the test data of storage.
Summary of the invention
The embodiment of the invention provides a kind of storage means and device of test data, so that the test data of storage can be convenient to analyze and share.
A kind of test data storage method comprises:
Obtain test result, and determine the data type of the data in the described test result according to the data format of described test result, wherein, in data format, stipulated position and the length of various types of data;
According to the desired data set of types that sets in advance, extract the data of corresponding data type in the test result, wherein, described desired data set of types is stored in the report file in the mode of order line: in an order line, recorded required relevant data type, and the keyword of these relevant data types;
Data and the data type under the data extracted are stored in the data file, and the data type under the data in the described data file and this data is what be associated.
Described data and the data type under the data with extraction stores in the data file, and the data type under the data in the described data file and this data is what be associated, specifically comprises:
The data of different types of data are stored respectively in the order lines different in the data file into the data type in the same order line under record data and this data.
Perhaps, described data and the data type under the data with extraction stores in the data file, and the data type under the data in the described data file and this data is what be associated, specifically comprises:
The keyword of record related data type and these related data types in the definition command row of data file; Described definition command row with setting identification as origin identification;
The data of these related data types of corresponding record in the data command of described data file is capable, and the keyword of these related data types.
A kind of test data storage device comprises:
Test result obtains module, is used for obtaining test result;
The data type determination module is used for the data format according to the described test result of knowing in advance, determines the data type of the data in the described test result, wherein, has stipulated position and the length of various types of data in data format;
Data extraction module, be used for according to the desired data set of types that sets in advance, extract the data of corresponding data type in the test result, wherein, described desired data set of types is stored in the report file in the mode of order line: in an order line, recorded required relevant data type, and the keyword of these relevant data types;
The corresponding stored module is used for the data of the described data extraction module extraction of corresponding stored and the affiliated data type of data of extraction.
The embodiment of the invention is because after obtaining test result, determine the data type of the data in the described test result according to the data format of test result, and the data type under the data in the corresponding record test result and the data, thereby strengthened the readability of the test data of storage, so that the tester can obtain easily needed data analysis and share.
Description of drawings
Fig. 1,2 is the test data schematic diagram of the storage of prior art;
Fig. 3 is the method flow diagram of the store test data of the embodiment of the invention;
Fig. 4 is the schematic diagram of the store test data of the embodiment of the invention;
Fig. 5 is the apparatus structure schematic diagram of the store test data of the embodiment of the invention.
Embodiment
It is a kind of comparatively intuitively mode that the present inventor finds with the data type of corresponded manner record test data and the parameter of this data type, the tester can be very clear to the test data that records, and is convenient to the tester to the analysis of test data.Such as, for the data of time type can be in data file record:
TM?20070101?09?40?00?172;
Wherein, " TM " expression data thereafter are the data of time type; " 20070101,09,40,00 " then is respectively that the data of data, minute data type of data, the hour data type of the date data type of TM data type and number of seconds are according to the data of type.The test data of corresponding record data type and this data type in data file, this test data storage mode just can be so that the tester can obtain easily needed data analysis and share.
A kind of test data storage method that the embodiment of the invention provides, flow chart comprise following concrete steps as shown in Figure 3:
S301, obtain the test result of equipment under test.
The test result of equipment under test both can be the test data that equipment under test is directly exported according to test condition, also can be to record the test data that equipment under test is hereof exported according to the test condition of repeatedly test.
The data format of the test result that S302, basis are known in advance, the data type of the data in the test result of determining to obtain.
The data format of test result is provided by the manufacturer of equipment under test, the data type of each data that records in can clear and definite test result according to this data format.In data format, stipulated position and the length of various types of data, that is to say, data format to the physical significance of the data in the test result and in test result the present position be illustrated.Such as, for test result as shown in Figure 1, manufacturer can the specified data form be: front 16 bit data are the time type---the data type in year; 8 bit data afterwards are the time type---the data type of the moon; 8 bit data again are the time type---the data type of day, etc.The data type of the data in the test result that like this, can determine to obtain according to the data format that sets in advance.
The desired data set of types that S303, basis set in advance, the data of corresponding data type in the extraction test result.
Because often comprise many data in the test result, so in some cases, the tester does not need to obtain all test datas and analyzes.In the desired data type centralized recording that sets in advance the interested data type of tester, the needed data type of tester's test analysis namely.According to this desired data set of types, from test result, extract the data of corresponding data type.Storage unwanted to some, redundant data that the test data of finally being stored by this method can be removed, thus memory space reduced.
A kind of concrete mode of the desired data set of types that sets in advance can be the report file of a pre-stored desired data type.In this report file with the format record of order line required data type.For example, in an order line, with the origin identification of " RegReport " sign as order line, being the keyword sign after the origin identification, is the data type sign relevant with this keyword after the keyword sign.Between each sign in the order line can with space character (/t) separate, can separate with newline between order line and the order line.For example,
RegReport?TM?Date?HH?MM?SS
Wherein, " TM " is keyword, and subsequently data type of expression all is the data types with time correlation: " Date " for date data type, " HH " for hour data type, " MM " for minute data type, " SS " for number of seconds according to type.
Certainly, those skilled in the art also can adopt other method to store required data type, as adopting the database storage mode.
Along with technical development, the tester might need to increase required data type, can increase data type newly in the desired data set of types so.For example, in the report file of desired data type, increase order line, record the data type and the keyword that increase newly in the newly-increased order line.
Data in S304, the corresponding record test result and data type thereof are in data file.
The data that corresponding record is extracted, and the data type under these data is in data file.A kind of concrete grammar of corresponding record data and data type thereof can be to adopt the mode of order line that the data in the test result are recorded in the data file: the data of different types of data are stored into respectively in the order lines different in the data file; And, recorded the affiliated data type of data and this data in the same order line.For example,
DAY?2008?93
HOUR?15
MIN?42
SEC?30
Perhaps, record the data of related data type in the same order line in data file, and in this order line, record the keyword of these related data types; And the data type that definition is associated with this keyword in another order line.For example,
RegReport?TM?Date?HH?MM?SS
Wherein, defined the data type that is associated with keyword " TM ": " Date " is that number of seconds according to type for hour data type, " MM " for minute data type, " SS " for date data type, " HH ".
In same data file, after the data in obtaining test result, can continue record:
TM?20070101?09?40?00?172
Then the tester determines that according to the keyword " TM " of record the data that record in this order line are respectively the data of Date, HH, MM, SS data type.Fig. 4 shows a kind of data file of store test data, wherein the order line take setting identification (such as RegReport) as origin identification (being called for short the definition command row) is the definitional part of data type, has then recorded the data in the test result (data recording portion) in other order line (it is capable to be called for short data command).The keyword that in a definition command row, comprises several related data types and these related data types; The keyword of these related data types of corresponding record then in data command is capable, and the data of these related data types.
In addition, the title of the data type of record is generally that those skilled in the art arrange, known title.For example, when the technical staff sees " HOUR " printed words, then usually can identify it and be the hour data type.For another example, work as the technical staff in the communications field and see " CellCount " printed words, then identify it and be the data type of residential quarter number.Like this, the test data uniform format of final storage has versatility, is convenient to routine processes; Has again better readability; And can reach according to the data that the needs of test are only stored needs the purpose of conserve storage.
Certainly, above-mentioned steps S303 extracts corresponding data in the data result according to the report of the desired data type that sets in advance, and is a kind of more excellent scheme.Those skilled in the art also can with all data in the test result and affiliated data type thereof corresponding record one by one, can reach so that the purpose that the tester obtains easily needed data analysis and shares equally.
Although it will be understood by those skilled in the art that in the above-mentioned explanation, for ease of understanding, the step of method has been adopted the succession description, should be pointed out that for the order of above-mentioned steps and do not do strict restriction.
A kind of test data storage device that the embodiment of the invention provides as shown in Figure 5, comprising: test result obtains module 501, data type determination module 502, corresponding stored module 503.
Test result obtains the test result that module 501 is used for obtaining equipment under test.
Data type determination module 502 is determined the data type of the data in the described test result for the data format according to the test result of knowing in advance.
Corresponding stored module 503 is used for the data of corresponding stored test result and the data type under the data.The concrete grammar of corresponding stored can as previously mentioned, repeat no more herein.
Described test data storage device further can also comprise: data extraction module 504.
The corresponding stored module 503 concrete data of described data extraction module 504 extractions of corresponding stored and the affiliated data types of data of extraction of being used for.
The embodiment of the invention is because after obtaining test result, determine the data type of the data in the described test result according to the data format of test result, and the data type under the data in the corresponding record test result and the data, because the test result of various data format can corresponding stored data and affiliated data type thereof by method of the present invention, thereby unified final test data storage mode, and the title of data type also can adopt the typonym of agreement, thereby has strengthened the readability of the test data of storage.
Further, owing to according to the desired data set of types that sets in advance, extract the data of corresponding data type in the test result and store, avoid storing some non-essential data, thereby saved the test data memory space.
One of ordinary skill in the art will appreciate that all or part of step that realizes in above-described embodiment method is to come the relevant hardware of instruction to finish by program, this program can be stored in the computer read/write memory medium, as: ROM/RAM, magnetic disc, CD etc.
Will also be appreciated that the apparatus structure shown in accompanying drawing or the embodiment only is schematically, the presentation logic structure.The module that wherein shows as separating component may or may not be physically to separate, and the parts that show as module may be or may not be physical modules.
The above only is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
Claims (5)
1. a test data storage method is characterized in that, comprising:
Obtain test result, and determine the data type of the data in the described test result according to the data format of described test result, wherein, in data format, stipulated position and the length of various types of data;
According to the desired data set of types that sets in advance, extract the data of corresponding data type in the test result, wherein, described desired data set of types is stored in the report file in the mode of order line: in an order line, recorded required relevant data type, and the keyword of these relevant data types;
Data and the data type under the data extracted are stored in the data file, and the data type under the data in the described data file and this data is what be associated.
2. the method for claim 1 is characterized in that, described data and the data type under the data with extraction stores in the data file, and the data type under the data in the described data file and this data is what be associated, specifically comprises:
The data of different types of data are stored respectively in the order lines different in the data file into the data type in the same order line under record data and this data.
3. the method for claim 1 is characterized in that, described data and the data type under the data with extraction stores in the data file, and the data type under the data in the described data file and this data is what be associated, specifically comprises:
The keyword of record related data type and these related data types in the definition command row of data file; Described definition command row with setting identification as origin identification;
The data of these related data types of corresponding record in the data command of described data file is capable, and the keyword of these related data types.
4. method as claimed in claim 2 or claim 3 is characterized in that, separates with newline between the described order line.
5. a test data storage device is characterized in that, comprising:
Test result obtains module, is used for obtaining test result;
The data type determination module is used for the data format according to the described test result of knowing in advance, determines the data type of the data in the described test result, wherein, has stipulated position and the length of various types of data in data format;
Data extraction module, be used for according to the desired data set of types that sets in advance, extract the data of corresponding data type in the test result, wherein, described desired data set of types is stored in the report file in the mode of order line: in an order line, recorded required relevant data type, and the keyword of these relevant data types;
The corresponding stored module is used for the data of the described data extraction module extraction of corresponding stored and the affiliated data type of data of extraction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008102263379A CN101742531B (en) | 2008-11-13 | 2008-11-13 | Method and device for storing test data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008102263379A CN101742531B (en) | 2008-11-13 | 2008-11-13 | Method and device for storing test data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101742531A CN101742531A (en) | 2010-06-16 |
CN101742531B true CN101742531B (en) | 2013-03-20 |
Family
ID=42465242
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008102263379A Active CN101742531B (en) | 2008-11-13 | 2008-11-13 | Method and device for storing test data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101742531B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102163186B (en) * | 2011-04-18 | 2013-04-17 | 广东电网公司电力科学研究院 | Method and device for detecting generated file of local discharging signal of high-voltage power equipment |
CN103198095A (en) * | 2013-02-27 | 2013-07-10 | 歌尔声学股份有限公司 | Acoustic testing data storage method and device for loudspeaker |
CN105574039B (en) * | 2014-10-16 | 2019-05-24 | 中芯国际集成电路制造(上海)有限公司 | A kind of processing method and system of wafer test data |
CN105260392B (en) * | 2015-09-15 | 2019-05-17 | 歌尔股份有限公司 | The storage method and system of test data |
CN106021047A (en) * | 2016-05-13 | 2016-10-12 | 浪潮电子信息产业股份有限公司 | Method and apparatus for processing hard disk test data |
CN106250401A (en) * | 2016-07-18 | 2016-12-21 | 珠海格力电器股份有限公司 | Device and method for replaying original communication data |
CN108108384B (en) * | 2016-11-25 | 2020-10-09 | 中国移动通信有限公司研究院 | Data storage method and device |
CN109726103B (en) * | 2018-05-14 | 2021-09-21 | 平安科技(深圳)有限公司 | Test report generation method, device, equipment and storage medium |
CN116384341A (en) * | 2022-12-16 | 2023-07-04 | 西安航天动力试验技术研究所 | Engine test data processing method, storage medium and equipment |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101237658A (en) * | 2007-12-18 | 2008-08-06 | 中国移动通信集团设计院有限公司 | Data storage method and device in mobile communication system |
-
2008
- 2008-11-13 CN CN2008102263379A patent/CN101742531B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101237658A (en) * | 2007-12-18 | 2008-08-06 | 中国移动通信集团设计院有限公司 | Data storage method and device in mobile communication system |
Also Published As
Publication number | Publication date |
---|---|
CN101742531A (en) | 2010-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101742531B (en) | Method and device for storing test data | |
CN107168275B (en) | Automatic identification configuration method and device for relay protection function module | |
CN101368991A (en) | Electronic device test device and method thereof | |
CN101738550A (en) | Electronic device test device and test method | |
CN105680960A (en) | Automatic test method for Bluetooth card reader, test upper computer and test system | |
CN105070321B (en) | The quick test circuit and method of memory device | |
US7974744B2 (en) | Multiple telemetry stream parsing and reconstruction system | |
CN102262582A (en) | Mobile terminal and method for detecting memory leakage thereof | |
CN111897737A (en) | Omission detection method and device for program test of micro-service system | |
CN108009086B (en) | System automation test method based on case decomposition and function learning | |
CN115392802A (en) | Method, system, medium, and apparatus for detecting defects of industrial products | |
US9312030B2 (en) | Apparatus and method for acquiring data of fast fail memory | |
CN103593282A (en) | Implementation method of product automation testing and auxiliary tool of product automation testing | |
CN104572464A (en) | Automated test state saving method and device of Android platform | |
CN102508621B (en) | Debugging printing method and device independent of serial port on embedded system | |
CN108874645A (en) | A kind of method and system for integrating FIO performance data | |
CN110850853B (en) | Frozen frame reading method based on CANape tool | |
CN103245856B (en) | A kind of test the method for electronic equipment performance, equipment and system | |
CN113886202A (en) | Vehicle log analysis method, system, device, medium and vehicle | |
US7353437B2 (en) | System and method for testing a memory for a memory failure exhibited by a failing memory | |
CN113407386A (en) | Method, device, equipment and medium for simulating and testing resident certificates | |
CN112115296A (en) | Method and apparatus for analyzing log data | |
CN113032179B (en) | Third party data recovery software clearing effect evaluation and selection method | |
CN105988917A (en) | Method and device for obtaining abnormal information | |
CN116933143B (en) | Flight parameter data classification method |
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 |