CN107220179A - A kind of automatic test script of storage system and the method for test - Google Patents

A kind of automatic test script of storage system and the method for test Download PDF

Info

Publication number
CN107220179A
CN107220179A CN201710386323.2A CN201710386323A CN107220179A CN 107220179 A CN107220179 A CN 107220179A CN 201710386323 A CN201710386323 A CN 201710386323A CN 107220179 A CN107220179 A CN 107220179A
Authority
CN
China
Prior art keywords
module
test
revert
script
storage system
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
CN201710386323.2A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710386323.2A priority Critical patent/CN107220179A/en
Publication of CN107220179A publication Critical patent/CN107220179A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses the automatic test script of storage system and the method for test, automatic test script be Test Sample Design according to excel forms, write using script ruby and tested storage system is tested, including use-case attribute module, test module;Use-case attribute module mainly includes number information, name information, description information, level information basic information modules;Testing module includes pretreatment module, test content module, postpositive disposal module, fault-tolerant processing module;Fault-tolerant processing module includes pretreatment Revert modules, postpositive disposal Revert modules;Comprise the following steps:Automatic test script Telnet is tested the test body of storage system;System login is completed by pre-treatment step and inspection, initialization of variable work;Core content into use-case is testing procedure;Testing procedure;The operation for completing to do storage device after script is normally finished by postpositive disposal recovers, and equipment is returned to the state before use-case is performed.

Description

