CN106294151B - Log test method and device - Google Patents

Log test method and device Download PDF

Info

Publication number
CN106294151B
CN106294151B CN201610649062.4A CN201610649062A CN106294151B CN 106294151 B CN106294151 B CN 106294151B CN 201610649062 A CN201610649062 A CN 201610649062A CN 106294151 B CN106294151 B CN 106294151B
Authority
CN
China
Prior art keywords
case
target journaling
file
content
log
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
CN201610649062.4A
Other languages
Chinese (zh)
Other versions
CN106294151A (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.)
Alibaba China Co Ltd
Original Assignee
Heyi Intelligent Technology (shenzhen) 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 Heyi Intelligent Technology (shenzhen) Co Ltd filed Critical Heyi Intelligent Technology (shenzhen) Co Ltd
Priority to CN201610649062.4A priority Critical patent/CN106294151B/en
Publication of CN106294151A publication Critical patent/CN106294151A/en
Application granted granted Critical
Publication of CN106294151B publication Critical patent/CN106294151B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Abstract

The present invention relates to a kind of log test method and devices.A kind of log test method, comprising: the file for storing target journaling file is found in log server;In the case where the file does not include other journal files, according to target journaling use-case to be tested, the target journaling file is generated;The content that the target journaling file is recorded is compared with the preset content of the target journaling use-case, and determines that can the target journaling use-case operate normally according to comparison result.The log test method of the embodiment of the present invention, can be improved the testing efficiency of log use-case.

Description

