A test log processing method, system and terminal
A processing method and system processing technology, applied in the field of system and terminal, test log processing method, can solve the problems of unable to record the measured object, not supporting distributed system, simple and disordered log format, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0128] A test log processing method such as figure 1 As shown, the method includes:
[0129] S101. Execute the task instruction.
[0130] Specifically, the task instruction can be edited through a script, and may also include a step of setting up a test environment before the task instruction is executed. This embodiment runs on the iOS operating system, and the task instructions can be executed through the automated testing framework that comes with the iOS. Of course, the present invention can also execute task instructions on other operating systems.
[0131] S102. Obtain test log information generated during task execution.
[0132] In the process of executing task instructions, the test log information is obtained by intercepting the information output channel at the bottom of the operating system.
[0133] In the prior art, it is difficult to capture the log information output by the object under test by relying on the log information obtained by the test framework; ...
Embodiment 2
[0164] A test log processing method, comprising:
[0165] S201. Execute the task instruction.
[0166] S202. Obtain test log information generated during task execution.
[0167] S203. Generate an initial log file according to the test log information, the initial log file includes a log header with an index tag, and the index tag is used to locate the specific content of the text part in the initial log file.
[0168] S204. Perform log analysis on the initial log file: perform one-to-one correspondence matching on the task instruction, the log content generated by the task instruction, and the index label corresponding to the log content.
[0169] S205. Generate a log analysis file corresponding to the initial log file according to the log analysis result.
[0170] This embodiment can be applied to distributed systems, compared to Embodiment 1, such as Figure 6 , also includes the following steps related to the initial log file:
[0171] C1. Each node in the distributed ...
Embodiment 3
[0197] A test log processing method, comprising:
[0198] S301. Execute the task instruction.
[0199] S302. Obtain test log information generated during task execution.
[0200] S303. Generate an initial log file according to the test log information, the initial log file includes a log header with an index tag, and the index tag is used to locate the specific content of the text part in the initial log file.
[0201] S304. Analyze the initial log file according to the index tag and obtain an analysis result.
[0202] S305. Generate a log analysis file corresponding to the initial log file according to the log analysis result.
[0203] In this embodiment, the log analysis files are represented by hypertext markup language (html) files, which can facilitate users to browse the log analysis results on the webpage.
[0204] This embodiment can be applied to distributed systems, such as Figure 10 As shown, compared to Embodiment 2, performing log analysis on the initial log ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com