[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN104461856B - Performance test methods, apparatus and system based on cloud computing platform - Google Patents

Performance test methods, apparatus and system based on cloud computing platform Download PDF

Info

Publication number
CN104461856B
CN104461856B CN201310432811.4A CN201310432811A CN104461856B CN 104461856 B CN104461856 B CN 104461856B CN 201310432811 A CN201310432811 A CN 201310432811A CN 104461856 B CN104461856 B CN 104461856B
Authority
CN
China
Prior art keywords
test
performance
script
performance test
application
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.)
Active
Application number
CN201310432811.4A
Other languages
Chinese (zh)
Other versions
CN104461856A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201310432811.4A priority Critical patent/CN104461856B/en
Publication of CN104461856A publication Critical patent/CN104461856A/en
Application granted granted Critical
Publication of CN104461856B publication Critical patent/CN104461856B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

This application discloses the performance test methods based on cloud computing platform, apparatus and system, wherein, the described method includes:Obtain the information for the performance test task being created;The test script is saved in script storage server;By calling the interface of cloud computing environment, application to be tested is disposed in the fictitious host computer of cloud computing environment;After receiving test assignment sign on, target cluster is determined for the performance test task;The storage address of the scene information of the performance test task and test script in the script storage server is sent to the target cluster, to download the test script according to the storage address by the node in the target cluster, and access request is initiated in the application disposed by performing the test script into the fictitious host computer of cloud computing environment, is returned after getting performance data;Receive the performance data that target cluster returns.By the application, the performance test based on cloud environment can be realized.

Description

