CN112131195A - Aging test cluster type management method - Google Patents

Aging test cluster type management method Download PDF

Info

Publication number
CN112131195A
CN112131195A CN202010828885.XA CN202010828885A CN112131195A CN 112131195 A CN112131195 A CN 112131195A CN 202010828885 A CN202010828885 A CN 202010828885A CN 112131195 A CN112131195 A CN 112131195A
Authority
CN
China
Prior art keywords
test
aging
equipment
log
cluster
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
CN202010828885.XA
Other languages
Chinese (zh)
Other versions
CN112131195B (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.)
Shenzhen Forward Industrial Co Ltd
Original Assignee
Shenzhen Forward Industrial 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 Shenzhen Forward Industrial Co Ltd filed Critical Shenzhen Forward Industrial Co Ltd
Priority to CN202010828885.XA priority Critical patent/CN112131195B/en
Publication of CN112131195A publication Critical patent/CN112131195A/en
Application granted granted Critical
Publication of CN112131195B publication Critical patent/CN112131195B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses an aging test cluster type management method, which comprises the steps of executing a test script and acquiring cluster equipment information; detecting the address of the equipment to be detected according to the cluster equipment information, and sending the aging script to the equipment to be detected; automatically executing an aging script to perform aging test on equipment to be detected, generating a test log and packaging the test log; and automatically executing the aging script to send the packed test log to a preset log collection server. According to the invention, the equipment cluster management is adopted, the aging test is uniformly executed, after the test is finished, the result analysis is carried out to form a summary description, the log result is packaged and exported, the IP address of each equipment is in the file name, the distinction is convenient, only the management equipment in the equipment needs to be operated in the whole process, the efficiency of production and test personnel is greatly increased, and the error probability is reduced.

Description

Aging test cluster type management method
Technical Field
The invention relates to the technical field of equipment aging tests, in particular to an aging test cluster type management method.
Background
When production testing personnel execute the aging test to equipment, because the equipment is numerous, every input order execution can lead to inefficiency, and the probability of making mistakes increases, does not have unified management moreover, and after the aging test execution was accomplished, information collection was difficult mixed and disorderly.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides a cluster management method for aging tests.
In order to achieve the purpose of the invention, the invention adopts the technical scheme that:
a cluster management method for aging test comprises the following steps:
s1, executing the test script to obtain cluster equipment information;
s2, detecting the address of the equipment to be detected according to the cluster equipment information, and sending the aging script to the equipment to be detected;
s3, automatically executing the aging script to perform aging test on the equipment to be detected, generating a test log and packaging the test log;
and S4, automatically executing the aging script and sending the packaged test log to a preset log collection server.
Preferably, the cluster device and the management device are jointly accessed into the same group of networks, and the cluster device is configured with the same user name and password.
Preferably, the acquiring cluster device information in step S1 specifically includes:
acquiring an IP address range, a user name and a password of cluster equipment and an IP address of a log collection server;
and/or aging test time.
Preferably, the step S2 specifically includes:
detecting whether the equipment to be detected exists in the IP address range by using the test script according to the IP address range of the cluster equipment acquired in the step S1; and when a plurality of devices to be detected exist, the aging script is respectively sent to each device to be detected in a multithreading parallel mode.
Preferably, the step S3 specifically includes:
and automatically executing the aging script by the equipment to be detected for aging test, automatically analyzing the generated test log after the aging test is stopped, and marking the analysis result at the tail end of the test log.
Preferably, the automatically analyzing the generated test log after the aging test is stopped, and marking the analysis result at the tail end of the test log specifically includes:
searching the number of correctness and errors in the test log by using a regular expression; when errors occur in the retrieved test log, marking the number and the information of the retrieved errors at the tail end of the test log; and when the test log is searched and no error occurs, marking all normal data at the tail end of the test log.
Preferably, the step S3 further includes:
and automatically stopping the aging test of the cluster equipment according to the aging test time acquired in the step S1.
Preferably, the step S3 further includes:
and after the test logs are analyzed, automatically executing the aging script to count the analysis results of all the generated test logs, and packaging all the test logs, wherein the packaged file names comprise log statistical results and equipment IP addresses.
The invention has the following beneficial effects:
according to the invention, the equipment cluster management is adopted, the aging test is uniformly executed, after the test is finished, the result analysis is carried out to form a summary description, the log result is packaged and exported, the IP address of each equipment is in the file name, the distinction is convenient, only the management equipment in the equipment needs to be operated in the whole process, the efficiency of production and test personnel is greatly increased, and the error probability is reduced.
Drawings
FIG. 1 is a flowchart illustrating a cluster management method for burn-in test according to the present invention.
Fig. 2 is a schematic diagram of a networking structure of cluster equipment in the embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention is provided to facilitate the understanding of the present invention by those skilled in the art, but it should be understood that the present invention is not limited to the scope of the embodiments, and it will be apparent to those skilled in the art that various changes may be made without departing from the spirit and scope of the invention as defined and defined in the appended claims, and all matters produced by the invention using the inventive concept are protected.
As shown in fig. 1, an embodiment of the present invention provides a cluster management method for burn-in tests, including the following steps:
s1, executing the test script to obtain cluster equipment information;
in this embodiment, in order to solve the problems that production testing personnel have a lot of devices, low execution efficiency and high error probability when performing an aging test, the cluster device and the management device are commonly accessed into the same group of network, and the same user name and password are configured for the cluster device, so that one management device is used for performing a script operation, as shown in fig. 2.
After the management equipment executes the test script, the invention prompts the input of the IP address range, the user name and the password of the cluster equipment, the IP address of the log collection server and/or the aging test time, thereby obtaining the cluster equipment information.
S2, detecting the address of the equipment to be detected according to the cluster equipment information, and sending the aging script to the equipment to be detected;
in this embodiment, the present invention uses the test script to detect whether there is a device to be tested in the IP address range according to the IP address range of the cluster device obtained in step S1.
When the script is transmitted, because the number of the cluster devices is large and one cluster device transmits one script, the time is long, so that the aging script is respectively sent to each device to be detected in a multithreading parallel mode when a plurality of devices to be detected exist. The process of each transmission script runs in the background and is not displayed at the front end, so that the process does not need to be queued during transmission. The number of cluster devices does not affect the transmission time, and the integrity of the file is ensured through the breakpoint resume function in the transmission process.
The invention adopts a cluster management mode, and can operate all the equipment needing production and test only by executing the script once; meanwhile, the aging script is sent by multiple threads, so that the problem of queuing caused by too many cluster devices is solved.
S3, automatically executing the aging script to perform aging test on the equipment to be detected, generating a test log and packaging the test log;
in this embodiment, after sending the aging script to the device to be tested, the invention automatically executes the aging script to perform the aging test on the device to be tested, the aging test process adopts a conventional test flow, the aging test is stopped on the management device or the generated test log is automatically analyzed after the aging test is automatically stopped after the time is up, and the analysis result is marked at the tail end of the test log.
Specifically, after the aging test is finished, because the log content is numerous, production testing personnel can hardly find out problematic places in the log, so that tiny problems can be easily ignored, and after the logs are collected, the log-by-log check is troublesome and laborious, so that the progress is influenced; therefore, the invention utilizes the regular expression to search the number of correctness and errors in the test log; when errors occur in the retrieved test log, marking the number and the information of the retrieved errors at the tail end of the test log; and when no error occurs in the retrieved test log, marking all normal marks at the tail end of the test log, thereby facilitating production and test personnel to watch the aging test result.
In addition, because the generated logs are of various types, production and test personnel need to input commands to operate when collecting the logs, so that the time for collecting the logs is too long; therefore, after the test logs are analyzed, the aging script is automatically executed to count the analysis results of all the generated test logs, all the test logs are packaged, and the packaged file names comprise log statistical results and equipment IP addresses.
Specifically, all test logs generated in a device to be detected are packaged, log contents are automatically analyzed in the packaging process, and if error information exists in the log contents, error reminding is included in the packaged file names; no matter the alignment is wrong, the packaged file name contains the IP address of the equipment, and the production testing personnel can conveniently and quickly find the wrong equipment.
According to the invention, the log result is analyzed, the log file is analyzed, the result is counted, the error is displayed on the packed file name in a striking manner, and the packed file name also contains the IP address of the equipment, so that the production and test personnel can conveniently and rapidly screen the error equipment.
And S4, automatically executing the aging script and sending the packaged test log to a preset log collection server.
In this embodiment, the present invention sends the packaged test log to the IP address of the log collection server acquired in step S1 through tftp by using the aging script.
According to the invention, through unified log collection, the information of the equipment is distinguished through the IP address, and the phenomenon of coverage caused by repeated file names is prevented; and through collecting the test log to the preset log collection server in a unified manner, the production testing personnel can search the required equipment aging detection record conveniently.
It will be appreciated by those of ordinary skill in the art that the embodiments described herein are intended to assist the reader in understanding the principles of the invention and are to be construed as being without limitation to such specifically recited embodiments and examples. Those skilled in the art can make various other specific changes and combinations based on the teachings of the present invention without departing from the spirit of the invention, and these changes and combinations are within the scope of the invention.

