CN108920371A - A kind of the QAT method for automatically testing functions and system of storage management system - Google Patents

A kind of the QAT method for automatically testing functions and system of storage management system Download PDF

Info

Publication number
CN108920371A
CN108920371A CN201810732265.9A CN201810732265A CN108920371A CN 108920371 A CN108920371 A CN 108920371A CN 201810732265 A CN201810732265 A CN 201810732265A CN 108920371 A CN108920371 A CN 108920371A
Authority
CN
China
Prior art keywords
qat
storage cluster
pass
storage
state
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
CN201810732265.9A
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 CN201810732265.9A priority Critical patent/CN108920371A/en
Publication of CN108920371A publication Critical patent/CN108920371A/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/3664Environments for testing or debugging software
    • 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)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The present invention provides a kind of QAT method for automatically testing functions of storage management system and system, method include the following steps:Step S1. creation test environment;Step S2. creates storage cluster, the IP of record storage cluster;Step S3. initializes storage cluster;The IP of step S4. Telnet storage cluster checks the QAT pass state of storage cluster;Step S5. is switched by the QAT pass to storage cluster, verifies QAT function;Step S6. outputs test result.System includes:Test environment creation module, storage cluster creation module, storage cluster initialization module, QAT pass state check module, QAT functional verification module and test result output module.The present invention realizes the automation of the pass functional test of the QAT of storage system by test script, avoids test leakage caused by manual operation and accidentally surveys phenomenon, greatly improves working efficiency.

Description

