CN102799519A - Automatic test method for cluster file system - Google Patents

Automatic test method for cluster file system Download PDF

Info

Publication number
CN102799519A
CN102799519A CN2012101849613A CN201210184961A CN102799519A CN 102799519 A CN102799519 A CN 102799519A CN 2012101849613 A CN2012101849613 A CN 2012101849613A CN 201210184961 A CN201210184961 A CN 201210184961A CN 102799519 A CN102799519 A CN 102799519A
Authority
CN
China
Prior art keywords
test
scene
cluster
automatic
automatic test
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.)
Pending
Application number
CN2012101849613A
Other languages
Chinese (zh)
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN2012101849613A priority Critical patent/CN102799519A/en
Publication of CN102799519A publication Critical patent/CN102799519A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides an automatic test method for a cluster file system, which is applied to automatic test of the cluster file system. Together with continual regulation of test flow and further refining of a software test technology, software test automation is increasingly not ignored. Particularly for large-scale and complex cluster systems, offline and process killing are frequently required in test, so each node executes an instruction sequence once in a test case, and even a plurality of nodes are required for cooperation; and the time point is very difficult to accurately master. By using the automatic test method and an automatic test device for the cluster file system in test, the test flow of an enterprise can be normalized, efficiency of specific test activities can be improved, testers can focus on establishment and development of new test modules, the test coverage is improved, and test assets can be reused in the whole test life cycle.

Description

