CN101425064A - Processing method and system for testing log - Google Patents

Processing method and system for testing log Download PDF

Info

Publication number
CN101425064A
CN101425064A CNA2007101675860A CN200710167586A CN101425064A CN 101425064 A CN101425064 A CN 101425064A CN A2007101675860 A CNA2007101675860 A CN A2007101675860A CN 200710167586 A CN200710167586 A CN 200710167586A CN 101425064 A CN101425064 A CN 101425064A
Authority
CN
China
Prior art keywords
key word
test
testing standard
test log
database
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
CNA2007101675860A
Other languages
Chinese (zh)
Other versions
CN101425064B (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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN2007101675860A priority Critical patent/CN101425064B/en
Publication of CN101425064A publication Critical patent/CN101425064A/en
Application granted granted Critical
Publication of CN101425064B publication Critical patent/CN101425064B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method and a system for processing a test log, applied to an electronic device provided with a test program which generates a test log with a plurality of key words. A database is used to store a plurality of corresponding test program names and test standard sets which are respectively provided with a plurality of corresponding second key words and test standards; after detecting the name of a currently running test program of the electronic device, a detecting module is used to search the corresponding test standard set thereof from the database for an extraction module to extract the second key word corresponding to the test standard set from the database; a processing module is used to match the second key word selected one by one with the first key word in the test log generated corresponding to the current test program; when the first and second key words are matched, the test standard corresponding to the second key word is extracted from the database, and the test standard is loaded to the first key word corresponding to the test log.

Description

Test log disposal route and system
Technical field
The present invention relates to a kind of test log (Log) treatment technology, more particularly, relate to test log disposal route and system in a kind of electronic installation that is applied to be equipped with the test procedure that generates test log with a plurality of key words.
Background technology
Existing test, for example substrate controller (Baseboard Management Controller; BMC) test, all can in the electronic installation of for example computer, move corresponding test procedure after, generate the test log (Log) of being correlated with, according to this test log corresponding analyzing and processing operation is carried out in this test for the tester.
Usually only put down in writing a plurality of in the existing test log to for example type key words such as (type) that should test procedure and to parameter value that should key word, yet, under the prerequisite of the definition of being unfamiliar with this key word, only consult above-mentioned test log, and can't carry out correct analyzing and processing to this test result according to this test log, at this moment, generally need by other media (for example browser) auxiliary check record corresponding each test procedure the testing standard (SPEC) of definition of respectively this key word that should comprise gather (single key word is to there being the definition of single testing standard), then according to the key word of being put down in writing in this test log, search in this testing standard set certainly should the defined testing standard of key word.But, the quantity of the key word of being put down in writing in each test log is not to have only one, its quantity may be many, if each analytical test daily record all needs to search coupling one by one by above-mentioned artificial mode, not only lose time, also the analyzing and processing operation of test result is brought to a certain extent inconvenience; In addition, also may be because of the key word quantity of searching the uncertain factor of more and artificial memory, when the operation of follow-up test analyzing and processing, the situation generation that causes the respectively definition of this key word to be obscured, and then influence the follow-up test analysis processing result; And above-mentioned operation needs additionally to carry out checking of testing standard set by other media, so, then needs extra engaged test resource.
In sum, how a kind of test log disposal route and system are proposed, to avoid many disadvantages of the prior art, real for desiring most ardently the technical matters of solution at present.
Summary of the invention
In view of the shortcoming of above-mentioned prior art, one object of the present invention is to provide a kind of open-and-shut test log disposal route and system, is beneficial to consult.
Another object of the present invention is to provide a kind of test log disposal route and system, to save time.
Another object of the present invention is to provide a kind of test log disposal route and system, to save resource.
For reaching above-mentioned purpose and other purpose, the invention provides a kind of test log disposal route and system.This test log disposal route is applied to be equipped with in the electronic installation of the test procedure that generates the test log with a plurality of first key words, this test log disposal route may further comprise the steps: set up database, in order to store the respectively testing standard of this test procedure title (Spec) set of a plurality of test procedure titles and a plurality of correspondence, and respectively the set of this testing standard has respectively second key word of this test procedure and a plurality of correspondence testing standard of this second key word respectively of a plurality of correspondences, and respectively this first and second key word of corresponding same test procedure is an one-to-one relationship; Detect the test procedure title of the current operation of this electronic installation, and in this database, hunt out according to this and the corresponding testing standard set of current test procedure title; According to the set of the testing standard that hunted out, extract in this database certainly respectively this second key word that should the testing standard set, and choose respectively this second key word one by one as the follow-up object of searching coupling; According to this selected second key word, in this test log, search first key word that is complementary with it; And judge whether in this test log, to find first key word that is complementary with this second key word, if, then in this testing standard set of this database, extract testing standard that should second key word, and be written into this testing standard of extracting to this test log to position that should first key word; If not, then continue in this test log, to carry out the step of searching first key word that is complementary with this second key word.This test log disposal system is applied to be equipped with in the electronic installation of the test procedure that generates the test log with a plurality of first key words, this test log disposal system comprises: in order to store the respectively database of the testing standard of this test procedure title (Spec) set of a plurality of test procedure titles and a plurality of correspondence, and respectively the set of this testing standard has respectively first key word of this test procedure and a plurality of correspondence testing standard of this first key word respectively of a plurality of correspondences, and respectively this first and second key word of corresponding same test procedure is an one-to-one relationship; In order to detecting the test procedure title of the current operation of this electronic installation, and in this database, hunt out detecting module with the corresponding testing standard set of current test procedure title according to this; In order to according to the set of testing standard that this detecting module hunted out, extract in this database certainly respectively this second key word that should the testing standard set, and choose respectively this second key word one by one as the follow-up extraction module of searching the object of coupling; And in order to according to this selected second key word of this extraction module, in this test log, search first key word that is complementary with it, and when matching this first and second key word unanimity, in this testing standard set of this database, extract testing standard that should second key word, and according to this this testing standard is loaded in this test log processing module position that should first key word.
In test log disposal route of the present invention and system, this testing standard comprises the implication that at least one parameter value that should second key word and the corresponding different parameters value of this second key word are characterized.This searches matching way can be that for example sequential search matching way, binary chop matching way, block research matching way, tree table are searched matching way or Hash lookup matching way.
Than prior art, test log disposal route of the present invention and system are mainly after the test procedure title that detects the current operation of this electronic installation, in preset database, hunt out testing standard set that should the test procedure title, for from this database, extracting to respectively this second key word that should the testing standard set, then, search respectively respectively this first key word in this second key word and the test log that corresponding current test procedure is generated of coupling, and when matching both key words unanimities, in this database, extract testing standard that should second key word, and this testing standard is loaded in this test log should the first key position place, to obtain open-and-shut test log, thereby be convenient to the user and can directly carry out analyzing and processing this test result by checking this test log, the comparison that need not additionally to carry out the testing standard set by other media with check, and then saved waste on time and the resource.
Description of drawings
Fig. 1 shows the operation workflow synoptic diagram of an embodiment of test log disposal route of the present invention; And
Fig. 2 shows the basic framework block schematic diagram of test log disposal system of the present invention.
[main element symbol description]
1 test log disposal system
10 databases
12 detecting modules
14 extraction modules
16 processing modules
2 test logs
S100~S190 step
Embodiment
Below by specific instantiation explanation embodiments of the present invention, those skilled in the art can understand other advantages of the present invention and effect easily by the content that this instructions disclosed.
See also Fig. 1, it shows the operation workflow synoptic diagram of an embodiment of test log disposal route of the present invention, as shown in the figure, test log disposal route of the present invention is applied to be equipped with in the electronic installations such as for example servomechanism of test procedure, wherein, this test procedure can move the back and generate the test log with a plurality of first key words in this electronic installation.Below promptly the operation workflow of test log disposal route of the present invention is elaborated.
As shown in Figure 1, execution in step S100 at first, set up database, in order to store the respectively testing standard of this test procedure title (Spec) set of a plurality of test procedure titles and a plurality of correspondence, and respectively the set of this testing standard has respectively second key word of this test procedure and a plurality of correspondence testing standard of this second key word respectively of a plurality of correspondences, and respectively this first and second key word of corresponding same test procedure is an one-to-one relationship, both differences only are that respectively the record order of this first key word in this test log may be different from the respectively storage sequence of this second key word in this database.Wherein, this testing standard comprises the implication that at least one parameter value that should second key word and the corresponding different parameters value of this second key word are characterized, with the judgment standard as this test log of subsequent analysis.Then, carry out step S110.
In step S110, detect the test procedure title of the current operation of this electronic installation, and in this database, hunt out according to this and the corresponding testing standard set of current test procedure title.Then, carry out step S120.
In step S120,, extract in this database certainly respectively this second key word that should the testing standard set according to the set of the testing standard that hunted out.Then, carry out step S130.
In step S130, choose respectively this second key word in the set of this testing standard one by one as the follow-up object of searching coupling.Then, carry out step S140.
In step S140, in this test log, search first key word that is complementary with it in regular turn according to the second selected key word.Then, carry out step S150.
In step S150, judge whether in this test log, to find first key word that is complementary with this second key word, if, then proceed to step S161, if not, then proceed to step S162.
In step S161, extract in this testing standard of this database set certainly testing standard that should second key word.Then, carry out step S170.
In step S162, in this test log, continue to search first key word that is complementary with this second key word.And be back to step S150.
In step S170, be written into this testing standard of extracting to this test log to position that should first key word.Preferably, the mode that is written into of this testing standard may be selected to be this testing standard is loaded into this whole test log front end or back-end location and is associated to this first key word with link mode correspondence, but not as limit, in other embodiments, also can be and this testing standard directly is loaded into this first key word correspondence position (this first key word back) or other are written into mode, the content that every user of allowing understands this test log at a glance and characterized, and this test result is carried out the mode that is written into of the foundation of correct analyzing and processing for follow-up, all belong to application category of the present invention.Then, carry out step S180.
In step S180, choose the next one second key word in the set of this testing standard as the follow-up object of searching coupling.Then, carry out step S190.
In step S190, judge whether the second selected key word is null key (Null) (also promptly, whether respectively this second key word in this testing standard set this moment has been chosen and finished), if not, then be back to step S140, if then finish this processing procedure.
What need be illustrated is herein, to be example to respectively this first key word in this test log carry out searches the coupling operation with the sequential search matching way in the foregoing description, but not as limit, in other embodiments, this matching way also can be binary chop matching way, block research matching way, the tree table is searched matching way or Hash lookup matching way etc., but, this class matching way has a variety of, all be the technology that the constructed field personage of industry is known well, enumerate no longer one by one at this.
In addition, corresponding aforesaid test log disposal route, the present invention also discloses a kind of test log disposal system, as shown in Figure 2, this test log disposal system 1 is applied to be equipped with in the electronic installations such as for example servomechanism of test procedure, wherein, this test procedure can move the back and generate the test log 2 with a plurality of key words in this electronic installation.This test log disposal system 1 comprises database 10, detecting module 12, extraction module 14 and processing module 16 at least.
This database 10 is in order to store the respectively testing standard of this test procedure title (Spec) set of a plurality of test procedure titles and a plurality of correspondence, and respectively the set of this testing standard has respectively second key word of this test procedure and a plurality of correspondence testing standard of this second key word respectively of a plurality of correspondences, and respectively this first and second key word of corresponding same test procedure is an one-to-one relationship, both differences only are that respectively the record order of this first key word in this test log 2 may be different from the respectively storage sequence of this second key word in this database 10.
This detecting module 12 is in order to detecting the test procedure title of the current operation of this electronic installation, and hunts out in this database 10 according to this and the corresponding testing standard set of current test procedure title.
This extraction module 14 is in order to the set of the testing standard that hunted out according to this detecting module 12, extracts in this database 10 certainly respectively this second key word that should the testing standard set, and chooses respectively this second key word one by one as the follow-up object of searching coupling.
This processing module 16 is in order to according to this selected second key word of this extraction module 14, in this test log 2, search first key word that is complementary with it, and when matching this first and second key word unanimity, in this testing standard set of this database 10, extract testing standard that should second key word, and according to this this testing standard is loaded in this test log 2 position that should first key word.
In sum, test log disposal route of the present invention and system are mainly after the test procedure title that detects the current operation of this electronic installation, in preset database 10, hunt out testing standard set that should the test procedure title, for from this database 10, extracting to respectively this second key word that should the testing standard set, then, respectively this first key word in respectively this second key word of searching the set of this testing standard of coupling and the test log 2 that corresponding current test procedure is generated, and when matching both key words unanimities, in this database 10, extract testing standard that should second key word, and this testing standard is loaded in this test log 2 position that should first key word, to obtain open-and-shut test log, be convenient to the user and can directly carry out analyzing and processing this test result by checking this test log 2, need in the prior art additionally to carry out checking of testing standard set and overcome by other media, to cooperate test log, artificially search coupling one by one, can carry out the correct analysis processing operation of this test result, and then avoid causing the drawback of the waste on time and the resource.
The foregoing description is illustrative principle of the present invention and effect thereof only, but not is used to limit the present invention.Any those skilled in the art all can be under spirit of the present invention and category, and the foregoing description is modified and changed.Therefore, the scope of the present invention, claim is listed as described later.

Claims (6)

1, a kind of test log disposal route is applied to be equipped with in the electronic installation of the test procedure that generates the test log with a plurality of first key words, and this test log disposal route may further comprise the steps:
Set up database, to store the respectively testing standard set of this test procedure title of a plurality of test procedure titles and a plurality of correspondence, and respectively the set of this testing standard has respectively second key word of this test procedure and a plurality of correspondence testing standard of this second key word respectively of a plurality of correspondences, and respectively this first and second key word of corresponding same test procedure is an one-to-one relationship;
Detect the test procedure title of the current operation of this electronic installation, and in this database, hunt out according to this and the corresponding testing standard set of current test procedure title;
According to the set of the testing standard that hunted out, extract in this database certainly respectively this second key word that should the testing standard set, and choose respectively this second key word one by one as the follow-up object of searching coupling;
According to this selected second key word, in this test log, search first key word that is complementary with it; And
Judge whether in this test log, to find first key word that is complementary with this second key word, if, then in this testing standard set of this database, extract testing standard that should second key word, and be written into this testing standard of extracting to this test log to position that should first key word; If not, then continue in this test log, to carry out the step of searching first key word that is complementary with this second key word.
2, test log disposal route according to claim 1, wherein, this testing standard comprises the implication that at least one parameter value that should second key word and the corresponding different parameters value of this second key word are characterized.
3, test log disposal route according to claim 1, wherein, this to search matching way be that sequential search matching way, binary chop matching way, block research matching way, tree table are searched one of them of matching way and Hash lookup matching way.
4, a kind of test log disposal system is applied to be equipped with in the electronic installation of the test procedure that generates the test log with a plurality of first key words, and this test log disposal system comprises:
Database, in order to store the respectively testing standard set of this test procedure title of a plurality of test procedure titles and a plurality of correspondence, and respectively the set of this testing standard has respectively second key word of this test procedure and a plurality of correspondence testing standard of this second key word respectively of a plurality of correspondences, and respectively this first and second key word of corresponding same test procedure is an one-to-one relationship;
Detecting module in order to detecting the test procedure title of the current operation of this electronic installation, and hunts out in this database and the corresponding testing standard set of current test procedure title according to this;
Extraction module in order to according to the set of testing standard that this detecting module hunted out, extracts in this database certainly to respectively this second key word that should the testing standard set, and chooses respectively this second key word one by one as the follow-up object of searching coupling; And
Processing module, in order to according to this selected second key word of this extraction module, in this test log, search first key word that is complementary with it, and when matching this first and second key word unanimity, in this testing standard set of this database, extract testing standard that should second key word, and according to this this testing standard is loaded in this test log position that should first key word.
5, test log disposal system according to claim 4, wherein, this testing standard comprises the implication that at least one parameter value that should second key word and the corresponding different parameters value of this second key word are characterized.
6, test log disposal system according to claim 4, wherein, this matching way is that sequential search matching way, binary chop matching way, block research matching way, tree table are searched one of them of matching way and Hash lookup matching way.
CN2007101675860A 2007-10-29 2007-10-29 Processing method and system for testing log Expired - Fee Related CN101425064B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101675860A CN101425064B (en) 2007-10-29 2007-10-29 Processing method and system for testing log

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101675860A CN101425064B (en) 2007-10-29 2007-10-29 Processing method and system for testing log

Publications (2)

Publication Number Publication Date
CN101425064A true CN101425064A (en) 2009-05-06
CN101425064B CN101425064B (en) 2011-02-09

Family

ID=40615687

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101675860A Expired - Fee Related CN101425064B (en) 2007-10-29 2007-10-29 Processing method and system for testing log

Country Status (1)

Country Link
CN (1) CN101425064B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101950293A (en) * 2010-08-11 2011-01-19 东软集团股份有限公司 Log extraction method and device
CN103605092A (en) * 2013-10-23 2014-02-26 上海华力微电子有限公司 Wat test system
CN105302909A (en) * 2015-11-06 2016-02-03 西安交大捷普网络科技有限公司 Partition deviation calculation based big data retrieval method for network security log system
CN105930256A (en) * 2016-04-14 2016-09-07 北京思特奇信息技术股份有限公司 Method and device for outputting logs for separate files by means of log4j
CN103995770B (en) * 2014-05-13 2017-05-24 北京荣之联科技股份有限公司 System management monitoring method and device
CN109918293A (en) * 2019-01-29 2019-06-21 平安科技(深圳)有限公司 System detection method and device, electronic equipment, computer readable storage medium
CN110737594A (en) * 2019-09-19 2020-01-31 武汉迎风聚智科技有限公司 Database standard conformance testing method and device for automatically generating test cases
WO2021129024A1 (en) * 2019-12-24 2021-07-01 中兴通讯股份有限公司 Method for recognizing state of communication device, and communication system and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1155212C (en) * 1999-12-22 2004-06-23 深圳市中兴通讯股份有限公司 Automatic protocol test system and its test method
CN100388698C (en) * 2001-10-19 2008-05-14 上海贝尔有限公司 Supervisory assigned control component for entering module into digital data network and its control method

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101950293B (en) * 2010-08-11 2012-11-21 东软集团股份有限公司 Log extraction method and device
CN101950293A (en) * 2010-08-11 2011-01-19 东软集团股份有限公司 Log extraction method and device
CN103605092A (en) * 2013-10-23 2014-02-26 上海华力微电子有限公司 Wat test system
CN103605092B (en) * 2013-10-23 2016-08-24 上海华力微电子有限公司 Wat test system and method for testing
CN103995770B (en) * 2014-05-13 2017-05-24 北京荣之联科技股份有限公司 System management monitoring method and device
CN105302909A (en) * 2015-11-06 2016-02-03 西安交大捷普网络科技有限公司 Partition deviation calculation based big data retrieval method for network security log system
CN105302909B (en) * 2015-11-06 2019-03-26 西安交大捷普网络科技有限公司 Network security log system big data search method based on subregion calculations of offset
CN105930256A (en) * 2016-04-14 2016-09-07 北京思特奇信息技术股份有限公司 Method and device for outputting logs for separate files by means of log4j
CN105930256B (en) * 2016-04-14 2018-07-17 北京思特奇信息技术股份有限公司 A kind of log-output method and device using log4j single cent parts
CN109918293A (en) * 2019-01-29 2019-06-21 平安科技(深圳)有限公司 System detection method and device, electronic equipment, computer readable storage medium
CN110737594A (en) * 2019-09-19 2020-01-31 武汉迎风聚智科技有限公司 Database standard conformance testing method and device for automatically generating test cases
CN110737594B (en) * 2019-09-19 2021-02-05 武汉迎风聚智科技有限公司 Database standard conformance testing method and device for automatically generating test cases
WO2021129024A1 (en) * 2019-12-24 2021-07-01 中兴通讯股份有限公司 Method for recognizing state of communication device, and communication system and storage medium

Also Published As

Publication number Publication date
CN101425064B (en) 2011-02-09

Similar Documents

Publication Publication Date Title
CN101425064B (en) Processing method and system for testing log
CN100514323C (en) System and method for automatically extracting by-line information
CN104331446A (en) Memory map-based mass data preprocessing method
CN106294222A (en) A kind of method and device determining PCIE device and slot corresponding relation
CN109710518A (en) Script checking method and device
CN102880468A (en) Code intelligent prompting method and system for electronic control unit (ECU) program development
CN104182548A (en) Webpage updating and processing method and device
CN105653701A (en) Model generating method and device as well as word weighting method and device
CN104391796A (en) Method for parsing test cases
CN111813443B (en) Method and tool for automatically filling code sample by using Java FX
CN108388606B (en) Method for checking base table field names in Sql sentences and computer equipment
CN102902794B (en) Web page classification system and method
CN112231407A (en) DDL synchronization method, device, equipment and medium of PostgreSQL database
CN103020225A (en) CPU (Central Processing Unit) model identifying method and hardware detection system
CN100562872C (en) Automatic moulding plate information locating method at the structuring webpage
CN103605744A (en) Method and device for analyzing website searching engine traffic data
CN105893685A (en) VLSI (Very Large Scale Integration) formal verification platform and method
CN112269779A (en) Big data analysis system and method for defects of power equipment
CN112068981A (en) Knowledge base-based fault scanning recovery method and system in Linux operating system
CN111177506A (en) Classification storage method and system based on big data
CN101957821A (en) Method and device for processing point of interest address information
CN100375196C (en) Method for reading semiconductor die information in a parallel test and burn-in system
CN103544167A (en) Backward word segmentation method and device based on Chinese retrieval
CN112667874A (en) Webpage data extraction method and device, electronic equipment and storage medium
CN111950037A (en) Detection method, detection device, electronic equipment and storage medium

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: 20110209

Termination date: 20151029

EXPY Termination of patent right or utility model