A kind of the QAT method for automatically testing functions and system of storage management system
Technical field
The invention belongs to server testing fields, and in particular to a kind of QAT Function Test Automation of storage management system Method and system.
Background technique
The storage management control system of usual server includes the interface CLI and gui interface, and user can pass through the two interfaces Storage is configured.The interface CLI is Command Line Interface, and gui interface is graphic user interface.
QAT full name is Quick Assistant Technology, is the new technology that Intel is introduced in Purley platform, The data that the function can issue front end are compressed, and storage or transmission is then carried out.By the technology, number can be greatly lowered According to bandwidth requirement needed for space needed for storage and data transmission.
The pass license control function of the QAT of storage management system be related to scene is more, operating procedure is many and diverse, repeat High factor is spent, former manual test method can consume a large amount of time, and be easy to cause scene test leakage or step test leakage, cause to deposit Storing up management system includes problem hidden danger, influences customer experience.
This is the deficiencies in the prior art, therefore, in view of the above-mentioned drawbacks in the prior art, provides a kind of storage management system QAT method for automatically testing functions and system, be necessary.
Summary of the invention
It is an object of the present invention to be related to scene for the license control function of the QAT of above-mentioned storage management system The more, factors such as operating procedure is many and diverse, multiplicity is high, former manual test method can consume a large amount of time, and be easy to cause scene Test leakage or step test leakage, causing storage management system includes the defect of problem hidden danger, provides a kind of QAT function of storage management system Energy automated testing method and system, to solve the above technical problems.
To achieve the above object, the present invention provides following technical scheme:
A kind of QAT method for automatically testing functions of storage management system, includes the following steps:
Step S1. creation test environment;
Step S2. creates storage cluster, the IP of record storage cluster;
Step S3. initializes storage cluster;
The IP of step S4. Telnet storage cluster checks the QAT pass state of storage cluster;
Step S5. is switched by the QAT pass to storage cluster, verifies QAT function;
Step S6. outputs test result.
Further, specific step is as follows by step S1:
Step S11. installs storage management system;Storage management system is installed by ISO mirror-image fashion;,
Step S12. installs 2.7 version of python;The python of downloading 2.7 versions of installation, sets;
Step S13. loads the library paramiko;The library paramiko is installed by way of installation kit or pip;
Step S14. installs QAT driving;When some storage management systems start, the driving of QAT can be installed automatically, there is no QAT The step of driving installation.
Further, storage cluster, the IP of record storage cluster are created according to storage user's manual in step S2.
Further, specific step is as follows by step S3:
Step S31. logs in the graphic user interface of storage management system with the IP of storage cluster;
Step S32. initializes storage cluster;
Step S33. initialization terminates, and exits storage management system.Web browser is opened, storage cluster is inputted in address field IP click carriage return, into GUI login interface, according to prompt, the operation initialized after initialization, exits GUI circle Face.
Further, specific step is as follows by step S4:
Step S41. calls the Telnet SSH order in the library paramiko to log in storage cluster IP;
Step S42. checks storage cluster initial Q AT pass state.
Further, step S42. checks the state of the storage cluster initial Q AT pass;
Export the inspection result of storage cluster QAT pass state;
When storage cluster initial Q AT pass state is state of activation, while exporting the value of the QAT pass.
Further, specific step is as follows by step S5:
Step S51. judges the state of the QAT pass of storage cluster;
Step S52. closes the QAT pass of storage cluster when the state of the QAT pass of storage cluster is state of activation; Enter step S54;
Step S53. enters step S54 when the state of the QAT pass of storage cluster is unactivated state;
Step S54. creates compression coil, and judges whether creation failure;
The common volume of creation, and judge whether to create successfully;
By common volume switching at compression coil, and judge whether convert failed;
Step S55. opens the QAT pass of activation storage cluster;
Step S56. creates compression coil, and judges whether to create successfully;
By common volume switching at compression coil, and judge whether to convert successfully;
Compression coil is converted into commonly rolling up, and judges whether to create successfully;
The QAT pass of step S57. closing storage cluster;
Step S58. creates compression coil, and judges whether creation failure;
Compression coil is converted into commonly rolling up, and judges whether to convert successfully;
By common volume switching at compression coil, and judge whether convert failed.The pass control function of QAT includes opening the pass When can create compression coil, common volume can be converted to compression coil, compression coil and can be converted to common volume, not influence commonly to roll up Creation;Compression coil can not be created when closing the pass, commonly volume can not be converted into compression coil, compression coil can be converted commonly Volume does not influence commonly to roll up creation.
Further, specific step is as follows by step S6:
Step S61. deletes the volume of creation;
Step S62. outputs test result;
When test does not pass through, the auxiliary information of assignment test mistake is exported.
Further, further include in step S52:When the state of the QAT pass of storage cluster is to have tried out state of activation When, close the QAT pass of storage cluster;Enter step S54;
When the state of the QAT pass of storage cluster is that state of activation can be used, S54 is entered step.
The present invention gives following technical solution:
A kind of QAT Function Test Automation system of storage management system, including:
Environment creation module is tested, for creating test environment;
Storage cluster creation module, for creating storage cluster;
Storage cluster initialization module, for being initialized to storage cluster;
QAT pass state checks module, for the IP of Telnet storage cluster, checks the QAT pass shape of storage cluster State;
QAT functional verification module verifies QAT function for switching by the QAT pass to storage cluster;
Test result output module, for outputing test result.
The beneficial effects of the present invention are:
The present invention realizes the automation of the pass functional test of the QAT of storage system by test script, avoids manual operation Caused by test leakage and accidentally survey phenomenon, greatly improve working efficiency.
In addition, design principle of the present invention is reliable, structure is simple, has very extensive application prospect.
It can be seen that compared with prior art, the present invention implementing with substantive distinguishing features outstanding and significant progress Beneficial effect be also obvious.
Detailed description of the invention
Fig. 1 is flow chart of the method for the present invention;
Fig. 2 is the flow diagram that switch verifying QAT function is carried out to the QAT pass of storage cluster;
Fig. 3 is system schematic of the invention;
Wherein, 1- tests environment creation module;2- storage cluster creation module;3- storage cluster initial module;The 4-QAT pass State checks module;5-QAT functional verification module;6- test result output module.
Specific embodiment:
To enable the purpose of the present invention, feature, advantage more obvious and understandable, it is embodied below in conjunction with the present invention Attached drawing in example, is clearly and completely described the technical solution in the present invention.
Embodiment 1:
As shown in Figure 1, the present invention provides a kind of QAT method for automatically testing functions of storage management system, include the following steps:
Step S1. creation test environment;Specific step is as follows:
Step S11. installs storage management system;
Step S12. installs 2.7 version of python;
Step S13. loads the library paramiko;
Step S14. installs QAT driving;
Step S2. creates storage cluster, the IP of record storage cluster according to storage user's manual;
Step S3. initializes storage cluster;Specific step is as follows:
Step S31. logs in the graphic user interface of storage management system with the IP of storage cluster;
Step S32. initializes storage cluster;
Step S33. initialization terminates, and exits storage management system;
The IP of step S4. Telnet storage cluster checks the QAT pass state of storage cluster;Specific step is as follows:
Step S41. calls the Telnet SSH order in the library paramiko to log in storage cluster IP;
Step S42. checks storage cluster initial Q AT pass state;
Export the inspection result of storage cluster QAT pass state;
When storage cluster initial Q AT pass state is state of activation, while exporting the value of the QAT pass;
Step S5. is switched by the QAT pass to storage cluster, verifies QAT function;
Step S6. outputs test result.
Embodiment 2:
As shown in Fig. 2, in above-described embodiment 1,
Step S5. is switched by the QAT pass to storage cluster, verifies QAT function;Specific step is as follows:
Step S51. judges the state of the QAT pass of storage cluster;
Step S52. closes the QAT pass of storage cluster when the state of the QAT pass of storage cluster is state of activation; Enter step S54;
Step S53. enters step S54 when the state of the QAT pass of storage cluster is unactivated state;
Step S54. creates compression coil, and judges whether creation failure;
The common volume of creation, and judge whether to create successfully;
By common volume switching at compression coil, and judge whether convert failed;
Step S55. opens the QAT pass of activation storage cluster;
Step S56. creates compression coil, and judges whether to create successfully;
By common volume switching at compression coil, and judge whether to convert successfully;
Compression coil is converted into commonly rolling up, and judges whether to create successfully;
The QAT pass of step S57. closing storage cluster;
Step S58. creates compression coil, and judges whether creation failure;
Compression coil is converted into commonly rolling up, and judges whether to convert successfully;
By common volume switching at compression coil, and judge whether convert failed;
Step S6. outputs test result;Specific step is as follows:
Step S61. deletes the volume of creation;
Step S62. outputs test result;
When test does not pass through, the auxiliary information of assignment test mistake is exported.When test does not pass through, mistake auxiliary letter can be prompted Breath, convenient for discovery mistake in time.
In above-described embodiment 2, further include in step S52:When the state of the QAT pass of storage cluster is to have tried out activation When state, the QAT pass of storage cluster is closed;Enter step S54;
When the state of the QAT pass of storage cluster is that state of activation can be used, S54 is entered step.
Embodiment 3:
As shown in figure 3, a kind of QAT Function Test Automation system of storage management system, including:
Environment creation module 1 is tested, for creating test environment;
Storage cluster creation module 2, for creating storage cluster;
Storage cluster initialization module 3, for being initialized to storage cluster;
QAT pass state checks module 4, for the IP of Telnet storage cluster, checks the QAT pass shape of storage cluster State;
QAT functional verification module 5 verifies QAT function for switching by the QAT pass to storage cluster;
Test result output module 6, for outputing test result.
The embodiment of the present invention be it is illustrative and not restrictive, above-described embodiment be only to aid in understanding the present invention, because The present invention is not limited to the embodiments described in specific embodiment for this, all by those skilled in the art's technology according to the present invention Other specific embodiments that scheme obtains, also belong to the scope of protection of the invention.

