[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN101742531A - Method and device for storing test data - Google Patents

Method and device for storing test data Download PDF

Info

Publication number
CN101742531A
CN101742531A CN200810226337A CN200810226337A CN101742531A CN 101742531 A CN101742531 A CN 101742531A CN 200810226337 A CN200810226337 A CN 200810226337A CN 200810226337 A CN200810226337 A CN 200810226337A CN 101742531 A CN101742531 A CN 101742531A
Authority
CN
China
Prior art keywords
data
test result
type
data type
test
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
Application number
CN200810226337A
Other languages
Chinese (zh)
Other versions
CN101742531B (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.)
China Mobile Group Design Institute Co Ltd
Original Assignee
China Mobile Group Design Institute 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 China Mobile Group Design Institute Co Ltd filed Critical China Mobile Group Design Institute Co Ltd
Priority to CN2008102263379A priority Critical patent/CN101742531B/en
Publication of CN101742531A publication Critical patent/CN101742531A/en
Application granted granted Critical
Publication of CN101742531B publication Critical patent/CN101742531B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

A kind of test data storage method and device
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 (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's difference, model difference even identical product version are different for different equipment under tests.If need 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 to obtain needed or interested data from preserving type shown in Figure 1 and analyzes.And Fig. 2 shows a kind of test data of preserving with form of data frames, and preserving type shown in Figure 2 writes down 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 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, makes 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;
According to the desired data set of types that sets in advance, extract the data of corresponding data type in the test result;
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 in the order lines different in the data file into the data type in the same order line under record data and this data respectively.
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.
Described desired data set of types is stored in the report file in the mode of order line: in an order line, write down required relevant data type, and the keyword of these relevant data types.
A kind of test data storage device comprises:
Test result obtains module, is used to obtain 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;
The corresponding stored module is used for the data of corresponding stored test result and the data type under the data.
Described storage device also comprises:
Data extraction module is used for extracting the data of corresponding data type in the test result according to the desired data set of types that sets in advance; And
Described corresponding stored module specifically 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 data in the corresponding record test result and the data, thereby strengthened the readability of the test data of storage, made the tester can obtain needed data easily and analyze 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 mode comparatively intuitively 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 come into plain view to the test data that is write down, and is convenient to the analysis of tester to 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 the data of the date data type of TM data type, the data of hour data type, the data of minute data type and the data of second data type.The test data of corresponding record data type and this data type in data file, this test data storage mode just can be analyzed and share so that the tester can obtain needed data easily.
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 write down 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 is write down in can clear and definite test result according to this data format.In data format, stipulated the 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: preceding 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; Zhi Hou 8 bit data are the time type again---the data type of day, or the like.Like this, the data type of the data in the test result that 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 just.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 to store the report file of a desired data type in advance.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 " is a second data type for hour data type, " MM " for minute data type, " SS " for date data type, " HH ".
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 adopt order line mode with the data record in the test result in data file: the data of different types of data are stored into respectively in the order lines different in the data file; And, write down the affiliated data type of data and this data in the same order line.For example,
DAY?2008?9?3
HOUR?15
MIN 42
SEC 30
Perhaps, write down the data of related data type in the same order line in data file, and in this order line, write down 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 a second data 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 write down 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, be that the order line (be called for short definition command row) of origin identification be the definitional part of data type wherein, then write down the data in the test result (data recording portion) in other order line (the abbreviation data command is capable) with setting identification (as RegReport).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 can discern it usually and be the hour data type.For another example, work as the technical staff in the communications field and see " CellCount " printed words, then discern it and be the data type of sub-district number.Like this, the test data uniform format of final storage has versatility, is convenient to routine processes; Has preferable readability again; And can reach the purpose of conserve storage according to the data that the needs of test are only stored needs.
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 be with all data in the test result and affiliated data type thereof corresponding record one by one, can reach equally to make the tester obtain the purpose that needed data are analyzed and shared easily.
Though 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 the 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 to obtain equipment under test.
Data type determination module 502 is used for the data format according to the test result of knowing in advance, determines the data type of the data in the described test result.
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 repeat no more as previously mentioned herein.
Described test data storage device further can also comprise: data extraction module 504.
Data extraction module 504 is used for extracting the data of corresponding data type in the test result according to the desired data set of types that sets in advance; And
Corresponding stored module 503 specifically is used for the data of described data extraction module 504 extractions 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 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 the storage mode of having unified the final test data, 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, 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 according to the desired data set of types that sets in advance.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware 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.Wherein the module that 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 a 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 (7)

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;
According to the desired data set of types that sets in advance, extract the data of corresponding data type in the test result;
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 in the order lines different in the data file into the data type in the same order line under record data and this data respectively.
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. as claim 2 or 3 described methods, it is characterized in that, separate with newline between the described order line.
5. as the arbitrary described method of claim 1-3, it is characterized in that, described desired data set of types is stored in the report file in the mode of order line: in an order line, write down required relevant data type, and the keyword of these relevant data types.
6. a test data storage device is characterized in that, comprising:
Test result obtains module, is used to obtain 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;
The corresponding stored module is used for the data of corresponding stored test result and the data type under the data.
7. device as claimed in claim 6 is characterized in that, also comprises:
Data extraction module is used for extracting the data of corresponding data type in the test result according to the desired data set of types that sets in advance; And
Described corresponding stored module specifically is used for the data of the described data extraction module extraction of corresponding stored and the affiliated data type of data of extraction.
CN2008102263379A 2008-11-13 2008-11-13 Method and device for storing test data Active CN101742531B (en)

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 true CN101742531A (en) 2010-06-16
CN101742531B 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)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163186A (en) * 2011-04-18 2011-08-24 广东电网公司电力科学研究院 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
CN105260392A (en) * 2015-09-15 2016-01-20 歌尔声学股份有限公司 Method and system for storing test data
CN105574039A (en) * 2014-10-16 2016-05-11 中芯国际集成电路制造(上海)有限公司 Wafer test data processing method and system
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
CN108108384A (en) * 2016-11-25 2018-06-01 中国移动通信有限公司研究院 A kind of date storage method and device
CN109726103A (en) * 2018-05-14 2019-05-07 平安科技(深圳)有限公司 Generation method, device, equipment and the storage medium of test report
CN116384341A (en) * 2022-12-16 2023-07-04 西安航天动力试验技术研究所 Engine test data processing method, storage medium and equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237658B (en) * 2007-12-18 2012-06-27 中国移动通信集团设计院有限公司 Data storage method and device in mobile communication system

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163186A (en) * 2011-04-18 2011-08-24 广东电网公司电力科学研究院 Method and device for detecting generated file of local discharging signal of high-voltage power equipment
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
CN105574039A (en) * 2014-10-16 2016-05-11 中芯国际集成电路制造(上海)有限公司 Wafer test data processing method and system
CN105260392B (en) * 2015-09-15 2019-05-17 歌尔股份有限公司 The storage method and system of test data
CN105260392A (en) * 2015-09-15 2016-01-20 歌尔声学股份有限公司 Method and system for storing 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
CN108108384A (en) * 2016-11-25 2018-06-01 中国移动通信有限公司研究院 A kind of date storage method and device
CN109726103A (en) * 2018-05-14 2019-05-07 平安科技(深圳)有限公司 Generation method, device, equipment and the storage medium of test report
WO2019218444A1 (en) * 2018-05-14 2019-11-21 平安科技(深圳)有限公司 Test report generating method, apparatus and device, and storage medium
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

Also Published As

Publication number Publication date
CN101742531B (en) 2013-03-20

Similar Documents

Publication Publication Date Title
CN101742531B (en) Method and device for storing test data
CN101093462B (en) Automatization method for testing schooling pressure on database application
CN101738550B (en) Electronic device test device and test method
CN101368991A (en) Electronic device test device and method thereof
CN107168275B (en) Automatic identification configuration method and device for relay protection function module
US7974744B2 (en) Multiple telemetry stream parsing and reconstruction system
WO2007078530A3 (en) System and method for radio frequency identification tag direct connection test
CN106649098A (en) Method and device for achieving version-release-software debugging on terminal device
CN113934885A (en) ADAS video data recharge performance verification system and method based on local area network
CN102262582A (en) Mobile terminal and method for detecting memory leakage thereof
US20060218453A1 (en) System and method for testing a memory for a memory failure exhibited by a failing memory
CN111897737B (en) Missing detection method and device for program test of micro-service system
CN108009086B (en) System automation test method based on case decomposition and function learning
CN111752778A (en) Method and device for testing stability of solid state disk firmware under linux
CN115392802A (en) Method, system, medium, and apparatus for detecting defects of industrial products
CN104572464A (en) Automated test state saving method and device of Android platform
US7496474B2 (en) Dynamic on-chip logic analysis
CN108874645A (en) A kind of method and system for integrating FIO performance data
CN103245856B (en) A kind of test the method for electronic equipment performance, equipment and system
US7155652B1 (en) Digital signal processing for real time classification of failure bitmaps in integrated circuit technology development
CN113886202A (en) Vehicle log analysis method, system, device, medium and vehicle
CN112069009A (en) Method and device for pressure test in Recovery mode and terminal equipment
CN113496749A (en) Storage performance test analysis method and system
CN116933143B (en) Flight parameter data classification method
CN113032179B (en) Third party data recovery software clearing effect evaluation and selection 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