CN100465968C - Processing system for automated testing log - Google Patents

Processing system for automated testing log Download PDF

Info

Publication number
CN100465968C
CN100465968C CNB2007101420471A CN200710142047A CN100465968C CN 100465968 C CN100465968 C CN 100465968C CN B2007101420471 A CNB2007101420471 A CN B2007101420471A CN 200710142047 A CN200710142047 A CN 200710142047A CN 100465968 C CN100465968 C CN 100465968C
Authority
CN
China
Prior art keywords
log
daily record
module
test case
information
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.)
Expired - Fee Related
Application number
CNB2007101420471A
Other languages
Chinese (zh)
Other versions
CN101093514A (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.)
STATE GRID ZHEJIANG ZHUJI POWER SUPPLY Co Ltd
Zhuji Dongbai Electric Power Equipment Manufacturing Co Ltd
State Grid Corp of China SGCC
State Grid Zhejiang Electric Power Co Ltd
Shaoxing Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
Original Assignee
ZTE 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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2007101420471A priority Critical patent/CN100465968C/en
Publication of CN101093514A publication Critical patent/CN101093514A/en
Application granted granted Critical
Publication of CN100465968C publication Critical patent/CN100465968C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

A processing system of automatic-test journal comprises test-sample execution module for executing test-sample base assigned by user and for sending relevant journal data as well as journal storage control message to journal storage module, journal storage module for making treatment on journal data according to said storage control message to generate journal information in specific format, journal databank for storing journal information and journal browse module for fetching journal information from said databank and for generating journal structure view according to journal information .

Description