Claims (10)

1. a kind of QAT method for automatically testing functions of storage management system, which is characterized in that include the following steps:
Step S1. creation test environment;
Step S2. creates storage cluster, the IP of record storage cluster;
Step S3. initializes storage cluster;
The IP of step S4. Telnet storage cluster checks the QAT pass state of storage cluster;
Step S5. is switched by the QAT pass to storage cluster, verifies QAT function;
Step S6. outputs test result.
2. a kind of QAT method for automatically testing functions of storage management system as described in claim 1, which is characterized in that step Specific step is as follows by rapid S1:
Step S11. installs storage management system;
Step S12. installs 2.7 version of python;
Step S13. loads the library paramiko;
Step S14. installs QAT driving.
3. a kind of QAT method for automatically testing functions of storage management system as described in claim 1, which is characterized in that step According to storage user's manual in S2, storage cluster, the IP of record storage cluster are created.
4. a kind of QAT method for automatically testing functions of storage management system as described in claim 1, which is characterized in that step Specific step is as follows by S3:
Step S31. logs in the graphic user interface of storage management system with the IP of storage cluster;
Step S32. initializes storage cluster;
Step S33. initialization terminates, and exits storage management system.
5. a kind of QAT method for automatically testing functions of storage management system as described in claim 1, which is characterized in that step Specific step is as follows by S4:
Step S41. calls the Telnet SSH order in the library paramiko to log in storage cluster IP;
Step S42. checks storage cluster initial Q AT pass state.
6. a kind of QAT method for automatically testing functions of storage management system as described in claim 1, which is characterized in that step Rapid S42. checks the state of the storage cluster initial Q AT pass;
Export the inspection result of storage cluster QAT pass state;
When storage cluster initial Q AT pass state is state of activation, while exporting the value of the QAT pass.
7. a kind of QAT method for automatically testing functions of storage management system as described in claim 1, which is characterized in that step Specific step is as follows by rapid S5:
Step S51. judges the state of the QAT pass of storage cluster;
Step S52. closes the QAT pass of storage cluster when the state of the QAT pass of storage cluster is state of activation; Enter step S54;
Step S53. enters step S54 when the state of the QAT pass of storage cluster is unactivated state;
Step S54. creates compression coil, and judges whether creation failure;
The common volume of creation, and judge whether to create successfully;
By common volume switching at compression coil, and judge whether convert failed;
Step S55. opens the QAT pass of activation storage cluster;
Step S56. creates compression coil, and judges whether to create successfully;
By common volume switching at compression coil, and judge whether to convert successfully;
Compression coil is converted into commonly rolling up, and judges whether to create successfully;
The QAT pass of step S57. closing storage cluster;
Step S58. creates compression coil, and judges whether creation failure;
Compression coil is converted into commonly rolling up, and judges whether to convert successfully;
By common volume switching at compression coil, and judge whether convert failed.
8. a kind of QAT method for automatically testing functions of storage management system as claimed in claim 7, which is characterized in that step Specific step is as follows by rapid S6:
Step S61. deletes the volume of creation;
Step S62. outputs test result;
When test does not pass through, the auxiliary information of assignment test mistake is exported.
9. a kind of QAT method for automatically testing functions of storage management system as claimed in claim 7, which is characterized in that step Further include in rapid S52:When the state of the QAT pass of storage cluster is to have tried out state of activation, the QAT of storage cluster is closed The pass;Enter step S54;
When the state of the QAT pass of storage cluster is that state of activation can be used, S54 is entered step.
10. a kind of QAT Function Test Automation system of storage management system, which is characterized in that including:
Test environment creation module(1), for creating test environment;
Storage cluster creation module(2), for creating storage cluster;
Storage cluster initialization module(3), for being initialized to storage cluster;
QAT pass state checks module(4), for the IP of Telnet storage cluster, check the QAT pass of storage cluster State;
QAT functional verification module(5), for switching by the QAT pass to storage cluster, verify QAT function;
Test result output module(6), for outputing test result.
CN201810732265.9A 2018-07-05 2018-07-05 A kind of the QAT method for automatically testing functions and system of storage management system Pending CN108920371A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810732265.9A CN108920371A (en) 2018-07-05 2018-07-05 A kind of the QAT method for automatically testing functions and system of storage management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810732265.9A CN108920371A (en) 2018-07-05 2018-07-05 A kind of the QAT method for automatically testing functions and system of storage management system

