CN110058920A - Virtual machine performance detection method and device, electronic equipment, storage medium - Google Patents

Virtual machine performance detection method and device, electronic equipment, storage medium Download PDF

Info

Publication number
CN110058920A
CN110058920A CN201910161318.0A CN201910161318A CN110058920A CN 110058920 A CN110058920 A CN 110058920A CN 201910161318 A CN201910161318 A CN 201910161318A CN 110058920 A CN110058920 A CN 110058920A
Authority
CN
China
Prior art keywords
virtual machine
test
target virtual
target
configuration parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910161318.0A
Other languages
Chinese (zh)
Other versions
CN110058920B (en
Inventor
陈泽冰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910161318.0A priority Critical patent/CN110058920B/en
Publication of CN110058920A publication Critical patent/CN110058920A/en
Priority to PCT/CN2019/118021 priority patent/WO2020177385A1/en
Application granted granted Critical
Publication of CN110058920B publication Critical patent/CN110058920B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0712Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a virtual computing platform, e.g. logically partitioned systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/57Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
    • G06F21/577Assessing vulnerabilities and evaluating computer system security
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45591Monitoring or debugging support

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a kind of virtual machine performance detection method and device, electronic equipment, storage medium, it is related to the field of test technology, this method comprises: receiving the request of creation test virtual machine, the request of creation test virtual machine includes the first configuration parameter and the second configuration parameter;According to the first configuration parameter and the second configuration parameter creation test virtual machine;Based on test virtual machine, the target virtual machine for meeting preset rules is determined from preset virtual machine configuration table;The test script that virtual machine generates will be tested and be sent to target virtual machine, to be tested according to test script target virtual machine;The test response generated according to target virtual machine, determines the testing result of target virtual machine.The technical solution of the embodiment of the present invention can not only the communication performance automatically to more virtual machines test, and can be improved the accuracy of test process, guarantee the efficiency of test.

Description

Virtual machine performance detection method and device, electronic equipment, storage medium
Technical field
The present invention relates to the field of test technology, in particular to a kind of virtual machine performance detection method, virtual machine performance Detection device, electronic equipment and computer readable storage medium.
Background technique
With the development of internet technology, the purposes of virtual machine (Virtual Machine) is more and more extensive, in computer Many aspects such as performance test or enterprises system requirements usually may require that a large amount of virtual machines, therefore to virtual machine communication performance Detection it is extremely important.
Currently, carrying out school for the communication performance of the virtual machine based on Windows operating system in existing technical solution It when testing, needs to be manually entered account number cipher by artificial mode and logs in, while disposing on a virtual machine and opening corresponding clothes Business.The operation is higher to personnel's network specialty skill requirement of responsible verification, and when virtual machine quantity is more, artificial side Formula can not be verified in batches, and working efficiency is lower, while also be easy to appear the problem of Password Input mistake can not log in.
It should be noted that information is only used for reinforcing the reason to background of the invention disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The embodiment of the present invention be designed to provide a kind of virtual machine performance detection method, virtual machine performance detection device, Electronic equipment and computer readable storage medium, and then overcome at least to a certain extent through artificial mode to virtual machine Communication performance when being tested, can not be tested in batches, working efficiency is lower, while be easy to appear Password Input mistake without The problem of method logs in.
Other characteristics and advantages of the invention will be apparent from by the following detailed description, or partially by the present invention Practice and acquistion.
According to a first aspect of the embodiments of the present invention, a kind of virtual machine performance detection method is provided, comprising: receive creation The request of virtual machine is tested, the request of the creation test virtual machine includes the OS Type of the test virtual machine, the One configuration parameter and the second configuration parameter;It is empty according to first configuration parameter and second configuration parameter creation test Quasi- machine;Based on the test virtual machine, the target virtual machine for meeting preset rules is determined from preset virtual machine configuration table; By it is described test virtual machine generate test script be sent to the target virtual machine, with according to the test script to the mesh Mark virtual machine is tested;The test response generated according to the target virtual machine, determines the detection knot of the target virtual machine Fruit.
In a kind of example embodiment of the invention, it is based on above scheme, according to first configuration parameter and described Second configuration parameter creation test virtual machine, comprising: the communication of the test virtual machine is determined according to first configuration parameter Tool;The scripting tools of the test virtual machine are determined according to second configuration parameter;Based on the means of communication with And the scripting tools create the test virtual machine.
In a kind of example embodiment of the invention, it is based on above scheme, it is described to be based on the test virtual machine, from default Virtual machine configuration table in determine the target virtual machine for meeting preset rules, comprising: it is corresponding to obtain the test virtual machine The preset rules stored in physical machine and preset virtual machine configuration table;The preset void is filtered according to the preset rules Virtual machine in quasi- machine allocation list, the virtual machine for being determined for compliance with preset rules is target virtual machine.
In a kind of example embodiment of the invention, it is based on above scheme, the survey that the test virtual machine is generated Training is originally sent to the target virtual machine, to be tested according to the test script the target virtual machine, comprising: root Test script is generated according to the scripting tools of the preset virtual machine configuration table and the test virtual machine;By described Test virtual machine means of communication send the target virtual machine for the test script, with according to the test script to institute Target virtual machine is stated to be tested.
In a kind of example embodiment of the invention, it is based on above scheme, the survey that the test virtual machine is generated Training is originally sent to the target virtual machine, before being tested according to the test script the target virtual machine, also It include: that logging request is sent to the target virtual machine by the means of communication of the test virtual machine;Wherein, the login is asked Ask login account and modification logging including the target virtual machine;Success is logged in response to the target virtual machine, it will be described Test virtual machine generate test script be sent to the target virtual machine, with according to the test script to the destination virtual Machine is tested.
In a kind of example embodiment of the invention, it is based on above scheme, the means of communication includes multiple parallel threads, The test script that the test virtual machine is generated is sent to the target virtual machine, comprising: according to the destination virtual The quantity of machine distributes to the transmission task for the test script that the test virtual machine generates in the multiple parallel thread extremely Few two parallel threads;According to the transmission task of the test script of at least two parallel threads, to the corresponding target Virtual machine sends test script.
In a kind of example embodiment of the invention, be based on above scheme, it is described according to the target virtual machine generate Test response, determines the testing result of the target virtual machine, comprising: obtains the target virtual machine and executes the test script The test of generation responds;According to the mapping table of preset test response and testing result, the target virtual machine is determined The test responds corresponding testing result.
According to a second aspect of the embodiments of the present invention, a kind of virtual machine performance detection device is provided, comprising: receive mould Block, for receiving the request of creation test virtual machine, the request of the creation test virtual machine includes the test virtual machine OS Type, the first configuration parameter and the second configuration parameter;Creation module, for according to first configuration parameter with And the second configuration parameter creation test virtual machine;Screening module, for being based on the test virtual machine, from preset virtual The target virtual machine for meeting preset rules is determined in machine allocation list;Test module, for generate the test virtual machine Test script is sent to the target virtual machine, to be tested according to the test script the target virtual machine;It determines Module, the test response for being generated according to the target virtual machine, determines the testing result of the target virtual machine.
According to a third aspect of the embodiments of the present invention, a kind of electronic equipment is provided, comprising: processor;And memory, institute It states and is stored with computer-readable instruction on memory, realize when the computer-readable instruction is executed by the processor according to upper State virtual machine performance detection method described in any one.
According to a fourth aspect of the embodiments of the present invention, a kind of computer readable storage medium is provided, calculating is stored thereon with Machine program realizes the virtual machine performance detection side according to above-mentioned any one when the computer program is executed by processor Method.
Technical solution provided in an embodiment of the present invention can include the following benefits:
In the technical solution provided by some embodiments of the present invention, include in the request by creation test virtual machine OS Type, the first configuration parameter and the second configuration parameter creation test virtual machine, according to test virtual machine determine The target virtual machine for meeting preset rules will test the test script that virtual machine generates and be sent to target virtual machine and survey Examination, determines the testing result of target virtual machine.On the one hand, target virtual machine is detected by creation test virtual machine, no Artificial participation is needed, batch verification can be carried out to target virtual machine, shorten detection cycle, promote working efficiency;Another party Face determines test script according to the configuration parameter of test virtual machine, and obtains corresponding account number cipher according to test virtual machine and step on Land target virtual machine avoids the virtual machine as caused by account number cipher input error from lockking to test target virtual machine Situation promotes the quality and efficiency of test process.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not It can the limitation present invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.It should be evident that the accompanying drawings in the following description is only the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 diagrammatically illustrates the schematic diagram of virtual machine performance detection method according to some embodiments of the present invention;
Fig. 2 diagrammatically illustrate according to some embodiments of the present invention determine showing for target virtual machine according to preset rules It is intended to;
Fig. 3 diagrammatically illustrates the schematic diagram of the transmission test script of other embodiments according to the present invention;
Fig. 4 diagrammatically illustrates the schematic diagram of virtual machine performance detection device according to some embodiments of the present invention;
Fig. 5 diagrammatically illustrates the schematic diagram of test module according to some embodiments of the present invention;
Fig. 6 diagrammatically illustrates the signal of the Computer Systems Organization of electronic equipment according to some embodiments of the present invention Figure;
Fig. 7 diagrammatically illustrates the schematic diagram of computer readable storage medium according to some embodiments of the present invention.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the present invention will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner In example.In the following description, many details are provided to provide and fully understand to the embodiment of the present invention.However, It will be appreciated by persons skilled in the art that technical solution of the present invention can be practiced without one or more in specific detail, Or it can be using other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes known side Method, device, realization or operation are to avoid fuzzy each aspect of the present invention.
Block diagram shown in the drawings is only functional entity, not necessarily must be corresponding with physically separate entity. I.e., it is possible to realize these functional entitys using software form, or realized in one or more hardware modules or integrated circuit These functional entitys, or these functional entitys are realized in heterogeneous networks and/or processor device and/or microcontroller device.
In an exemplary embodiment of the present invention, a kind of virtual machine performance detection method is provided firstly, Fig. 1 schematically shows The schematic diagram of virtual machine performance detection method according to some embodiments of the present invention is gone out.With reference to shown in Fig. 1, the virtual machine Method for testing performance may comprise steps of:
Step S110 receives the request of creation test virtual machine, and the request of the creation test virtual machine includes the survey Try OS Type, the first configuration parameter and the second configuration parameter of virtual machine;
Step S120, according to first configuration parameter and second configuration parameter creation test virtual machine;
Step S130 is based on the test virtual machine, determines to meet preset rules from preset virtual machine configuration table Target virtual machine;
Step S140 sends the target virtual machine for the test script that the test virtual machine generates, according to institute Test script is stated to test the target virtual machine;
Step S150 responds according to the test that the target virtual machine generates, determines the detection knot of the target virtual machine Fruit.
Method for testing performance according to the present exemplary embodiment, on the one hand, by creation test virtual machine to target void Quasi- machine is detected, and artificial participation is not needed, and can be carried out batch verification to target virtual machine, be shortened detection cycle, promoted Working efficiency;On the other hand, test script is determined according to the configuration parameter of test virtual machine, and according to test virtual machine acquisition pair The account number cipher answered logs in target virtual machine to test target virtual machine, avoids causing due to account number cipher input error Virtual machine lock the case where, promote the quality and efficiency of test process.
In the following, by the virtual machine performance detection method in the present exemplary embodiment is further detailed.
In step s 110, the request of creation test virtual machine is received, the request of the creation test virtual machine includes institute State OS Type, the first configuration parameter and the second configuration parameter of test virtual machine.
In a kind of example embodiment of the invention, test virtual machine refers to through related command tool to target virtual machine The particular virtual machine detected.System receives the request of the creation test virtual machine sent by system manager, and obtaining should The parameters such as OS Type, the first configuration parameter and the second configuration parameter of the test virtual machine for including in request.According to Test the test virtual machine of the OS Type creation respective operations system of virtual machine, such as the test of creation linux system Virtual machine configures the test virtual machine according to the first configuration parameter and the second configuration parameter.Certainly, the creation test The parameter for including in the request of virtual machine is also possible to other parameters, such as nucleus number, memory size, the hard disk of processor CPU hold Size and network segment information etc. are measured, the present invention does not do particular determination herein.According to the OS Type creation in request to create The test virtual machine of respective operations system can select suitable operating system according to the actual situation, promote test virtual machine Stability guarantees the safety of test environment.
It should be noted that term " first " used in the present invention, " second " etc., merely to distinguishing tests virtual machine The configuration parameter of different tools does not cope with the disclosure and causes any restrictions.
In the step s 120, according to first configuration parameter and second configuration parameter creation test virtual machine.
In a kind of example embodiment of the invention, the first configuration parameter can refer to that pre-set virtual machine is led to The relevant configured parameter of letter, such as remote management services WinRM module.Second configuration parameter can refer to pre-set virtual Machine realizes the relevant configured parameter, such as scripting language Python, Pip software package etc. that wscript.exe is write, the embodiment of the present invention In configuration parameter be merely illustrative of, do not do particular determination herein.
In a kind of example embodiment of the invention, the means of communication of test virtual machine is configured by the first configuration parameter, Means of communication can be the essential tool for referring to allow test virtual machine remote to be tested target virtual machine.Match by second The scripting tools of parameter configuration test virtual machine are set, scripting tools can refer to that editor realizes that test virtual machine carries out The tool of the test script of the communication performance automation checking procedure of target virtual machine.According to configured means of communication, script It is empty that authoring tool and other relevant configured parameters creation test virtual machine, means of communication and scripting tools are stored in test In the quasi- corresponding physical machine of machine.
In step s 130, it is based on the test virtual machine, determines to meet from preset virtual machine configuration table default The target virtual machine of rule.
In a kind of example embodiment of the invention, target virtual machine can refer to be needed in preset virtual machine configuration table Carry out the virtual machine to be tested of communication performance test.It may include the information of at least one virtual machine in virtual machine configuration table, The information of each virtual machine may include the operation system of the identification information of virtual machine, login account, login password and virtual machine System type.Preset rules can be target virtual machine be specific operation system virtual machine, such as by preset rules be operation system System is the virtual machine of Windows as target virtual machine.Preset rules can also include that target virtual machine is configured with related service, Such as preset rules can be virtual machine and be able to carry out Powershell remote management services.Certainly, preset rules are also possible to Other kinds of rule, such as target virtual machine, configured with WinRM module etc., the present invention does not do particular determination herein.
Refering to what is shown in Fig. 2, Fig. 2 diagrammatically illustrate according to some embodiments of the present invention determine mesh according to preset rules The schematic diagram for marking virtual machine, is specifically described below.
Step S210, the preset rules and preset virtual machine obtained in the corresponding physical machine of the test virtual machine are matched Set table.
In a kind of example embodiment of the invention, physical machine refers to the entity device corresponding to virtual machine, such as calculates Machine or server etc., physical machine provide hardware environment to virtual machine.Virtual machine configuration table includes the ID of target virtual machine, operation system The information such as system type, login account and login password, virtual machine configuration table and preset rules are stored in test virtual machine pair In the physical machine answered.Test virtual machine obtains the virtual machine configuration table and preset rules of storage from physical machine.
Step S220 filters the virtual machine on the virtual machine configuration table according to the preset rules, is determined for compliance with default The target virtual machine of rule.
In a kind of example embodiment of the invention, target virtual machine refers to test virtual machine according to preset rules and void The virtual machine for meeting preset rules that quasi- machine allocation list is chosen from target virtual machine list.Virtual machine is tested according to preset rules Virtual machine configuration table is filtered, the target virtual machine of preset rules is determined for compliance with.For example, it can be sieved from virtual machine configuration table The virtual machine that operating system is Windows is selected, while obtaining the login account for choosing virtual machine and login password and carrying out It logs in, checks every configuration of virtual machine, be filtered the destination virtual for being determined for compliance with preset rules again according to preset rules Machine.
In step S140, the target virtual machine is sent by the test script that the test virtual machine generates, with root The target virtual machine is tested according to the test script.
In a kind of example embodiment of the invention, test script can refer to the item that test virtual machine detects as needed The corresponding program that mesh is write by scripting tools.Test virtual machine obtains target virtual machine from virtual machine configuration table Login account and login password send log on request to the target virtual machine for meeting pre-defined rule according to means of communication, log in Request includes the login account and login password of target virtual machine.It is logged in when test virtual machine receives target virtual machine response When successful information, test script is generated according to the scripting tools of test virtual machine, similarly, passes through test virtual machine Means of communication sends target virtual machine for test script and executes, and test script starts to the communication performance of target virtual machine Relevant item is tested, and generates corresponding test log.
Refering to what is shown in Fig. 3, Fig. 3 diagrammatically illustrates showing for the transmission test script of other embodiments according to the present invention It is intended to, is specifically described below.
Step S310 appoints the transmission of the test script of the target virtual machine according to the quantity of the target virtual machine At least two parallel threads in the multiple parallel thread are distributed in business.
In a kind of example embodiment of the invention, the means of communication for testing virtual machine includes multiple parallel threads.Pass through When the means of communication of test virtual machine sends test script to the target virtual machine for meeting pre-defined rule, multiple tests lives will be sent Enable the transmission task of corresponding test script distribute at least two parallel threads in multiple parallel threads, for example, three simultaneously Line journey, naturally it is also possible to which, for other quantity, the present invention does not do particular determination herein.According to each of at least two parallel threads Test script is sent from the transmission task of distribution to target virtual machine, can not only alleviate target virtual machine it is more when test it is virtual The workload of machine, and the period of detection check can be shortened, improve the working efficiency for testing virtual machine testing.
Step S320, the transmission task of the test script based at least two parallel thread, to the corresponding mesh It marks virtual machine and sends test script.
In a kind of example embodiment of the invention, test virtual machine has according to the target virtual machine that preset rules filter out Multiple, the transmission task of each test script only corresponds to currently determining target virtual machine.System is according to meeting pre-defined rule The quantity of target virtual machine determines to distribute the quantity of the parallel thread of transmission task.Such as according to shown in formula (1):
N indicates the quantity of the parallel thread of distribution transmission task in formula (1), and M indicates the destination virtual for meeting pre-defined rule The quantity of machine, k indicate a predetermined value, which is the constant of system manager determines according to actual conditions, wherein N and M is positive integer, tests virtual machine for the transmission task of the test script of M target virtual machine and distributes to N number of parallel thread. According to N number of parallel thread of determining means of communication, target virtual machine is sent by test script.According to the number of target virtual machine The quantity for determining the parallel thread of distribution task is measured, the working efficiency of test virtual machine can be further increased.
In step S150, is responded according to the test that the target virtual machine generates, determine the inspection of the target virtual machine Survey result.
In a kind of example embodiment of the invention, after test script is sent target virtual machine by test virtual machine, connect Receive the test response that target virtual machine returns.The mapping table that virtual machine obtains test response and testing result is tested, this is right Answering relation table includes test command in test script and the corresponding test response of test command and testing result.Test is virtual Machine determines the testing result of test script according to test response and mapping table, that is, tests virtual machine testing target virtual machine Communication performance final detection result.
It should be noted that although describing each step of method in the present invention in the accompanying drawings with particular order, This does not require that or implies must execute these steps in this particular order, or have to carry out step shown in whole Just it is able to achieve desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and held by certain steps Row, and/or a step is decomposed into execution of multiple steps etc..
In addition, in this exemplary embodiment, additionally providing a kind of virtual machine performance detection device.Referring to shown in Fig. 4, the property Energy detection device 400 includes: the request that receiving module 410 is used to receive creation test virtual machine, and virtual machine is tested in the creation Request include it is described test virtual machine OS Type, the first configuration parameter and the second configuration parameter;Creation module 420 for according to first configuration parameter and second configuration parameter creation test virtual machine;Screening module 430 is used for Based on the test virtual machine, the target virtual machine for meeting preset rules is determined from preset virtual machine configuration table;Test Module 440 is used to send the target virtual machine for the test script that the test virtual machine generates, according to the test Script tests the target virtual machine;The test that determining module 450 is used to be generated according to the target virtual machine responds, Determine the testing result of the target virtual machine.
In a kind of exemplary embodiment of the invention, aforementioned schemes are based on, creation module 420 is configured as: according to institute State the means of communication that the first configuration parameter determines the test virtual machine;Determine that the test is empty according to second configuration parameter The scripting tools of quasi- machine;The test virtual machine is created based on the means of communication and the scripting tools.
In a kind of exemplary embodiment of the invention, aforementioned schemes are based on, screening module 430 is configured as: obtaining institute State the preset rules stored in the corresponding physical machine of test virtual machine and virtual machine configuration table;It is filtered according to the preset rules Virtual machine in the virtual machine configuration table, the virtual machine for being determined for compliance with preset rules is target virtual machine.
Refering to what is shown in Fig. 5, Fig. 5 diagrammatically illustrates the schematic diagram of test module according to some embodiments of the present invention, Test module 440 includes: that generation unit 510 is used for according to the preset virtual machine configuration table and the test virtual machine Scripting tools generate test script;Test cell 520 is used for the survey through the means of communication for testing virtual machine Training is originally sent to the target virtual machine, to be tested according to the test script the target virtual machine.
In a kind of exemplary embodiment of the invention, aforementioned schemes are based on, the means of communication includes multiple parallel lines Journey, test cell 520 are configured as: according to the quantity of the target virtual machine, by the test script of the target virtual machine Transmission task distributes at least two parallel threads in the multiple parallel thread;Based at least two parallel thread The transmission task of test script sends test script to the determining target virtual machine.
In a kind of exemplary embodiment of the invention, aforementioned schemes are based on, test module 440 is configured as: passing through institute The means of communication for stating test virtual machine sends logging request to the target virtual machine;Wherein, the logging request includes described The login account and modification logging of target virtual machine;Success is logged in response to the target virtual machine, by the test virtual machine The test script of generation is sent to the target virtual machine, to be surveyed according to the test script to the target virtual machine Examination.
In a kind of exemplary embodiment of the invention, aforementioned schemes are based on, determining module 450 is configured as: obtaining institute It states target virtual machine and executes the test response that the test script generates;It is responded according to preset test corresponding with test result Relation table determines that the test of the target virtual machine responds corresponding test result.
The detail of each module of virtual machine performance detection device is in corresponding virtual machine performance detection side among the above It is described in detail in method, therefore details are not described herein again.
It should be noted that although being referred to several modules or list of virtual machine performance detection device in the above detailed description Member, but this division is not enforceable.In fact, embodiment according to the present invention, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
In addition, in an exemplary embodiment of the disclosure, additionally providing one kind can be realized above-mentioned virtual machine performance detection The electronic equipment of method.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, completely Software implementation (including firmware, microcode etc.) or hardware and software in terms of combine embodiment, may be collectively referred to as here Circuit, " module " or " system ".
The electronic equipment 600 of this embodiment according to the present invention is described referring to Fig. 6.Electronics shown in fig. 6 is set Standby 600 be only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in fig. 6, electronic equipment 600 is showed in the form of universal computing device.The component of electronic equipment 600 can wrap It includes but is not limited to: at least one above-mentioned processing unit 610, at least one above-mentioned storage unit 620, the different system components of connection The bus 630 of (including storage unit 620 and processing unit 610), display unit 640.
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 610 Row, so that various according to the present invention described in the execution of the processing unit 610 above-mentioned " illustrative methods " part of this specification The step of exemplary embodiment.For example, the processing unit 610 can execute step S110 as shown in fig. 1, creation is received The request of virtual machine is tested, the request of the creation test virtual machine includes the OS Type of the test virtual machine, the One configuration parameter and the second configuration parameter;Step S120, according to first configuration parameter and second configuration parameter Creation test virtual machine;Step S130 is based on the test virtual machine, determines to meet from preset virtual machine configuration table pre- If the target virtual machine of rule;The test script that the test virtual machine generates is sent the destination virtual by step S140 Machine, to be tested according to the test script the target virtual machine;Step S150 is generated according to the target virtual machine Test response, determine the testing result of the target virtual machine.
Storage unit 620 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit (RAM) 621 and/or cache memory unit 622, it can further include read-only memory unit (ROM) 623.
Storage unit 620 can also include program/utility 624 with one group of (at least one) program module 625, Such program module 625 includes but is not limited to: operating system, one or more application program, other program modules and It may include the realization of network environment in program data, each of these examples or certain combination.
Bus 630 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Electronic equipment 600 can also be with one or more external equipments 670 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 600 communicate, and/or with make Any equipment (such as the router, modulation /demodulation that the electronic equipment 600 can be communicated with one or more of the other calculating equipment Device etc.) communication.This communication can be carried out by input/output (I/O) interface 650.Also, electronic equipment 600 can be with By network adapter 660 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, Such as internet) communication.As shown, network adapter 660 is communicated by bus 630 with other modules of electronic equipment 600. It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 600, including but not Be limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and Data backup storage system etc..
By the description of above embodiment, those skilled in the art is it can be readily appreciated that example embodiment described herein It can also be realized in such a way that software is in conjunction with necessary hardware by software realization.Therefore, implemented according to the disclosure The technical solution of example can be embodied in the form of software products, which can store in a non-volatile memories In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) or on network, including some instructions are so that a calculating equipment (can To be personal computer, server, terminal installation or network equipment etc.) it executes according to the method for the embodiment of the present disclosure.
In an exemplary embodiment of the disclosure, a kind of computer readable storage medium is additionally provided, energy is stored thereon with Enough realize the program product of this specification above method.In some possible embodiments, various aspects of the invention can be with It is embodied as a kind of form of program product comprising program code, it is described when described program product is run on the terminal device Program code is for executing the terminal device described in above-mentioned " illustrative methods " part of this specification according to the present invention The step of various exemplary embodiments.
Refering to what is shown in Fig. 7, describe embodiment according to the present invention for realizing above-mentioned virtual machine performance detection method Program product 700, can be using portable compact disc read only memory (CD-ROM) and including program code, and can be It is run on terminal device, such as PC.However, program product of the invention is without being limited thereto, and in this document, readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network (WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of processing included by method according to an exemplary embodiment of the present invention It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
By the description of above embodiment, those skilled in the art is it can be readily appreciated that example embodiment described herein It can also be realized in such a way that software is in conjunction with necessary hardware by software realization.Therefore, implemented according to the disclosure The technical solution of example can be embodied in the form of software products, which can store in a non-volatile memories In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) or on network, including some instructions are so that a calculating equipment (can To be personal computer, server, touch control terminal or network equipment etc.) it executes according to the method for the embodiment of the present disclosure.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Adaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim It points out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (10)