Processing system for automated testing log
Technical field
The present invention relates to the log store field, relate in particular to a kind of processing system for automated testing log.
Background technology
In automatically measuring executing process, test macro can be the running log information stores in the storage space of computing machine or server.After test execution finished, the tester often need analyze test log, comes the reason of makeing mistakes of assignment test use-case.
The log information of present most automatization test systems all is the form storage with plain text, and the method for generation journal file has two kinds usually.
First kind, journal file of all corresponding generation of each test case in the test case library.Like this, execute a test case library after, generate a lot of journal files and disperse to be stored in the storage space of user's appointment.This method processing speed is fast, implements also fairly simple.But under the many situations of automatic test case, the many and dispersion of the journal file of generation often needs to contrast test case library and seeks corresponding journal file.
Second kind, the test case library of once carrying out correspondence generates a journal file.Like this, once all log informations of the test case library of Zhi Hanging all are stored in the journal file.This method is handled easy, and it is little to account for storage space.But owing to log information possibility length, the form of each test case are different, the segmentation of searching each test case daily record in tediously long log information is relatively more difficult.In addition, the tester as a result the time, often relatively is concerned about some key messages at statistical test.If when print log, make marks to these key messages, just can only in the log information of raft, search for back and forth, be unfavorable for the analytic statistics of log information.
Though more than log store of Jie Shaoing and browsing method are fast simple, have wasted a large amount of time and efforts of tester, and the high-efficient characteristic of automatic test is had a greatly reduced quality.
Summary of the invention
One or more problems in view of the above the present invention proposes a kind of processing system for automated testing log, watch corresponding log information and carry out analytic statistics to make things convenient for the tester to click.
Processing system for automated testing log according to the present invention comprises: the test case execution module, be used to carry out the test case library of user's appointment, to daily record data and the log store control messages of log store module transmission corresponding to the test case in the test case library; The log store module is used for according to the log store control messages daily record data being handled, and generates the log information of specific format, and log information is stored in the log database; Log database is used for storing daily record information; And daily record browses module, is used for reading log information from log database, and generates log-structured view according to log information.Wherein, the log store control messages comprises test case hierarchy information and daily record mark.
The log store module comprises: data processing module is used for according to the test case hierarchy information daily record data being treated to the hierarchical structure corresponding with the test case of test case library; And the mark insert module, be used for the daily record mark is inserted daily record data, to generate log information.
Daily record is browsed module and comprised: the daily record read module is used for reading log information from log database; View makes up module, is used for log information is analyzed, and obtaining daily record hierarchy information and the daily record mark corresponding to log information, and generates log-structured view according to daily record hierarchy information and/or daily record mark.
Daily record is browsed module and is also comprised: the node spider module, be used to travel through all levels node of log-structured view, and the daily record data at reading layer minor node place, and generate the journal displaying view according to the daily record data at level node place; And the mapping set up module, be used to set up the mapping relations between log-structured view and the journal displaying view.Wherein, mapping is set up module and is set up mapping relations between log-structured view and the journal displaying view by the side-play amount of computation layer minor node in pure daily record data.
Processing system for automated testing log also comprises: the condition setting module be used to receive the condition of browsing that the user is provided with, and the condition of will browsing sends to daily record and browses module, to obtain the daily record data that meets the condition of browsing.
The condition of browsing is the eigenwert of the test case in the test case library and/or the daily record mark that the mark insert module is inserted.The test case execution module is in real time to daily record data and the log store control messages of log store module transmission corresponding to the test case in the test case library.The level node is daily record hierarchical structure or daily record mark.
By processing system for automated testing log according to the present invention, storage generates the journal file that has with the corresponding hierarchical relationship of test case, and provides daily record to browse module, makes things convenient for the tester to click and watches corresponding log information.Also provide the filtration of daily record to show in addition, make things convenient for the tester to carry out analytic statistics.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the block diagram according to the processing system for automated testing log of the embodiment of the invention;
Fig. 2 is the process flow diagram according to the log store of the embodiment of the invention; And
Fig. 3 is a process flow diagram of browsing module according to the daily record of the embodiment of the invention.
Embodiment
Below with reference to accompanying drawing, describe the specific embodiment of the present invention in detail.
Fig. 1 is the block diagram according to the processing system for automated testing log of the embodiment of the invention.As shown in Figure 1, this system comprises four modules:
Test case execution module 102 is used for the test case library of run user appointment, and in the process of operation, sends daily record data and log store control messages to the log store module in real time.Wherein, the log store control messages comprises the daily record mark that test case hierarchy information and user insert.。
Log store module 104 is used to receive and store the daily record data that the test case execution module sends, and simultaneously the log store control messages that receives is responded, with response message loopback test use-case execution module.The log store module will generate and the hierarchical structure of test case correspondence according to the test case hierarchy information in the log store control messages, and in the daily record data that receives insertion daily record mark.After the test case execution module executes a test case in the test case library, send the use-case end to the log store module.The daily record data that the log store module will be temporarily stored in the special format in its buffer zone deposits log database in.Behind complete test case library of test case execution module operation, send end of test (EOT) message to the log store module.At this moment, the log store module will be finished the storage of whole journal file, the closing journal database.
Log database 106 is used for the log information of the special format that the acceptance test memory module sends.Test case log information in the log database has the hierarchical structure synchronous with test case, and has inserted user-defined label information on the basis of this hierarchical structure.
Module 108 is browsed in daily record, is used for reading log information from log database, analyzes daily record hierarchical structure and mark, makes up log-structured view according to daily record hierarchical structure and mark then.Wherein, each daily record hierarchical structure or mark all will be as level nodes in the log-structured view.Then, travel through all levels node in log-structured in order, read the daily record data of each level node one by one, these daily record datas are joined the journal displaying view successively.In the process of traversal, calculate and write down the side-play amount of each level node in pure daily record data.The mapping relations of daily record data in each level node and journal displaying view like this, have just been set up in the log-structured view.
Wherein, the log store module can comprise: data processing module is used for according to the test case hierarchy information daily record data being treated to the hierarchical structure corresponding with the test case of test case library; And the mark insert module, be used for the daily record mark is inserted daily record data, to generate log information.
Daily record is browsed module and can be comprised: the daily record read module is used for reading log information from log database; View makes up module, is used for log information is analyzed, and obtaining daily record hierarchy information and the daily record mark corresponding to log information, and generates log-structured view according to daily record hierarchy information and/or daily record mark; The node spider module is used to travel through all levels node of log-structured view, the daily record data at reading layer minor node place, and generate the journal displaying view according to the daily record data at level node place; And the mapping set up module, be used to set up the mapping relations between log-structured view and the journal displaying view.Wherein, mapping is set up module and is set up mapping relations between log-structured view and the journal displaying view by the side-play amount of computation layer minor node in pure daily record data.
Processing system for automated testing log according to the embodiment of the invention can also comprise: the condition setting module be used to receive the condition of browsing that the user is provided with, and the condition of will browsing sends to daily record and browses module, to obtain the daily record data that meets the condition of browsing.These browse condition can be that the eigenwert of test case self also can be the daily record mark that inserts at the test case execution module.So just can only show to obtain concrete filter result statistics by the test case log information that meets the condition of browsing, make things convenient for the analytic statistics of user log information.
Fig. 2 is the log store process flow diagram according to the embodiment of the invention.As shown in Figure 2, in this log store process, the test case execution module begins implementation of test cases storehouse (S202), sends beginning message to log store module (S204).The log store module entered and waited for executing state (S206) this moment.Test case execution module read test use-case information (S208), the use-case hierarchical structure message that the test case information extraction is gone out sends to log store module (S210).After receiving these message, the hierarchical structure that the log store module creation is identical with test case (S212).The test case execution module begins implementation of test cases (S214), gives log store module (S216) with daily record data and daily record token-passing simultaneously.The log store module is carried out the form mark to daily record, and is stored in extra buffer (S218).When a test case end of run (S220), the test case execution module sends the use-case end to log store module (S222).After the log store module receives the use-case end, the mark daily record in the buffer zone write in the corresponding level node remove (S224).Then, the test case execution module judges whether that in addition other test cases need operation (S226), if "Yes" is returned and repeated above process, if "No", then end of test (EOT) (S228) sends end of test (EOT) message (S230) to the log store module.After the log store module receives end of test (EOT) message, finish the journal file storage, and closing journal database (S232).
Fig. 3 browses process flow diagram according to the daily record of the embodiment of the invention.As shown in Figure 3, in this daily record navigation process, daily record is browsed module and is at first read in the journal file (S302) that the log store process is finished, analyze daily record hierarchical structure and daily record mark (S304), make up log-structured view (S306) according to daily record level and mark, wherein each daily record hierarchical structure or mark all will be as level nodes in the log-structured view.Travel through all levels node in log-structured then in order, on the one hand, extract the daily record data (S308) under each level node.These daily record datas are joined journal displaying view (S310) in proper order.On the other hand, calculate the side-play amount (S312) of each level node in pure daily record data in the log-structured view.Through after the top flow process, we have obtained log-structured view and journal displaying view.The also known in addition side-play amount of level node in pure daily record data, i.e. mapping relations of daily record data in each level node and the journal displaying view in the log-structured view of cicada.Arbitrary levels node in the click logs topology view will show corresponding daily record data in the journal displaying view at this moment.
In sum, the present invention has overcome the traditional logs disposal route in storage and deficiency analytically, and the hierarchical relationship of automatic test case is mapped in the journal file, makes the log content to organize according to specific hierarchical relationship.In addition, the present invention has inserted mark of correlation in journal file, to be used for identifying the step of test case, for example in initial configuration, operation committed step with remove the local marks that insert such as configuration, also can insert mark in other position that the tester is concerned about.Like this, in the travel log content, can be by the key content of hierarchical relationship and the quick assignment test use-case of mark.On this basis, the present invention also provides corresponding daily record to browse module, has reached the effect of browsing according to level and mark.
The above is embodiments of the invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within the claim scope of the present invention.