Performance test methods, apparatus and system based on cloud computing platform
Technical field
This application involves technical field of performance test, more particularly to the performance test methods based on cloud computing platform, dress Put and system.
Background technology
" cloud computing be exactly using internet come access storage either operate in the application of remote server, data or Service.Any one company for providing its service on the internet can be called cloud computing company.Cloud computing point is several layers of in fact , it is Infrastructure-as-a-Service respectively(IaaS, infrastructure service), Platform-as-a- Service(PaaS, platform service), Software-as-a-Service(SaaS, software service).IaaS in bottom, PaaS is in centre, and SaaS is on top.The layer of some other " soft " can add on these layers.
Wherein, first layer is called IaaS, sometimes also referred to as Hardware-as-a-Service.Go out in cloud computing technology Before now, if an ISV wants to run the application of some enterprises on the website of office or company, the service of buying is needed Device, or other high hardware are locally applied to control, and business can be behaved.But there is IaaS, it is possible to will Hardware is outsourced to otherwise and goes.IaaS companies can provide server, storage and the network hardware outside the venue, and IVS can be rented, and save Maintenance cost and office space.
The second layer is exactly PaaS, sometimes also referred to as middleware.Exploitations all ISV can be carried out in this layer, Save time and resource.PaaS companies provide the solution of various exploitation and distribution applications, such as Virtual Service on the net Device and operating system.Which save expenses of the ISV on hardware, the cooperation also allowed between scattered operating room becomes more to hold Easily, including web application management, using design, using fictitious host computer, storage, safety and application and development collaborative tools etc..
SaaS is exactly directly to provide the use of certain software to user, and user uses the concrete function of some software, What system that need not be concerned about on what hardware and use.SaaS is accessed by web browser mostly, Ren Heyi Application on a remote server can be run by network, be exactly SaaS.Such as most common E-mail address etc..
At present, more and more ISV selections carry out software development on IaaS platforms or PaaS platform.For developer For, also huge change is occurring for research and development pattern.ISV obtain Microsoft, Adobe no longer as before, with a CD The SDK of these large software companies(Software Development Kit, Software Development Kit), software is then developed, But more developed on cloud computing platform, make full use of the existing architecture of cloud computing company computing capability, Software architecture, test deployment and the O&M service that platform provides.
But the application developed using cloud computing platform, it is tested for the property if desired, then is difficult directly using biography The performance test mode of system.Because if using conventional tool, then need application it is special for the machine that is tested for the property, Performance test personnel often also need to devote a tremendous amount of time, and to debug system under test (SUT), determine whether problematic pressing machine is, arrives Number order is run to obtain the work such as monitoring data on tested machine, these work are technically difficult in itself, and cost is very Height, inefficiency.
The content of the invention
This application provides the performance test methods based on cloud computing platform, apparatus and system, can realize based on cloud ring The performance test in border.
This application provides following scheme:
A kind of performance test methods based on cloud computing platform, including:
The information for the performance test task being created is obtained, the information of the performance test task includes application to be tested Identification information, test scene information and the corresponding test script of scene;
The test script is saved in script storage server;
By calling the interface of cloud computing environment, application to be tested is disposed in the fictitious host computer of cloud computing environment;
After receiving test assignment sign on, target cluster is determined for the performance test task;
By the storage of the scene information of the performance test task and test script in the script storage server Address is sent to the target cluster, to download the test according to the storage address by the node in the target cluster Script, and access request is initiated in the application disposed by performing the test script into the fictitious host computer of cloud computing environment, is obtained Returned after getting performance data;
The performance data that target cluster returns is received, in order to provide the performance test results.
A kind of performance testing device based on cloud computing platform, including:
Information acquisition unit is tested, for obtaining the information for the performance test task being created, the performance test task Information include identification information, test scene information and the corresponding test script of scene of application to be tested;
Script storage unit, for the test script to be saved in script storage server;
Using deployment unit, for the interface by calling cloud computing environment, in the middle part of the fictitious host computer of cloud computing environment The tested application of administration;
Target cluster determination unit, after receiving test assignment sign on, determines for the performance test task Target cluster;
Test information transmitting unit, for by the scene information of the performance test task and test script in the foot Storage address in this storage server is sent to the target cluster, so that the target cluster is according under the storage address The test script is carried, and the application disposed by performing the test script into the fictitious host computer of cloud computing environment is initiated to visit Ask request, returned after getting performance data;
Performance data receiving unit, for receiving the performance data of target cluster return, in order to provide the performance test results.
A kind of Performance Test System based on cloud computing platform, including performance test control center server and at least one A test cluster, wherein, performance test control centre server includes:
Information acquisition unit is tested, for obtaining the information for the performance test task being created, the performance test task Information include identification information, test scene information and the corresponding test script of scene of application to be tested;
Script storage unit, for the test script to be saved in script storage server;
Using deployment unit, for the interface by calling cloud computing environment, in the middle part of the fictitious host computer of cloud computing environment The tested application of administration;
Target cluster determination unit, after receiving test assignment sign on, determines for the performance test task Target cluster;
Test information transmitting unit, for by the scene information of the performance test task and test script in the foot Storage address in this storage server is sent to the target cluster;
Performance data receiving unit, for receiving the performance data of target cluster return, in order to provide the performance test results;
The target cluster includes:
Press node, for downloading the test script according to the storage address, and by performing the test script Access request is initiated in the application disposed into the fictitious host computer of cloud computing environment, and the performance is returned to after getting performance data The performance data receiving unit of test control center server.
The specific embodiment provided according to the application, this application discloses following technique effect:
By the embodiment of the present application, performance test control centre's server and specific survey are disposed in cloud computing environment Cluster is tried, is combined equivalent to by performance test with cloud computing, IaaS, PaaS technology, the value-added service as cloud computing is external Announce.In this way, after ISV completes the exploitation of certain application based on cloud computing environment, it is possible to directly sent out in cloud computing environment Play the performance test to application.Specifically when carrying out the performance test based on cloud computing environment, it can get what is be created After the information of performance test task, test script is saved in script storage server first, and call cloud computing environment (IaaS or PaaS)Interface, application to be tested is disposed in the fictitious host computer of cloud computing environment.Receiving test assignment After sign on, the storage address of the scene information of performance test task and test script can be sent to target cluster, Thus test script can be downloaded according to storage address by the node in target cluster, and by performing test script to cloud meter Calculate the application disposed in the fictitious host computer of environment and initiate access request, and get performance data.That is, pass through the application Embodiment, if ISV needs to be tested for the property the application that it is developed in cloud computing environment, need not carry out application use The work such as server, debugging in test, it is only necessary to which specifying needs to test which application and provide test scene and right The test script answered, you can realize the performance test based on cloud computing environment., can be with during specific be tested for the property By the system of test and the other systems of cloud computing environment(Such as deployment system)Get through, so that testing efficiency is improved, and can Realize that automatic start returns the performance before specifying the performance test of application and reaching the standard grade.
Furthermore it is also possible to by the interface of performance test control center server calls cloud computing environment, it is virtual to obtain The monitoring data of host and/or server so that performance test participant(External user, internal technology support, business side etc.) This partial information can more accurately be got.
Certainly, any product for implementing the application does not necessarily require achieving all the advantages described above at the same time.
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, below will be to institute in embodiment Attached drawing to be used is needed to be briefly described, it should be apparent that, drawings in the following description are only some implementations of the application Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.
Brief description of the drawings
Fig. 1 is the flow chart of method provided by the embodiments of the present application;
Fig. 2 is the schematic diagram of device provided by the embodiments of the present application;
Fig. 3 is the schematic diagram of system provided by the embodiments of the present application.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, the technical solution in the embodiment of the present application is carried out clear, complete Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, those of ordinary skill in the art's all other embodiments obtained, belong to the application protection Scope.
In order to be more convenient for being tested for the property based on the application that cloud computing environment is developed, the embodiment of the present application is direct Special test cluster is disposed in cloud computing environment, in this way, in cloud computing environment after one application of exploitation completion, so that it may To be directly tested for the property in cloud computing environment, in addition apply without developer the server for performance test, Debug system under test (SUT) etc..For this reason, the Performance Test System of the embodiment of the present application is included at least one performance test control Central server, and at least one test cluster, control centre's server can carry out test system and cloud computing system Get through, the basic data needed for test is obtained from cloud computing system, the interface of cloud computing system can also be utilized to virtual machine And database is monitored, the monitoring information that common performance test can not be got is obtained.Serviced below from control centre The angle of device is set out, and concrete implementation mode is introduced in detail.
Referring to Fig. 1, the performance test methods provided by the embodiments of the present application based on cloud computing platform can include following step Suddenly:
S101:The information for the performance test task being created is obtained, the information of the performance test task is including to be tested Identification information, test scene information and the corresponding test script of scene of application;
In the embodiment of the present application, control centre's server can be to user(It is primarily referred to as the tester of application and development side) One administration page is provided, which can be realized in the form of web page etc., user can by the administration page come Create performance test task.Identification information including specifying application to be tested(It can be generally key assignments, be opened in cloud computing platform The application of hair, each application correspond to a unique appkey, for distinguishing each application), attribute(Indicate to be tested answer Be IaaS application or PaaS application etc.), it can in addition contain the scene of nominative testing(Including needs how many concurrent user, often Secondary startup how many thread, every how long to start one inferior).One application to be tested can set multiple test scenes, often Kind test scene can correspond to a test script.That is, user is entering the management page of control centre's server offer After face, if necessary to create a performance test assignment, then identification information, the checkout area of application to be tested can be therefrom specified Scape information, and submit the corresponding test script of each test scene.
Alternatively, in the embodiment of the present application, control centre's server can also be with API(Application Programming Interface, application programming interface)Other subsystems into cloud computing environment of mode industry is provided Be engaged in interface, in this way, other subsystems can by calling the API of control centre's server to automatically create performance test task, Fully ensure the performance of the application operated in cloud environment.
That is, in the embodiment of the present application, in addition to can be by user's manual creation performance test task, system Performance test task can also be automatically created.For control centre's server, in the performance test task that acquisition is created Information when, be the information for obtaining the performance test task by configuration interface submission in the case of a kind of, another situation is exactly Obtain the information of the performance test task by calling preset business interface to submit automatically.And for the latter, during specific implementation, The application for needing to be tested for the property can be pre-configured with, thus there can be background program to call control centre's server automatically API, create script, scene, task by these API.It should be noted that this provided by control centre's server API create the implementation of performance test task, be the equal of a kind of full automatic mode, under normal circumstances, be based on The application of PaaS exploitations can be tested for the property using this full automatic mode.Its main cause is that the application of PaaS is big It is the read-only website of shopping guide's class mostly, which URL can be obtained automatically according to access log(It correspond to specifically apply)Be need into Row performance test, so as to call the interface of control centre server automatically to create script, scene and task, and carry out performance Test.The user of certain PaaS applications can also be as needed, and the web interface provided by control centre's server is right manually PaaS applications are tested for the property.
S102:The test script is saved in script storage server;
After the information of performance test task is got, the corresponding test script of each scene can be saved in first In script storage server, subsequently when carrying out specific performance test, the pressure node in test cluster can be from the foot Test script and perform script code are downloaded in this storage server.Certainly, by test script be saved in storage server it Afterwards, each test script can produce a preservation address, specifically when being tested, can be supplied to the preservation address specifically Test cluster, in this regard, hereinafter having detailed introduction.
S103:By calling the interface of cloud computing environment, application to be tested is disposed in the virtual machine of cloud computing environment;
Before specific performance test is carried out, control centre's server can be first in the virtual machine of cloud computing environment Test application is treated to be disposed.It should be noted that the performance test described in the embodiment of the present application is, it is necessary to the application one of test As be to use B-S(Browser-server)Framework, the scene of performance test is usually that a certain number of browser clients are concurrent The application is accessed, so as to collect the information such as the response time of server.That is, in order to be tested for the property, it is necessary to simulate Many access requests, the initiator of these access requests is browser client, and recipient is the server of application.For test set Be the equal of the simulation carried out to browser client for pressure node in group, and in step S103 in the middle part of virtual machine Application to be tested is affixed one's name to, is equivalent in cloud environment the server environment that has been application simulation to be tested, the visit that pressure node is initiated In fictitious host computer where asking request and being directed to the application.That is, be the equal of the pressure node in test cluster Access request is initiated at application server end into fictitious host computer, and then is obtained during the request is from initiating to meeting with a response Performance data.
Specifically dispose it is to be tested in application, in the embodiment of the present application, can be by the portion of test environment and cloud computing environment Administration's system is got through so that control centre's server can carry out the portion of application to be tested by calling the interface of cloud computing environment Administration.Specifically in the deployment applied, first correspond to be tested with code(Check-out), then it is compiled packing And test is performed, if the target directory that binary system bag is unziped to target virtual machine if, perform application launch script. This by calling the interface of cloud computing environment come under the implementation of application deployment, cloud computing platform can also pass through actively Detecting receives the modes such as the notice of control centre's server, gets the CI of application to be tested (code submits Check-In) With deployment message.Wherein, code submits a trigger action for belonging to continuous integrating, and deployment is also a trigger action.Can be with The continuous integrating step of triggering following:Such as automatic test, performance test, security sweep etc., can be with automatic start based on this Performance test and application is formal reach the standard grade before just get performance data.
S104:After receiving test assignment sign on, target cluster is determined for the performance test task;
Test script is being saved in script storage server, it is determined that the preservation address of test script, and in cloud meter Calculate after deploying application to be tested in the virtual machine of environment, it is possible to enter specific test process.During specific implementation, such as Fruit is the performance test task of user's manual creation, then can continue to initiate test assignment sign on manually by user, if It is the performance test task automatically created, then the sign on of test assignment can be automatically initiated by corresponding subsystem.
In the Performance Test System provided by the embodiments of the present application based on cloud computing environment, for producing the node of pressure Can be grouped with completely self-contained cluster, pressure in a cluster surveys resource-sharing, carried out between different clusters network every From thus the network environment of cloud computing environment fictitious host computer being followed to be adapted to and extended.Also, for control centre For server, after test assignment sign on is received, suitable target cluster can be determined for this test assignment first. For example, in order to cause the application of IaaS and PaaS to be tested using the system, can be respectively IaaS and PaaS applications provide different test cluster, if in this way, certain application to be tested is the application of IaaS, can will should for IaaS It is determined as target cluster with the cluster of offer, can will will be that PaaS applications carry if certain application to be tested is the application of PaaS The cluster of confession is determined as target cluster.Wherein, it is IaaS applications or PaaS applications on earth on task to be tested, can creating Specify when building performance test task, therefore, can include in the information for the performance test task that control centre's server is got The information, and target cluster is directly determined according to this information specified.In addition, except can be from application category to be tested Carry out selection target cluster in IaaS applications or PaaS applications, scale, the use of application to be tested support that can also be according to ISV The information of the service layers such as family amount, importance rate, is performance test task choosing target cluster.Furthermore can also be according to treating Operating system needed for test application operation(Windows, Linux etc.)It is performance test task choosing target etc. technical attributes Cluster.
S105:By the scene information of the performance test task and test script in the script storage server Storage address is sent to the target cluster, so that the node in the target cluster is according to being downloaded the storage address Test script, and access request is initiated in the application disposed by performing the test script into the virtual machine of cloud computing environment, Returned after getting performance data;
After target cluster is determined, control centre's server can by the scene information of performance test task and Storage address of the test script in the script storage server is sent to target cluster.Wherein, a test cluster corresponds to One message queue, after aforementioned information is sent to target cluster, cluster internal can according to message queue in it is each The sequencing of bar message, performs specific course of exerting pressure.
During specific implementation, target cluster is made of multiple nodes, wherein can include pressure node and Data Collection section Point, furthermore it is also possible to including control node, which, can be by performance after specific performance test task is received The different scenes of test assignment are assigned on different pressure nodes, and certainly, Same Scene may be assigned to multiple pressure sections On point, same pressure node may also perform multiple performance test tasks.Pressure node for receiving performance test task For, corresponding test script can be downloaded, so from script storage server according to the preservation address of corresponding test script Afterwards packing is locally compiled in pressure node, and then can be according to information such as the frequencies specified in test script to cloud computing Access request is initiated at application server end in environment fictitious host computer, records the performance data produced in access process and transmission To data-collection nodes.Data-collection nodes can be every certain time interval(Such as 10 seconds, or can also be other Sample frequency)The performance data being collected into is sent to control centre's server.Certainly, in practical applications, directly by each It is also feasible that the performance data got is sent to control centre's server by pressure node.
, can be with the resource information of each node of timed collection, in this way, to pressure in addition, for control node During node allocation performance test assignment, it is possible to dynamic allocation test task to resource utilization than relatively low pressure node, To improve the efficiency of test.Further, applied in the application to be tested specifically disposed on pressure node into fictitious host computer During pressure, can be created that by the finger daemon on pressure node Lai independent process press, if in this way, in course of exerting pressure In occur that pressure is excessive or other problems cause process to hang up or exit, the stability of pressure node will not be influenced, also Other test assignments can be continued to execute.This point support multitask, multi-user cloud performance test scene in close weight Will.Furthermore the control node in cluster can also be by the cluster such as JGroups message come the reaching the standard grade of Auto-Sensing node, offline Or improper go offline.
S106:The performance data that target cluster returns is received, in order to provide the performance test results.
Control centre's server is being received after the performance data that target cluster returns, and can be preserved its persistence Into a database.If the needs such as the administrator of follow-up application and development side or Performance Test System check the property of corresponding application Energy test data, then can be shown in Web page.Needed if initiating other subsystems of automated performance testing task Performance test data is wanted, then can also be directly returned to the subsystem.
In short, in the embodiment of the present application, performance test control centre's server and tool are disposed in cloud computing environment The test cluster of body, is combined equivalent to by performance test with cloud computing, IaaS, PaaS technology, and the increment as cloud computing takes Business is externally announced.In this way, after ISV completes the exploitation of certain application based on cloud computing environment, it is possible to directly in cloud computing ring The performance test to application is initiated in border.Specifically when carrying out the performance test based on cloud computing environment, can get by After the information of the performance test task of establishment, test script is saved in script storage server first, and call cloud computing Environment(IaaS or PaaS)Interface, application to be tested is disposed in the fictitious host computer of cloud computing environment.Receiving test After task sign on, the storage address of the scene information of performance test task and test script can be sent to object set Group, thus can download test script, by performing test script to cloud by the node in target cluster according to storage address Access request is initiated in the application disposed in the fictitious host computer of computing environment, and gets performance data.That is, pass through this Shen Please embodiment, if ISV needs to be tested for the property the application that it is developed in cloud computing environment, need not be applied The work such as server, debugging for test, it is only necessary to specify need to which application tested and test scene is provided and Corresponding test script, you can realize the performance test based on cloud computing environment., can during specific be tested for the property The other systems of system and cloud computing environment will be tested(Such as deployment system)Get through, so that testing efficiency is improved, and energy Enough realize that automatic start returns the performance before specifying the performance test of application and reaching the standard grade.
Another advantage of the embodiment of the present application is, if according to the prior art, can only voluntarily apply for test by ISV Server, voluntarily carry out debugging etc., the Reliability ratio for the performance data that this personal behavior obtains is relatively low, the property of different application Generally can not have comparativity between data yet, across comparison can not be carried out to the performance data of different application.Further, since property The process that can be tested is relatively cumbersome, and therefore, ISV actively may will not be tested for the property the application developed.Namely Say, in the prior art, performance tests of the ISV to application generally not enough actively can not may in time have found that it is likely that and deposit before reaching the standard grade Performance issue;The performance test of active is carried out in time, obtained test data may also be not accurate enough.And in the application In embodiment, since Performance Test System can be disposed in cloud computing environment, directly each application is tested for the property. ISV needs the mark for simply specifying application to be tested done, and disposes corresponding scene, and provides test script, without Voluntarily apply for server, debugging etc., it is thus possible to improve the initiative that ISV is tested for the property application.Also, for For the application that some needs are tested for the property, even if ISV is not tested for the property actively, system can also be by calling cloud The mode of computing environment interface, to carry out automatic performance test.On the other hand, the difference for being developed based on cloud computing environment For, unified platform, unified method can be used to be tested, therefore, can cause what different application was got There is stronger comparativity between performance data, compare easy to carry out horizontal performance to different applications.Certainly, for difference For the performance data of application, the consistency operation personnel to Performance Test System are visible, and ISV can only see oneself exploitation The performance data of application.
It should be noted that during application to be tested is specifically tested for the property, it may be desirable to some bases Plinth data, if application to be tested is PaaS applications, since PaaS systems can need what is used to tested apply automatically Database is cloned, and therefore, can get the basic data needed for test automatically.And answered if application to be tested is IaaS With, then basic data can also be specified when creating test assignment, for example, the title of tables of data, specific field etc. are specified, control Central server processed, can also be by the sandbox interface of cloud computing environment after the information of performance test task is got, will The test basic data specified is imported into caching, for follow-up performance test.
It is further to note that in practical applications, it may be preferable that between control centre's server and cluster, may be used also To primarily serve the effect of route so that there are a MQ message servers, the MQ message servers, when control centre's server need to During cluster sending performance test assignment information, specific target cluster can be sent to by the MQ message servers.
Furthermore largely use virtualization technology in cloud computing environment so that monitoring resource becomes a kind of hardware and software platform, proprietary Function, the use of exterior monitoring tools is difficult to monitor the privately owned various achievement datas of platform in this case.And the application In embodiment, since the other systems of Performance Test System and cloud computing environment can be got through, except survey can be passed through Try cluster to collect outside properties data, control centre's server can also obtain data by the interface of cloud computing platform Storehouse and/or the monitoring information of fictitious host computer, it may for example comprise utilization rate of machine etc..That is, in the embodiment of the present application, The performance data got from the pressure node of test cluster is a part, some is Properties Control central server Go to call the monitoring data of the interface acquisition of IaaS or PaaS by using same sample frequency, may finally be two by this Divided data integrates, and is uniformly shown in performance test chart, or is supplied to other subsystems in cloud computing environment.
Corresponding with the performance test methods provided by the embodiments of the present application based on cloud computing platform, the embodiment of the present application is also A kind of performance testing device based on cloud computing platform is provided, referring to Fig. 2, which can include:
Information acquisition unit 201 is tested, for obtaining the information for the performance test task being created, the performance test is appointed The information of business includes identification information, test scene information and the corresponding test script of scene of application to be tested;
Script storage unit 202, for the test script to be saved in script storage server;
Using deployment unit 203, for the interface by calling cloud computing environment, in the fictitious host computer of cloud computing environment The tested application of deployment;
Target cluster determination unit 204, is that the performance test task is true after receiving test assignment sign on Set the goal cluster;
Test information transmitting unit 205, for by the scene information of the performance test task and test script in institute State the storage address in script storage server and be sent to the target cluster;So that the target cluster is according to the storage The test script is downloaded in location, and the application disposed by performing the test script into the fictitious host computer of cloud computing environment is sent out Access request is played, is returned after getting performance data;
Performance data receiving unit 206, for receiving the performance data of target cluster return, in order to provide performance test knot Fruit.
During specific implementation, cluster is multiple, and the target cluster determination unit 204 specifically can be used for:
It is described according to the cluster information specified in the performance test task after receiving test assignment sign on Performance test task determines target cluster.
Wherein, the cluster includes being to service the cluster that the application of IaaS exploitations provides based on infrastructure, Yi Jiwei It is the cluster for the application offer for servicing PaaS exploitations based on platform.
If application to be tested is the application based on IaaS exploitations, which can also include:
Data import unit, for importing test basic data by the sandbox interface in cloud computing environment.
Wherein, the test information acquisition unit 201 can specifically include:
First obtains subelement, for obtaining the information for the performance test task submitted by configuration interface.
Alternatively, the test information acquisition unit 201 can also include:
Second obtains subelement, for obtaining by calling performance test task that preset business interface submits automatically Information.
In addition, the device can also include:
Monitoring resource data capture unit, for the interface by calling cloud computing environment, obtains database and/or deployment There is the monitoring information of the fictitious host computer of tested application.
Corresponding with the performance test methods provided by the embodiments of the present application based on cloud computing platform, device, the application is real Apply example and additionally provide a kind of Performance Test System based on cloud computing platform, referring to Fig. 3, which can include performance test control Central server 301 and at least one test cluster 302 processed, wherein, performance test control centre server 301 can be with Including:
Information acquisition unit 3011 is tested, for obtaining the information for the performance test task being created, the performance test The information of task includes identification information, test scene information and the corresponding test script of scene of application to be tested;
Script storage unit 3012, for the test script to be saved in script storage server;
Using deployment unit 3013, for the interface by calling cloud computing environment, in the fictitious host computer of cloud computing environment The middle tested application of deployment;
Target cluster determination unit 3014, is the performance test task after receiving test assignment sign on Determine target cluster;
Test information transmitting unit 3015, for by the scene information of the performance test task and test script in institute State the storage address in script storage server and be sent to the target cluster;
Performance data receiving unit 3016, for receiving the performance data of target cluster return, in order to provide performance test As a result;
The target cluster 302 includes:
Press node 3021, for downloading the test script according to the storage address, and by performing the test Access request is initiated in the application that script is disposed into the fictitious host computer of cloud computing environment, get return to after performance data it is described The performance data receiving unit of performance test control centre server.
Wherein, the pressure node 3021 of a cluster internal generally can be multiple(One is only shown in figure).In addition, institute Stating target cluster 302 can also include:
Data-collection nodes, the performance data got for collecting pressure node, and return to the performance test control The performance data receiving unit of central server processed.
In addition, in order to improve the efficiency of test, the target cluster 302 can also include:
Control node, for the resource information by collecting each pressure node, dynamic adjusts test assignment to the utilization of resources The low pressure node of rate.
In order to enable cloud Performance Test System preferably supports multitask, multi-user, the pressure node 3021 can lead to Cross the independent process that the finger daemon operated on pressure node creates and perform test script, it is to be measured to what is disposed in fictitious host computer Examination application presses.
In addition, during specific implementation, which can also include:
Message server, for the scene letter for the performance test task for sending performance test control centre server The storage address of breath and test script in the script storage server, is forwarded to the target cluster.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can Realized by the mode of software plus required general hardware platform.Based on such understanding, the technical solution essence of the application On the part that contributes in other words to the prior art can be embodied in the form of software product, the computer software product It can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are used so that a computer equipment (Can be personal computer, server, or network equipment etc.)Perform some of each embodiment of the application or embodiment Method described in part.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Especially for system or For system embodiment, since it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to method The part explanation of embodiment.System and system embodiment described above is only schematical, wherein the conduct The unit that separating component illustrates may or may not be it is physically separate, can be as the component that unit is shown or Person may not be physical location, you can with positioned at a place, or can also be distributed in multiple network unit.Can root Factually border needs to select some or all of module therein realize the purpose of this embodiment scheme.Ordinary skill Personnel are without creative efforts, you can to understand and implement.
Above to the performance test methods provided herein based on cloud computing platform, apparatus and system, carry out in detail Thin to introduce, specific case used herein is set forth the principle and embodiment of the application, and above example is said It is bright to be only intended to help and understand the present processes and its core concept;Meanwhile for those of ordinary skill in the art, foundation The thought of the application, in specific embodiments and applications there will be changes.In conclusion this specification content is not It is interpreted as the limitation to the application.