1. a kind of virtual machine performance detection method characterized by comprising
The request of creation test virtual machine is received, the request of the creation test virtual machine includes the first configuration parameter and second Configuration parameter;
According to first configuration parameter and second configuration parameter creation test virtual machine;
Based on the test virtual machine, the target virtual machine for meeting preset rules is determined from preset virtual machine configuration table;
By it is described test virtual machine generate test script be sent to the target virtual machine, with according to the test script to institute Target virtual machine is stated to be tested;
The test response generated according to the target virtual machine, determines the testing result of the target virtual machine.
2. virtual machine performance detection method according to claim 1, which is characterized in that according to first configuration parameter with And the second configuration parameter creation test virtual machine, comprising:
The means of communication of the test virtual machine is determined according to first configuration parameter;
The scripting tools of the test virtual machine are determined according to second configuration parameter;
The test virtual machine is created based on the means of communication and the scripting tools.
3. virtual machine performance detection method according to claim 2, which is characterized in that described virtual based on the test Machine determines the target virtual machine for meeting preset rules from preset virtual machine configuration table, comprising:
Obtain the preset rules stored in the corresponding physical machine of the test virtual machine and preset virtual machine configuration table;
The virtual machine in the preset virtual machine configuration table is filtered according to the preset rules, is determined for compliance with the institute of preset rules Stating virtual machine is target virtual machine.
4. virtual machine performance detection method according to claim 3, which is characterized in that described that the test virtual machine is raw At test script be sent to the target virtual machine, to be tested according to the test script the target virtual machine, Include:
Test script is generated according to the scripting tools of the preset virtual machine configuration table and the test virtual machine;
The target virtual machine is sent by the test script by the means of communication of the test virtual machine, according to Test script tests the target virtual machine.
5. virtual machine performance detection method according to claim 4, which is characterized in that described that the test virtual machine is raw At test script be sent to the target virtual machine, to be carried out testing it to the target virtual machine according to the test script Before, further includes:
Logging request is sent to the target virtual machine by the means of communication of the test virtual machine;Wherein, the login is asked Ask login account and modification logging including the target virtual machine;
Success is logged in response to the target virtual machine, the test script for generating the test virtual machine is triggered and is sent to The target virtual machine, the step of to be tested according to the test script the target virtual machine.
6. virtual machine performance detection method according to claim 4, which is characterized in that the means of communication include it is multiple simultaneously Line journey, the test script that the test virtual machine is generated are sent to the target virtual machine, comprising:
According to the quantity of the target virtual machine, the transmission task for the test script that the test virtual machine generates is distributed into institute State at least two parallel threads in multiple parallel threads;
According to the transmission task of the test script of at least two parallel threads, sends and survey to the corresponding target virtual machine Training sheet.
7. virtual machine performance detection method according to claim 1, which is characterized in that described according to the target virtual machine The test of generation responds, and determines the testing result of the target virtual machine, comprising:
It obtains the target virtual machine and executes the test response that the test script generates;
According to the mapping table of preset test response and testing result, the test response of the target virtual machine is determined Corresponding testing result.
8. a kind of virtual machine performance detection device characterized by comprising
Receiving module, for receiving the request of creation test virtual machine, the request of the creation test virtual machine is matched including first Set parameter and the second configuration parameter;
Creation module, for according to first configuration parameter and second configuration parameter creation test virtual machine;
Screening module is determined to meet preset rules for being based on the test virtual machine from preset virtual machine configuration table Target virtual machine;
Test module, the test script for generating the test virtual machine is sent to the target virtual machine, according to institute Test script is stated to test the target virtual machine;
Determining module, the test response for being generated according to the target virtual machine, determines the detection knot of the target virtual machine Fruit.
9. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is executed by processor Virtual machine performance detection method of the Shi Shixian as described in any one of claims 1 to 7.
10. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs, when one or more of programs are by one or more of processing When device executes, so that one or more of processors realize the virtual machine performance inspection as described in any one of claims 1 to 7 Survey method.
CN201910161318.0A 2019-03-04 2019-03-04 Virtual machine performance detection method and device, electronic equipment and storage medium Active CN110058920B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910161318.0A CN110058920B (en) 2019-03-04 2019-03-04 Virtual machine performance detection method and device, electronic equipment and storage medium
PCT/CN2019/118021 WO2020177385A1 (en) 2019-03-04 2019-11-13 Virtual machine function detection method and apparatus, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910161318.0A CN110058920B (en) 2019-03-04 2019-03-04 Virtual machine performance detection method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110058920A true CN110058920A (en) 2019-07-26
CN110058920B CN110058920B (en) 2023-01-31