Log test method and device
Technical field
The present invention relates to computer field more particularly to a kind of log test method and devices.
Background technique
The network equipment, system and service routine etc. can all generate a log logout in running.Every a line log All recite the description of the relevant operations such as date, time, user and movement.Therefore, each log use-case may correspond to Different execution logics.
Currently, the test for log use-case, the method for generalling use manual testing.Log use-case is triggered by staff Generate log, and after log generation, by staff go on server to check log recording generated content whether Correctly.But manual testing's log use-case is than relatively time-consuming, it cannot be guaranteed that the coverage rate of test, regression test time are also long.
Summary of the invention
Technical problem
In view of this, how the technical problem to be solved by the present invention is to improve the testing efficiency of log use-case.
Solution
In order to solve the above-mentioned technical problem, an embodiment according to the present invention provides a kind of log test method, packet It includes:
The file for storing target journaling file is found in log server;
It is raw according to target journaling use-case to be tested in the case where the file does not include other journal files At the target journaling file;
The content that the target journaling file is recorded is compared with the preset content of the target journaling use-case, and Determine that can the target journaling use-case operate normally according to comparison result.
For the above method, in one possible implementation, further includes:
In the case where the file includes other journal files, the log of whole included by the file is deleted File.
For the above method, in one possible implementation, according to target journaling use-case to be tested, described in generation Target journaling file, comprising:
The corresponding hyperlink request of the target journaling use-case is triggered, the target journaling file is generated.
For the above method, in one possible implementation, content that the target journaling file is recorded with The preset content of the target journaling use-case is compared, and determines that can the target journaling use-case normal according to comparison result Operation, comprising:
The target journaling file is opened, and extracts the content that the target journaling file is recorded;
The content is compared with the preset content, in the content situation identical as the preset content Under, the target journaling use-case can operate normally;Or, the content is compared with the preset content, described interior Hold in the different situation of the preset content, the target journaling use-case can not operate normally.
For the above method, in one possible implementation, further includes:
In the case where finding that the code of system to be tested is updated, from the system comprises each log use-case in Obtain at least one target journaling use-case to be tested.
In order to solve the above-mentioned technical problem, according to another embodiment of the present invention, a kind of log test device is provided, is wrapped It includes:
Searching module, for finding the file for storing target journaling file in log server;
Generation module is connect with the searching module, for not including the feelings of other journal files in the file Under condition, according to target journaling use-case to be tested, the target journaling file is generated;
Comparison module is connect with the generation module, the content for being recorded the target journaling file with it is described The preset content of target journaling use-case is compared, and determines that can the target journaling use-case normally be transported according to comparison result Row.
For above-mentioned apparatus, in one possible implementation, further includes:
Removing module, for deleting the file and being wrapped in the case where the file includes other journal files The whole journal files included.
For above-mentioned apparatus, in one possible implementation, it is specifically used for
The corresponding hyperlink request of the target journaling use-case is triggered, the target journaling file is generated.
For above-mentioned apparatus, in one possible implementation, it is specifically used for
The target journaling file is opened, and extracts the content that the target journaling file is recorded;
The content is compared with the preset content, in the content situation identical as the preset content Under, the target journaling use-case can operate normally;Or, the content is compared with the preset content, described interior Hold in the different situation of the preset content, the target journaling use-case can not operate normally.
For above-mentioned apparatus, in one possible implementation, further includes:
Transfer module, in the case where finding that the code of system to be tested is updated, from the system comprises Each log use-case in obtain at least one target journaling use-case to be tested.
Beneficial effect
The log test method of the embodiment of the present invention generates target journaling file according to target journaling use-case to be tested, And be compared the content that target journaling file is recorded with the preset content of target journaling use-case, to determine that target journaling is used Can example operate normally, and can be improved the testing efficiency of log use-case.
Further, the log test method of the embodiment of the present invention, can be applied to various types of log use-cases into Row test, can simulate a large amount of log scene, increase the coverage rate of test, ensure that the quality of log use-case.
Further, in the case where the code of system is updated, each log use-case that can include to system is carried out Testing efficiency can be greatly improved in test, shorten the regression test time, eliminate influence of the code update to log use-case.
According to below with reference to the accompanying drawings becoming to detailed description of illustrative embodiments, other feature of the invention and aspect It is clear.
Detailed description of the invention
Including in the description and constitute the attached drawing of part of specification and specification together illustrate it is of the invention Exemplary embodiment, feature and aspect, and principle for explaining the present invention.
Fig. 1 shows the flow chart of log test method according to an embodiment of the invention;
Fig. 2 shows another flow charts of log test method according to an embodiment of the invention;
Fig. 3 shows another flow chart of log test method according to an embodiment of the invention;
Fig. 4 shows another flow chart of log test method according to an embodiment of the invention;
Fig. 5 shows another flow chart of log test method according to an embodiment of the invention;
Fig. 6 shows another flow chart of log test method according to an embodiment of the invention;
Fig. 7 shows the structural block diagram of log test device according to another embodiment of the present invention;
Fig. 8 shows another structural block diagram of log test device according to another embodiment of the present invention;
Fig. 9 shows another structural block diagram of log test device according to another embodiment of the present invention;
Figure 10 shows the structural block diagram of log test equipment according to another embodiment of the present invention.
Specific embodiment
Below with reference to attached drawing various exemplary embodiments, feature and the aspect that the present invention will be described in detail.It is identical in attached drawing Appended drawing reference indicate element functionally identical or similar.Although the various aspects of embodiment are shown in the attached drawings, remove It non-specifically points out, it is not necessary to attached drawing drawn to scale.
Dedicated word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary " Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the present invention, numerous details is given in specific embodiment below. It will be appreciated by those skilled in the art that without certain details, the present invention equally be can be implemented.In some instances, for Method, means, element and circuit well known to those skilled in the art are not described in detail, in order to highlight purport of the invention.
Embodiment 1
Fig. 1 shows the flow chart of log test method according to an embodiment of the invention.As shown in Figure 1, the log is surveyed Method for testing specifically includes that
Step 101 finds file for storing target journaling file in log server;
Step 102, in the case where the file does not include other journal files, according to target journaling to be tested Use-case generates the target journaling file;
Step 103, the content for being recorded the target journaling file and the target journaling use-case preset content into Row compares, and determines that can the target journaling use-case operate normally according to comparison result.
Specifically, the network equipment, system and service routine etc. can generate journal file in running, such as system log, Security log etc., the unlimited concrete type for determining journal file of the present embodiment.Each journal file can recite the date, the time, The description of the relevant operations such as user and movement, these contents play a significant role the operation maintenance of system.Specifically, example Such as, system log can recorde the information of hardware in system, software and system problem, while can be to occur in monitoring system Event.Security log can recorde each switching on and shutting down, operation program, information when system reports an error.
By taking Windows operating system as an example, design has various types of logs, for example, may include application program day Will, security log, system log, Scheduler serve log, FTP (File Transfer Protocol, file transmission association View) log, WWW (World Wide Web, WWW) log, DNS (Domain Name System, domain name system) server Log etc..For user when carrying out some operations in system, these journal files would generally record the related content of operation.Example Such as, user has carried out IPC (Inter-Process Communication, interprocess communication) detection to system, and system will The contents such as IP address, time, user name used when surveyor's detection are promptly write down in security log.
The log server of the embodiment of the present invention may include the various types of servers that can store journal file, This is without limitation.Further, the embodiment of the present invention does not limit the number of server, can be single server, is also possible to Cluster server.Wherein, the type of journal file can be divided by the behavior of user or the operation of system.For example, During video is broadcast, just starts to will record when playing video advertisement to start to supervise and broadcast log, user clicks advertisement and has advertisement Click logs, advertisement, which plays, to be had prison and broadcasts end log.
Log use-case may include various types of test cases that can generate log, it is not limited here.It is testing In use-case, different parameter groups at link, log is can be generated in access link, includes described in the log that different links generates Content it is different.The journal file that different log use-cases generate is stored in the different files in log server.One Journal file in a file in available preset time period such as 1 hour, it is not limited here.The log of the present embodiment Test method can test whole log use-cases included by selected log use-case or system, be used with each log of determination Can example operate normally, and can be improved the testing efficiency of log use-case.
In one possible implementation, as shown in Fig. 2, the log test method, further includes:
Step 102a, it in the case where the file includes other journal files, deletes included by the file Whole journal files.
The log test method of the embodiment of the present invention needs to generate target journaling according to target journaling use-case to be tested File, and the content that target journaling file is recorded is compared with the preset content of target journaling use-case.In this process In, in order to avoid causing test to be lost since other already present journal files and target journaling file in file cannot be distinguished The case where losing needs in the case where file does not include other journal files, generates target journaling file.
During specific implementation, the log test method of the embodiment of the present invention may include judgment step.For example, first sentencing Whether disconnected file includes other journal files, in the case where not including other journal files, directly generates target journaling File;In the case where including other journal files, the journal file and then generation mesh of whole included by Delete Folder Mark journal file.The log test method of the embodiment of the present invention can not also include judgment step.For example, generating target every time Before journal file, deletion step, the journal file of whole included by Delete Folder are first carried out.
It should be noted that it will be appreciated by those skilled in the art that whole logs included by Delete Folder are literary Before part, it can export to the modes such as database for example, by copy journal file, the content for being recorded journal file and realize Storage to journal file to guarantee that the content of journal file record will not lose, and facilitates inquiry when needed.
In one possible implementation, as shown in figure 3, not including the feelings of other journal files in the file Under condition, according to target journaling use-case to be tested, the target journaling file (step 102) is generated, comprising:
Step 301, in the case where the file does not include other journal files, trigger the target journaling use-case Corresponding hyperlink request generates the target journaling file.
The network equipment, system and service routine etc. can generate journal file in running.In log use-case, difference Parameter group at link, log can be generated in access link, and the content for including described in the log that different links generates is different.Into One step, the corresponding link of target journaling use-case to be tested is accessed, target journaling file can be generated.For example, target journaling Use-case can be FTP log use-case, pass through triggering system FTP detection, the FTP journal file (target journaling file) of generation.Its In, the content that FTP journal file is recorded may include the user name such as used in IP address, time, detection.
Some operations can be carried out to the target journaling file of generation, such as remotely check, download, delete, herein not It limits.For checking web administration log, " web administration log " link is clicked, checks the page into log, in log text The journal file to be checked is chosen in part list box, is then clicked " checking log " button on right side, be may browse through web administration Detailed content in log recording.
In one possible implementation, as shown in figure 4, the content that the target journaling file is recorded with it is described The preset content of target journaling use-case is compared, and determines that can the target journaling use-case operate normally according to comparison result (step 103), comprising:
Step 401 opens the target journaling file, and extracts the content that the target journaling file is recorded;
The content is compared by step 402 with the preset content, identical as the preset content in the content In the case where, the target journaling use-case can be transported normally;Or,
The content is compared by step 403 with the preset content, in the content and the preset content not phase With in the case where, the target journaling use-case can not be operated normally.
In the step 401 of the embodiment of the present invention to step 403, by the content of target journaling file record and preset content into Row compare process, can be carried out directly in log server, can also by after target journaling file download in local hard drive Middle progress, it is not limited here.Specifically, the process of target journaling file is downloaded are as follows: choose target journaling file, then click " download log " button clicks " preservation " button and specified storage path in " file download " dialog box of pop-up.
It should be noted that target journaling use-case can be target journaling file institute that is pre-designed, therefore generating The content of record should usually follow target journaling use-case logic.Further, by the content of target journaling file record and in advance If content is compared, in the content situation identical with preset content of record, illustrate that the target journaling file generated is remembered The content of record follows target journaling use-case logic, and target journaling use-case can operate normally.In the content and preset content of record In different situation, the content for illustrating that the target journaling file generated is recorded does not follow target journaling use-case logic, mesh Mark log use-case can not operate normally.
As an example, target journaling use-case is FTP log use-case.In primary test, it is by IP address 192.168.0.257, the system trigger FTP log use-case of the entitled C904 of user, to generate FTP journal file (target journaling File).FTP journal file is opened, specifically, the content recorded includes such as Time (time): 14:56, IP address: 192.168.0.254 Name (user name): C901.By comparing, the content and preset interior that discovery FTP journal file is recorded Appearance is not identical, illustrates that the FTP log use-case can not operate normally.
In one possible implementation, as shown in figure 5, in the feelings for finding that the code of system to be tested is updated Under condition, from the system comprises each log use-case in obtain at least one target journaling use-case to be tested.
Specifically, the log test method of the embodiment of the present invention can be packaged into test module.It is possible to further logical It crosses such as Robot Framework frame and writes test platform, test module is called to carry out target journaling use-case to be tested Test.Wherein, Robot Framework is the Function Test Automation frame that a Python writes, have it is good can Scalability supports crucial word drive, can test a plurality of types of clients or interface simultaneously, can carry out distributed testing It executes.
Further, it is also possible to the case where monitoring continuous integrating by Jenkins.It is carried out in the code for finding system to be tested In the case where update, at least one target journaling use-case to be tested is selected, and carry out automatic test.In the modification ratio of system In the case of more frequently, a large amount of testing time can be saved.Wherein, Jenkins is that one kind based on Java exploitation persistently collects At tool, for monitoring persistently duplicate work, function may include lasting software version publication/test item, Yi Jijian Control the work that external call executes.
As an example of the invention, as shown in fig. 6, the detailed process of log test method is as follows:
S601, Telnet log server.For example, logging in log services by terminal unit remotes such as mobile phone, computers Device.In the case where logining successfully, the operation of log server permission can be carried out, for example, deleting other journal files, reading Target journaling file, downloading target journaling file etc..Wherein, log server is capable of the target of stored target log use-case generation Journal file.
S602, judge whether log server logins successfully.Specifically, in the case where logging in the successful situation of log server, Continue to execute step S603;In the case where logging in log server failure, test crash terminates test.
Wherein, journal file is generally stored inside Linux server, can pass through SSH (Secure Shell, Secure Shell Agreement) Telnet Linux server, it logins successfully, the status code logined successfully can be returned, login failure can also be returned and be stepped on Record status of fail code and failure cause.
Other all journal files under S603, Delete Folder.Wherein, other journal files of the embodiment of the present invention are The journal file that target journaling use-case generates before test is deleted these files and is made after executing step S604, file Only include the target journaling file generated in folder, is conducive to the extraction of target journaling file.
S604, access can generate the hyperlink request of target journaling file.After executing step S604, system is in target Relevant content is recorded in the corresponding journal file of log use-case, generates target journaling file.
S605, generation target journaling file is checked whether.Specifically, in the case where generating target journaling file, continue Execute step S606;In the case where no generation target journaling file, test crash terminates test.
S606, target journaling file content is extracted into dictionary.Specifically, the log content storage of each column to correspondence Parameter Dictionary in.The dictionary of the embodiment of the present invention can be a kind of storage mode, for example, with the side of key assignments (Key-Value) Formula storage.Wherein, Key can be the title of target journaling use-case, Value may include target journaling file recorded it is interior Hold.Corresponding Value can be retrieved by Key.
Whether S607, the content for judging target journaling file are consistent with preset content.Specifically, by content and preset content It is compared, in content situation identical with preset content, target journaling use-case can be operated normally, and be successfully tested, and be terminated Test.Under content and the different situation of preset content, target journaling use-case can not be operated normally, test crash, be terminated Test.
The log test method of the embodiment of the present invention generates target journaling file according to target journaling use-case to be tested, And be compared the content that target journaling file is recorded with the preset content of target journaling use-case, to determine that target journaling is used Can example operate normally, and can be improved the testing efficiency of log use-case.
Further, the log test method of the embodiment of the present invention, can be applied to various types of log use-cases into Row test, can simulate a large amount of log scene, increase the coverage rate of test, ensure that the quality of log use-case.
Further, in the case where the code of system is updated, each log use-case that can include to system is carried out Testing efficiency can be greatly improved in test, shorten the regression test time, eliminate influence of the code update to log use-case.
Embodiment 2
Fig. 7 shows the structural block diagram of log test device according to another embodiment of the present invention.As shown in fig. 7, the day Will test device specifically includes that searching module 11, for being found in log server for storing target journaling file File.Generation module 13 is connect with the searching module 11, for not including other journal files in the file In the case of, according to target journaling use-case to be tested, generate the target journaling file.Comparison module 15, with the generation mould Block 13 connects, and the preset content of content and the target journaling use-case for being recorded the target journaling file compares Compared with, and determine that can the target journaling use-case operate normally according to comparison result.Concrete principle and example may refer to implement The associated description of example 1 and Fig. 1.
In one possible implementation, as shown in Figure 8, further includes: removing module 17, in the file clip pack In the case where including other journal files, the journal file of whole included by the file is deleted.Concrete principle and example can Referring to the associated description of embodiment 1 and Fig. 2.
In one possible implementation, the generation module 13 is specifically used for triggering the target journaling use-case pair The hyperlink request answered generates the target journaling file.Concrete principle and example may refer to the related of embodiment 1 and Fig. 3 Description.
In one possible implementation, the comparison module 15 is specifically used for opening the target journaling file, and Extract the content that the target journaling file is recorded;The content is compared with the preset content, in the content In situation identical with the preset content, the target journaling use-case can be operated normally;Or, by the content with it is described pre- If content is compared, under the content and the different situation of the preset content, the target journaling use-case can not It operates normally.Concrete principle and example may refer to embodiment 1 and the associated description of Fig. 4.
In one possible implementation, as shown in Figure 9, further includes: module 10 is transferred, for be tested in discovery In the case that the code of system is updated, from the system comprises each log use-case in obtain at least one mesh to be tested Mark log use-case.Concrete principle and example may refer to embodiment 1 and the associated description of Fig. 5.
The log test device of the embodiment of the present invention generates target journaling file according to target journaling use-case to be tested, And be compared the content that target journaling file is recorded with the preset content of target journaling use-case, to determine that target journaling is used Can example operate normally, and can be improved the testing efficiency of log use-case.
Further, the log test device of the embodiment of the present invention, can be applied to various types of log use-cases into Row test, can simulate a large amount of log scene, increase the coverage rate of test, ensure that the quality of log use-case.
Further, in the case where the code of system is updated, each log use-case that can include to system is carried out Testing efficiency can be greatly improved in test, shorten the regression test time, eliminate influence of the code update to log use-case.
Embodiment 3
Figure 10 shows the structural block diagram of log test equipment according to another embodiment of the present invention.The log test equipment 1100 can be the host server for having computing capability, personal computer PC or portable portable computer or end End etc..The specific embodiment of the invention does not limit the specific implementation of calculate node.
The log test equipment 1100 includes processor (processor) 1110, communication interface (Communications Interface) 1120, memory (memory) 1130 and bus 1140.Wherein, processor 1110, communication interface 1120 and Memory 1130 completes mutual communication by bus 1140.
Communication interface 1120 is used for and network device communications, and wherein the network equipment includes such as Virtual Machine Manager center, is total to Enjoy storage etc..
Processor 1110 is for executing program.Processor 1110 may be a central processor CPU or dedicated collection At circuit ASIC (Application Specific Integrated Circuit), or it is arranged to implement the present invention One or more integrated circuits of embodiment.
Memory 1130 is for storing file.Memory 1130 may include high speed RAM memory, it is also possible to further include non- Volatile memory (non-volatile memory), for example, at least a magnetic disk storage.Memory 1130 is also possible to deposit Memory array.Memory 1130 is also possible to by piecemeal, and described piece can be combined into virtual volume by certain rule.
In a kind of possible embodiment, above procedure can be the program code for including computer operation instruction.The journey Sequence is particularly used in: realizing each step in embodiment 1.
Those of ordinary skill in the art may be aware that each exemplary cell and algorithm in embodiment described herein Step can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions actually with hardware also It is software form to realize, the specific application and design constraint depending on technical solution.Professional technician can be directed to It is specific that described function is realized using different methods is selected, but this realization is it is not considered that exceed model of the invention It encloses.
If realizing the function and when sold or used as an independent product in the form of computer software, To a certain extent it is believed that all or part (such as the part that contributes to existing technology) of technical solution of the present invention is It embodies in form of a computer software product.The computer software product is generally stored inside computer-readable non-volatile In storage medium, including some instructions are used so that computer equipment (can be personal computer, server or network to set It is standby etc.) execute all or part of the steps of various embodiments of the present invention method.And storage medium above-mentioned include USB flash disk, mobile hard disk, Read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic The various media that can store program code such as dish or CD.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

