CN109995617A - Automated testing method, device, equipment and the storage medium of Host Administration characteristic - Google Patents
Automated testing method, device, equipment and the storage medium of Host Administration characteristic Download PDFInfo
- Publication number
- CN109995617A CN109995617A CN201910290161.1A CN201910290161A CN109995617A CN 109995617 A CN109995617 A CN 109995617A CN 201910290161 A CN201910290161 A CN 201910290161A CN 109995617 A CN109995617 A CN 109995617A
- Authority
- CN
- China
- Prior art keywords
- test
- node
- cluster
- host administration
- log
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/069—Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/16—Implementing security features at a particular protocol layer
- H04L63/168—Implementing security features at a particular protocol layer above the transport layer
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of automated testing methods of Host Administration characteristic, in this programme, when testing Host Administration characteristic, management node is only needed to create test cluster in storage pool, and test script is sent to the test cluster, after such test cluster receives the test script, the test to Host Administration characteristic can be realized automatically, and the finally obtained test log including test result is sent to management node, to realize the automatic test to Host Administration characteristic;The invention also discloses automatic test device, equipment and the computer readable storage mediums of a kind of Host Administration characteristic, are equally able to achieve above-mentioned technical effect.
Description
Technical field
The present invention relates to automatization testing technique fields, more specifically to a kind of automation of Host Administration characteristic
Test method, device, equipment and computer readable storage medium.
Background technique
Host Administration be user by storage volume or catalogue sharing to client when, client-side information, which will record, to be stored
It is interior, so user can be managed collectively these client hosts, facilitate operation.Mass memory management system is a kind of point
Cloth storage system can meet cloud computing, big data, based on software definition and hardware reconstruction theory, deposit for file storage, object
Storage, block storage provide unified software definition solution.Host Administration characteristic is as an important spy in mass memory
Property technology, in video monitoring, constant code stream is all played an important role in multiple delivery to customer scenes such as big data analysis.?
That is Host Administration characteristic is an important characteristic technology, the direct shadow of characteristic technology in mass memory management system
The reliability of system is rung.
Therefore, how automatic test is carried out to Host Administration characteristic, is those skilled in the art's problem to be solved.
Summary of the invention
The purpose of the present invention is to provide automated testing method, device, equipment and the calculating of a kind of Host Administration characteristic
Machine readable storage medium storing program for executing carries out automatic test to Host Administration characteristic to realize.
To achieve the above object, the embodiment of the invention provides following technical solutions:
A kind of automated testing method of Host Administration characteristic is used for automatization test system, the automatic test system
System includes management node, and the storage pool being made of memory node;The automated testing method includes:
Management node creates test cluster according to the test request to Host Administration characteristic out of storage pool;
Host Administration characteristic test script corresponding with the test request is sent to the test cluster, so that described
Test cluster gives storage volume or catalogue sharing to node to be measured, executes management operation to node to be measured, and according to operating result
Generate test log;
Receive the test log that the test cluster is sent.
Wherein, after the test log for receiving the test cluster transmission, further includes:
Unused state is set by the state of node each in the test cluster.
Wherein, the access state of each node in the storage pool is SSH without cryptographic acess state.
Wherein, after the test log for receiving the test cluster transmission, further includes:
Parse the test log;
Judge to execute node to be measured whether the operating result of management operation is to operate successfully;If so, determining host pipe
Manage characteristic test success.
A kind of automatic test device of Host Administration characteristic, comprising:
Test cluster creation module, for creating test out of storage pool according to the test request to Host Administration characteristic
Cluster;
Test request sending module, for Host Administration characteristic test script corresponding with the test request to be sent to
The test cluster executes pipe to node to be measured so that the test cluster gives storage volume or catalogue sharing to node to be measured
Reason operation, and test log is generated according to operating result;
Test log object module, the test log sent for receiving the test cluster.
Wherein, this programme further include:
Node initializing module, after receiving the test log that the test cluster is sent, by the test set
The state of each node is set as unused state in group.
Wherein, the access state of each node in the storage pool is SSH without cryptographic acess state.
Wherein, this programme includes:
Test log parsing module, for parsing the test log;
Test result determination module, for judge to node to be measured execute management operation operating result whether be operation at
Function;If so, determining Host Administration characteristic test success.
A kind of automated test device of Host Administration characteristic, comprising:
Memory, for storing computer program;
Processor, the step of above-mentioned automated testing method is realized when for executing the computer program.
A kind of computer readable storage medium is stored with computer program on the computer readable storage medium, described
The step of above-mentioned automated testing method is realized when computer program is executed by processor.
By above scheme it is found that a kind of automated testing method of Host Administration characteristic provided in an embodiment of the present invention,
For automatization test system, the automatization test system includes management node, and the storage pool being made of memory node;
The automated testing method includes: management node according to the test request to Host Administration characteristic, creates and surveys out of storage pool
Try cluster;Host Administration characteristic test script corresponding with the test request is sent to the test cluster, so that described
Test cluster gives storage volume or catalogue sharing to node to be measured, executes management operation to node to be measured, and according to operating result
Generate test log;Receive the test log that the test cluster is sent.
As it can be seen that in the present embodiment, when testing Host Administration characteristic, it is only necessary to which management node is created in storage pool
Test cluster, and test script is sent to the test cluster, it, can be automatically real after such test cluster receives the test script
Now to the test of Host Administration characteristic, and the finally obtained test log including test result is sent to management node, from
And realize the automatic test to Host Administration characteristic;The invention also discloses a kind of automatic tests of Host Administration characteristic
Device, equipment and computer readable storage medium are equally able to achieve above-mentioned technical effect.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of automated testing method structural schematic diagram of Host Administration characteristic disclosed by the embodiments of the present invention;
Fig. 2 is a kind of testing process schematic diagram disclosed by the embodiments of the present invention;
Fig. 3 is a kind of automatic test device structural schematic diagram of Host Administration characteristic disclosed by the embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses automated testing method, device, equipment and the computers of a kind of Host Administration characteristic
Readable storage medium storing program for executing carries out automatic test to Host Administration characteristic to realize.
Referring to Fig. 1, a kind of automated testing method of Host Administration characteristic provided in an embodiment of the present invention, for automating
Test macro, the automatization test system include management node, and the storage pool being made of memory node;The automation
Test method includes:
S101, management node create test cluster according to the test request to Host Administration characteristic out of storage pool;
Specifically, automatization test system includes management node and memory node, using memory node as test lead, and create
Build the memory resource pool of test node, it should be noted that since this programme needs to integrate several memory nodes, set up
One storage pool, when in order to guarantee to have reading and writing data or service operations, each node can be timely responded to, therefore this programme needs
Be arranged each node in storage pool access state be SSH without cryptographic acess state, can make so different nodes it
Between carry out the access without password.In the present solution, using management node as server-side, by the management node United Dispatching of server-side
End node is tested, sets up automatic test platform, and execute automatic test.
It should be noted that creating resource pool monitoring module in management node in this programme, resource pool is mainly monitored
Internal segment three-point state information and scheduling configuration.The node status information are as follows: idle state and use state, if the node by
Calling is carrying out test, then when creating test cluster, just without the concern for the node;Scheduling configuration refers to: when having
When node state is the enabled node of idle state, these idle nodal informations are obtained by scheduling configuration, and return to clothes
The management node at business end, in case creation test cluster.
Further, after the management node in this programme receives test request, test object corresponding to the request is analyzed,
The test object is host management characteristic in this programme, needs to create the test mould of Host Administration characteristic according to the test request
Block.After test module creation, automation task can be submitted in the management node of server-side, which is test Host Administration
The task namely test module of characteristic specifically include that scheduler task configuration module, test cluster configuration module, script bank configuration
Module.
Due in the present solution, configuration file corresponding from different test objects is stored, in the present solution, needing
It is provided with to set up in the configuration file and survey to determine configuration file corresponding with test object by scheduler task configuration module
Try configuration parameter used in cluster;After configuration file determines, need through test cluster configuration module according to the configuration file,
The idle state of storage pool interior nodes specifically can be checked by monitoring module in test lead deployment test cluster, dispatched
Idle memory node sets up test cluster;Script bank configuration module is mainly used to configure the test to Host Administration characteristic test
Script, and the test cluster that the test script is uploaded to establishment is executed into automatic test.
S102, Host Administration characteristic test script corresponding with the test request is sent to the test cluster, with
Make the test cluster that storage volume or catalogue sharing are executed management operation to node to be measured to node to be measured, and according to behaviour
Make result and generates test log;
By S101 as can be seen that when testing Host Administration characteristic, test cluster is created according to test request,
And the test script for testing Host Administration characteristic is uploaded to test cluster, for the test cluster, there is a main section
Point, therefore management node only needs for test script to be uploaded to host node execution.Host node receives the test script
Afterwards, just other nodes in cluster are tested according to the test script, such as: by storage volume or catalogue sharing give to
Node is surveyed, management operation is executed to node to be measured, management operation includes unified carry, is deleted, a variety of operations such as grouping.
S103, the test log that the test cluster is sent is received.
Specifically, after management node receives the test log that test cluster is sent, test cluster can have been represented
Host Administration characteristic test has been executed, therefore, after management node receives the test log that test cluster is sent, can also have been wrapped
It includes: setting unused state for the state of node each in test cluster.
It is understood that the test assignment that management node receives not only includes appointing to Host Administration characteristic test
Business can also include other tasks, therefore, for the ease of the scheduling of multitask queue, it is ensured that being not carried out for task has and can call
Idle node need the nodal information of the test cluster at initialization test end after each test assignment, also will should
Node initializing in test cluster is idle state, to facilitate the execution of follow-up work.Also, it is generated due to test cluster
After test log uploads to the correspondence catalogue of server-side management node, initialization step is just executed, therefore, test log is not tested
Try the influence of end node initialization.
It referring to fig. 2, is that a kind of testing process schematic diagram provided in an embodiment of the present invention receives as seen in Figure 2
After test request, test assignment corresponding with the request will create, and submit, then set up according to the task call idle node
Automatic test cluster environment then constructs test cluster if there is idle node, if it is not, waiting;In building test set
When group, judge whether to construct successfully, if building failure, judges whether there is satisfactory idle node, continue to construct;Such as
Fruit constructs successfully, then executes automatic test, when executing automatic test, passes through the entrance foot of starting automatic test first
This, obtains test script by the entrance script and executes, record log information;After the completion of script execution, test day is uploaded
Will is to management node, and each memory node in initialization test cluster, empties environment for node and is set to idle state.
It in summary it can be seen, the test frame of this programme is to be accessed based on ssh remote protocol, to realize to test lead
The control of node accesses, and in turn, builds cluster according to the test request automatic deployment, executes automatic test task, and feed back
Automatic test result.Multiple automatic dispatching tasks can be carried out simultaneously according to test lead node number simultaneously concurrently to execute.?
That is this automated test frame that this programme proposes, realizes the automatic test to Host Administration characteristic, also,
It is dispatched, memory node can be carried out continual for a long time automatic by the monitoring module and task module of server-side management node
Change test, is not limited solely to Host Administration characteristic automatic test, can effectively promote automatic test dynamics.
Based on the above embodiment, in the present embodiment, after the test log for receiving the test cluster transmission, also
Include:
Parse the test log;Judge to execute node to be measured whether the operating result of management operation is to operate successfully;
If so, determining Host Administration characteristic test success.
In the present embodiment, it needs to parse the test log, the operation of all management operations is described in the test log
As a result, illustrate Host Administration characteristic test success if all management operations are performed both by success, and otherwise, test crash,
If test crash, can by checking test log, the abnormal conditions occurred in test process are checked and be positioned,
The reason of finding out test crash.
In summary it can be seen, in the present embodiment, test cluster according to test script to Host Administration characteristic test after, will
Test log is sent to management node, and management node manages the implementing result operated by what is recorded in the analysis test log,
It can determine to whether Host Administration characteristic is successfully tested, to realize the automatic test to Host Administration characteristic.
Automatic test device provided in an embodiment of the present invention is introduced below, automatic test dress described below
Setting can be cross-referenced with above-described automated testing method.
Referring to Fig. 3, a kind of automatic test device of Host Administration characteristic provided in an embodiment of the present invention, comprising:
Test cluster creation module 100, for creating and surveying out of storage pool according to the test request to Host Administration characteristic
Try cluster;
Test request sending module 200, for sending out Host Administration characteristic test script corresponding with the test request
It send to the test cluster, so that the test cluster gives storage volume or catalogue sharing to node to be measured, node to be measured is held
Row management operation, and test log is generated according to operating result;
Test log object module 300, the test log sent for receiving the test cluster.
Wherein, this programme further include:
Node initializing module, after receiving the test log that the test cluster is sent, by the test set
The state of each node is set as unused state in group.
Wherein, the access state of each node in the storage pool is SSH without cryptographic acess state.
Wherein, this programme further include:
Test log parsing module, for parsing the test log;
Test result determination module, for judge to node to be measured execute management operation operating result whether be operation at
Function;If so, determining Host Administration characteristic test success.
The embodiment of the invention also provides a kind of automated test devices of Host Administration characteristic, comprising:
Memory, for storing computer program;
Processor realizes the automatic test side as described in above method embodiment when for executing the computer program
The step of method.
The embodiment of the invention also provides a kind of computer readable storage medium, deposited on the computer readable storage medium
Computer program is contained, is realized when the computer program is executed by processor such as the automatic test in above method embodiment
The step of method.
Wherein, the storage medium may include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory,
ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store program
The medium of code.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other
The difference of embodiment, the same or similar parts in each embodiment may refer to each other.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (10)
1. a kind of automated testing method of Host Administration characteristic, which is characterized in that it is used for automatization test system, it is described automatic
Changing test macro includes management node, and the storage pool being made of memory node;The automated testing method includes:
Management node creates test cluster according to the test request to Host Administration characteristic out of storage pool;
Host Administration characteristic test script corresponding with the test request is sent to the test cluster, so that the test
Cluster gives storage volume or catalogue sharing to node to be measured, executes management operation to node to be measured, and generate according to operating result
Test log;
Receive the test log that the test cluster is sent.
2. automated testing method according to claim 1, which is characterized in that described to receive what the test cluster was sent
After test log, further includes:
Unused state is set by the state of node each in the test cluster.
3. automated testing method according to claim 2, which is characterized in that the visit of each node in the storage pool
Ask that state is SSH without cryptographic acess state.
4. according to claim 1 to automated testing method described in 3 any one, which is characterized in that described to receive the survey
After the test log of examination collection pocket transmission, further includes:
Parse the test log;
Judge to execute node to be measured whether the operating result of management operation is to operate successfully;If so, determining that Host Administration is special
Property is successfully tested.
5. a kind of automatic test device of Host Administration characteristic characterized by comprising
Test cluster creation module, for creating test cluster out of storage pool according to the test request to Host Administration characteristic;
Test request sending module, for will Host Administration characteristic test script corresponding with the test request be sent to it is described
Test cluster executes management behaviour to node to be measured so that the test cluster gives storage volume or catalogue sharing to node to be measured
Make, and test log is generated according to operating result;
Test log object module, the test log sent for receiving the test cluster.
6. automatic test device according to claim 5, which is characterized in that further include:
Node initializing module will be in the test cluster after receiving the test log that the test cluster is sent
The state of each node is set as unused state.
7. automatic test device according to claim 6, which is characterized in that the visit of each node in the storage pool
Ask that state is SSH without cryptographic acess state.
8. according to automatic test device described in claim 5 to 7 any one, which is characterized in that further include:
Test log parsing module, for parsing the test log;
Test result determination module executes whether the operating result of management operation is to operate successfully to node to be measured for judging;
If so, determining Host Administration characteristic test success.
9. a kind of automated test device of Host Administration characteristic characterized by comprising
Memory, for storing computer program;
Processor realizes the automated testing method as described in any one of Claims 1-4 when for executing the computer program
The step of.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program, realizing the automated testing method as described in any one of Claims 1-4 when the computer program is executed by processor
Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910290161.1A CN109995617A (en) | 2019-04-11 | 2019-04-11 | Automated testing method, device, equipment and the storage medium of Host Administration characteristic |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910290161.1A CN109995617A (en) | 2019-04-11 | 2019-04-11 | Automated testing method, device, equipment and the storage medium of Host Administration characteristic |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109995617A true CN109995617A (en) | 2019-07-09 |
Family
ID=67133297
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910290161.1A Pending CN109995617A (en) | 2019-04-11 | 2019-04-11 | Automated testing method, device, equipment and the storage medium of Host Administration characteristic |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109995617A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI750509B (en) * | 2019-09-11 | 2021-12-21 | 英業達股份有限公司 | Automatic test method for reliability and functionality of electronic device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107302475A (en) * | 2017-07-06 | 2017-10-27 | 郑州云海信息技术有限公司 | The method of testing and device of a kind of Based on Distributed storage cluster |
CN109408314A (en) * | 2018-11-09 | 2019-03-01 | 郑州云海信息技术有限公司 | A kind of catalogue quota automated testing method based on mass memory |
CN109408316A (en) * | 2018-11-13 | 2019-03-01 | 郑州云海信息技术有限公司 | A kind of file polymerization property test method and device |
CN109508294A (en) * | 2018-11-13 | 2019-03-22 | 郑州云海信息技术有限公司 | A kind of file is from simplifying characteristic test method and device |
CN109597764A (en) * | 2018-12-10 | 2019-04-09 | 浪潮(北京)电子信息产业有限公司 | A kind of test method and relevant apparatus of catalogue quota |
-
2019
- 2019-04-11 CN CN201910290161.1A patent/CN109995617A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107302475A (en) * | 2017-07-06 | 2017-10-27 | 郑州云海信息技术有限公司 | The method of testing and device of a kind of Based on Distributed storage cluster |
CN109408314A (en) * | 2018-11-09 | 2019-03-01 | 郑州云海信息技术有限公司 | A kind of catalogue quota automated testing method based on mass memory |
CN109408316A (en) * | 2018-11-13 | 2019-03-01 | 郑州云海信息技术有限公司 | A kind of file polymerization property test method and device |
CN109508294A (en) * | 2018-11-13 | 2019-03-22 | 郑州云海信息技术有限公司 | A kind of file is from simplifying characteristic test method and device |
CN109597764A (en) * | 2018-12-10 | 2019-04-09 | 浪潮(北京)电子信息产业有限公司 | A kind of test method and relevant apparatus of catalogue quota |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI750509B (en) * | 2019-09-11 | 2021-12-21 | 英業達股份有限公司 | Automatic test method for reliability and functionality of electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11550630B2 (en) | Monitoring and automatic scaling of data volumes | |
US11481244B2 (en) | Methods and systems that verify endpoints and external tasks in release-pipeline prior to execution | |
US10515000B2 (en) | Systems and methods for performance testing cloud applications from multiple different geographic locations | |
CN106844198B (en) | Distributed dispatching automation test platform and method | |
EP3149591B1 (en) | Tracking application deployment errors via cloud logs | |
US9712410B1 (en) | Local metrics in a service provider environment | |
US10116534B2 (en) | Systems and methods for WebSphere MQ performance metrics analysis | |
CN110162471A (en) | A kind of method for testing pressure and system based on container cloud | |
CN105049268A (en) | Distributed computing resource allocation system and task processing method | |
CN110083455B (en) | Graph calculation processing method, graph calculation processing device, graph calculation processing medium and electronic equipment | |
CN109981419A (en) | Test method, device, system, equipment and the storage medium of load balancing characteristic | |
US9535754B1 (en) | Dynamic provisioning of computing resources | |
CN109902028A (en) | Automated testing method, device, equipment and the storage medium of ACL characteristic | |
CN114745295A (en) | Data acquisition method, device, equipment and readable storage medium | |
CN113157411B (en) | Celery-based reliable configurable task system and device | |
CN109597764A (en) | A kind of test method and relevant apparatus of catalogue quota | |
CN108733545B (en) | Pressure testing method and device | |
CN116974874A (en) | Database testing method and device, electronic equipment and readable storage medium | |
US11330068B2 (en) | Methods and systems for recording user operations on a cloud management platform | |
CN114610597A (en) | Pressure testing method, device, equipment and storage medium | |
CN109995617A (en) | Automated testing method, device, equipment and the storage medium of Host Administration characteristic | |
CN103067507A (en) | Internet cloud computing resource virtualization packaging system and method | |
CN115617668A (en) | Compatibility testing method, device and equipment | |
CN109408314A (en) | A kind of catalogue quota automated testing method based on mass memory | |
CN116501482A (en) | Cloud computing management system, cloud computing management device, readable storage medium and computing 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: 20190709 |
|
RJ01 | Rejection of invention patent application after publication |