Publications (1)

Publication Number Publication Date
CN108920371A true CN108920371A (en) 2018-11-30

Family

ID=64425340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810732265.9A Pending CN108920371A (en) 2018-07-05 2018-07-05 A kind of the QAT method for automatically testing functions and system of storage management system

Country Status (1)

Country Link
CN (1) CN108920371A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795033A (en) * 2019-10-18 2020-02-14 苏州浪潮智能科技有限公司 Storage management method, system, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0415319A2 (en) * 1989-08-29 1991-03-06 Genrad, Inc. Improved method and apparatus for circuit board testing with controlled backdrive stress
CN107220167A (en) * 2017-05-27 2017-09-29 郑州云海信息技术有限公司 A kind of method of QAT performance automatic tests
CN107402833A (en) * 2017-06-23 2017-11-28 郑州云海信息技术有限公司 A kind of method that functional module in storage system is tested automatically
CN107885629A (en) * 2017-11-16 2018-04-06 郑州云海信息技术有限公司 A kind of QAT performance comparison method and system based on OpenSSL

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0415319A2 (en) * 1989-08-29 1991-03-06 Genrad, Inc. Improved method and apparatus for circuit board testing with controlled backdrive stress
CN107220167A (en) * 2017-05-27 2017-09-29 郑州云海信息技术有限公司 A kind of method of QAT performance automatic tests
CN107402833A (en) * 2017-06-23 2017-11-28 郑州云海信息技术有限公司 A kind of method that functional module in storage system is tested automatically
CN107885629A (en) * 2017-11-16 2018-04-06 郑州云海信息技术有限公司 A kind of QAT performance comparison method and system based on OpenSSL

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795033A (en) * 2019-10-18 2020-02-14 苏州浪潮智能科技有限公司 Storage management method, system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US9197432B2 (en) Adaptive test system for network function and performance evaluation
CN108920250A (en) The method and device of Application Container
CN111147322A (en) Test system and method for micro service architecture of 5G core network
CN105068909B (en) A kind of simulation test development platform of embedded memory
CN101242621A (en) An automatic testing method and system based on interface
CN106776320A (en) Android intelligent terminal automatization test system and method
CN106681775A (en) Method for achieving online batch upgrading of hard disk firmware through RAID card under Linux system
CN104410554A (en) Method or testing WOL (Wake On Lan) function of server
CN104980552B (en) Realize the method and system of Android mobile terminal automatic test
CN103605606B (en) A kind of embedded software test use-case batch execution method that can automatically change
CN114281680B (en) Web automatic testing method and system
CN108920371A (en) A kind of the QAT method for automatically testing functions and system of storage management system
CN106778264A (en) The application program analysis method and analysis system of a kind of mobile client
CN106209503A (en) RPC interface test method and system
CN102779067A (en) Method and device of shortcut operation setup
CN113760730A (en) Automatic testing method and device
CN117278452A (en) Method and device for recording and playing back flow, electronic equipment and computer storage medium
CN102096630B (en) Software testing method and device
CN107766193A (en) A kind of IB cards performance automatic test method and system
CN113221111A (en) Penetration testing system for network security
CN109558327A (en) Writing method and system of BMC log and related components
CN109802866A (en) A kind of network interface card SR-IOV function test method, device, terminal and storage medium
CN107798244A (en) A kind of method and device for detecting Remote Code Execution Vulnerability
CN109828929A (en) The anti-tamper method for testing security of hard disk firmware, system, terminal and storage medium
CN115454856B (en) Multi-application security detection method, device, medium and electronic 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181130