CN107766219A - Automated testing log collection method, system, equipment and computer memory device - Google Patents
Automated testing log collection method, system, equipment and computer memory device Download PDFInfo
- Publication number
- CN107766219A CN107766219A CN201711033724.6A CN201711033724A CN107766219A CN 107766219 A CN107766219 A CN 107766219A CN 201711033724 A CN201711033724 A CN 201711033724A CN 107766219 A CN107766219 A CN 107766219A
- Authority
- CN
- China
- Prior art keywords
- daily record
- species
- automated testing
- log
- logs
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
- Debugging And Monitoring (AREA)
Abstract
本申请公开了一种自动化测试日志收集方法、系统、设备及计算机存储介质,其中,该方法包括:获取收集预设日志种类的指令,并根据所述指令得到目标日志种类;根据所述目标日志种类,对自动化测试生成的日志进行查找,得到所述目标日志种类对应的日志,以完成对目标日志的收集。本申请提供的一种自动化测试日志收集方法,通过分类收集自动化测试生成的日志,而这些日志记录了自动化测试的信息,利用收集的日志实现对自动化测试完成后的分析操作。
The present application discloses a method, system, device, and computer storage medium for collecting automated test logs, wherein the method includes: obtaining instructions for collecting preset log types, and obtaining target log types according to the instructions; type, searching the logs generated by the automated test to obtain the logs corresponding to the target log type, so as to complete the collection of the target logs. The application provides a method for collecting automated test logs, which collects the logs generated by the automated tests by classification, and these logs record the information of the automated tests, and uses the collected logs to implement analysis operations after the automated tests are completed.
Description
技术领域technical field
本发明涉及计算机技术,特别涉及自动化测试日志收集方法、系统、设备及计算机存储设备。The invention relates to computer technology, in particular to an automatic test log collection method, system, equipment and computer storage equipment.
背景技术Background technique
分布式存储集群的自动化测试需要执行成千上万个测试脚本,为了使脚本间的测试互不影响,每个测试脚本执行前后都会进行清理测试环境的操作,以保证环境恢复初始状态。但是,一旦后期发现自动化测试的系统出现异常,需要出现或者需要进行性能分析等分析操作时,将无法进行。The automated testing of distributed storage clusters requires the execution of thousands of test scripts. In order to prevent the tests between scripts from interfering with each other, the test environment will be cleaned up before and after the execution of each test script to ensure that the environment returns to its original state. However, once the automated testing system is found to be abnormal in the later stage, when analysis operations such as performance analysis or performance analysis are required, it will not be possible.
因此,如何实现对自动化测试完成后的分析操作是本领域技术人员亟待解决的问题。Therefore, how to implement the analysis operation after the automated test is completed is an urgent problem to be solved by those skilled in the art.
发明内容Contents of the invention
有鉴于此,本发明提供一种自动化测试日志收集方法、系统、设备及计算机存储设备,目的在于实现了对自动化测试后期的管理操作。其具体方案如下:In view of this, the present invention provides an automated test log collection method, system, device and computer storage device, with the purpose of realizing the management operation of the later stage of the automated test. The specific plan is as follows:
一种自动化测试日志收集方法,包括:A method for collecting automated test logs, comprising:
获取收集预设日志种类的指令,并根据所述指令得到目标日志种类;Obtaining instructions for collecting preset log types, and obtaining target log types according to the instructions;
根据所述目标日志种类,对自动化测试生成的日志进行查找,得到所述目标日志种类对应的日志,以完成对目标日志的收集。According to the type of the target log, the logs generated by the automated test are searched to obtain the log corresponding to the type of the target log, so as to complete the collection of the target log.
可选的,所述获取收集预设日志种类的指令的过程包括:Optionally, the process of obtaining instructions for collecting preset log types includes:
获取所述自动化测试完成触发的收集预设日志种类的指令。Obtain an instruction for collecting preset log types triggered by the completion of the automated test.
可选的,所述获取收集预设日志种类的指令的过程包括:Optionally, the process of obtaining instructions for collecting preset log types includes:
获取所述自动化测试错误触发的收集预设日志种类的指令。An instruction for collecting preset log types triggered by the automated test error is acquired.
可选的,所述目标日志种类包括所述自动化测试生成的测试任务日志和/或测试结果日志;Optionally, the target log type includes a test task log and/or a test result log generated by the automated test;
其中,所述测试任务日志包括集群配置信息日志和/或自动化测试平台日志和/或集群各节点日志;所述集群各节点日志包括操作系统日志和/或集群状态日志和/或文件系统日志。Wherein, the test task logs include cluster configuration information logs and/or automated test platform logs and/or cluster node logs; the cluster node logs include operating system logs and/or cluster status logs and/or file system logs.
可选的,所述自动化测试日志收集方法,还包括:Optionally, the automated test log collection method also includes:
将所述目标日志存储至预设服务器。storing the target log to a preset server.
可选的,所述将所述目标日志存储至预设服务器的过程包括:Optionally, the process of storing the target log to a preset server includes:
将所述目标日志以压缩包的形式存储至预设服务器。The target log is stored to a preset server in the form of a compressed package.
相应的,一种自动化测试日志收集系统,包括:Correspondingly, an automated test log collection system includes:
日志种类获取模块,用于获取收集预设日志种类的指令,并根据所述指令得到目标日志种类;The log type acquisition module is used to obtain instructions for collecting preset log types, and obtain target log types according to the instructions;
日志收集模块,用于根据所述目标日志种类,对自动化测试生成的日志进行查找,得到所述目标日志种类对应的日志,以完成对目标日志的收集。The log collection module is configured to search the logs generated by the automated test according to the type of the target log, and obtain the log corresponding to the type of the target log, so as to complete the collection of the target log.
可选的,所述日志种类获取模块,用于获取所述自动化测试完成触发的收集预设日志种类的指令,并根据所述指令得到目标日志种类。Optionally, the log type obtaining module is configured to obtain an instruction for collecting preset log types triggered by the completion of the automated test, and obtain a target log type according to the instruction.
可选的,所述日志种类获取模块,用于获取所述自动化测试错误触发的收集预设日志种类的指令,并根据所述指令得到目标日志种类。Optionally, the log type obtaining module is configured to obtain an instruction for collecting a preset log type triggered by an error in the automated test, and obtain a target log type according to the instruction.
可选的,所述自动化测试日志收集系统,还包括:Optionally, the automated test log collection system also includes:
日志存储模块,用于将所述目标日志存储至预设服务器。A log storage module, configured to store the target log to a preset server.
本发明还提供了一种自动化测试日志收集设备,所述自动化测试日志收集设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的自动化测试日志收集程序,所述自动化测试日志收集程序配置为实现上述的自动化测试日志收集方法的步骤。The present invention also provides an automated test log collection device, which includes a memory, a processor, and an automated test log collection program stored on the memory and operable on the processor. The automatic test log collection program is configured to realize the steps of the above-mentioned automatic test log collection method.
本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有分布式自动化测试日志收集程序,所述自动化测试日志收集程序被处理器执行时实现上述的自动化测试日志收集方法的步骤。The present invention also provides a computer-readable storage medium, where a distributed automated test log collection program is stored on the computer-readable storage medium, and when the automated test log collection program is executed by a processor, the above-mentioned automated test log collection is realized method steps.
可见,本发明提供的一种自动化测试日志收集方法,通过分类收集自动化测试生成的日志,而这些日志记录了自动化测试的信息,利用收集的日志能够实现对自动化测试完成后的分析操作。It can be seen that the automated test log collection method provided by the present invention collects the logs generated by the automated test by classification, and these logs record the information of the automated test, and the analysis operation after the automated test is completed can be realized by using the collected logs.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1为本发明实施例提供的一种自动化测试日志收集方法的流程图;Fig. 1 is a flow chart of a method for collecting automated test logs provided by an embodiment of the present invention;
图2为本发明实施例提供的另外一种自动化测试日志收集方法的流程图;FIG. 2 is a flow chart of another automated test log collection method provided by an embodiment of the present invention;
图3为自动化测试日志按照角色、时间、模块进行分类的日志示例;Figure 3 is an example of logs classified by role, time, and module for automated test logs;
图4为测试结果日志和测试任务日志的示例;Fig. 4 is the example of test result log and test task log;
图5为集群配置信息,平台运行日志及各节点日志示例;Figure 5 is an example of cluster configuration information, platform operation logs and logs of each node;
图6为各节点系统日志、集群状态、文件系统日志示例;Figure 6 is an example of each node system log, cluster status, and file system log;
图7为自动化测试流程图;Fig. 7 is a flow chart of automated testing;
图8为本发明实施例提供的一种自动化测试日志收集系统的结构示意图。FIG. 8 is a schematic structural diagram of an automated test log collection system provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明实施例公开了一种自动化测试日志收集方法,如图1所示,包括:The embodiment of the present invention discloses a method for collecting automated test logs, as shown in Figure 1, comprising:
步骤S11:获取收集预设日志种类的指令,并根据指令得到目标日志种类。Step S11: Obtain an instruction for collecting preset log types, and obtain a target log type according to the instruction.
其中,在自动化测试运行过程中会实时生成记录自动化测试信息的日志。需要进行说明的是,自动化测试生成的日志种类包括但不限于自动化测试生成的测试任务日志和测试结果日志;其中,上述自动化测试生成的测试任务日志包括但不限于集群配置信息日志、自动化测试平台日志和集群各节点日志。需要进一步说明的是,上述集群各节点日志包括但不限于操作系统日志、集群状态日志和/或文件系统日志。Wherein, during the running process of the automated test, a log recording the automated test information will be generated in real time. It should be noted that the types of logs generated by automated testing include but are not limited to test task logs and test result logs generated by automated testing; among them, the test task logs generated by automated testing include but not limited to cluster configuration information logs, automated testing platform Logs and logs of each node in the cluster. It should be further explained that, the logs of each node in the cluster include but are not limited to operating system logs, cluster status logs and/or file system logs.
本发明实施例中获取收集预设日志种类的指令可以是获取自动化测试完成触发的收集预设日志种类的指令,当然也可以是获取自动化测试错误触发的收集预设日志种类的指令,例如mds文件,osd文件,mon文件。In the embodiment of the present invention, the instruction for obtaining the collection preset log type may be an instruction for obtaining the collection preset log type triggered by the completion of the automated test, and of course it may also be an instruction for obtaining the collection preset log type triggered by the automation test error, such as an mds file , osd file, mon file.
步骤S12:根据目标日志种类,对自动化测试生成的日志进行查找,得到目标日志种类对应的日志,以完成对目标日志的收集。Step S12: According to the type of the target log, the logs generated by the automated test are searched to obtain the log corresponding to the type of the target log, so as to complete the collection of the target log.
可以理解的是,根据目标日志种类,对自动化测试生成的日志进行查找可以采用关键字的方式进行查找,当然也可以采用其他形式进行查找。It can be understood that, according to the type of the target log, the search for the log generated by the automated test can be searched in the form of a keyword, and of course can also be searched in other forms.
需要进行说明的是,除了上述依据自动化测试日志种类对自动化测试日志进行分类收集的方法外,还可以根据用户需要查找的内容进行收集。It should be noted that, in addition to the above method of classifying and collecting automated test logs based on the types of automated test logs, it may also be collected according to the content that the user needs to find.
可见,本发明提供的一种自动化测试日志收集方法,通过分类收集自动化测试生成的日志,而这些日志记录了自动化测试的信息,利用收集的日志能够实现对自动化测试完成之后的分析操作。It can be seen that the automated test log collection method provided by the present invention collects the logs generated by the automated test by classification, and these logs record the information of the automated test, and the analysis operation after the automated test is completed can be realized by using the collected logs.
本发明实施例还提供了另外一种自动化测试日志收集方法,如图2所示,包括:The embodiment of the present invention also provides another automated test log collection method, as shown in Figure 2, including:
步骤S21:获取收集预设日志种类的指令,并根据指令得到目标日志种类。Step S21: Obtain an instruction for collecting preset log types, and obtain a target log type according to the instruction.
其中,在自动化测试运行过程中会实时生成记录自动化测试信息的日志。需要进行说明的是,自动化测试生成的日志种类包括但不限于自动化测试生成的测试任务日志和测试结果日志;其中,上述自动化测试生成的测试任务日志包括但不限于集群配置信息日志、自动化测试平台日志和集群各节点日志。需要进一步说明的是,上述集群各节点日志包括但不限于操作系统日志、集群状态日志和/或文件系统日志。Wherein, during the running process of the automated test, a log recording the automated test information will be generated in real time. It should be noted that the types of logs generated by automated testing include but are not limited to test task logs and test result logs generated by automated testing; among them, the test task logs generated by automated testing include but not limited to cluster configuration information logs, automated testing platform Logs and logs of each node in the cluster. It should be further explained that, the logs of each node in the cluster include but are not limited to operating system logs, cluster status logs and/or file system logs.
本发明实施例中获取收集预设日志种类的指令可以是获取自动化测试完成触发的收集预设日志种类的指令,当然也可以是获取自动化测试错误触发的收集预设日志种类的指令,例如mds文件,osd文件,mon文件。In the embodiment of the present invention, the instruction for obtaining the collection preset log type may be an instruction for obtaining the collection preset log type triggered by the completion of the automated test, and of course it may also be an instruction for obtaining the collection preset log type triggered by the automation test error, such as an mds file , osd file, mon file.
步骤S22:根据目标日志种类,对自动化测试生成的日志进行查找,得到目标日志种类对应的日志,以完成对目标日志的收集。Step S22: Search the logs generated by the automated test according to the type of the target log, and obtain the log corresponding to the type of the target log, so as to complete the collection of the target log.
可以理解的是,根据目标日志种类,对自动化测试生成的日志进行查找可以采用关键字的方式进行查找,当然也可以采用其他形式进行查找。It can be understood that, according to the type of the target log, the search for the log generated by the automated test can be searched in the form of a keyword, and of course can also be searched in other forms.
需要进行说明的是,除了上述依据自动化测试日志种类对自动化测试日志进行分类收集的方法外,还可以根据用户需要查找的内容进行收集。It should be noted that, in addition to the above method of classifying and collecting automated test logs based on the types of automated test logs, it may also be collected according to the content that the user needs to find.
步骤S23:将目标日志存储至预设服务器。Step S23: storing the target log to a preset server.
其中,将目标日志存储至预设服务器的过程可以是将目标日志以压缩包的形式存储至预设服务器。需要进行说明的是,步骤S23使删除自动化生成的日志前,将收集自动化日志存储至预设服务器,既不影响下一次自动化测试的顺利进行,又方便自动化测试完成之后的分析操作,如自动化测试的系统出现异常,需要分析出现异常原因或者需要进行性能分析等分析操作。Wherein, the process of storing the target log to the preset server may be storing the target log to the preset server in the form of a compressed package. It should be noted that before step S23 deletes the automatically generated logs, the collected automation logs are stored in the preset server, which does not affect the smooth progress of the next automated test, and facilitates the analysis operation after the automated test is completed, such as automated testing If the system is abnormal, it is necessary to analyze the cause of the abnormality or perform analysis operations such as performance analysis.
本发明实施例还公开了一种自动化测试日志收集方法的具体实施方式,包括:The embodiment of the present invention also discloses a specific implementation of an automated test log collection method, including:
步骤一:执行自动化测试,触发日志收集。Step 1: Execute automated tests and trigger log collection.
步骤二:按照自动化测试提交角色、日期、时间、测试集、模块名称进行分类,每个测试任务生成一个单独的日志目录,如图3所示。Step 2: Classify according to the automated test submission role, date, time, test set, and module name, and generate a separate log directory for each test task, as shown in Figure 3.
步骤三:任务目录下级分为测试任结果日志和任务日志目录,如图4所示;任务日志目录下包含了执行此任务的群集配置信息日志,自动化平台日志、集群各节点日志信息,如图5所示;每个集群节点一个单独目录,收集该节点的系统日志,集群状态日志、文件系统日志,如:mds日志、osd日志、mon日志等等,如图6所示。Step 3: The lower level of the task directory is divided into the test task result log and the task log directory, as shown in Figure 4; the task log directory contains the cluster configuration information log, automation platform log, and cluster node log information for executing this task, as shown in Figure 4. 5; each cluster node has a separate directory to collect system logs, cluster status logs, and file system logs of the node, such as: mds logs, osd logs, mon logs, etc., as shown in Figure 6.
步骤四:自动收集集群各类日志,按照上面描述进行分类收集后拷贝到http服务器;Step 4: Automatically collect various logs of the cluster, classify and collect them according to the above description, and copy them to the http server;
步骤五:登录web服务器查看日志。Step 5: Log in to the web server to view logs.
需要进行说明的是,自动化测试方案完成后,需要进行的程序是清理环境和继续下一个测试任务,如图7所示。It should be noted that after the automated testing scheme is completed, the required procedure is to clean up the environment and continue with the next testing task, as shown in FIG. 7 .
相应的,本发明实施例还公开了一种自动化测试日志收集系统,如图8所示,包括:Correspondingly, the embodiment of the present invention also discloses an automated test log collection system, as shown in Figure 8, including:
日志种类获取模块11,用于获取收集预设日志种类的指令,并根据指令得到目标日志种类;The log type acquisition module 11 is used to obtain instructions for collecting preset log types, and obtain target log types according to the instructions;
需要进行说明的是,日志种类获取模块11,具体用于获取自动化测试完成触发的收集预设日志种类的指令,并根据指令得到目标日志种类;也可以具体用于获取自动化测试错误触发的收集预设日志种类的指令,并根据指令得到目标日志种类。It should be noted that the log type acquisition module 11 is specifically used to obtain instructions for collecting preset log types triggered by the completion of automated testing, and obtain target log types according to the instructions; it can also be specifically used to obtain collection preset log types triggered by automated testing errors. Set the log type instruction, and get the target log type according to the instruction.
日志收集模块12,用于根据目标日志种类,对自动化测试生成的日志进行查找,得到目标日志种类对应的日志,以完成对目标日志的收集。The log collection module 12 is configured to search the logs generated by the automated test according to the type of the target log, and obtain the log corresponding to the type of the target log, so as to complete the collection of the target log.
可以理解的是,根据目标日志种类,对自动化测试生成的日志进行查找可以采用关键字的方式进行查找,当然也可以采用其他形式进行查找。It can be understood that, according to the type of the target log, the search for the log generated by the automated test can be searched in the form of a keyword, and of course can also be searched in other forms.
需要进行说明的是,除了上述依据自动化测试日志种类对自动化测试日志进行分类收集的方法外,还可以根据用户需要查找的内容进行收集。It should be noted that, in addition to the above method of classifying and collecting automated test logs based on the types of automated test logs, it may also be collected according to the content that the user needs to find.
为了既不影响下一次自动化测试的顺利进行,又方便后期的管理操作,如自动化测试的系统出现异常,需要出现或者需要进行性能分析等操作,本发明实施例还包括:In order not to affect the smooth progress of the next automated test, but also to facilitate later management operations, if the automated test system is abnormal, operations such as performance analysis need to occur or need to be performed, the embodiment of the present invention also includes:
日志存储模块,用于将目标日志存储至预设服务器。The log storage module is used to store the target log to a preset server.
其中,将目标日志存储至预设服务器的过程可以是将目标日志以压缩包的形式存储至预设服务器。Wherein, the process of storing the target log to the preset server may be storing the target log to the preset server in the form of a compressed package.
可见,本发明提供的一种自动化测试日志收集方法,通过分类收集自动化测试生成的日志,而这些日志记录了自动化测试的信息,利用收集的日志能够实现对实现了对自动化测试完成之后的分析操作。It can be seen that a kind of automated test log collection method provided by the present invention collects the logs generated by automated tests by classification, and these logs record the information of automated tests, and the analysis operation after the completion of automated tests can be realized by using the collected logs. .
本发明实施例还提供了一种自动化测试日志收集设备,自动化测试日志收集设备包括存储器、处理器及存储在存储器上并可在处理器上运行的自动化测试日志收集程序,自动化测试日志收集程序配置为实现上述的自动化测试日志收集方法的步骤。The embodiment of the present invention also provides an automated test log collection device. The automated test log collection device includes a memory, a processor, and an automated test log collection program stored on the memory and operable on the processor. The automated test log collection program is configured In order to realize the steps of the above-mentioned automatic test log collection method.
本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有分布式自动化测试日志收集程序,所述自动化测试日志收集程序被处理器执行时实现上述的自动化测试日志收集方法的步骤。The embodiment of the present invention also provides a computer-readable storage medium, where a distributed automated test log collection program is stored on the computer-readable storage medium, and when the automated test log collection program is executed by a processor, the above-mentioned automated test is realized The steps of the log collection method.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
以上对本发明所提供的自动化测试日志收集方法、系统、设备及计算机存储设备进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。Above, the automatic test log collection method, system, equipment and computer storage device provided by the present invention have been introduced in detail. In this paper, specific examples have been used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only for To help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, the content of this specification It should not be construed as a limitation of the invention.
Claims (12)
- A kind of 1. automated testing log collection method, it is characterised in that including:The instruction for collecting default daily record species is obtained, and target journaling species is obtained according to the instruction;According to the target journaling species, the daily record to automatic test generation is searched, and obtains the target journaling species Corresponding daily record, to complete the collection to target journaling.
- 2. automated testing log collection method according to claim 1, it is characterised in that described obtain collects default day The process of the instruction of will species includes:Obtain the instruction that the automatic test completes the default daily record species of collection of triggering.
- 3. automated testing log collection method according to claim 1, it is characterised in that described obtain collects default day The process of the instruction of will species includes:Obtain the instruction of the default daily record species of collection of the automatic test erroneous trigger.
- 4. automated testing log collection method according to claim 1, it is characterised in that the target journaling species bag Include the test assignment daily record and/or test result daily record of the automatic test generation;Wherein, the test assignment daily record includes cluster configuration information daily record and/or automatic test platform daily record and/or cluster Each node log;Each node log of cluster includes operating system daily record and/or cluster state daily record and/or file system day Will.
- 5. the automated testing log collection method according to any one of Claims 1-4, it is characterised in that also include:The target journaling is stored to predetermined server.
- 6. automated testing log collection method according to claim 5, it is characterised in that described by the target journaling Storing to the process of predetermined server includes:The target journaling is stored in the form of compressed package to predetermined server.
- A kind of 7. automated testing log collection system, it is characterised in that including:Daily record species acquisition module, the instruction of default daily record species is collected for obtaining, and target day is obtained according to the instruction Will species;Log collection module, for according to the target journaling species, the daily record to automatic test generation to be searched, obtained Daily record corresponding to the target journaling species, to complete the collection to target journaling.
- 8. automated testing log collection system according to claim 7, it is characterised in thatThe daily record species acquisition module, the finger for completing the default daily record species of collection of triggering for obtaining the automatic test Order, and target journaling species is obtained according to the instruction.
- 9. automated testing log collection system according to claim 7, it is characterised in thatThe daily record species acquisition module, the finger of the default daily record species of collection for obtaining the automatic test erroneous trigger Order, and target journaling species is obtained according to the instruction.
- 10. the automated testing log collection system according to any one of claim 7 to 9, it is characterised in that also include:Daily record memory module, for the target journaling to be stored to predetermined server.
- 11. a kind of automated testing log collecting device, it is characterised in that the automated testing log collecting device includes depositing The automated testing log that reservoir, processor and being stored in can be run on the memory and on the processor collects journey Sequence, the automated testing log collection procedure are arranged for carrying out the automatic test as any one of claim 1 to 6 The step of log collecting method.
- 12. a kind of computer-readable recording medium, it is characterised in that be stored with distribution on the computer-readable recording medium Automated testing log collection procedure, such as claim is realized when the automated testing log collection procedure is executed by processor The step of automated testing log collection method any one of 1 to 6.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711033724.6A CN107766219A (en) | 2017-10-30 | 2017-10-30 | Automated testing log collection method, system, equipment and computer memory device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711033724.6A CN107766219A (en) | 2017-10-30 | 2017-10-30 | Automated testing log collection method, system, equipment and computer memory device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107766219A true CN107766219A (en) | 2018-03-06 |
Family
ID=61270659
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711033724.6A Pending CN107766219A (en) | 2017-10-30 | 2017-10-30 | Automated testing log collection method, system, equipment and computer memory device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107766219A (en) |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109408334A (en) * | 2018-10-24 | 2019-03-01 | 郑州云海信息技术有限公司 | A kind of audit log characteristic test method, device, equipment and storage medium |
| CN110287253A (en) * | 2019-06-13 | 2019-09-27 | 合肥移瑞通信技术有限公司 | A kind of management system and method for automatic production line test data |
| CN110727551A (en) * | 2019-09-20 | 2020-01-24 | 苏州浪潮智能科技有限公司 | A random divergent configuration testing method, system and storage medium |
| CN111309584A (en) * | 2018-12-11 | 2020-06-19 | 迈普通信技术股份有限公司 | Data processing method and device, electronic equipment and storage medium |
| CN111651324A (en) * | 2020-06-02 | 2020-09-11 | 上海泛微网络科技股份有限公司 | Log collection method and device |
| CN111782540A (en) * | 2020-07-10 | 2020-10-16 | 中国工商银行股份有限公司 | Test processing method and device |
| CN111930703A (en) * | 2020-08-20 | 2020-11-13 | 深圳创维-Rgb电子有限公司 | Automatic log file capturing method and device and computer equipment |
| CN114281615A (en) * | 2021-11-19 | 2022-04-05 | 苏州浪潮智能科技有限公司 | Automatic test system and method for consistency of stored data |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102158748A (en) * | 2010-05-14 | 2011-08-17 | 青岛海信传媒网络技术有限公司 | Methods and systems for collecting and uploading logs |
| US20160292166A1 (en) * | 2015-04-03 | 2016-10-06 | Oracle International Corporation | Method and system for parameterizing log file location assignments for a log analytics system |
| CN106250303A (en) * | 2016-07-28 | 2016-12-21 | 北京北信源软件股份有限公司 | Business diary collection and early warning system and business diary collection and method for early warning |
-
2017
- 2017-10-30 CN CN201711033724.6A patent/CN107766219A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102158748A (en) * | 2010-05-14 | 2011-08-17 | 青岛海信传媒网络技术有限公司 | Methods and systems for collecting and uploading logs |
| US20160292166A1 (en) * | 2015-04-03 | 2016-10-06 | Oracle International Corporation | Method and system for parameterizing log file location assignments for a log analytics system |
| CN106250303A (en) * | 2016-07-28 | 2016-12-21 | 北京北信源软件股份有限公司 | Business diary collection and early warning system and business diary collection and method for early warning |
Cited By (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109408334A (en) * | 2018-10-24 | 2019-03-01 | 郑州云海信息技术有限公司 | A kind of audit log characteristic test method, device, equipment and storage medium |
| CN109408334B (en) * | 2018-10-24 | 2021-11-09 | 郑州云海信息技术有限公司 | Audit log characteristic test method, device, equipment and storage medium |
| CN111309584A (en) * | 2018-12-11 | 2020-06-19 | 迈普通信技术股份有限公司 | Data processing method and device, electronic equipment and storage medium |
| CN111309584B (en) * | 2018-12-11 | 2024-02-23 | 迈普通信技术股份有限公司 | Data processing method, device, electronic equipment and storage medium |
| CN110287253A (en) * | 2019-06-13 | 2019-09-27 | 合肥移瑞通信技术有限公司 | A kind of management system and method for automatic production line test data |
| CN110727551A (en) * | 2019-09-20 | 2020-01-24 | 苏州浪潮智能科技有限公司 | A random divergent configuration testing method, system and storage medium |
| CN110727551B (en) * | 2019-09-20 | 2022-07-19 | 苏州浪潮智能科技有限公司 | Random divergent configuration testing method, system and storage medium |
| CN111651324A (en) * | 2020-06-02 | 2020-09-11 | 上海泛微网络科技股份有限公司 | Log collection method and device |
| CN111651324B (en) * | 2020-06-02 | 2023-09-01 | 上海泛微网络科技股份有限公司 | Log collection method and device |
| CN111782540B (en) * | 2020-07-10 | 2023-08-22 | 中国工商银行股份有限公司 | Test processing method and device |
| CN111782540A (en) * | 2020-07-10 | 2020-10-16 | 中国工商银行股份有限公司 | Test processing method and device |
| CN111930703A (en) * | 2020-08-20 | 2020-11-13 | 深圳创维-Rgb电子有限公司 | Automatic log file capturing method and device and computer equipment |
| WO2022036865A1 (en) * | 2020-08-20 | 2022-02-24 | 深圳创维-Rgb电子有限公司 | Method and apparatus for automatically capturing log file, and computer device |
| CN114281615A (en) * | 2021-11-19 | 2022-04-05 | 苏州浪潮智能科技有限公司 | Automatic test system and method for consistency of stored data |
| CN114281615B (en) * | 2021-11-19 | 2023-12-22 | 苏州浪潮智能科技有限公司 | Automatic testing system and method for consistency of stored data |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107766219A (en) | Automated testing log collection method, system, equipment and computer memory device | |
| CN108521339B (en) | Feedback type node fault processing method and system based on cluster log | |
| US8522216B2 (en) | Memory leak detection | |
| US9619373B2 (en) | Method and apparatus to semantically connect independent build and test processes | |
| US9356966B2 (en) | System and method to provide management of test data at various lifecycle stages | |
| CN111897625B (en) | Resource event backtracking method, system and electronic equipment based on Kubernetes cluster | |
| CN107943636A (en) | It is a kind of that the method tested is performed based on more machine batches under Linux | |
| CN112685312B (en) | Test case recommendation method and device for uncovered codes | |
| CN112685370B (en) | Log collection method, device, equipment and medium | |
| CN103870588A (en) | Method and device used in database | |
| CN112579552A (en) | Log storage and calling method, device and system | |
| CN119829469B (en) | Firmware testing method, electronic device, storage medium and program product | |
| CN110765007A (en) | Crash information online analysis method for android application | |
| US20130318499A1 (en) | Test script generation | |
| CN110347573B (en) | Application program analysis method, device, electronic device, and computer-readable medium | |
| US20240193072A1 (en) | Autosuggestion of involved code paths based on bug tracking data | |
| CN113326193A (en) | Applet testing method and device | |
| CN107911252A (en) | A kind of unstructured distributed memory system method for analyzing performance, system and equipment | |
| CN108681505A (en) | A kind of Test Case Prioritization method and apparatus based on decision tree | |
| CN113282505A (en) | Software test progress analysis method, device, equipment and storage medium | |
| CN107992535A (en) | File immediate addressing device, method, system and computer-readable recording medium | |
| CN106897181B (en) | Vdbernh testing arrangement | |
| JP5444071B2 (en) | Fault information collection system, method and program | |
| CN105809577B (en) | Power plant informatization data classification processing method based on rules and components | |
| CN115580528A (en) | Fault root cause positioning method, device, equipment and readable storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180306 |
|
| RJ01 | Rejection of invention patent application after publication |