Family

ID=67316582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910161318.0A Active CN110058920B (en) 2019-03-04 2019-03-04 Virtual machine performance detection method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN110058920B (en)
WO (1) WO2020177385A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078539A (en) * 2019-11-29 2020-04-28 江苏苏宁物流有限公司 Test method, device, system and computer readable storage medium
CN111090641A (en) * 2019-11-25 2020-05-01 南京医渡云医学技术有限公司 Data processing method and device, electronic equipment and storage medium
WO2020177385A1 (en) * 2019-03-04 2020-09-10 平安科技(深圳)有限公司 Virtual machine function detection method and apparatus, electronic device and storage medium
CN112765007A (en) * 2019-10-21 2021-05-07 腾讯科技(深圳)有限公司 Integration test method, device and storage medium
CN115150298A (en) * 2021-03-31 2022-10-04 北京金山云网络技术有限公司 Virtual gateway testing method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107092541A (en) * 2017-04-27 2017-08-25 郑州云海信息技术有限公司 A kind of method that utilization virtual machine carries out storage performance test
CN107168880A (en) * 2017-05-31 2017-09-15 中标软件有限公司 Virtual machine method of testing and instrument
CN107302475A (en) * 2017-07-06 2017-10-27 郑州云海信息技术有限公司 The method of testing and device of a kind of Based on Distributed storage cluster
CN107395456A (en) * 2017-07-18 2017-11-24 郑州云海信息技术有限公司 Distributed file system stream directly deposits method of testing and platform
CN108900324A (en) * 2018-06-13 2018-11-27 平安科技(深圳)有限公司 Verify the method and device of virtual machine communication performance

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9910764B2 (en) * 2013-06-24 2018-03-06 Linkedin Corporation Automated software testing
CN106919485B (en) * 2017-03-09 2020-02-07 苏州浪潮智能科技有限公司 System based on hardware testing tool configured on server
CN107704395B (en) * 2017-10-24 2020-07-07 武大吉奥信息技术有限公司 Cloud platform automation test implementation method and system based on Openstack
CN110058920B (en) * 2019-03-04 2023-01-31 平安科技(深圳)有限公司 Virtual machine performance detection method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107092541A (en) * 2017-04-27 2017-08-25 郑州云海信息技术有限公司 A kind of method that utilization virtual machine carries out storage performance test
CN107168880A (en) * 2017-05-31 2017-09-15 中标软件有限公司 Virtual machine method of testing and instrument
CN107302475A (en) * 2017-07-06 2017-10-27 郑州云海信息技术有限公司 The method of testing and device of a kind of Based on Distributed storage cluster
CN107395456A (en) * 2017-07-18 2017-11-24 郑州云海信息技术有限公司 Distributed file system stream directly deposits method of testing and platform
CN108900324A (en) * 2018-06-13 2018-11-27 平安科技(深圳)有限公司 Verify the method and device of virtual machine communication performance

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张白一: "《面向对象程序设计 Java 第3版》", 31 July 2013, 西安电子科技大学出版社 *
陈奇志: "《铁路供电调度自动化与信息化》", 31 August 2013, 中国铁道出版社 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020177385A1 (en) * 2019-03-04 2020-09-10 平安科技(深圳)有限公司 Virtual machine function detection method and apparatus, electronic device and storage medium
CN112765007A (en) * 2019-10-21 2021-05-07 腾讯科技(深圳)有限公司 Integration test method, device and storage medium
CN111090641A (en) * 2019-11-25 2020-05-01 南京医渡云医学技术有限公司 Data processing method and device, electronic equipment and storage medium
CN111090641B (en) * 2019-11-25 2024-04-02 医渡云(北京)技术有限公司 Data processing method and device, electronic equipment and storage medium
CN111078539A (en) * 2019-11-29 2020-04-28 江苏苏宁物流有限公司 Test method, device, system and computer readable storage medium
CN115150298A (en) * 2021-03-31 2022-10-04 北京金山云网络技术有限公司 Virtual gateway testing method and device, storage medium and electronic equipment
CN115150298B (en) * 2021-03-31 2023-11-03 北京金山云网络技术有限公司 Virtual gateway testing method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
WO2020177385A1 (en) 2020-09-10
CN110058920B (en) 2023-01-31