A kind of cluster file system automated testing method
Technical field
The present invention relates to the Computer Applied Technology field, specifically a kind of cluster file system automated testing method.
Background technology
The implementation method of test automation is the manual operations that replaces the people with the machine test, accomplishes a series of test scene.See that from principle test automation also is the operating process of a standard.Test automation is actually the manual operations the anthropomorphic dummy, all is that manual test is accomplished in present stage a lot of companies test job.The workload of software test is very big, and according to statistics, test can take for 40% development time; The software that some reliability requirements are very high, 60% of the test duration even the development time of accounting for.Manual test has some shortcomings clearly; That is exactly that the different test man of a same module can find different problems; This direct ability with the test man is relevant, also with other factors of test man direct relation is arranged simultaneously, such as state, mood etc.; This is actually a kind of unordered operation behavior, along with personnel's change product quality is also fluctuating thereupon.
Automatic test makes test process simple and efficient, makes test process more quick, does not incur loss through delay.At present, the automated test tool kind is a lot, and commercial automatic test software price is high.The test automation instrument of any commercialization; All possibly there be the place very inproper with detailed programs; And there are many different types of application platforms usually in enterprises; Applicating developing technology also is not quite similar, even in an application, possibly just cross over kinds of platform, or has technological disparity between the different editions of same application.Want to make the automatic test platform of purchase to be fused in the development and testing, still need company to continue to drop into manpower and carry out technical training, even the secondary development configuration.
Summary of the invention
The method that the purpose of this invention is to provide a kind of automatic test cluster file system.
The objective of the invention is to realize by following mode; Adopt the Shell script to write the automatic test group system; Through the group system configuration file is set in advance; The allocation cluster node does not have the cryptographic acess function, and the test scene that the automatic test developer is provided with in advance comprises: configuration management (1), test data scene module (2), error trapping device (3) wherein:
Configuration management (1) is a cluster automatic test starting point as the key factor in the cluster performance test.Itself does not have configuration file automatic test, and all configuration parameters all are for the foundation of group system and test and prepare that we are parameter configuration and test configurations work through the definition of shell variable.
All test cases in test data scene module (2) automatic test rely on the data of test environment.Comprise a series of flow process in this module, comprising:
D) environment measuring flow process: according to configuration management (1) parameter is set and carries out the environment measuring of cluster interior nodes software/hardware, whether the network interface card setting correct, and whether the equipment of mount, executable file path correctly, version whether be we need or the like;
E) test case: after the environment measuring flow process is passed through, according to the automatic test config option, call test case, the mode of using ssh not have cryptographic acess in the clustered node conducts interviews and process control;
F) cleaning work: after each group test case was accomplished, system can detect anti-operation according to the environment flow process, unload corresponding test resource, reduced each node;
Error trapping device (3) module is independent of each test scene, avoids each different mistake is carried out special judgement and processing, unified wrong output interface.When testing because of wrong, the unusual interruption, misregistration information and test scene are on-the-spot, and the scene is outputed to the terminal, and log log record, preservation are also interrupted this test scene.
Configuration management (1) only needs group system is made variable-definition and get final product from being formatted to configuration of carry test process desired parameters and test configurations, and wait test data scene module (2) is called software/hardware parameter configuration management described in the configuration management (1).
Test data scene module (2) comprises two parts; The one, the software/hardware situation of checking local and far-end comprises whether the other side's network interface card setting meets the requirements, and whether the equipment of mount is correct; Whether executable file in the tram, and whether version is our needs; The 2nd, preserve the set of all test cases, communicate according to the agreement of test scene through own definition, order through ssh and control in the cluster each node according to test scene automatic test progressively.
Error trapping device (3) is set in the test scene mistake, can avoids each different mistake is carried out special judgement and processing, unified wrong output interface; The test scene error result is not handled and interfered; Interrupt test keeps wrong scene, is convenient to the tester and analyzes.
The invention has the beneficial effects as follows: along with the user improves constantly the requirement of cluster file system function, reliability and security, scale, the system complexity of group system also improve constantly.To improving constantly of systemic-function, performance requirement, cause the technical requirement of system testing also increasingly high.For efficient and the quality that improves test, improving of automated testing method and testing process also compeled to necessary.For correctness, stability and the robustness that guarantees cluster file system, improve the quality and the efficient of system testing, we have proposed a kind of method and apparatus of automatic test cluster file system.
Description of drawings
Fig. 1 is that the cluster file system automatic test connects, the role is provided with figure;
Fig. 2 is the automatic test process flow diagram.
Embodiment
Explanation at length below with reference to Figure of description method of the present invention being done.
Set after cluster node do not have cryptographic acess, it is connective to test no cryptographic acess node.Copy all automatic test cases of node, configuration file to each node corresponding position, only need to start automatic test at a test client node.
According to the interior each item configuration parameter of configuration management (1), parameter when the group system carry is set, Server node, back end, client node and storage size, position, inter-node communication mode, file system data communication type etc.
Set after the configuration parameter, start test data scene module (2) on a test node therein, system at first can be according to configuration parameter; Detect hardware environment, start clustered node, start the test case group and test; If occur unusual or mistake in the test process, stop this test immediately, go to error trapping device (3); Export phenomenon to terminal and remind the tester, keep on-the-spot in order to checking, if the success of reorganization test case; Then carry out system and carry out the environment cleaning work, return former each node environment.
Except that the described technical characterictic of instructions, be the known technology of those skilled in the art.

Claims (4)

1. cluster file system automated testing method; It is characterized in that adopting the Shell script to write the automatic test group system; Through the group system configuration file is set in advance; The allocation cluster node does not have the cryptographic acess function, and the test scene that the automatic test developer is provided with in advance comprises: configuration management (1), test data scene module (2), error trapping device (3) wherein:
Configuration management (1) is as the key factor in the cluster performance test; It is cluster automatic test starting point; Itself does not have configuration file automatic test; All configuration parameters all are to prepare for the foundation of group system and test, are defined as parameter configuration and test configurations work through the shell variable;
All test cases in test data scene module (2) automatic test rely on the data of test environment, and the flow process that comprises in this module is following:
(a) environment measuring flow process: according to configuration management (1) parameter is set and carries out the environment measuring of cluster interior nodes software/hardware, whether the network interface card setting is correct, and whether the equipment of mount, executable file path is correctly, and whether version needs;
(b) test case: after the environment measuring flow process is passed through, according to the automatic test config option, call test case, the mode of using ssh not have cryptographic acess in the clustered node conducts interviews and process control;
(c) cleaning work: after each group test case was accomplished, system can detect anti-operation according to the environment flow process, unload corresponding test resource, reduced each node;
Error trapping device (3) module is independent of each test scene; Avoid each different mistake is carried out special judgement and processing; Unified wrong output interface, when testing because of wrong, the unusual interruption, misregistration information and test scene are on-the-spot; The scene is outputed to the terminal, and log log record, preservation are also interrupted this test scene.
2. method according to claim 1; It is characterized in that configuration management (1) only needs group system is made variable-definition and get final product from being formatted to configuration of carry test process desired parameters and test configurations, wait test data scene module (2) is called software/hardware parameter configuration management described in the configuration management (1).
3. method according to claim 1; It is characterized in that test data scene module (2) comprises two parts; The one, the software/hardware situation of checking local and far-end comprises whether the other side's network interface card setting meets the requirements, and whether the equipment of mount is correct; Whether executable file in the tram, and whether version is our needs; The 2nd, preserve the set of all test cases, communicate according to the agreement of test scene through own definition, order through ssh and control in the cluster each node according to test scene automatic test progressively.
4. according to the described method of claim 1; It is characterized in that error trapping device (3) is set in the test scene mistake, can avoid each different mistake is carried out special judgement and processing, unified wrong output interface; The test scene error result is not handled and interfered; Interrupt test keeps wrong scene, is convenient to the tester and analyzes.
CN2012101849613A 2012-06-07 2012-06-07 Automatic test method for cluster file system Pending CN102799519A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101849613A CN102799519A (en) 2012-06-07 2012-06-07 Automatic test method for cluster file system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101849613A CN102799519A (en) 2012-06-07 2012-06-07 Automatic test method for cluster file system

Publications (1)

Publication Number Publication Date
CN102799519A true CN102799519A (en) 2012-11-28

Family

ID=47198632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101849613A Pending CN102799519A (en) 2012-06-07 2012-06-07 Automatic test method for cluster file system

Country Status (1)

Country Link
CN (1) CN102799519A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064788A (en) * 2012-12-24 2013-04-24 清华大学 Web service modeling and test method based on interface semantic contract model
CN106021287A (en) * 2016-04-29 2016-10-12 浪潮(北京)电子信息产业有限公司 Method and device for information collection of operation system and database
CN106850352A (en) * 2017-02-10 2017-06-13 郑州云海信息技术有限公司 One kind configuration vdbench cluster method of testings
CN107222878A (en) * 2016-03-22 2017-09-29 中国移动通信集团终端有限公司 The method of testing and device of a kind of terminal
CN107302475A (en) * 2017-07-06 2017-10-27 郑州云海信息技术有限公司 The method of testing and device of a kind of Based on Distributed storage cluster
CN107423181A (en) * 2017-07-28 2017-12-01 郑州云海信息技术有限公司 The automated testing method and device of a kind of uniform storage device
CN107608897A (en) * 2017-09-26 2018-01-19 郑州云海信息技术有限公司 The method of testing and system of a kind of distributed type assemblies
CN107608884A (en) * 2017-09-12 2018-01-19 郑州云海信息技术有限公司 A kind of test device and equipment of distributed memory system core client
CN107656871A (en) * 2017-09-30 2018-02-02 郑州云海信息技术有限公司 A kind of rear end storage performance automated testing method based on Postmark
TWI624157B (en) * 2016-12-23 2018-05-11 Chunghwa Telecom Co Ltd Automated copper interference analysis and dynamic spectrum supply system and method
CN108153634A (en) * 2017-12-26 2018-06-12 郑州云海信息技术有限公司 Distributed storage cluster test method and device
CN108920480A (en) * 2018-04-17 2018-11-30 Oppo广东移动通信有限公司 A kind of processing method and equipment, computer storage medium of file system exception
CN108984390A (en) * 2018-06-04 2018-12-11 卡斯柯信号有限公司 For the automatic test general framework of signal system off-line tools and its application
CN109379223A (en) * 2018-10-18 2019-02-22 郑州云海信息技术有限公司 A kind of method and apparatus for realizing network interface card automated setting
CN111124867A (en) * 2018-10-30 2020-05-08 中移(苏州)软件技术有限公司 OpenStack testing method and device
CN113204487A (en) * 2021-05-20 2021-08-03 山东英信计算机技术有限公司 Shared test environment cleaning method, system, terminal and storage medium
CN113973068A (en) * 2021-10-20 2022-01-25 重庆紫光华山智安科技有限公司 Chaos test method and device, chaos test platform and storage medium
CN114584489A (en) * 2022-03-08 2022-06-03 浪潮云信息技术股份公司 Ssh channel-based remote environment information and configuration detection method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136790A (en) * 2006-09-01 2008-03-05 中兴通讯股份有限公司 Cluster managerial automatization test system and method of ethernet switchboard
US20090063903A1 (en) * 2007-08-30 2009-03-05 Ibm Corporation Method and apparatus for debugging application software in information handling systems over a memory mapping i/o bus
CN102368721A (en) * 2011-11-25 2012-03-07 中国科学技术大学 Performance testing system and method for MS (Media Server) clustered system
CN102394799A (en) * 2011-11-29 2012-03-28 山东中创软件工程股份有限公司 Testing method of efficiency of application server cluster and system thereof
CN102404385A (en) * 2011-10-25 2012-04-04 华中科技大学 Virtual cluster deployment system and deployment method for high performance computing
US20120084607A1 (en) * 2010-09-30 2012-04-05 Salesforce.Com, Inc. Facilitating large-scale testing using virtualization technology in a multi-tenant database environment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136790A (en) * 2006-09-01 2008-03-05 中兴通讯股份有限公司 Cluster managerial automatization test system and method of ethernet switchboard
US20090063903A1 (en) * 2007-08-30 2009-03-05 Ibm Corporation Method and apparatus for debugging application software in information handling systems over a memory mapping i/o bus
US20120084607A1 (en) * 2010-09-30 2012-04-05 Salesforce.Com, Inc. Facilitating large-scale testing using virtualization technology in a multi-tenant database environment
CN102404385A (en) * 2011-10-25 2012-04-04 华中科技大学 Virtual cluster deployment system and deployment method for high performance computing
CN102368721A (en) * 2011-11-25 2012-03-07 中国科学技术大学 Performance testing system and method for MS (Media Server) clustered system
CN102394799A (en) * 2011-11-29 2012-03-28 山东中创软件工程股份有限公司 Testing method of efficiency of application server cluster and system thereof

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
徐崇浪: "集群系统自动化测试技术研究及其工具开发", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 6, 15 June 2007 (2007-06-15), pages 137 - 63 *
李玥: "基于开放式集群架构系统的自动化测试工具的研究", 《中国优秀博硕士学位论文全文数据库 (硕士) 信息科技辑》, no. 1, 15 January 2007 (2007-01-15), pages 136 - 71 *
王兰: "集群系统的自动化测试技术的研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 7, 15 July 2009 (2009-07-15), pages 138 - 627 *

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064788B (en) * 2012-12-24 2016-03-23 清华大学 A kind of Web service modeling based on Interface Semantic Contract Model and method of testing
CN103064788A (en) * 2012-12-24 2013-04-24 清华大学 Web service modeling and test method based on interface semantic contract model
CN107222878A (en) * 2016-03-22 2017-09-29 中国移动通信集团终端有限公司 The method of testing and device of a kind of terminal
CN107222878B (en) * 2016-03-22 2020-12-22 中国移动通信集团终端有限公司 Terminal testing method and device
CN106021287B (en) * 2016-04-29 2020-02-14 浪潮(北京)电子信息产业有限公司 Information collection method and device for operating system and database
CN106021287A (en) * 2016-04-29 2016-10-12 浪潮(北京)电子信息产业有限公司 Method and device for information collection of operation system and database
TWI624157B (en) * 2016-12-23 2018-05-11 Chunghwa Telecom Co Ltd Automated copper interference analysis and dynamic spectrum supply system and method
CN106850352A (en) * 2017-02-10 2017-06-13 郑州云海信息技术有限公司 One kind configuration vdbench cluster method of testings
CN107302475A (en) * 2017-07-06 2017-10-27 郑州云海信息技术有限公司 The method of testing and device of a kind of Based on Distributed storage cluster
CN107423181A (en) * 2017-07-28 2017-12-01 郑州云海信息技术有限公司 The automated testing method and device of a kind of uniform storage device
CN107608884A (en) * 2017-09-12 2018-01-19 郑州云海信息技术有限公司 A kind of test device and equipment of distributed memory system core client
CN107608897A (en) * 2017-09-26 2018-01-19 郑州云海信息技术有限公司 The method of testing and system of a kind of distributed type assemblies
CN107656871B (en) * 2017-09-30 2021-02-05 苏州浪潮智能科技有限公司 Postmark-based automatic testing method for back-end storage performance
CN107656871A (en) * 2017-09-30 2018-02-02 郑州云海信息技术有限公司 A kind of rear end storage performance automated testing method based on Postmark
CN108153634A (en) * 2017-12-26 2018-06-12 郑州云海信息技术有限公司 Distributed storage cluster test method and device
CN108920480A (en) * 2018-04-17 2018-11-30 Oppo广东移动通信有限公司 A kind of processing method and equipment, computer storage medium of file system exception
CN108920480B (en) * 2018-04-17 2021-09-03 Oppo广东移动通信有限公司 Processing method and device for file system exception and computer storage medium
CN108984390A (en) * 2018-06-04 2018-12-11 卡斯柯信号有限公司 For the automatic test general framework of signal system off-line tools and its application
CN109379223A (en) * 2018-10-18 2019-02-22 郑州云海信息技术有限公司 A kind of method and apparatus for realizing network interface card automated setting
CN111124867A (en) * 2018-10-30 2020-05-08 中移(苏州)软件技术有限公司 OpenStack testing method and device
CN111124867B (en) * 2018-10-30 2022-12-16 中移(苏州)软件技术有限公司 OpenStack testing method and device
CN113204487A (en) * 2021-05-20 2021-08-03 山东英信计算机技术有限公司 Shared test environment cleaning method, system, terminal and storage medium
CN113973068A (en) * 2021-10-20 2022-01-25 重庆紫光华山智安科技有限公司 Chaos test method and device, chaos test platform and storage medium
CN114584489A (en) * 2022-03-08 2022-06-03 浪潮云信息技术股份公司 Ssh channel-based remote environment information and configuration detection method and system