1. a kind of log test method characterized by comprising
The file for storing target journaling file is found in log server;
In the case where the file does not include other journal files, according to target journaling use-case to be tested, institute is generated State target journaling file;
The content that the target journaling file is recorded is compared with the preset content of the target journaling use-case, and according to Comparison result determines that can the target journaling use-case operate normally.
2. the method according to claim 1, wherein further include:
In the case where the file includes other journal files, the log text of whole included by the file is deleted Part.
3. the method according to claim 1, wherein generating the mesh according to target journaling use-case to be tested Mark journal file, comprising:
The corresponding hyperlink request of the target journaling use-case is triggered, the target journaling file is generated.
4. the method according to claim 1, wherein the content that the target journaling file is recorded with it is described The preset content of target journaling use-case is compared, and determines that can the target journaling use-case normally be transported according to comparison result Row, comprising:
The target journaling file is opened, and extracts the content that the target journaling file is recorded;
The content is compared with the preset content, in content situation identical with the preset content, institute Stating target journaling use-case can operate normally;Or, the content is compared with the preset content, in the content and institute It states in the different situation of preset content, the target journaling use-case can not operate normally.
5. method according to claim 1 to 4, which is characterized in that further include:
In the case where finding that the code of system to be tested is updated, from the system comprises each log use-case in obtain At least one target journaling use-case to be tested.
6. a kind of log test device characterized by comprising
Searching module, for finding the file for storing target journaling file in log server;
Generation module is connect with the searching module, in the case where the file does not include other journal files, According to target journaling use-case to be tested, the target journaling file is generated;
Comparison module is connect with the generation module, the content for being recorded the target journaling file and the target The preset content of log use-case is compared, and determines that can the target journaling use-case operate normally according to comparison result.
7. device according to claim 6, which is characterized in that further include:
Removing module, for deleting included by the file in the case where the file includes other journal files Whole journal files.
8. device according to claim 6, which is characterized in that the generation module is specifically used for triggering the target day The corresponding hyperlink request of will use-case generates the target journaling file.
9. device according to claim 6, which is characterized in that the comparison module is specifically used for opening the target day Will file, and extract the content that the target journaling file is recorded;
The content is compared with the preset content, in content situation identical with the preset content, institute Stating target journaling use-case can operate normally;Or, the content is compared with the preset content, in the content and institute It states in the different situation of preset content, the target journaling use-case can not operate normally.
10. device according to any one of claims 6 to 9, which is characterized in that further include:
Transfer module, in the case where finding that the code of system to be tested is updated, from the system comprises it is each At least one target journaling use-case to be tested is obtained in log use-case.
CN201610649062.4A 2016-08-09 2016-08-09 Log test method and device Expired - Fee Related CN106294151B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610649062.4A CN106294151B (en) 2016-08-09 2016-08-09 Log test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610649062.4A CN106294151B (en) 2016-08-09 2016-08-09 Log test method and device

