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

A method and device for monitoring automated test logs using capsys

A technology for monitoring automation and testing equipment, which is applied in software testing/debugging, error detection/correction, instruments, etc. It can solve problems such as increased workload, difficulty in obtaining and locating equipment operating conditions, and cumbersome searches

Active Publication Date: 2022-07-12
浪潮思科网络科技有限公司
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this method is too cumbersome to search and adds a lot of additional workload, making it very difficult to obtain the operating status of the device and locate the location of the problem

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 method and device for monitoring automated test logs using capsys
  • A method and device for monitoring automated test logs using capsys
  • A method and device for monitoring automated test logs using capsys

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to make the objectives, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be clearly and completely described below with reference to the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0022] In the automated testing of switches, a large number of test logs are generated after the execution of the entire task, the size of which is often megabytes or more. The logs of test cases are generally stored in the server where jenkins is located. Incremental methods can be used to obtain and backup all logs of the entire...

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 present application discloses a method for monitoring automated test logs using capsys, which is used to solve the technical problem of how to quickly obtain execution logs of test cases without losing key information. The method includes: determining a use case module based on the test task; wherein, the use case module includes several test cases related to the test task; executing the use case module, and recording the execution time of the use case module; any test case under the use case module is When executing, record the hierarchical structure of the test case; capture all standard output stream data generated during the execution of the test case based on capsys, and generate the execution log of the test case based on the standard output stream data; among them, the naming of the execution log is the same as that of the use case module. Execution time is related to the hierarchy of test cases. The present application retains the key information in the test task through the above method, and generates an execution log of the test case after the test case is executed.

Description

technical field [0001] The present application relates to the technical field of log monitoring, and in particular, to a method and device for monitoring automated test logs using capsys. Background technique [0002] During the automated testing of switches, the entire task will generate a large number of test logs, often in the size of megabytes and above. These test logs are generally stored in the server where jenkins is located, and all logs of the entire test task can be acquired and backed up incrementally. [0003] However, when obtaining the logs generated by the execution of a certain test case, you can set keywords in advance, and then search all the logs or match the logs generated by the test case regularly. However, this method is too cumbersome to search and adds a lot of extra work, which makes it very difficult to obtain the operating status of the device and locate the location of the problem. Therefore, on the premise of ensuring effective information, h...

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/3684G06F11/3688G06F11/3692
Inventor 唐佩
Owner 浪潮思科网络科技有限公司
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More