Claims (8)

1. A cluster management method for aging test is characterized by comprising the following steps:
s1, executing the test script to obtain cluster equipment information;
s2, detecting the address of the equipment to be detected according to the cluster equipment information, and sending the aging script to the equipment to be detected;
s3, automatically executing the aging script to perform aging test on the equipment to be detected, generating a test log and packaging the test log;
and S4, automatically executing the aging script and sending the packaged test log to a preset log collection server.
2. The aging test cluster management method of claim 1, wherein the cluster device and the management device are jointly accessed into the same group of networks, and the cluster device is configured with the same user name and password.
3. The aging test cluster management method of claim 2, wherein the acquiring cluster device information in step S1 specifically includes:
acquiring an IP address range, a user name and a password of cluster equipment and an IP address of a log collection server;
and/or aging test time.
4. The aging test cluster management method of claim 3, wherein the step S2 specifically comprises:
detecting whether the equipment to be detected exists in the IP address range by using the test script according to the IP address range of the cluster equipment acquired in the step S1; and when a plurality of devices to be detected exist, the aging script is respectively sent to each device to be detected in a multithreading parallel mode.
5. The aging test cluster management method of claim 4, wherein the step S3 specifically comprises:
and automatically executing the aging script by the equipment to be detected for aging test, automatically analyzing the generated test log after the aging test is stopped, and marking the analysis result at the tail end of the test log.
6. The aging test cluster management method according to claim 5, wherein automatically analyzing the generated test log after the aging test is stopped, and marking the analysis result at the tail end of the test log specifically comprises:
searching the number of correctness and errors in the test log by using a regular expression; when errors occur in the retrieved test log, marking the number and the information of the retrieved errors at the tail end of the test log; and when the test log is searched and no error occurs, marking all normal data at the tail end of the test log.
7. The aging test cluster management method of claim 5, wherein the step S3 further comprises:
and automatically stopping the aging test of the cluster equipment according to the aging test time acquired in the step S1.
8. The aging test cluster management method of claim 5, wherein the step S3 further comprises:
and after the test logs are analyzed, automatically executing the aging script to count the analysis results of all the generated test logs, and packaging all the test logs, wherein the packaged file names comprise log statistical results and equipment IP addresses.
CN202010828885.XA 2020-08-18 2020-08-18 Cluster type management method for aging test Active CN112131195B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010828885.XA CN112131195B (en) 2020-08-18 2020-08-18 Cluster type management method for aging test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010828885.XA CN112131195B (en) 2020-08-18 2020-08-18 Cluster type management method for aging test

Publications (2)

Publication Number Publication Date
CN112131195A true CN112131195A (en) 2020-12-25
CN112131195B CN112131195B (en) 2024-04-16

Family

ID=73850961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010828885.XA Active CN112131195B (en) 2020-08-18 2020-08-18 Cluster type management method for aging test

Country Status (1)

