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

Method and equipment for monitoring automated test log by using capsys

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

Active Publication Date: 2021-09-14
浪潮思科网络科技有限公司
View PDF9 Cites 1 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
  • Method and equipment for monitoring automated test log by using capsys
  • Method and equipment for monitoring automated test log by using capsys
  • Method and equipment for monitoring automated test log by using capsys

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with specific embodiments of the present application and corresponding drawings. Apparently, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0022] In the automatic test of the switch, a large amount of test logs will be generated after the execution of the entire task, and its size is often in megabytes or above. The logs of test cases are generally stored in the server where Jenkins is located, and all logs of the entire test task can be obtained and backed up incrementally, but the 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 method for monitoring an automatic test log by using capsys, which is used for solving the technical problem of how to quickly obtain an execution log of a test case on the premise of not losing key information. The method comprises the steps of determining a use case module based on a test task, wherein the case module comprises a plurality of test cases related to the test task; executing the use case module, and recording the execution time of the use case module; when any test case in the case module is executed, recording a hierarchical structure of the test case; capturing all standard output stream data generated in the execution process of the test case based on capsys, and generating an execution log of the test case based on the standard output stream data, wherein the name of the execution log is related to the execution time of the case module and the hierarchical structure of the test case. According to the method, the key information in the test task is reserved, and the execution log of the test case is generated after the test case is executed.

Description

technical field [0001] The present application relates to the technical field of log monitoring, in particular to a method and equipment 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 megabytes or more. These test logs are generally stored in the server where jenkins is located, and all logs of the entire test task can be obtained and backed up incrementally. [0003] However, when obtaining the logs generated by the execution of a certain test case, although keywords can be set in advance, and then search or regular match the logs generated by the test case in all logs. However, this method is too cumbersome to search and adds a lot of extra work, making it very difficult to obtain the operating status of the device and locate the problem. Therefore, on the premise of ensuring effective information, how to enable developers or manag...

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 Applications(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