A kind of automatic test script of storage system and the method for test
Technical field
The present invention relates to the technical field of measurement and test of storage software systems, the automation for being specifically designed a kind of storage system is surveyed Training sheet and the method for test;Have the advantages that testing efficiency is high, test quality reliability is high, shorten proving period.
Background technology
Storage software systems of the prior art support polytype RAID, the logical volumes such as RAID0, RAID1, RAID5 And a variety of functions such as snapshot extending, Remote Switched Port Analyzer, but need thousands of or even up to ten thousand test cases to ensure each module Function, some are also needed to by manually performing each test case, exist that testing efficiency is low, proving period is long, again can not The problem of ensureing the test quality reliability of storage system.
The content of the invention
For solving the above-mentioned problems of the prior art, it is an object of the present invention to provide a kind of automation of storage system Script;Particularly storage system functionality is numerous, test case substantial amounts, the present invention is reached by automatic test script Testing efficiency is high, test quality reliability is high, shorten the effect of proving period.
The present invention also provides a kind of method of utilization automatic test script to storage system automatic test.
The present invention solve technical problem technical scheme be:
A kind of automatic test script of storage system (Testscript), described automatic test script is basis The Test Sample Design of excel forms, is write using script ruby and tested storage system is tested, including use-case category Property module, test module;
The use-case attribute module mainly includes number information modules, name information modules, description information moulds Block, level information modules;
The test module includes pretreatment module, test content module, postpositive disposal module, fault-tolerant processing module, Tested storage system is tested according to testing procedure by pretreatment module, test content module, postpositive disposal module;
The fault-tolerant processing module includes pretreatment Revert modules, postpositive disposal Revert modules, utilizes processing Revert modules, postpositive disposal Revert modules, by some Revert steps realize when some operating procedure fails, should Step and its before the step of carry out recovery operation, performed using inverted order, then by each testing procedure, Revert steps with it is public Concurrence connects for collection.
A kind of utilization automatic test script comprises the following steps to the method for storage system automatic test:
1) automatic test script is tested the test body of storage system by the Telnet of telnet or ssh modes, steps on Record successfully passes pretreatment module and enters pre-treatment step, and login failure carries out abnormality processing and terminates test;
2) system login is completed by pre-treatment step and inspection, initialization of variable works;
3) it is testing procedure that pre-treatment step, which performs the correct rear core content for entering use-case,;Carried out after pretreatment failure different Often processing, carries out revert operation by completed step before pre-treatment step and terminates test;
4) testing procedure includes:Test point is divided into several testing procedures, each step therein can have one Individual checkpoint, the checkpoint of all steps, which check to be only by rear whole use-case, to be passed through, and is otherwise failure;When Checkpoint does not make to carry out abnormality processing during operation failure by checking, by the step and its before the step of carry out Revert Recovery operation, is performed using inverted order;
5) operation for completing to do storage device after script is normally finished by postpositive disposal recovers, and makes to set It is standby to return to the state before use-case is performed;Cross postpositive disposal does not make to carry out abnormality processing during operation failure by checking, this is walked It is rapid and its before the step of carry out Revert recovery operations, performed using inverted order.
Beneficial effects of the present invention:
1. the present invention improves testing efficiency by automatized script, shorten test period, be particularly suitable for use in storage system Function of uniting is numerous, test case substantial amounts environment, and automatic test script of the invention has testing efficiency height, test matter Measure reliability height, shorten the advantage of proving period.
2. adding fault-tolerant processing in script structure, recovery processing is carried out to equipment automatically.
Brief description of the drawings
Fig. 1 is the structural representation for the script invented.
Fig. 2 performs schematic diagram for the testscript of the present invention.
Embodiment
For a better understanding of the present invention, embodiments of the present invention are explained in detail below in conjunction with the accompanying drawings.
With reference to Fig. 1, Fig. 2, a kind of automatic test script of storage system (Testscript), described automatic test Script is the Test Sample Design according to excel forms, is write using script ruby and tested storage system is tested, Including use-case attribute module, test module;
The use-case attribute module mainly includes number information, name information, description information, level information Etc. basic information module;
The test module includes pretreatment module, test content module, postpositive disposal module, fault-tolerant processing module, Tested storage system is tested according to testing procedure by pretreatment module, test content module, postpositive disposal module;
The fault-tolerant processing module includes pretreatment Revert modules, postpositive disposal Revert modules, utilizes processing Revert modules, postpositive disposal Revert modules, by some Revert steps realize when some operating procedure fails, should Step and its before the step of carry out recovery operation, performed using inverted order, then by each testing procedure, Revert steps with it is public Concurrence connects for collection.
A kind of utilization automatic test script comprises the following steps to the method for storage system automatic test:
1) automatic test script is tested the test body of storage system by the Telnet of telnet or ssh modes, steps on Record successfully passes pretreatment module and enters pre-treatment step, and login failure carries out abnormality processing and terminates test;
2) work such as system login and inspection, initialization of variable is completed by pre-treatment step;
3) it is testing procedure that pre-treatment step, which performs the correct rear core content for entering use-case,;Carried out after pretreatment failure different Often processing, carries out revert operation by completed step before pre-treatment step and terminates test;
4) testing procedure includes:Test point is divided into N number of testing procedure, N number of can be one or more, wherein Each step can have a checkpoint, the checkpoint of all steps all check be only by rear whole use-case it is logical Cross, be otherwise failure;Abnormality processing is carried out when checkpoint does not make operation failure by checking, by the step and its before The step of carry out Revert recovery operations, performed using inverted order;
5) operation for completing to do storage device after script is normally finished by postpositive disposal recovers, and makes to set It is standby to return to the state before use-case is performed;Cross postpositive disposal does not make to carry out abnormality processing during operation failure by checking, this is walked It is rapid and its before the step of carry out Revert recovery operations, performed using inverted order.
Although above-mentioned the embodiment of invention is described with reference to accompanying drawing, not to the scope of the present invention Limitation, on the basis of technical scheme, those skilled in the art need not pay creative work and can make Various modifications or deform still within protection scope of the present invention.

Claims (2)

1. a kind of automatic test script of storage system, it is characterized in that, described automatic test script is according to excel shapes The Test Sample Design of formula, is write using script ruby and tested storage system is tested, including use-case attribute module, Test module;
The use-case attribute module mainly include number information modules, name information modules, description information modules, Level information modules;
The test module includes pretreatment module, test content module, postpositive disposal module, fault-tolerant processing module, passes through Pretreatment module, test content module, postpositive disposal module are tested tested storage system according to testing procedure;
The fault-tolerant processing module includes pretreatment Revert modules, postpositive disposal Revert modules, using handling Revert moulds Block, postpositive disposal Revert modules, realized by some Revert steps when some operating procedure fails, by the step and its Before the step of, carries out recovery operation, is performed using inverted order, then by each testing procedure, Revert steps and public action collection Connection.
2. the automatic test script described in a kind of utilization claim 1 is to the method for storage system automatic test, its feature It is to comprise the following steps:
1) automatic test script is tested the test body of storage system by the Telnet of telnet or ssh modes, logs in into Work(enters pre-treatment step by pretreatment module, and login failure carries out abnormality processing and terminates test;
2) system login is completed by pre-treatment step and inspection, initialization of variable works;
3) it is testing procedure that pre-treatment step, which performs the correct rear core content for entering use-case,;Exception is carried out after pretreatment failure Reason, carries out revert operation by completed step before pre-treatment step and terminates test;
4) testing procedure includes:Test point is divided into several testing procedures, each step therein there can be one Checkpoint, the checkpoint of all steps, which check to be only by rear whole use-case, to be passed through, and is otherwise failure;When Checkpoint does not make to carry out abnormality processing during operation failure by checking, by the step and its before the step of carry out Revert Recovery operation, is performed using inverted order;
5) operation for completing to do storage device after script is normally finished by postpositive disposal recovers, and makes equipment extensive The state before use-case is performed is arrived again;Cross postpositive disposal does not make to carry out abnormality processing during operation failure by checking, by the step and The step of it is previous carries out Revert recovery operations, is performed using inverted order.
CN201710386323.2A 2017-05-26 2017-05-26 A kind of automatic test script of storage system and the method for test Pending CN107220179A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710386323.2A CN107220179A (en) 2017-05-26 2017-05-26 A kind of automatic test script of storage system and the method for test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710386323.2A CN107220179A (en) 2017-05-26 2017-05-26 A kind of automatic test script of storage system and the method for test