Country Link
CN (1) CN112131195B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114490227A (en) * 2022-01-24 2022-05-13 深圳市京华信息技术有限公司 Method and device for aging of computing equipment, computing equipment and storage medium
CN117971576A (en) * 2024-01-19 2024-05-03 广州通则康威科技股份有限公司 Automatic test method and device for memory aging of CPE (customer premise equipment)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105205003A (en) * 2015-10-28 2015-12-30 努比亚技术有限公司 Automated testing method and device based on clustering system
CN105577799A (en) * 2015-12-25 2016-05-11 北京奇虎科技有限公司 Method and device for detecting fault of database cluster
CN107302475A (en) * 2017-07-06 2017-10-27 郑州云海信息技术有限公司 The method of testing and device of a kind of Based on Distributed storage cluster
WO2018058941A1 (en) * 2016-09-29 2018-04-05 华为技术有限公司 Method for detecting communication status of cluster system, and gateway cluster
CN109901871A (en) * 2019-02-28 2019-06-18 苏州浪潮智能科技有限公司 The environment configurations of burn-in test and the method for operation are realized automatically under a kind of Linux
CN110262964A (en) * 2019-05-21 2019-09-20 深圳壹账通智能科技有限公司 Test method, device, equipment and computer readable storage medium
CN111367739A (en) * 2020-02-29 2020-07-03 苏州浪潮智能科技有限公司 USB port testing method and system based on server cluster

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105205003A (en) * 2015-10-28 2015-12-30 努比亚技术有限公司 Automated testing method and device based on clustering system
CN105577799A (en) * 2015-12-25 2016-05-11 北京奇虎科技有限公司 Method and device for detecting fault of database cluster
WO2018058941A1 (en) * 2016-09-29 2018-04-05 华为技术有限公司 Method for detecting communication status of cluster system, and gateway cluster
CN107302475A (en) * 2017-07-06 2017-10-27 郑州云海信息技术有限公司 The method of testing and device of a kind of Based on Distributed storage cluster
CN109901871A (en) * 2019-02-28 2019-06-18 苏州浪潮智能科技有限公司 The environment configurations of burn-in test and the method for operation are realized automatically under a kind of Linux
CN110262964A (en) * 2019-05-21 2019-09-20 深圳壹账通智能科技有限公司 Test method, device, equipment and computer readable storage medium
CN111367739A (en) * 2020-02-29 2020-07-03 苏州浪潮智能科技有限公司 USB port testing method and system based on server cluster

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱夏锋: "基于集群化架构的云服务平台的设计", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 03, pages 139 - 226 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114490227A (en) * 2022-01-24 2022-05-13 深圳市京华信息技术有限公司 Method and device for aging of computing equipment, computing equipment and storage medium
CN117971576A (en) * 2024-01-19 2024-05-03 广州通则康威科技股份有限公司 Automatic test method and device for memory aging of CPE (customer premise equipment)

Also Published As

Publication number Publication date
CN112131195B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
KR101239401B1 (en) Log analysys system of the security system and method thereof
CN109359007B (en) Method and system for processing error log, electronic device and storage medium
Jayathilake Towards structured log analysis
CN107223257B (en) Test method, test server and test system
US20100218049A1 (en) Method of Creating Signatures for Classifying Program Failures
CN109613412B (en) Method for analyzing STDF detection data in real time
CN112131195A (en) Aging test cluster type management method
US20090319833A1 (en) Software Quality Assessment based on Semantic Similarities
CN102999417B (en) Automatic test management system and method
CN108614742B (en) Report data verification method, system and device
CN116450399A (en) Fault diagnosis and root cause positioning method for micro service system
CN110489317B (en) Cloud system task operation fault diagnosis method and system based on workflow
CN105653455B (en) A kind of detection method and detection system of program bug
CN114414255A (en) Automatic driving test method and system based on CAN message period monitoring
CN106294109A (en) Obtain the method and device of defect code
CN107273296A (en) The method of testing and test device of a kind of software
CN111984539A (en) Automatic testing method and device for webpage front end
CN109815260B (en) Waveform display device, waveform parameter statistical method, terminal device and storage medium
CN116665748A (en) Automatic test equipment for flash memory chip and test method thereof
CN113868129B (en) Method for checking accuracy of back-end data and automatic testing tool
CN115576831A (en) Test case recommendation method, device, equipment and storage medium
CN113900902A (en) Log processing method and device, electronic equipment and storage medium
JP2000077495A (en) Inspection system and manufacture of electronic device using the same
CN117493127B (en) Application program detection method, device, equipment and medium
CN111078538B (en) JMH-based rule automation test method

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