Publications (2)

Publication Number Publication Date
CN106294151A CN106294151A (en) 2017-01-04
CN106294151B true CN106294151B (en) 2019-02-12

Family

ID=57667187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610649062.4A Expired - Fee Related CN106294151B (en) 2016-08-09 2016-08-09 Log test method and device

Country Status (1)

Country Link
CN (1) CN106294151B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106803975B (en) * 2017-03-31 2019-09-10 微梦创科网络科技(中国)有限公司 Advertising testing method and apparatus, test platform
CN108519948A (en) * 2018-04-04 2018-09-11 上海携程商务有限公司 The automatic interface testing method and system of daily record driving
CN108734013A (en) * 2018-05-23 2018-11-02 郑州云海信息技术有限公司 A method of processing WEB Request Log files
CN110580214B (en) * 2018-06-07 2023-05-05 百度在线网络技术(北京)有限公司 Evaluation method and device for application program test, storage medium and terminal equipment
CN108897677B (en) * 2018-06-12 2022-04-15 广州视源电子科技股份有限公司 Log construction method and system
CN109783384A (en) * 2019-01-10 2019-05-21 未来电视有限公司 Log use-case test method, log use-case test device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103313289A (en) * 2012-03-09 2013-09-18 腾讯科技(深圳)有限公司 Wap system automatic test system and method
CN103634592A (en) * 2013-12-09 2014-03-12 乐视致新电子科技(天津)有限公司 Automatic test method and system for intelligent televisions

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6492901B1 (en) * 2000-05-10 2002-12-10 Westinghouse Electric Company Llc Alarm management system
EP1876532A1 (en) * 2006-07-05 2008-01-09 Telefonaktiebolaget LM Ericsson (publ) A method and a system for testing software modules in a telecommunication system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103313289A (en) * 2012-03-09 2013-09-18 腾讯科技(深圳)有限公司 Wap system automatic test system and method
CN103634592A (en) * 2013-12-09 2014-03-12 乐视致新电子科技(天津)有限公司 Automatic test method and system for intelligent televisions