Claims (13)

  1. A kind of 1. performance test methods based on cloud computing platform, it is characterised in that including:
    The information for the performance test task being created is obtained, the information of the performance test task includes the mark of application to be tested Information, test scene information and the corresponding test script of scene;
    The test script is saved in script storage server;
    By calling the interface of cloud computing environment, application to be tested is disposed in the fictitious host computer of cloud computing environment;
    After receiving test assignment sign on, target cluster is determined for the performance test task;
    By the storage address of the scene information of the performance test task and test script in the script storage server The target cluster is sent to, to download the test foot according to the storage address by the node in the target cluster This, and access request is initiated in the application disposed by performing the test script into the fictitious host computer of cloud computing environment, is obtained Returned after to performance data;
    The performance data that target cluster returns is received, in order to provide the performance test results.
  2. 2. according to the method described in claim 1, it is characterized in that, cluster is multiple, the test assignment that receives starts to refer to After order, target cluster is determined for the performance test task, including:
    It is the performance according to the cluster information specified in the performance test task after receiving test assignment sign on Test assignment determines target cluster.
  3. 3. according to the method described in claim 2, it is characterized in that, the cluster includes being to service IaaS based on infrastructure The cluster that the application of exploitation provides, and to service the cluster that the application of PaaS exploitations provides based on platform.
  4. If 4. according to the method described in claim 1, it is characterized in that, application to be tested be based on IaaS exploitation application, Then the method further includes:
    Test basic data is imported by the sandbox interface in cloud computing environment.
  5. 5. according to the method described in claim 1, it is characterized in that, described obtain the information of performance test task being created, Including:
    Obtain the information for the performance test task submitted by configuration interface.
  6. 6. according to the method described in claim 1, it is characterized in that, described obtain the information of performance test task being created, Including:
    Obtain the information of the performance test task by calling preset business interface to submit automatically.
  7. 7. method according to any one of claims 1 to 6, it is characterised in that further include:
    By calling the interface of cloud computing environment, obtain database and/or be deployed with the monitoring letter of the fictitious host computer of tested application Breath.
  8. A kind of 8. performance testing device based on cloud computing platform, it is characterised in that including:
    Information acquisition unit is tested, for obtaining the information for the performance test task being created, the letter of the performance test task Breath includes identification information, test scene information and the corresponding test script of scene of application to be tested;
    Script storage unit, for the test script to be saved in script storage server;
    Using deployment unit, for the interface by calling cloud computing environment, quilt is disposed in the fictitious host computer of cloud computing environment Survey application;
    Target cluster determination unit, after receiving test assignment sign on, target is determined for the performance test task Cluster;
    Information transmitting unit is tested, for the scene information of the performance test task and test script to be deposited in the script Storage address in storage server is sent to the target cluster, so that the target cluster downloads institute according to the storage address Test script is stated, and the application disposed by performing the test script into the fictitious host computer of cloud computing environment is initiated to access to ask Ask, returned after getting performance data;
    Performance data receiving unit, for receiving the performance data of target cluster return, in order to provide the performance test results.
  9. 9. a kind of Performance Test System based on cloud computing platform, it is characterised in that including performance test control center server And at least one test cluster, wherein, performance test control centre server includes:
    Information acquisition unit is tested, for obtaining the information for the performance test task being created, the letter of the performance test task Breath includes identification information, test scene information and the corresponding test script of scene of application to be tested;
    Script storage unit, for the test script to be saved in script storage server;
    Using deployment unit, for the interface by calling cloud computing environment, quilt is disposed in the fictitious host computer of cloud computing environment Survey application;
    Target cluster determination unit, after receiving test assignment sign on, target is determined for the performance test task Cluster;
    Information transmitting unit is tested, for the scene information of the performance test task and test script to be deposited in the script Storage address in storage server is sent to the target cluster;
    Performance data receiving unit, for receiving the performance data of target cluster return, in order to provide the performance test results;
    The target cluster includes:
    Press node, for downloading the test script according to the storage address, and by performing the test script to cloud Access request is initiated in the application disposed in the fictitious host computer of computing environment, and the performance test is returned to after getting performance data The performance data receiving unit of control centre's server.
  10. 10. system according to claim 9, it is characterised in that further included in the target cluster:
    Data-collection nodes, the performance data got for collecting pressure node, and return in the performance test control The performance data receiving unit of central server.
  11. 11. system according to claim 9, it is characterised in that further included in the target cluster:
    Control node, for the resource information by collecting each pressure node, adjustment test assignment is applied to resource utilization is low Press node.
  12. 12. system according to claim 9, it is characterised in that the pressure node is by operating on pressure node The independent process that finger daemon creates performs test script.
  13. 13. system according to claim 9, it is characterised in that further include:
    Message server, for the performance test task for sending performance test control centre server scene information with And storage address of the test script in the script storage server, it is forwarded to the target cluster.
