Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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.

Active Publication Date: 2021-03-16
深圳市雅阅科技有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] (1) Distributed systems are not supported, and only single-machine tests and logs can be processed;
[0004] (2) The tested object cannot be recorded, such as the log information printed by the tested APP application itself;
[0005] (3) The log format is simple and disorderly, which cannot meet the needs of users to view logs easily and conveniently and locate problems
[0006] In addition, in existing computer systems with other operating systems, test tasks are usually executed by scripts, and test logs are generated from the script execution results, but there is no clear correspondence between the logs in the existing log system and the task instructions in the scripts , it is difficult for users to analyze the log in combination with the content of the script

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A test log processing method, system and terminal
  • A test log processing method, system and terminal
  • A test log processing method, system and terminal

Examples

Experimental program
Comparison scheme
Effect test

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 ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a test log processing method, system and terminal. The method comprises the steps of obtaining comprehensive test log information through intercepting an information output channel at the bottom layer of an operating system, analyzing the test log information through combining with task instructions, determining the corresponding relations between the task instructions andspecific contents in test logs, thereby realizing the automated analysis of test results. The test log processing method, system and terminal disclosed by the invention have the beneficial effects that not only the test of stand-alone software based on an IOS (IPhone Operation System) or other operating systems but also the test of software based on distributed computer systems can be supported; wide application range and application prospect are provided; and the task instructions and the log contents can be automatically matched and log analysis files are automatically generated, so that therequirements for users to easily and conveniently view the logs and locate problems are met.

Description

technical field [0001] The invention relates to the field of software testing, in particular to a test log processing method, system and terminal. Background technique [0002] Software testing based on iOS (Apple mobile device operating system) usually requires the use of the automated framework log system (iOS UItest) provided by Apple, but this log system has many shortcomings: [0003] (1) Distributed systems are not supported, and only single-machine tests and logs can be processed; [0004] (2) The tested object cannot be recorded, such as the log information printed by the tested APP application itself; [0005] (3) The log format is simple and disorderly, which cannot meet the needs of users to view logs easily and conveniently and locate problems. [0006] In addition, in existing computer systems with other operating systems, test tasks are usually executed by scripts, and test logs are generated from the script execution results, but there is no clear correspond...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3672G06F11/3692
Inventor 程春林
Owner 深圳市雅阅科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products