Similar Documents

Publication Publication Date Title
CN110058920A (en) Virtual machine performance detection method and device, electronic equipment, storage medium
US10997063B1 (en) System testing from production transactions
US9140745B1 (en) System and method for cloud testing and remote monitoring of integrated circuit devices
CN109446071A (en) Interface test method, interface test device, electronic equipment and storage medium
CN108694118B (en) Application testing method and device
US20190273692A1 (en) Handling path issues for storage copy services
US20180276019A1 (en) Ensuring operational integrity and performance of deployed converged infrastructure information handling systems
CN105099786B (en) The method and apparatus of business configuration in a kind of network cutover
CN109901985B (en) Distributed test apparatus and method, storage medium, and electronic device
US20210303368A1 (en) Operator management apparatus, operator management method, and operator management computer program
CN111800450A (en) Multidimensional tag namespaces for cloud resource management
EP3379436B1 (en) Method and apparatus for testing design of satellite wiring harness and signal processing units
CN110083526A (en) Applied program testing method, device, computer installation and storage medium
CN110109824B (en) Big data autoregression test method and device, computer equipment and storage medium
US20180198814A1 (en) Identifying security risks in code using security metric comparison
CN109614257A (en) Processing method, device, computer storage medium and the electronic equipment of program exception
CN114168471A (en) Test method, test device, electronic equipment and storage medium
CN114817022A (en) Railway electronic payment platform test method, system, equipment and storage medium
CN116194894A (en) Fault localization of native cloud applications
CN104636250A (en) Cloud automatic test system and method
CN109634838A (en) Position method, apparatus, storage medium and the electronic equipment of application failure
CN113704058A (en) Business model monitoring method and device and electronic equipment
CN109358998A (en) A kind of server detection method, apparatus and system
US10949632B2 (en) Cable plugging guidance facility for a network
US10713111B2 (en) Damage detection system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant