CN111797017A - Method and device for storing log, test equipment and storage medium - Google Patents

Method and device for storing log, test equipment and storage medium Download PDF

Info

Publication number
CN111797017A
CN111797017A CN202010619591.6A CN202010619591A CN111797017A CN 111797017 A CN111797017 A CN 111797017A CN 202010619591 A CN202010619591 A CN 202010619591A CN 111797017 A CN111797017 A CN 111797017A
Authority
CN
China
Prior art keywords
log
specified duration
duration threshold
label
acquired
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010619591.6A
Other languages
Chinese (zh)
Other versions
CN111797017B (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.)
Beijing Wutong Chelian Technology Co Ltd
Original Assignee
Beijing Wutong Chelian Technology 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 Beijing Wutong Chelian Technology Co Ltd filed Critical Beijing Wutong Chelian Technology Co Ltd
Priority to CN202010619591.6A priority Critical patent/CN111797017B/en
Publication of CN111797017A publication Critical patent/CN111797017A/en
Application granted granted Critical
Publication of CN111797017B publication Critical patent/CN111797017B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application discloses a method and a device for storing logs, test equipment and a storage medium, and belongs to the technical field of software test. The method comprises the following steps: and acquiring logs in real time in the software testing process. And determining at least one of a label corresponding to the currently acquired log within the specified duration threshold and a label corresponding to the last acquired log within the specified duration threshold every time the log within the specified duration threshold is acquired, wherein the label is used for indicating whether the corresponding log needs to be deleted or not. And in response to at least one of the label corresponding to the currently acquired log within the specified time threshold and the label corresponding to the last acquired log within the specified time threshold being a storage label, storing the currently acquired log within the specified time threshold and the last acquired log within the specified time threshold. Therefore, only logs useful for searching the problems of the software can be reserved, the amount of stored logs is reduced, the problems can be conveniently analyzed and checked by a user, and the problem solving efficiency is improved.

Description

Method and device for storing log, test equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of software testing, in particular to a method and a device for storing logs, testing equipment and a storage medium.
Background
A plurality of software can be installed in the electronic equipment usually, the software can generate logs in the running process, and the testing equipment can find out the problems in the software by analyzing the logs so as to be convenient for technical personnel to solve the problems. In general, a test device can continuously obtain logs in a software test process, all the logs obtained in one software test process are stored, and then technical personnel check and analyze the obtained logs through keyword retrieval to determine whether problems exist. However, the software test may take several days, in such a case, the above manner may acquire and store a large amount of logs at one time, and there may be logs that do not help the software test in the logs, so that not only the storage space of the test equipment is wasted, but also it is not beneficial for the user to search and analyze the problem, thereby reducing the efficiency of solving the problem.
Disclosure of Invention
The embodiment of the application provides a method, a device, a test device and a storage medium for storing logs, which can solve the problem of the related art that the efficiency of solving the problem is reduced. The technical scheme is as follows:
in one aspect, a method for storing logs is provided, and is applied to a test device, and the method includes:
acquiring logs in real time in the software testing process;
determining at least one of a label corresponding to the currently acquired log within the specified duration threshold and a label corresponding to the last acquired log within the specified duration threshold every time the log within the specified duration threshold is acquired, wherein the label is used for indicating whether the corresponding log needs to be deleted or not;
and in response to that at least one of the label corresponding to the currently acquired log within the specified duration threshold and the label corresponding to the last acquired log within the specified duration threshold is a storage label, storing the currently acquired log within the specified duration threshold and the last acquired log within the specified duration threshold.
In a possible implementation manner of the embodiment of the present application, before determining a label corresponding to a currently acquired log within a specified duration threshold every time the log within the specified duration threshold is acquired, the method further includes:
and if log abnormal information is received in the process of acquiring the currently acquired log within the specified time threshold, determining the label corresponding to the currently acquired log within the specified time threshold as a storage label.
In a possible implementation manner of the embodiment of the present application, the method further includes:
responding to the currently acquired label corresponding to the log within the specified duration threshold as a deleted label, and acquiring the label corresponding to the last acquired log within the specified duration threshold;
and in response to that the label corresponding to the last acquired log within the specified time threshold is a delete label, deleting the last acquired log within the specified time threshold.
In a possible implementation manner of the embodiment of the present application, after each time a log within a specified duration threshold is obtained, the method further includes:
generating a log identifier of a log in a currently acquired specified duration threshold based on a current time point, wherein the log identifier is used for uniquely indicating the log in a corresponding section of specified duration threshold;
and correspondingly storing the log identification and the currently acquired log within the specified time threshold, and storing the log identification into a temporary list.
In a possible implementation manner of the embodiment of the present application, the deleting the log within the specified duration threshold obtained last time includes:
acquiring the log identification of the log in the specified time threshold value acquired last time from the temporary list to obtain a target log identification;
and deleting the log stored corresponding to the target log identification.
In another aspect, an apparatus for storing a log is provided, where the apparatus is applied to a test device, and the apparatus includes:
the acquisition module is used for acquiring logs in real time in the software testing process;
the determining module is used for determining at least one of a label corresponding to the currently acquired log within the specified duration threshold and a label corresponding to the last acquired log within the specified duration threshold every time the log within the specified duration threshold is acquired, wherein the label is used for indicating whether the corresponding log needs to be deleted or not;
and the storage module is used for responding at least one of the label corresponding to the currently acquired log in the specified time length threshold and the label corresponding to the last acquired log in the specified time length threshold as a storage label, and storing the currently acquired log in the specified time length threshold and the last acquired log in the specified time length threshold.
In a possible implementation manner of the embodiment of the present application, the determining module is further configured to:
and if log abnormal information is received in the process of acquiring the currently acquired log within the specified time threshold, determining the label corresponding to the currently acquired log within the specified time threshold as a storage label.
In a possible implementation manner of the embodiment of the present application, the storage module is further configured to:
responding to the currently acquired label corresponding to the log within the specified duration threshold as a deleted label, and acquiring the label corresponding to the last acquired log within the specified duration threshold;
and in response to that the label corresponding to the last acquired log within the specified time threshold is a delete label, deleting the last acquired log within the specified time threshold.
In a possible implementation manner of the embodiment of the present application, the determining module is further configured to:
generating a log identifier of a log in a currently acquired specified duration threshold based on a current time point, wherein the log identifier is used for uniquely indicating the log in a corresponding section of specified duration threshold;
and correspondingly storing the log identification and the currently acquired log within the specified time threshold, and storing the log identification into a temporary list.
In a possible implementation manner of the embodiment of the present application, the determining module is configured to:
acquiring the log identification of the log in the specified time threshold value acquired last time from the temporary list to obtain a target log identification;
and deleting the log stored corresponding to the target log identification.
In another aspect, a test device is provided, which includes a memory for storing a computer program and a processor for executing the computer program stored in the memory to implement the steps of the method for storing logs.
In another aspect, a computer-readable storage medium is provided, in which a computer program is stored, which, when being executed by a processor, implements the steps of the method for storing logs described above.
In another aspect, a computer program product is provided comprising instructions which, when run on a computer, cause the computer to perform the steps of the above-described method of storing logs.
The technical scheme provided by the embodiment of the application can at least bring the following beneficial effects:
the test equipment can acquire logs in real time in the process of software test. Because software testing needs a long time, a large amount of logs can be obtained, and if the obtained logs are stored completely, not only is storage space wasted, but also the difficulty of solving problems is improved. Therefore, each time a log within the specified duration threshold is acquired, whether the log within the specified duration threshold is to be saved last time or not can be determined according to at least one of the tag corresponding to the currently acquired log within the specified duration threshold and the tag corresponding to the log within the specified duration threshold acquired last time. If the label corresponding to the log within the specified duration threshold value obtained currently is a save label, it may be considered that a log useful for searching for the problem of the software may exist in the log within the specified duration threshold value obtained currently, or the label corresponding to the log within the specified duration threshold value obtained last time is a save label, it may be considered that a log useful for searching for the problem of the software may exist in the log within the specified duration threshold value obtained last time, or both the label corresponding to the log within the specified duration threshold value obtained currently and the label corresponding to the log within the specified duration threshold value obtained last time are save labels, and it may be considered that logs useful for searching for the problem of the software may exist in both the log within the specified duration threshold value obtained last time and the log within the specified duration threshold value obtained currently. Therefore, it is necessary to store the currently acquired log within the specified duration threshold and the last acquired log within the specified duration threshold. Therefore, whether the acquired logs are stored or not is determined according to the labels corresponding to the acquired logs at intervals of the specified time length threshold, invalid logs can be deleted, logs which need to be stored and are useful for searching for software problems are reserved, the amount of the stored logs is reduced, a user can conveniently analyze and check the problems, and the problem solving efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an implementation environment shown in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a method of storing logs in accordance with an exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of storing logs in accordance with another exemplary embodiment;
FIG. 4 is a block diagram illustrating an apparatus for storing logs in accordance with an exemplary embodiment;
FIG. 5 is a schematic diagram illustrating a configuration of a test apparatus according to an exemplary embodiment.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Before explaining the method for storing the log provided by the embodiment of the present application in detail, an implementation environment provided by the embodiment of the present application is introduced.
Referring to FIG. 1, FIG. 1 is a schematic diagram illustrating an implementation environment in accordance with an example embodiment. The implementation environment includes a test device 101 and an electronic device 102, and the test device 101 may be communicatively coupled to the electronic device 102. The communication connection may be a wired connection or a wireless connection, which is not limited in this embodiment of the present application.
The test device 101 and the electronic device 102 may be any electronic product that can perform human-computer interaction with a user through one or more modes, such as a keyboard, a touch pad, a touch screen, a remote controller, voice interaction, or handwriting equipment.
For example, the testing device 101 may be a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a handheld PC (pocket PC), a tablet PC, or the like.
For example, the electronic device 102 may be a PC, a mobile phone, a smart phone, a PDA, a wearable device, a palm PC PPC, a tablet computer, a smart car machine, a smart television, a smart sound box, and the like.
As an example, the testing device 101 may be a computer of a software tester, the electronic device 102 may be a terminal or a car-mounted device installed with an android system, and a plurality of pieces of software may be installed in the electronic device 102. The test device 101 and the electronic device 102 may establish a communication connection through a USB interface, or may establish a communication connection by connecting to the same WiFi (wireless fidelity) network.
It should be understood by those skilled in the art that the test device 101 and the electronic device 102 are described above by way of example only, and other existing or future test devices or electronic devices may be used and are included within the scope of the present application and are incorporated herein by reference.
After the implementation environment provided by the embodiment of the present application is introduced, a detailed explanation is next given to the method for storing a log provided by the embodiment of the present application.
Fig. 2 is a flowchart illustrating a method of storing a log according to an exemplary embodiment, which is applied to the test equipment shown in fig. 1. Referring to fig. 2, the method may include the following steps:
step 201: and acquiring logs in real time in the software testing process.
In implementation, the test device and the electronic device may establish a communication connection, and the test device may detect the log generated by the electronic device by executing a script that needs to save the system log, and acquire the log generated by the electronic device in real time by executing a log acquisition script.
As an example, the script that needs to save the system log may be a software test script, and the test device detects the log generated by the electronic device in the software test process by executing the software test script, and acquires the log generated by the electronic device in real time.
As an example, the log obtaining script may be an adb logcat script, and the test device may obtain the log generated by the electronic device in real time by executing the adblogcat script.
It should be noted that, the test device executes the script that needs to save the system log and executes the log obtaining script through different processes, and the processes of executing the two scripts do not affect each other. And, the test equipment executes the log obtaining script continuously and circularly during the process of executing the script needing to save the system log.
Step 202: and determining at least one of a label corresponding to the currently acquired log within the specified duration threshold and a label corresponding to the last acquired log within the specified duration threshold every time the log within the specified duration threshold is acquired, wherein the label is used for indicating whether the corresponding log needs to be deleted or not.
The specified duration threshold may be set by a user according to actual needs, or may be set by default by the test equipment, which is not limited in the embodiment of the present application. For example, the specified duration threshold may be 5 minutes or 10 minutes, and the specified duration threshold may be set differently according to the requirements of the project.
As one example, the tags may include a save tag or a delete tag. The storage tag indicates that a log useful for searching for a problem of the software exists in the corresponding log, and the corresponding log can be stored. The deletion tag indicates that the corresponding log does not have a log which is useful for searching for the problem of the software, and the corresponding log can be deleted. Illustratively, the log that is useful for finding problems with the software may be a log of exceptions.
In implementation, the test device can detect the log in the process of executing the script which needs to save the system log, and can feed back information whether the log is helpful to the problem of searching the software. Therefore, in some embodiments, each time a log within the specified duration threshold is obtained, before determining the label corresponding to the currently obtained log within the specified duration threshold, the method may further include: and if the log abnormal information is received in the process of acquiring the currently acquired log within the specified time threshold, determining the label corresponding to the currently acquired log within the specified time threshold as a storage label.
That is to say, if the log exception information is received in the process of acquiring the currently acquired log within the specified duration threshold, it is indicated that a log useful for searching for the software problem exists in the currently acquired log within the specified duration threshold, and the log useful for searching for the software problem can be used for a user to analyze the software problem, so that the currently acquired log within the specified duration threshold generally needs to be stored, and then the tag corresponding to the currently acquired log within the specified duration threshold can be determined as the storage tag.
For example, in the process of acquiring the currently acquired log within the specified duration threshold, if it is detected by running a software test script that a log useful for finding a problem of the software exists in the log, the script may return true, and true may be used to represent log exception information.
For example, assuming that the specified time length threshold is 5 minutes, the testing device continuously executes the software testing script and the log obtaining script in the period of 12:00-12:05, and if log exception information is received in the period of time, it indicates that a log useful for searching for a problem of software exists in the logs obtained in the period of 12:00-12:05, and a tag corresponding to the log obtained in the period of 12:00-12:05 may be determined as a save tag.
As an example, if no log exception information is received in the process of acquiring the currently acquired log within the specified duration threshold, which indicates that there is no log useful for searching for the problem of the software in the currently acquired log within the specified duration threshold, the currently acquired log within the specified duration threshold hardly helps a user to analyze the problem of the software, and in order to reduce the occupation of the storage space of the test device, the currently acquired log within the specified duration threshold may be deleted, so that a tag corresponding to the currently acquired log within the specified duration threshold may be determined as a delete tag.
In implementation, after the logs within the specified duration threshold are obtained, the log identifier of the currently obtained logs within the specified duration threshold may be generated based on the current time point, and the log identifier is used to uniquely indicate the logs within the corresponding specified duration threshold. And correspondingly storing the log identification and the currently acquired log within the specified time threshold, and storing the log identification into a temporary list.
That is to say, after the logs within the specified duration threshold are obtained, in order to distinguish the logs within the specified duration threshold obtained each time, the log identifier of the logs within the specified duration threshold obtained currently may be generated based on the current time point, the log identifier and the currently obtained logs within the specified duration threshold are stored correspondingly, and the log identifier is stored in the temporary list, so that the corresponding logs may be obtained through the log identifier.
As an example, based on the current time point, a specific implementation of generating a log identifier of a log within a specified duration threshold of current acquisition may include: and determining the current time point as the log identification of the log in the currently acquired specified duration threshold. Or determining a time point based on the current time point and the specified duration threshold, and determining the determined time point as the currently acquired log identification of the log within the specified duration threshold.
For example, assuming that the current time point is 16 hours, 15 minutes and 10 seconds at 10 months, 17 days, 16 months and 10 seconds at 2019, the currently acquired log identifications within the specified duration threshold can be determined as 20191017-161510.txt, and assuming that the specified duration threshold is 5 minutes, the logs corresponding to the log identifications 20191017-161510.txt can be determined to be the logs between 16 hours, 10 minutes and 10 seconds at 10 months, 17 days, 16 hours, 10 minutes and 10 seconds at 2019, 10 months, 17 days, 16 hours, 15 minutes and 10 seconds at 2019. Or, based on the current time point 2019, 10 month, 17 month, 16 hour, 15 minute and 10 seconds and the specified duration threshold value of 5 minutes, 10 minute and 10 seconds at 2019, 10 month, 17 month, 16 hour, 10 minute and 10 seconds at 2019, 17 month, 16 hour, 15 minute and 10 seconds at 2019, 17 month, 16 hour, 15 minute and 10 seconds at 20191017-161010.txt can be determined as the log IDE log identifier in the specified duration threshold value obtained currently, and the log corresponding to the log identifier can be determined to be stored in the log between 2019 year 10 month, 17 month, 16 hour.
As an example, the currently acquired logs within the specified duration threshold may be stored in the same folder, and the name of the folder is determined as the log identifier of the currently acquired logs within the specified duration threshold, so that the log identifier and the currently acquired logs within the specified duration threshold may be stored correspondingly.
It should be noted that the log identifier and the tag corresponding to the corresponding log may also be stored correspondingly, and the corresponding relationship between each log identifier and the tag may be determined.
In implementation, each time a log within the specified duration threshold is obtained, a tag corresponding to the currently obtained log within the specified duration threshold may be obtained, or a tag corresponding to the last obtained log within the specified duration threshold may be obtained, or a tag corresponding to the currently obtained log within the specified duration threshold and a tag corresponding to the last obtained log within the specified duration threshold may be obtained.
As an example, the label corresponding to the currently acquired log within the specified duration threshold may be acquired according to the currently acquired log identifier of the log within the specified duration threshold and the corresponding relationship between each log identifier and the label. Similarly, the label corresponding to the log in the specified time threshold obtained last time can be obtained according to the log identifier of the log in the specified time threshold obtained last time and the corresponding relationship between each log identifier and the label.
As an example, if the log identifier included in the temporary list is a time point, the log identifier closest to the current time point may be determined as the log identifier of the log within the currently acquired specified duration threshold, and the log identifier whose distance from the log identifier of the log within the currently acquired specified duration threshold is equal to the specified duration threshold may be determined as the log identifier within the specified duration threshold acquired last time.
Step 203: and in response to at least one of the label corresponding to the currently acquired log within the specified time threshold and the label corresponding to the last acquired log within the specified time threshold being a storage label, storing the currently acquired log within the specified time threshold and the last acquired log within the specified time threshold.
That is to say, if the tag corresponding to the currently acquired log within the specified duration threshold is a save tag, it indicates that there may be a log useful for finding the problem of the software in the currently acquired log within the specified duration threshold, or, if the tag corresponding to the last acquired log within the specified duration threshold is a save tag, it indicates that there may be a log useful for finding the problem of the software in the last acquired log within the specified duration threshold, or, if both the tag corresponding to the currently acquired log within the specified duration threshold and the tag corresponding to the last acquired log within the specified duration threshold are save tags, it indicates that there may be a log useful for finding the problem of the software in both the currently acquired log within the specified duration threshold and the last acquired log within the specified duration threshold. Therefore, it is necessary to store the currently acquired log within the specified duration threshold and the last acquired log within the specified duration threshold.
Since it takes time to detect the log, when it is determined that the tag corresponding to the log within the specified duration threshold currently obtained is the save tag, there may be a log useful for finding the problem of the software in the log within the specified duration threshold currently obtained, or there may be a log useful for finding the problem of the software in the log within the specified duration threshold last obtained, but detection of the log is delayed, so that log exception information is received at the beginning of obtaining the log within the specified duration threshold currently obtained, but is not received during obtaining the log within the specified duration threshold last obtained, and therefore, the log within the specified duration threshold last obtained needs to be stored. Similarly, there may be logs useful for finding software problems in currently acquired logs within the specified duration threshold, but due to the detection of the logs being delayed, the log exception information may be received only in the process of acquiring logs within the specified duration threshold acquired next time, and therefore, the currently acquired logs within the specified duration threshold need to be stored for the next judgment.
Exemplarily, assuming that the log identifier of the log in the specified duration threshold obtained last time is 20191017-163500.txt, the log identifier of the log in the specified duration threshold obtained currently is 20191017-164000.txt, and the corresponding tag of the log in the specified duration obtained last time is a save tag, the folder with the name of 20191017-163500.txt and the folder with the name of 20191017-164000.txt can be stored.
Further, in response to that the currently acquired label corresponding to the log within the specified duration threshold is a delete label, the label corresponding to the log within the specified duration threshold acquired last time is acquired. And in response to the fact that the label corresponding to the log in the specified time threshold value obtained last time is a deleting label, deleting the log in the specified time threshold value obtained last time.
That is to say, if the tag corresponding to the log within the specified duration threshold currently obtained is a delete tag, it may be temporarily impossible to determine whether a log useful for finding the problem of the software exists in the log within the specified duration threshold obtained last time, and therefore, it is necessary to obtain the tag corresponding to the log within the specified duration threshold obtained last time.
That is, when both the label corresponding to the log in the specified duration threshold obtained last time and the label corresponding to the log in the specified duration threshold obtained currently are deletion labels, it may be determined that there is no log useful for finding software in the log in the specified duration threshold obtained last time, and the log in the specified duration threshold obtained last time may be deleted.
In some embodiments, the log identifier of the log within the specified duration threshold value obtained currently may be determined from the temporary list, and then the tag corresponding to the log identifier is determined from the correspondence between the log identifier and the tag according to the log identifier, that is, the tag corresponding to the log within the specified duration threshold value obtained currently is determined. If the label corresponding to the log within the specified duration threshold value obtained currently is a delete label, similarly, the log identifier of the log within the specified duration threshold value obtained last time can be determined from the temporary list, and then according to the log identifier, the label corresponding to the log identifier is determined from the corresponding relationship between the log identifier and the label, that is, the label corresponding to the log within the specified duration threshold value obtained last time is determined.
It should be noted that, in the above embodiment, the implementation process of obtaining the tag corresponding to the log within the specified duration threshold obtained last time is the same as the process of obtaining the tag corresponding to the log within the specified duration threshold obtained currently in step 202, and for specific implementation, reference may be made to the relevant description in step 202, which is not described herein again in this embodiment of the present application.
In some embodiments, the specific implementation of deleting the log within the specified duration threshold obtained last time may include: and acquiring the log identification of the log in the specified time threshold value acquired last time from the temporary list to obtain the target log identification. And deleting the log stored corresponding to the target log identification.
In the process of determining the label corresponding to the log within the specified duration threshold acquired last time, the log identifier of the log within the specified duration threshold acquired last time is already determined, so that the log identifier of the log within the specified duration threshold acquired last time can be directly acquired from the temporary list and is called as a target log identifier, then the log stored in the test equipment corresponding to the target log identifier is acquired, and the acquired log is deleted, so that the log within the specified duration threshold acquired last time can be deleted from the test equipment.
In summary, in the embodiment of the present application, after the log is obtained, it is necessary to determine whether to delete the log according to the label corresponding to the log. And under the condition that the label corresponding to the log in the specified duration threshold obtained last time and the label corresponding to the log in the specified duration threshold obtained currently are both storage labels, the log which is useful for searching software in the log in the specified duration threshold obtained last time can be accurately determined, and the log in the specified duration threshold obtained last time can be deleted in order to save storage space. If one of the label corresponding to the log within the specified duration threshold obtained last time and the label corresponding to the log within the specified duration threshold obtained currently is the storage label, it can be considered that a log useful for searching for software problems exists in the log within the specified duration threshold obtained last time, and the log within the specified duration obtained last time needs to be stored. Therefore, the storage space of the test equipment can be saved, the log quantity required to be analyzed by a user can be reduced, and the efficiency of finding problems and solving problems is improved.
Further, referring to fig. 3, in fig. 3, the testing device may execute three scripts, namely a software testing script, a log deleting script and a log saving script, and the three scripts are implemented through three different processes without interfering with each other. In fig. 3, the test device may first call the main function and then execute the software test script, the log delete script, and the log save script in parallel. In the process of executing the software test script, returning abnormal log information, and if the abnormal log information is received in the process of acquiring the currently acquired log within the specified duration threshold, determining the label corresponding to the currently acquired log within the specified duration threshold as a storage label; if the abnormal log information is not received in the process of acquiring the currently acquired log within the specified duration threshold, determining the label corresponding to the currently acquired log within the specified duration threshold as a deleted label. And in the software testing process, the testing equipment circularly executes the log saving script and saves the log into the testing equipment, wherein the circulating time interval is a specified duration threshold. In the process of executing the log deleting script, whether a tag corresponding to the currently acquired log within the specified duration threshold is a save tag or not can be determined, and if the tag corresponding to the currently acquired log within the specified duration threshold is the save tag, the currently acquired log within the specified duration threshold and the last acquired log within the specified duration threshold are stored; if the label corresponding to the log in the specified time threshold value obtained currently is a delete label, continuously judging whether the label corresponding to the log in the specified time threshold value obtained last time is a save label, and if the label corresponding to the log in the specified time threshold value obtained last time is a save label, storing the log in the specified time threshold value obtained currently and the log in the specified time threshold value obtained last time; and if the label corresponding to the log in the specified time length threshold value obtained last time is a deleting label, deleting the log in the specified time length threshold value obtained last time.
In the embodiment of the application, the test equipment can acquire the log in real time in the process of software test. Because software testing needs a long time, a large amount of logs can be obtained, and if the obtained logs are stored completely, not only is storage space wasted, but also the difficulty of solving problems is improved. Therefore, each time a log within the specified duration threshold is acquired, whether the log within the specified duration threshold is to be saved last time or not can be determined according to at least one of the tag corresponding to the currently acquired log within the specified duration threshold and the tag corresponding to the log within the specified duration threshold acquired last time. If the label corresponding to the log within the specified duration threshold value obtained currently is a save label, it may be considered that a log useful for searching for the problem of the software may exist in the log within the specified duration threshold value obtained currently, or the label corresponding to the log within the specified duration threshold value obtained last time is a save label, it may be considered that a log useful for searching for the problem of the software may exist in the log within the specified duration threshold value obtained last time, or both the label corresponding to the log within the specified duration threshold value obtained currently and the label corresponding to the log within the specified duration threshold value obtained last time are save labels, and it may be considered that logs useful for searching for the problem of the software may exist in both the log within the specified duration threshold value obtained last time and the log within the specified duration threshold value obtained currently. Therefore, it is necessary to store the currently acquired log within the specified duration threshold and the last acquired log within the specified duration threshold. Therefore, whether the acquired logs are stored or not is determined according to the labels corresponding to the acquired logs at intervals of the specified time length threshold, invalid logs can be deleted, logs which need to be stored and are useful for searching for software problems are reserved, the amount of the stored logs is reduced, a user can conveniently analyze and check the problems, and the problem solving efficiency is improved.
Fig. 4 is a schematic structural diagram of an apparatus for storing a log according to an embodiment of the present application, where the apparatus for storing a log may be implemented by software, hardware, or a combination of the two as part or all of a testing device, and the testing device may be the testing device shown in fig. 1. Referring to fig. 4, the apparatus includes: an acquisition module 401, a determination module 402 and a storage module 403.
An obtaining module 401, configured to obtain a log in real time in a software testing process;
a determining module 402, configured to determine, each time a log within a specified duration threshold is obtained, at least one of a tag corresponding to the currently obtained log within the specified duration threshold and a tag corresponding to the last obtained log within the specified duration threshold, where the tag is used to indicate whether the corresponding log needs to be deleted;
the storage module 403 is configured to, in response to at least one of a tag corresponding to a currently acquired log within a specified duration threshold and a tag corresponding to a last acquired log within the specified duration threshold being a save tag, store the currently acquired log within the specified duration threshold and the last acquired log within the specified duration threshold.
In a possible implementation manner of the embodiment of the present application, the determining module 402 is further configured to:
and if the log abnormal information is received in the process of acquiring the currently acquired log within the specified time threshold, determining the label corresponding to the currently acquired log within the specified time threshold as a storage label.
In a possible implementation manner of the embodiment of the present application, the storage module 403 is further configured to:
responding to the situation that a label corresponding to the log in the currently acquired specified duration threshold is a deleted label, and acquiring a label corresponding to the log in the last acquired specified duration threshold;
and in response to the fact that the label corresponding to the log in the specified time threshold value obtained last time is a deleting label, deleting the log in the specified time threshold value obtained last time.
In a possible implementation manner of the embodiment of the present application, the determining module 402 is further configured to:
generating a log identifier of a log in a currently acquired specified duration threshold based on the current time point, wherein the log identifier is used for uniquely indicating the log in a corresponding section of specified duration threshold;
and correspondingly storing the log identification and the currently acquired log within the specified time threshold, and storing the log identification into a temporary list.
In a possible implementation manner of the embodiment of the present application, the determining module 402 is configured to:
acquiring a log identifier of a log within a specified time threshold value acquired last time from the temporary list to obtain a target log identifier;
and deleting the log stored corresponding to the target log identification.
In the embodiment of the application, the test equipment can acquire the log in real time in the process of software test. Because software testing needs a long time, a large amount of logs can be obtained, and if the obtained logs are stored completely, not only is storage space wasted, but also the difficulty of solving problems is improved. Therefore, each time a log within the specified duration threshold is acquired, whether the log within the specified duration threshold is to be saved last time or not can be determined according to at least one of the tag corresponding to the currently acquired log within the specified duration threshold and the tag corresponding to the log within the specified duration threshold acquired last time. If the label corresponding to the log within the specified duration threshold value obtained currently is a save label, it may be considered that a log useful for searching for the problem of the software may exist in the log within the specified duration threshold value obtained currently, or the label corresponding to the log within the specified duration threshold value obtained last time is a save label, it may be considered that a log useful for searching for the problem of the software may exist in the log within the specified duration threshold value obtained last time, or both the label corresponding to the log within the specified duration threshold value obtained currently and the label corresponding to the log within the specified duration threshold value obtained last time are save labels, and it may be considered that logs useful for searching for the problem of the software may exist in both the log within the specified duration threshold value obtained last time and the log within the specified duration threshold value obtained currently. Therefore, it is necessary to store the currently acquired log within the specified duration threshold and the last acquired log within the specified duration threshold. Therefore, whether the acquired logs are stored or not is determined according to the labels corresponding to the acquired logs at intervals of the specified time length threshold, invalid logs can be deleted, logs which need to be stored and are useful for searching for software problems are reserved, the amount of the stored logs is reduced, a user can conveniently analyze and check the problems, and the problem solving efficiency is improved.
It should be noted that: in the log storage device provided in the above embodiment, only the division of the functional modules is described as an example when the log is stored, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device for storing logs and the method embodiment for storing logs provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
FIG. 5 is a block diagram illustrating a configuration of a test apparatus 500 according to an exemplary embodiment. The test device 500 may be a portable mobile terminal, such as: a smart phone, a tablet computer, an MP3 player (Moving Picture experts Group Audio Layer III, motion video experts compression standard Audio Layer 3), an MP4 player (Moving Picture experts Group Audio Layer IV, motion video experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. The test device 500 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
In general, the test apparatus 500 includes: a processor 501 and a memory 502.
The processor 501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 501 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 501 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, processor 501 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
Memory 502 may include one or more computer-readable storage media, which may be non-transitory. Memory 502 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 502 is used to store at least one instruction for execution by processor 501 to implement the method of storing logs provided by method embodiments herein.
In some embodiments, the test apparatus 500 may further include: a peripheral interface 503 and at least one peripheral. The processor 501, memory 502 and peripheral interface 503 may be connected by a bus or signal lines. Each peripheral may be connected to the peripheral interface 503 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 504, touch screen display 505, camera 506, audio circuitry 507, positioning components 508, and power supply 509.
The peripheral interface 503 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 501 and the memory 502. In some embodiments, the processor 501, memory 502, and peripheral interface 503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 501, the memory 502, and the peripheral interface 503 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 504 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 504 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 504 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 504 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 504 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 505 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 505 is a touch display screen, the display screen 505 also has the ability to capture touch signals on or over the surface of the display screen 505. The touch signal may be input to the processor 501 as a control signal for processing. At this point, the display screen 505 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 505 may be one, providing the front panel of the test device 500; in other embodiments, the display screens 505 may be at least two, respectively disposed on different surfaces of the testing apparatus 500 or in a folded design; in still other embodiments, the display 505 may be a flexible display disposed on a curved surface or on a folding surface of the testing device 500. Even more, the display screen 505 can be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display screen 505 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 506 is used to capture images or video. Optionally, camera assembly 506 includes a front camera and a rear camera. Generally, a front camera is disposed on a front panel of the test apparatus, and a rear camera is disposed on a rear surface of the test apparatus. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 506 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuitry 507 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 501 for processing, or inputting the electric signals to the radio frequency circuit 504 to realize voice communication. For stereo acquisition or noise reduction purposes, the microphones may be multiple and disposed at different locations of the test apparatus 500. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 501 or the radio frequency circuit 504 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 507 may also include a headphone jack.
The positioning component 508 is used to locate the current geographic location of the testing device 500 for navigation or LBS (location based Service). The positioning component 508 may be a positioning component based on the GPS (global positioning System) in the united states, the beidou System in china, or the galileo System in russia.
The power supply 509 is used to power the various components in the test equipment 500. The power source 509 may be alternating current, direct current, disposable or rechargeable. When power supply 509 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the test apparatus 500 also includes one or more sensors 510. The one or more sensors 510 include, but are not limited to: acceleration sensor 511, gyro sensor 512, pressure sensor 513, fingerprint sensor 514, optical sensor 515, and proximity sensor 516.
The acceleration sensor 511 may detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the test apparatus 500. For example, the acceleration sensor 511 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 501 may control the touch screen 505 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 511. The acceleration sensor 511 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 512 may detect a body direction and a rotation angle of the test apparatus 500, and the gyro sensor 512 may cooperate with the acceleration sensor 511 to acquire a 3D motion of the user on the test apparatus 500. The processor 501 may implement the following functions according to the data collected by the gyro sensor 512: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensors 513 may be disposed on a side bezel of the test device 500 and/or underneath the touch screen display 505. When the pressure sensor 513 is disposed on the side frame of the testing device 500, the holding signal of the user to the testing device 500 can be detected, and the processor 501 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 513. When the pressure sensor 513 is disposed at the lower layer of the touch display screen 505, the processor 501 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 505. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 514 is used for collecting a fingerprint of the user, and the processor 501 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 514, or the fingerprint sensor 514 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 501 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 514 may be disposed on the front, back, or side of the test device 500. When a physical key or vendor Logo is provided on the test device 500, the fingerprint sensor 514 may be integrated with the physical key or vendor Logo.
The optical sensor 515 is used to collect the ambient light intensity. In one embodiment, the processor 501 may control the display brightness of the touch display screen 505 based on the ambient light intensity collected by the optical sensor 515. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 505 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 505 is turned down. In another embodiment, processor 501 may also dynamically adjust the shooting parameters of camera head assembly 506 based on the ambient light intensity collected by optical sensor 515.
A proximity sensor 516, also known as a distance sensor, is typically provided on the front panel of the test device 500. The proximity sensor 516 is used to capture the distance between the user and the front of the testing device 500. In one embodiment, the touch display screen 505 is controlled by the processor 501 to switch from the bright screen state to the dark screen state when the proximity sensor 516 detects that the distance between the user and the front surface of the testing device 500 is gradually decreased; when the proximity sensor 516 detects that the distance between the user and the front surface of the test device 500 becomes gradually larger, the touch display screen 505 is controlled by the processor 501 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in FIG. 5 does not constitute a limitation of the testing device 500, and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components may be employed.
In some embodiments, a computer-readable storage medium is also provided, in which a computer program is stored, which, when being executed by a processor, implements the steps of the method for storing logs of the above embodiments. For example, the computer readable storage medium may be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It is noted that the computer-readable storage medium referred to in the embodiments of the present application may be a non-volatile storage medium, in other words, a non-transitory storage medium.
It should be understood that all or part of the steps for implementing the above embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer instructions may be stored in the computer-readable storage medium described above.
That is, in some embodiments, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of the above-described method of storing logs.
The above-mentioned embodiments are provided not to limit the present application, and any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (12)

1. A method for storing logs, which is applied to test equipment, and comprises the following steps:
acquiring logs in real time in the software testing process;
determining at least one of a label corresponding to the currently acquired log within the specified duration threshold and a label corresponding to the last acquired log within the specified duration threshold every time the log within the specified duration threshold is acquired, wherein the label is used for indicating whether the corresponding log needs to be deleted or not;
and in response to that at least one of the label corresponding to the currently acquired log within the specified duration threshold and the label corresponding to the last acquired log within the specified duration threshold is a storage label, storing the currently acquired log within the specified duration threshold and the last acquired log within the specified duration threshold.
2. The method according to claim 1, wherein before determining the label corresponding to the currently acquired log within the specified duration threshold every time the log within the specified duration threshold is acquired, the method further comprises:
and if log abnormal information is received in the process of acquiring the currently acquired log within the specified time threshold, determining the label corresponding to the currently acquired log within the specified time threshold as a storage label.
3. The method of claim 1, wherein the method further comprises:
responding to the currently acquired label corresponding to the log within the specified duration threshold as a deleted label, and acquiring the label corresponding to the last acquired log within the specified duration threshold;
and in response to that the label corresponding to the last acquired log within the specified time threshold is a delete label, deleting the last acquired log within the specified time threshold.
4. The method of claim 3, wherein each time a log is obtained within a specified duration threshold, further comprising:
generating a log identifier of a log in a currently acquired specified duration threshold based on a current time point, wherein the log identifier is used for uniquely indicating the log in a corresponding section of specified duration threshold;
and correspondingly storing the log identification and the currently acquired log within the specified time threshold, and storing the log identification into a temporary list.
5. The method of claim 4, wherein said deleting logs within a specified time threshold of said last acquisition comprises:
acquiring the log identification of the log in the specified time threshold value acquired last time from the temporary list to obtain a target log identification;
and deleting the log stored corresponding to the target log identification.
6. An apparatus for storing logs, the apparatus being applied to a test device, the apparatus comprising:
the acquisition module is used for acquiring logs in real time in the software testing process;
the determining module is used for determining at least one of a label corresponding to the currently acquired log within the specified duration threshold and a label corresponding to the last acquired log within the specified duration threshold every time the log within the specified duration threshold is acquired, wherein the label is used for indicating whether the corresponding log needs to be deleted or not;
and the storage module is used for responding at least one of the label corresponding to the currently acquired log in the specified time length threshold and the label corresponding to the last acquired log in the specified time length threshold as a storage label, and storing the currently acquired log in the specified time length threshold and the last acquired log in the specified time length threshold.
7. The apparatus of claim 6, wherein the determination module is further to:
and if log abnormal information is received in the process of acquiring the currently acquired log within the specified time threshold, determining the label corresponding to the currently acquired log within the specified time threshold as a storage label.
8. The apparatus of claim 6, wherein the storage module is further to:
responding to the currently acquired label corresponding to the log within the specified duration threshold as a deleted label, and acquiring the label corresponding to the last acquired log within the specified duration threshold;
and in response to that the label corresponding to the last acquired log within the specified time threshold is a delete label, deleting the last acquired log within the specified time threshold.
9. The apparatus of claim 8, wherein the determination module is further to:
generating a log identifier of a log in a currently acquired specified duration threshold based on a current time point, wherein the log identifier is used for uniquely indicating the log in a corresponding section of specified duration threshold;
and correspondingly storing the log identification and the currently acquired log within the specified time threshold, and storing the log identification into a temporary list.
10. The apparatus of claim 9, wherein the determination module is to:
acquiring the log identification of the log in the specified time threshold value acquired last time from the temporary list to obtain a target log identification;
and deleting the log stored corresponding to the target log identification.
11. A test device comprising a memory for storing a computer program and a processor for executing the computer program stored in the memory to perform the steps of the method of any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that the storage medium has stored therein a computer program which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN202010619591.6A 2020-07-01 2020-07-01 Method, device, test equipment and storage medium for storing log Active CN111797017B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010619591.6A CN111797017B (en) 2020-07-01 2020-07-01 Method, device, test equipment and storage medium for storing log

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010619591.6A CN111797017B (en) 2020-07-01 2020-07-01 Method, device, test equipment and storage medium for storing log

Publications (2)

Publication Number Publication Date
CN111797017A true CN111797017A (en) 2020-10-20
CN111797017B CN111797017B (en) 2024-05-14

Family

ID=72810916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010619591.6A Active CN111797017B (en) 2020-07-01 2020-07-01 Method, device, test equipment and storage medium for storing log

Country Status (1)

Country Link
CN (1) CN111797017B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363934A (en) * 2020-11-11 2021-02-12 展讯半导体(成都)有限公司 Storage method, system, equipment and storage medium for automatic test Log
CN112559327A (en) * 2020-12-02 2021-03-26 天津车之家数据信息技术有限公司 Test case generation method and device and computing equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018111355A1 (en) * 2016-12-15 2018-06-21 Nec Laboratories America, Inc. Content-level anomaly detection for heterogeneous logs
CN108833132A (en) * 2018-04-26 2018-11-16 努比亚技术有限公司 log acquisition control method, terminal and computer readable storage medium
US20180349250A1 (en) * 2017-06-01 2018-12-06 Nec Laboratories America, Inc. Content-level anomaly detector for systems with limited memory
CN111177013A (en) * 2020-01-06 2020-05-19 北京达佳互联信息技术有限公司 Log data acquisition method and device, computer equipment and storage medium
CN111338910A (en) * 2020-05-19 2020-06-26 腾讯科技(深圳)有限公司 Log data processing method, log data display method, log data processing device, log data display device, log data processing equipment and log data storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018111355A1 (en) * 2016-12-15 2018-06-21 Nec Laboratories America, Inc. Content-level anomaly detection for heterogeneous logs
US20180349250A1 (en) * 2017-06-01 2018-12-06 Nec Laboratories America, Inc. Content-level anomaly detector for systems with limited memory
CN108833132A (en) * 2018-04-26 2018-11-16 努比亚技术有限公司 log acquisition control method, terminal and computer readable storage medium
CN111177013A (en) * 2020-01-06 2020-05-19 北京达佳互联信息技术有限公司 Log data acquisition method and device, computer equipment and storage medium
CN111338910A (en) * 2020-05-19 2020-06-26 腾讯科技(深圳)有限公司 Log data processing method, log data display method, log data processing device, log data display device, log data processing equipment and log data storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
冯钧;张立霞;唐志贤;: "一种基于WebService的多***水利日志存储方法", 计算机与现代化, no. 02 *
王国林;介阳阳;叶君好;叶彬;: "基于日志挖掘的装备健康管理***设计与实现", 计算机测量与控制, no. 04 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363934A (en) * 2020-11-11 2021-02-12 展讯半导体(成都)有限公司 Storage method, system, equipment and storage medium for automatic test Log
CN112559327A (en) * 2020-12-02 2021-03-26 天津车之家数据信息技术有限公司 Test case generation method and device and computing equipment
CN112559327B (en) * 2020-12-02 2022-09-06 天津车之家数据信息技术有限公司 Test case generation method and device and computing equipment

Also Published As

Publication number Publication date
CN111797017B (en) 2024-05-14

Similar Documents

Publication Publication Date Title
CN110308956B (en) Application interface display method and device and mobile terminal
CN108132790B (en) Method, apparatus and computer storage medium for detecting a garbage code
CN108897659B (en) Method, device and storage medium for modifying log level
CN110839128B (en) Photographing behavior detection method and device and storage medium
CN111752817A (en) Method, device and equipment for determining page loading duration and storage medium
CN112256320A (en) Version number generation method, device, terminal and storage medium
CN111427629B (en) Application starting method and device, vehicle equipment and storage medium
CN111754386A (en) Image area shielding method, device, equipment and storage medium
CN110677713B (en) Video image processing method and device and storage medium
CN111797017B (en) Method, device, test equipment and storage medium for storing log
CN109783176B (en) Page switching method and device
CN111192072A (en) User grouping method and device and storage medium
CN107943484B (en) Method and device for executing business function
CN111666076A (en) Layer adding method, device, terminal and storage medium
CN110992954A (en) Method, device, equipment and storage medium for voice recognition
CN113408989B (en) Automobile data comparison method and device and computer storage medium
CN113051485B (en) Group searching method, device, terminal and storage medium
CN111984738B (en) Data association method, device, equipment and storage medium
CN113836426A (en) Information pushing method and device and electronic equipment
CN110928867B (en) Data fusion method and device
CN112000576A (en) Code data detection method, device, equipment and storage medium
CN113495770A (en) Method, device, terminal and storage medium for displaying application page
CN112749583A (en) Face image grouping method and device, computer equipment and storage medium
CN113342635A (en) Acquisition of differential code coverage rate and differential code file sending method and device
CN110941458A (en) Method, device and equipment for starting application program and 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
GR01 Patent grant
GR01 Patent grant