Claims (7)

1. a processing system for automated testing log is characterized in that, comprising:
The test case execution module, be used to carry out the test case library of user's appointment, to the daily record data and the log store control messages that comprise test case hierarchy information and daily record mark of log store module transmission corresponding to the test case in the described test case library;
Described log store module is used for according to described log store control messages described daily record data being handled, and generates the log information of specific format, and described log information is stored in the log database, and described log store module comprises:
Data processing module is used for according to described test case hierarchy information described daily record data being treated to the hierarchical structure corresponding with the test case of described test case library; And
The mark insert module is used for described daily record mark is inserted described daily record data, to generate described log information;
Described log database is used to store described log information; And
Module is browsed in daily record, is used for reading described log information from described log database, and generates log-structured view according to described log information, and described daily record is browsed module and comprised:
The daily record read module is used for reading described log information from described log database;
View makes up module, be used for described log information is analyzed, obtaining described daily record hierarchy information and described daily record mark, and generate described log-structured view according to described daily record hierarchy information and/or described daily record mark corresponding to described log information.
2. processing system for automated testing log according to claim 1 is characterized in that, described daily record is browsed module and also comprised:
The node spider module is used to travel through all levels node of described log-structured view, reads the daily record data at described level node place, and generates the journal displaying view according to the daily record data at described level node place; And
Module is set up in mapping, is used to set up the mapping relations between described log-structured view and the described journal displaying view.
3. processing system for automated testing log according to claim 2, it is characterized in that described mapping is set up module and set up mapping relations between described log-structured view and the described journal displaying view by calculating the side-play amount of described level node in pure daily record data.
4. each the described processing system for automated testing log in requiring according to aforesaid right is characterized in that, also comprises:
The condition setting module is used to receive the condition of browsing that the user is provided with, and the described condition of browsing is sent to described daily record and browses module, meets the described daily record data of browsing condition to obtain.
5. processing system for automated testing log according to claim 4 is characterized in that, describedly browses the described daily record mark that eigenwert that condition is the test case in the described test case library and/or described mark insert module are inserted.
6. processing system for automated testing log according to claim 5, it is characterized in that described test case execution module is in real time to daily record data and the log store control messages of described log store module transmission corresponding to the test case in the described test case library.
7. processing system for automated testing log according to claim 6 is characterized in that, described level node is described daily record hierarchical structure or described daily record mark.
CNB2007101420471A 2007-08-20 2007-08-20 Processing system for automated testing log Expired - Fee Related CN100465968C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007101420471A CN100465968C (en) 2007-08-20 2007-08-20 Processing system for automated testing log

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101420471A CN100465968C (en) 2007-08-20 2007-08-20 Processing system for automated testing log

Publications (2)

Publication Number Publication Date
CN101093514A CN101093514A (en) 2007-12-26
CN100465968C true CN100465968C (en) 2009-03-04

Family

ID=38991773

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101420471A Expired - Fee Related CN100465968C (en) 2007-08-20 2007-08-20 Processing system for automated testing log

Country Status (1)

Country Link
CN (1) CN100465968C (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945155B (en) * 2010-09-03 2013-03-27 展讯通信(上海)有限公司 Method and terminal device for capturing terminal debugging information in real-time manner
CN102467516A (en) * 2010-11-04 2012-05-23 北京北方微电子基地设备工艺研究中心有限责任公司 Method, device and system for recording logs in equipment control process
CN103077111B (en) * 2011-10-26 2016-02-10 阿里巴巴集团控股有限公司 A kind of localization method of continuous integrating failure use-case and system
CN103377101A (en) * 2012-04-18 2013-10-30 百度在线网络技术(北京)有限公司 Testing system and testing method
CN103092745B (en) * 2013-01-22 2016-04-13 中兴通讯股份有限公司 The control method of system journal record and device
CN104424299B (en) * 2013-09-02 2019-06-07 腾讯科技(深圳)有限公司 Data statistical approach and device
CN103944761B (en) * 2014-04-18 2018-01-26 深圳芯智汇科技有限公司 Android log informations filter method and system
CN104182348B (en) * 2014-09-15 2017-04-12 北京国双科技有限公司 Software test method and device
CN105629180A (en) * 2014-11-11 2016-06-01 中兴通讯股份有限公司 Test method, test device and controller
CN106445943B (en) * 2015-08-06 2020-09-08 南京中兴新软件有限责任公司 Log display method and device
CN107870849B (en) * 2016-09-28 2021-03-09 平安科技(深圳)有限公司 Processing method and device of test log
CN107957940B (en) * 2016-10-17 2021-03-16 腾讯科技(深圳)有限公司 Test log processing method, system and terminal
CN107895039B (en) * 2017-11-29 2020-11-24 华中科技大学 Method for constructing log database of campus network authentication system
CN111026669B (en) * 2019-12-11 2023-08-18 广州品唯软件有限公司 Test log management method, test log management device and storage medium
CN111078567B (en) * 2019-12-19 2023-06-13 广州品唯软件有限公司 Report generation method, terminal and storage medium of automatic test platform
CN113392006B (en) * 2021-06-17 2022-07-12 浪潮思科网络科技有限公司 Method and equipment for monitoring automatic test logs by using capsules
CN114138725A (en) * 2021-12-08 2022-03-04 北京志凌海纳科技有限公司 Hierarchical log storage processing method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003099465A (en) * 2001-09-25 2003-04-04 Ziosoft Inc Medical image data base system
CN1818885A (en) * 2005-02-07 2006-08-16 佳能株式会社 Operation logbook obtaining method
CN1885273A (en) * 2005-06-21 2006-12-27 华为技术有限公司 Function coverage ratio analysis method for logic test

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003099465A (en) * 2001-09-25 2003-04-04 Ziosoft Inc Medical image data base system
CN1818885A (en) * 2005-02-07 2006-08-16 佳能株式会社 Operation logbook obtaining method
CN1885273A (en) * 2005-06-21 2006-12-27 华为技术有限公司 Function coverage ratio analysis method for logic test

Also Published As

Publication number Publication date
CN101093514A (en) 2007-12-26

Similar Documents

Publication Publication Date Title
CN100465968C (en) Processing system for automated testing log
CN113010506B (en) Multi-source heterogeneous water environment big data management system
CN109446344A (en) A kind of intellectual analysis report automatic creation system based on big data
CN101430714B (en) Content structuring process method and system based on model
CN112668968A (en) Storage management modeling method and system based on domain-driven design
CN111475612A (en) Construction method, device and equipment of early warning event map and storage medium
US20080071800A1 (en) System and Method for Representing and Using Tagged Data in a Management System
CN112559475B (en) Data real-time capturing and transmitting method and system
CN104967658A (en) Data synchronization method on multiple devices
CN108681556A (en) The access method and its system of distributed instruction numeric field data
CN117150050B (en) Knowledge graph construction method and system based on large language model
CN109977383A (en) A kind of form information extracting method based on Excel
CN110414259A (en) A kind of method and apparatus for constructing data element, realizing data sharing
CN116662441A (en) Distributed data blood margin construction and display method
CN115080275A (en) Twin service assembly based on real-time data model and method thereof
CN115062087A (en) User portrait construction method, device, equipment and medium
CN110378569A (en) Industrial relations chain building method, apparatus, equipment and storage medium
CN109614380A (en) Log processing method, system, computer equipment and readable medium
CN102214248A (en) Multi-layer frequent pattern discovery algorithm with high space extensibility and high time efficiency for mining mass data
EP3306540A1 (en) System and method for content affinity analytics
CN108062323A (en) A kind of log read method and device
CN110309206A (en) Order information acquisition method and system
CN115809348A (en) Knowledge graph construction method and system based on SBOM + FTA framework model
CN111209138A (en) Operation and maintenance method and device of data storage system
CN105607957B (en) A kind of data acquisition analysis system based on OPC DA

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
ASS Succession or assignment of patent right

Owner name: STATE GRID CORPORATION OF CHINA

Free format text: FORMER OWNER: ZTE CORPORATION

Effective date: 20150105

Owner name: STATE GRID ZHEJIANG ELECTRIC POWER COMPANY SHAOXIN

Effective date: 20150105

C41 Transfer of patent application or patent right or utility model
C53 Correction of patent for invention or patent application
CB03 Change of inventor or designer information

Inventor after: Lv Peisong

Inventor after: Liu Fengping

Inventor after: Sha Jingang

Inventor after: Fan Zhiqiang

Inventor after: Yu Jian

Inventor after: Huang Jiefu

Inventor after: Fu Zhenyu

Inventor after: Lv Xinyi

Inventor after: Xu Jin

Inventor after: Fu Liefeng

Inventor after: Zhou Ling

Inventor after: Yang Kui

Inventor before: Yang Kui

Inventor before: Liu Fengping

Inventor before: Sha Jingang

Inventor before: Fan Zhiqiang

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: YANG KUI LIU FENGPING SHA JINGANG FAN ZHIQIANG TO: LV PEISONG YU JIAN HUANG JIEFU FU ZHENYU LV XINYI XU JIN FU LIEFENG ZHOU LING YANG KUI LIU FENGPING SHA JINGANG FAN ZHIQIANG

Free format text: CORRECT: ADDRESS; FROM: 518057 SHENZHEN, GUANGDONG PROVINCE TO: 100031 XICHENG, BEIJING

TR01 Transfer of patent right

Effective date of registration: 20150105

Address after: 100031 Xicheng District West Chang'an Avenue, No. 86, Beijing

Patentee after: State Grid Corporation of China

Patentee after: State Grid Zhejiang Electric Power Company

Patentee after: Shaoxing Power Supply Company of State Grid Zhejiang Electric Power Company

Patentee after: State Grid Zhejiang Zhuji Power Supply Co., Ltd.

Patentee after: Zhuji Dongbai Electric Power Equipment Manufacturing Co., Ltd.

Address before: 518057 Nanshan District science and Technology Industrial Park, Guangdong high tech Industrial Park, ZTE building

Patentee before: ZTE Corporation

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090304

Termination date: 20170820

CF01 Termination of patent right due to non-payment of annual fee