Also Published As

Publication number Publication date
CN106294151A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN106294151B (en) Log test method and device
US10805171B1 (en) Understanding network entity relationships using emulation based continuous learning
JP6280155B2 (en) Techniques for network replication
Arnold Openstack swift: Using, administering, and developing for swift object storage
US9658914B2 (en) Troubleshooting system using device snapshots
EP4004781A1 (en) Secure incident investigation event capture
US11539590B2 (en) Detect impact of network maintenance in software defined infrastructure
EP3369030A1 (en) Methods and apparatus for mobile computing device security in testing facilities
US11635752B2 (en) Detection and correction of robotic process automation failures
US11627034B1 (en) Automated processes and systems for troubleshooting a network of an application
US20170083643A1 (en) Reproducing problems in a cloud-based replica of a network
US11153321B2 (en) Secure investigations platform
CN108139961A (en) Telemetering defines system
US20230205572A1 (en) Secure incident investigation workspace generation and investigation control
CN110855458A (en) Configuration command generation method and equipment
CN114816894B (en) Chip testing system, method, equipment and medium
US20160364319A1 (en) Enhanced bug resolution
CN110928554A (en) Deployment method, device, equipment and storage medium
US20220357940A1 (en) Proactive Notifications for Robotic Process Automation
Baset et al. Dissecting Open Source Cloud Evolution: An {OpenStack} Case Study
CN113364631A (en) Network topology management method, device, equipment and computer storage medium
Singh et al. Hierarchical multi-log cloud-based search engine
CN114598617A (en) Device for realizing large-scale multi-task parallel detection processing aiming at security monitoring networking
US9092397B1 (en) Development server with hot standby capabilities
Uytterhoeven et al. Zabbix 4 Network Monitoring: Monitor the performance of your network devices and applications using the all-new Zabbix 4.0

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200521

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 518030, Sannuo building, 19L02, 3012 Binhai Avenue, Shenzhen, Guangdong, Nanshan District

Patentee before: HEYI INTELLIGENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

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

Granted publication date: 20190212

Termination date: 20200809