CN201310432811.4A 2013-09-22 2013-09-22 Performance test methods, apparatus and system based on cloud computing platform Active CN104461856B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310432811.4A CN104461856B (en) 2013-09-22 2013-09-22 Performance test methods, apparatus and system based on cloud computing platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310432811.4A CN104461856B (en) 2013-09-22 2013-09-22 Performance test methods, apparatus and system based on cloud computing platform

Publications (2)

Publication Number Publication Date
CN104461856A CN104461856A (en) 2015-03-25
CN104461856B true CN104461856B (en) 2018-04-20

Family

ID=52907948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310432811.4A Active CN104461856B (en) 2013-09-22 2013-09-22 Performance test methods, apparatus and system based on cloud computing platform

Country Status (1)

Country Link
CN (1) CN104461856B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3579110A1 (en) * 2018-06-07 2019-12-11 Capital One Services, LLC Performance testing platform that enables reuse of automation scripts and performance testing scalability

Families Citing this family (51)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105262608B (en) * 2015-09-01 2018-09-18 北京百度网讯科技有限公司 Monitoring method and device for network service
CN105357067A (en) * 2015-10-14 2016-02-24 广州杰赛科技股份有限公司 Test method and system for cloud platform
CN105868058A (en) * 2015-12-14 2016-08-17 乐视网信息技术(北京)股份有限公司 Cross-machine room test method and apparatus
CN106933729A (en) * 2015-12-29 2017-07-07 苏宁云商集团股份有限公司 A kind of method of testing and system based on cloud platform
CN107291611A (en) * 2016-04-11 2017-10-24 中兴通讯股份有限公司 Call the test system and method for third-party testing instrument
CN105955874A (en) * 2016-05-03 2016-09-21 浪潮电子信息产业股份有限公司 Method for testing performance of server memory based on cloud platform
CN108255661A (en) * 2016-12-29 2018-07-06 北京京东尚科信息技术有限公司 A kind of method and system for realizing Hadoop cluster monitorings
CN107908532A (en) * 2017-05-05 2018-04-13 平安科技(深圳)有限公司 A kind of database performance diagnostic method, device and equipment
CN107229497A (en) * 2017-05-31 2017-10-03 武汉联影医疗科技有限公司 Server test method and server test device
CN107590075B (en) * 2017-09-19 2021-06-29 郑州云海信息技术有限公司 Software testing method and device
CN109697159A (en) * 2017-10-23 2019-04-30 上海仪电(集团)有限公司中央研究院 A kind of development of automation operational system based on mixing cloud platform
CN109710605B (en) * 2017-10-25 2022-12-16 卓望数码技术(深圳)有限公司 Automatic equipment information acquisition device and method
CN107748709A (en) * 2017-10-31 2018-03-02 新华三云计算技术有限公司 Test environment system, method and the analog machine of Iaas management platforms
CN107734050B (en) * 2017-10-31 2021-03-02 四川睿象科技有限公司 Load machine distribution method, computing equipment and load machine distribution system
CN109873731B (en) * 2017-12-05 2021-04-30 北京京东尚科信息技术有限公司 Test method, device and system
CN109960646B (en) * 2017-12-25 2023-02-28 福建天晴数码有限公司 Application testing method and terminal
CN109726100A (en) * 2018-04-19 2019-05-07 平安普惠企业管理有限公司 Application performance test method, apparatus, equipment and computer readable storage medium
CN108763042A (en) * 2018-05-24 2018-11-06 广东睿江云计算股份有限公司 A kind of Cloud Server performance data acquisition method and device based on python
CN108845898A (en) * 2018-05-29 2018-11-20 郑州云海信息技术有限公司 A kind of test method and test macro
CN108900324B (en) * 2018-06-13 2021-10-15 平安科技(深圳)有限公司 Method and device for checking communication performance of virtual machine
CN108845949A (en) * 2018-07-24 2018-11-20 浙江数链科技有限公司 A kind of performance test methods and platform
CN109101385A (en) * 2018-08-16 2018-12-28 郑州云海信息技术有限公司 A kind of automation method for testing pressure and system based on cloud computing
CN111104304A (en) * 2018-10-25 2020-05-05 武汉斗鱼网络科技有限公司 Multi-task scene performance testing method, storage medium, electronic device and system
CN110196806A (en) * 2019-04-12 2019-09-03 石化盈科信息技术有限责任公司 A kind of dynamic adaptation method of testing service device
CN110188022A (en) * 2019-05-09 2019-08-30 国家计算机网络与信息安全管理中心 A kind of clustering performance test method and system based on Java
CN110147328B (en) * 2019-05-24 2023-07-18 深圳市网心科技有限公司 Database performance test method, system, electronic equipment and storage medium
CN111193634B (en) * 2019-09-12 2021-08-31 腾讯科技(深圳)有限公司 Pressure testing method and device and computer readable storage medium
CN110795343B (en) * 2019-10-12 2024-03-15 车智互联(北京)科技有限公司 Test system, test method and computing device
CN111092784B (en) * 2019-10-15 2021-11-09 福建星网智慧科技有限公司 MCU cluster automatic testing method and system based on B/S architecture
CN110740081A (en) * 2019-10-23 2020-01-31 北京网聘咨询有限公司 Data visualization method for page performance of standard multiple companies
CN110868340B (en) * 2019-11-27 2021-11-02 紫光华山科技有限公司 Testing method and device, reconfigurable tester and controller
CN113158146A (en) * 2020-01-07 2021-07-23 网联清算有限公司 Script management method, script management platform, computing device and medium
CN111258902B (en) * 2020-01-17 2022-07-19 深圳平安医疗健康科技服务有限公司 Performance test method and performance test system based on SockJS server
CN111352837A (en) * 2020-02-27 2020-06-30 南京亿科人群健康研究院有限公司 Testing method of bioinformatics high-performance computing platform
CN113300900B (en) * 2020-06-28 2024-10-29 阿里巴巴集团控股有限公司 Cloud service testing method, device and system and container testing method and device
CN113760305A (en) * 2020-09-11 2021-12-07 北京沃东天骏信息技术有限公司 Continuous integration method and device
CN112162891B (en) * 2020-10-14 2024-05-03 腾讯科技(深圳)有限公司 Performance test method in server cluster and related equipment
CN114527920B (en) * 2020-10-30 2024-10-18 华为终端有限公司 Man-machine interaction method and electronic equipment
CN112491654B (en) * 2020-11-19 2024-04-19 广州力挚网络科技有限公司 Performance test method and device, electronic equipment and storage medium
CN114691476A (en) * 2020-12-30 2022-07-01 网联清算有限公司 Service system pressure test method, device and system
CN112799906A (en) * 2021-01-20 2021-05-14 北京龙云天下科技有限公司 Cloud host broadband statistical method
CN112968812A (en) * 2021-02-22 2021-06-15 北京华胜天成科技股份有限公司 Network performance testing method, device, equipment and storage medium
CN113191114B (en) * 2021-04-30 2023-11-10 北京百度网讯科技有限公司 Method and apparatus for validating a system
CN113609027B (en) * 2021-08-31 2024-09-10 北京百度网讯科技有限公司 ARM cloud server testing method and device, electronic equipment and storage medium
CN114095498B (en) * 2021-10-22 2022-08-19 广西中科曙光云计算有限公司 Cluster environment deployment method, system, computer equipment and storage medium
CN114416589B (en) * 2022-01-27 2022-09-16 北京永信至诚科技股份有限公司 Network target range comprehensive detection method, device, equipment and readable storage medium
CN114598623B (en) * 2022-03-04 2024-04-05 北京沃东天骏信息技术有限公司 Test task management method, device, electronic equipment and storage medium
CN114924953A (en) * 2022-05-06 2022-08-19 元境生生(北京)科技有限公司 Cloud application pressure test system, method, device and equipment
CN114579473B (en) * 2022-05-09 2022-09-02 太平金融科技服务(上海)有限公司深圳分公司 Application testing method, device, equipment and storage medium
CN115061886A (en) * 2022-05-20 2022-09-16 北京百度网讯科技有限公司 Performance data processing method, device, equipment and storage medium
CN116303067B (en) * 2023-03-24 2024-03-22 安超云软件有限公司 Testing method, device, equipment and medium based on cloud testing platform

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100451989C (en) * 2007-04-20 2009-01-14 北京航空航天大学 Software testing system and testing method
CN102075381A (en) * 2010-12-14 2011-05-25 云海创想信息技术(北京)有限公司 Automatic test platform server and system applied to cloud storage
CN102075384A (en) * 2010-12-20 2011-05-25 创新科存储技术有限公司 Performance test system and method
CN102880542B (en) * 2011-07-14 2015-03-18 易云捷讯科技(北京)有限公司 Cloud computing service evaluation system and evaluation method
US9612812B2 (en) * 2011-12-21 2017-04-04 Excalibur Ip, Llc Method and system for distributed application stack test certification
CN103297285B (en) * 2012-02-23 2016-03-16 百度在线网络技术(北京)有限公司 The Performance Test System of distributed type assemblies, method and apparatus
CN102831062A (en) * 2012-08-31 2012-12-19 浪潮电子信息产业股份有限公司 Testing method based on cloud computing operating system software compatibility
CN103019938B (en) * 2012-12-26 2016-12-28 北京搜狐新媒体信息技术有限公司 A kind of method and device in the application of local test cloud platform
CN103049383A (en) * 2012-12-31 2013-04-17 博彦科技(上海)有限公司 Development and testing cloud system
CN103248535B (en) * 2013-04-28 2016-03-09 华为技术有限公司 A kind of cloud system method of testing and device
CN103279392B (en) * 2013-06-14 2016-06-29 浙江大学 A kind of load sorting technique run on virtual machine under cloud computing environment
CN103294599B (en) * 2013-06-27 2015-11-04 东南大学 A kind of embedded software cross-beta method based on cloud

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3579110A1 (en) * 2018-06-07 2019-12-11 Capital One Services, LLC Performance testing platform that enables reuse of automation scripts and performance testing scalability