Similar Documents

Publication Publication Date Title
CN102799519A (en) Automatic test method for cluster file system
CN108600029B (en) Configuration file updating method and device, terminal equipment and storage medium
US9292343B2 (en) Method and system for performing deployment management
US20170024299A1 (en) Providing Fault Injection to Cloud-Provisioned Machines
US8301935B2 (en) Distributed batch runner
US7512933B1 (en) Method and system for associating logs and traces to test cases
WO2019006654A1 (en) Financial self-service equipment maintenance dispatch generation method, hand-held terminal and electronic device
CN104765678A (en) Method and device for testing applications on mobile terminal
CN110750592B (en) Data synchronization method, device and terminal equipment
CN112380255A (en) Service processing method, device, equipment and storage medium
CN103927260A (en) Method and system for testing telecommunication devices
CN106919485A (en) A kind of system based on configuration hardware testing instrument on server
CN103530225A (en) Automatic compilation testing method and automatic compilation testing platform for realizing same
CN105653401A (en) Method and device for scheduling disaster recovery, operation and maintenance, monitoring and emergency start-stop of application systems
CN108804241B (en) Cross-platform task scheduling method, system, computer equipment and storage medium
CN108804279A (en) Change the method and application apparatus of daily record printing grade
CN112650676A (en) Software testing method, device, equipment and storage medium
CN104899134A (en) Automatic domain name registration server testing system and method
CN110990289B (en) Method and device for automatically submitting bug, electronic equipment and storage medium
US10089167B2 (en) Log file reduction according to problem-space network topology
CN110750453B (en) HTML 5-based intelligent mobile terminal testing method, system, server and storage medium
CN111142929A (en) Firmware configuration method, device, equipment and medium in equipment production process
CN104967532A (en) TOC technology operation and maintenance system and application method
CN102799526A (en) Distributed intelligent scheduling method
CN108228417B (en) Internet of vehicles log processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20121128