Publications (1)

Publication Number Publication Date
CN107220179A true CN107220179A (en) 2017-09-29

Family

ID=59946677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710386323.2A Pending CN107220179A (en) 2017-05-26 2017-05-26 A kind of automatic test script of storage system and the method for test

Country Status (1)

Country Link
CN (1) CN107220179A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107818049A (en) * 2017-11-01 2018-03-20 郑州云海信息技术有限公司 Execution method, performs device and the execution equipment of a kind of test case

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010070490A1 (en) * 2008-12-18 2010-06-24 Koninklijke Philips Electronics, N.V. Software bug and performance deficiency reporting system
CN103106134A (en) * 2011-11-10 2013-05-15 阿里巴巴集团控股有限公司 Detecting method, device and system for performance deficiency

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010070490A1 (en) * 2008-12-18 2010-06-24 Koninklijke Philips Electronics, N.V. Software bug and performance deficiency reporting system
CN103106134A (en) * 2011-11-10 2013-05-15 阿里巴巴集团控股有限公司 Detecting method, device and system for performance deficiency

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
伍兴艳: "网络存储自动化测试平台的设计与实现", 《中国优秀硕士学位论文全文数据库》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107818049A (en) * 2017-11-01 2018-03-20 郑州云海信息技术有限公司 Execution method, performs device and the execution equipment of a kind of test case

Similar Documents

Publication Publication Date Title
CN102662608B (en) Method and the device of time delay are read in a kind of reduction
CN102592680B (en) Restoration device and restoration method for storage chip
CN103149527B (en) Printed circuit board (PCB) detecting device and corresponding method
CN105138461A (en) Interface testing method and device for application program
CN104569794A (en) FPGA on-line tester based on boundary scan structure and testing method thereof
CN105223889A (en) Method for automatically monitoring PMC RAID card log suitable for production line
Parrotta et al. New techniques for accelerating fault injection in VHDL descriptions
CN107508727B (en) Automatic network card information checking method and device
CN106649020A (en) Detecting method and device for storage case burn information
CN106326046B (en) The verification environment platform of Memory Controller
CN106502844A (en) A kind of method of the sAS port bandwidths of test RAID memory Is O
CN108806761A (en) A kind of SSD function test methods, system and computer storage media
CN113434346B (en) Automatic detection method and system for differential signal polarity connection
CN102262582A (en) Mobile terminal and method for detecting memory leakage thereof
CN101770416A (en) Bus testing method for new generation of peripheral connecting interface
CN107220179A (en) A kind of automatic test script of storage system and the method for test
US20100251029A1 (en) Implementing self-optimizing ipl diagnostic mode
CN106504797A (en) The automatic mode of RAID IO LED lamps in test memory
CN103778968A (en) Solid state disc (SSD) detection device integrating a plurality of flash memory cards and method thereof
CN107907838A (en) A kind of redundant power module tests system and method
CN103425558A (en) Method for achieving board card IO port test based on test configuration table
CN206818808U (en) The test system of semaphore drive system
CN103389438B (en) A kind of for the welding detection system with cpu pcb and method
CN111209146B (en) RAID card aging test method and system
CN204789978U (en) Smart electric meter trouble snatchs test equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170929

RJ01 Rejection of invention patent application after publication