Also Published As

Publication number Publication date
CN104461856A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN104461856B (en) Performance test methods, apparatus and system based on cloud computing platform
CN104536899B (en) A kind of software deployment and its maintaining method based on Intelligent cluster
CN106470133B (en) System pressure testing method and device
CN107590075B (en) Software testing method and device
CN109144857A (en) Cross-platform test of heuristics method and system
CN103248535B (en) A kind of cloud system method of testing and device
CN104539487B (en) A kind of system testing and reliability estimation method based on cloud platform
CN110262964A (en) Test method, device, equipment and computer readable storage medium
US9559915B2 (en) System and method for dynamically testing networked target systems
US20140137228A1 (en) Web application vulnerability scanning
JP2001195284A (en) Frame work system and method for testing performance of server
CN107832207A (en) Interface performance test method, apparatus, storage medium and computer equipment
CN109710506A (en) A kind of terminal APP spreadability test method and device based on tree traversal
CN112148607B (en) Interface testing method and device for service scene
CN103246606A (en) Method and system for testing performances of ESB (enterprises service bus) platform
CN110362474A (en) A kind of distributed game test method, system, device and storage medium
Zhao et al. Evaluating cloud platform architecture with the care framework
CN110955600A (en) Interface test method and device
CN106776312B (en) The method, apparatus of cloud pressure testing data distribution calculates equipment and pressure testing system
CN113342515A (en) Method, device and equipment for selecting server-free computing resources and storage medium
CN104991826B (en) A kind of virtual machine deployment method and device
CN110442500A (en) A kind of test method and device of the super fusion clustering performance based on Unixbench
CN111949548B (en) Automatic unauthorized penetration testing method and storage device
US10795805B2 (en) Performance engineering platform and metric management
CN112306639B (en) Virtual desktop testing method and device

Legal Events

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