CN102868573B - Method and device for Web service load cloud test - Google Patents

Method and device for Web service load cloud test Download PDF

Info

Publication number
CN102868573B
CN102868573B CN201210337759.XA CN201210337759A CN102868573B CN 102868573 B CN102868573 B CN 102868573B CN 201210337759 A CN201210337759 A CN 201210337759A CN 102868573 B CN102868573 B CN 102868573B
Authority
CN
China
Prior art keywords
test
cloud
node
concurrent
web service
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
CN201210337759.XA
Other languages
Chinese (zh)
Other versions
CN102868573A (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.)
Tianhang Changying (Jiangsu) Technology Co.,Ltd.
Original Assignee
Beihang University
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 Beihang University filed Critical Beihang University
Priority to CN201210337759.XA priority Critical patent/CN102868573B/en
Publication of CN102868573A publication Critical patent/CN102868573A/en
Application granted granted Critical
Publication of CN102868573B publication Critical patent/CN102868573B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention provides a method and a device for a Web service load cloud test. The method for the Web service load cloud test comprises the steps of: obtaining more than two cloud test nodes of the Web service load cloud test, wherein the cloud test nodes are nodes distributed in a cloud computing network; obtaining test task information, wherein the test task information comprises concurrent test thread information of the Web service load cloud test; distributing the number of concurrent test threads to the cloud test nodes according to the concurrent test thread information, and sending test commands to the cloud test nodes when the concurrent test threads are prepared on the cloud test nodes, wherein the number of the concurrent test threads distributed to every cloud test node is smaller than the threshold of the concurrent test threads of the cloud test node; and receiving load test results returned by the cloud test nodes. By adopting the technical scheme, the defect of single positions of test nodes can be overcome, and the true concurrent calling of target test services can be realized.

Description

Web service load cloud method of testing and device
Technical field
The present invention relates to computer networking technology, particularly relate to a kind of Web service load cloud method of testing and device, belong to service load technical field of measurement and test.
Background technology
In recent years, along with the development of Internet technology, network have accumulated increasing resource, not only comprise the physical resources such as abundant calculating, storage, also have a large amount of software, Service Source, and the number of resource and type growing, thus for based on service network software development provide important basis.Simultaneously, along with Simple Object Access Protocol (Simple Object Access Protocol, hereinafter referred to as: SOAP), WSDL (Web Services Description Language, hereinafter referred to as: WSDL), Unify legislation, find and integrated (Universal Description, Discovery, andIntegration, hereinafter referred to as: UDDI) agreement and BPEL (Business ProcessExecution Language, hereinafter referred to as: BPEL) formulation of standard such as, also the fast development of Web service (Web service) technology and service-oriented architecture is further promoted, make Heterogeneous Information, sharing of heterogeneous platform becomes possibility with integrated, the distribution application system exploitation of sing on web service has become the important direction of computer software fields one.
W3C is defined as Web service: Web service is software systems, in order to the interactive operation of different machines between network enabled.The normally many application programming interfaces (API) of Web service form, and they are by network, the remote server of such as Internet, perform client submit the request of service to.At present, Web service technology is accepted widely, there is on the one hand the service software of a large amount of commercial, open source code and stand-alone development, more than 28000 is had according to the Web service of including in recent statistics Web service search engine Seekda, and constantly increase, open registry BindingPoint.com and XMethods.org also has a large amount of Web service registrations, in addition, the company such as Google, Amazon has started the Web service of external provider.
After each Web service is issued, will provide service to from difference request everywhere publicly, it can tackle great load, and which kind of different manifestations is performance have under different loads, all needs to be tested by Web service load to obtain.So Web service load test is by the performance of testing service in resource overload situation, to find the load capacity of mistake or the checking Web service designed.In testing, will test target be made to bear different workloads, to evaluate and test and to assess the performance behavior of testing service under different operating amount condition, and continue the normal ability run.
Existing Web testing tool, adopts single test node or little cluster environment to carry out load testing to Web service mostly.Due to test node limited amount, when testing the service performance in heavy load situation, the concurrent test number of threads of each test node is excessive, major part test thread can be caused to be included into test node waiting list, can not get scheduling, the network interface card place of test node also can cause congested, now, these concurrent test threads just cannot realize real invocation target testing service concomitantly, to the performance test under its heavy load.In addition, also can there is single problem in geographical position in test node, is difficult to the geographical distribution of the actual Web service call request of simulation.
Summary of the invention
The invention provides a kind of Web service load cloud method of testing and device, for solving the single defect of test node, realizing real invocation target testing service concomitantly.
First aspect of the present invention is to provide a kind of Web service load cloud method of testing, comprising:
Obtain the plural cloud test node carrying out Web service load cloud test, described cloud test node is the node be distributed in system for cloud computing;
Obtain test assignment information, described test assignment information comprises the concurrent test thread information carrying out Web service load cloud test;
Be described plural cloud test node distribution concurrent test number of threads according to described concurrent test thread information, and concurrent test thread on described plural cloud test node ready after, test instruction is sent to it, wherein, the concurrent test number of threads that each cloud test node is assigned to is less than the concurrent test thread threshold of this cloud test node;
Receive the load test results that described plural cloud test node returns.
Another aspect of the present invention is to provide a kind of Web service load cloud testing apparatus, comprising:
First acquisition module, for obtaining the plural cloud test node carrying out Web service load cloud test, described cloud test node is the node be distributed in system for cloud computing;
Second acquisition module, for obtaining test assignment information, described test assignment information comprises the concurrent test thread information carrying out Web service load cloud test;
Test processes module, for according to described concurrent test thread information being described plural cloud test node distribution concurrent test number of threads, and concurrent test thread on described plural cloud test node ready after, test instruction is sent to it, wherein, the concurrent test number of threads that each cloud test node is assigned to is less than the concurrent test thread threshold of this cloud test node;
Receiver module, for receiving the load test results that described plural cloud test node returns.
Web service load cloud method of testing provided by the invention and device, cloud test node is wherein the node be distributed in system for cloud computing, by using such cloud test node, test node in existing Web service load test process can be solved single, the defect on the impact of Web service load in practical business process can not be imitated, simultaneously due to when for cloud test node distribution concurrent test number of threads, the concurrent test number of threads that cloud test node is assigned to is less than the concurrent test thread threshold of this cloud test node, the network interface card place of test node can not cause congested, can really realize invocation target testing service concomitantly.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of Web service load cloud method of testing in the embodiment of the present invention;
Fig. 2 is the structural representation of Web service load cloud testing apparatus in the embodiment of the present invention;
Fig. 3 a is that in the embodiment of the present invention, concurrent test thread distributes schematic diagram one;
Fig. 3 b is that in the embodiment of the present invention, concurrent test thread distributes schematic diagram two.
Embodiment
Embodiments provide a kind of Web service load cloud method of testing, Fig. 1 is the schematic flow sheet of Web service load cloud method of testing in the embodiment of the present invention, as shown in Figure 1, comprises following step:
Step 101, acquisition carry out the plural cloud test node of Web service load cloud test, and described cloud test node is the node be distributed in system for cloud computing;
Step 102, acquisition test assignment information, described test assignment information comprises the concurrent test thread information carrying out Web service load cloud test;
Step 103, be described plural cloud test node distribution concurrent test number of threads according to described concurrent test thread information, and concurrent test thread on described plural cloud test node ready after, test instruction is sent to it, wherein, the concurrent test number of threads that each cloud test node is assigned to is less than the concurrent test thread threshold of this cloud test node;
Step 104, receive the load test results that described plural cloud test node returns.
The Web service load cloud method of testing that the above embodiment of the present invention provides, testing server wherein obtains test assignment information, and carry out the plural cloud test node of Web service load cloud test, wherein, test assignment information comprises the concurrent test thread information carrying out Web service load cloud test, after getting above-mentioned information, can be described plural cloud test node distribution concurrent test number of threads according to concurrent test thread information, and concurrent test thread on described plural cloud test node ready after, test instruction is sent to it, wherein, the concurrent test number of threads that each cloud test node is assigned to is less than the concurrent test thread threshold of this cloud test node.Concrete, above-mentioned cloud test node is the node be distributed in system for cloud computing, by using such cloud test node, test node in existing Web service load test process can be solved more single, the defect on the impact of Web service load in practical business process can not be imitated, simultaneously due to when for cloud test node distribution concurrent test thread, the concurrent test number of threads that cloud test node is assigned to is less than the concurrent test thread threshold of this cloud test node, the network interface card place of test node can not cause congested, can really realize invocation target testing service concomitantly.
In the above embodiment of the present invention, wherein obtaining the plural cloud test node carrying out Web service load cloud test can specifically comprise:
Obtain the plural cloud test node carrying out Web service load cloud test meeting following condition:
Σ i = 1 N d { O i - Σ j = 1 S μ j C ij } ≥ N
Wherein N drepresent plural cloud test node, S represents other software equipment species numbers that cloud test node is installed, C ijrepresent the quantity with jth categories of software equipment in cloud test node i, μ jrepresent and often increase a jth kind kind equipment to concurrent test thread threshold O iaffecting parameters, N represents the concurrent test number of threads will carrying out Web service load cloud test.
When being specified cloud test node by user, the plural cloud test node carrying out Web service load cloud test described in acquisition comprises the cloud test node that user specifies;
Or user does not specify cloud test node, the plural cloud test node carrying out Web service load cloud test described in acquisition is one group of cloud test node that in all available cloud test nodes, available concurrent thread number is maximum.
In the above embodiment of the present invention, when Web service load cloud test comprises multiple test subtask, after completing a test subtask, again obtain the plural cloud test node required for next test subtask; And be described plural cloud test node distribution concurrent test number of threads again, and concurrent test thread on described plural cloud test node ready after, send test instruction to it.
And carry out the unshared cloud test node of preferential acquisition in the plural cloud test node of Web service load cloud test in acquisition, this concrete unshared cloud test node refers in a period of time, only have the cloud test node that is tested test assignment and uses, and be called as shared test node by the node that two or more test assignment uses in a period of time.
Corresponding with said method embodiment, present invention also offers a kind of Web service load cloud testing apparatus, Fig. 2 is the structural representation of Web service load cloud testing apparatus in the embodiment of the present invention, as shown in Figure 2, comprise the first acquisition module 11, second acquisition module 12, test processes module 13 and receiver module 14, wherein the first acquisition module 11 is for obtaining the plural cloud test node carrying out Web service load cloud test, and described cloud test node is the node be distributed in system for cloud computing; Second acquisition module 12 is for obtaining test assignment information, and described test assignment information comprises the concurrent test thread information carrying out Web service load cloud test; Test processes module 13 is for according to described concurrent test thread information being described plural cloud test node distribution concurrent test number of threads, and concurrent test thread on described plural cloud test node ready after, test instruction is sent to it, wherein, the concurrent test number of threads that each cloud test node is assigned to is less than the concurrent test thread threshold of this cloud test node; The load test results that receiver module 14 returns for receiving described plural cloud test node.
The Web service load cloud testing apparatus that the above embodiment of the present invention provides, the cloud test node wherein obtained is the node be distributed in system for cloud computing, by using such cloud test node, test node in existing Web service load test process can be solved more single, the defect on the impact of Web service load in practical business process can not be imitated, simultaneously due to when for cloud test node distribution concurrent test number of threads, the concurrent test number of threads that cloud test node is assigned to is less than the concurrent test thread threshold of this cloud test node, the network interface card place of test node can not cause congested, can really realize invocation target testing service concomitantly.
In the above embodiment of the present invention, the first acquisition module is wherein specifically for obtaining the plural cloud test node carrying out Web service load cloud test of satisfied following condition:
Σ i = 1 N d { O i - Σ j = 1 S μ j C ij } ≥ N
Wherein N drepresent plural cloud test node, S represents other software equipment species numbers that cloud test node is installed, C ijrepresent the quantity with jth categories of software equipment in cloud test node i, μ jrepresent and often increase a jth kind kind equipment to concurrent test thread threshold O iaffecting parameters, N represents the concurrent test number of threads will carrying out Web service load cloud test.
In addition, user can specify cloud test node, and the plural cloud test node carrying out Web service load cloud test that described first acquisition module obtains comprises the cloud test node that user specifies; Or, do not carry in test assignment information and specify cloud test node, the plural cloud test node carrying out Web service load cloud test described in described first acquisition module obtains is one group of cloud test node that in all available cloud test nodes, available concurrent thread number is maximum.
In addition, an above-mentioned acquisition module specifically for when Web service load cloud test comprises multiple test subtask, after completing a test subtask, can also obtain the plural cloud test node required for next test subtask again; Described test processes module specifically for being described plural cloud test node distribution concurrent test number of threads again, and concurrent test thread on described plural cloud test node ready after, send test instruction to it.
In the above embodiment of the present invention, above-mentioned first acquisition module carries out the unshared cloud test node of preferential acquisition in the plural cloud test node of Web service load cloud test in acquisition.
In specific embodiments of the invention, Web service load cloud test service platform wherein can be divided into three-decker to realize, namely SaaS is comprised, PaaS and IaaS tri-layers, SaaS layer is wherein used for realizing head end test task and receives and monitoring, corresponding function can complete at cloud testing apparatus, the first acquisition module shown in Fig. 2 and the second acquisition module are positioned at this layer, test assignment can be provided to configure to tester, the connection interface submitted to and monitor, receive the test assignment information of user's input, the implementation status of test assignment is monitored, store the Web service load test result of history, the selection of cloud test node can also be responsible in addition.
PaaS layer comprises test assignment manager, software device manager, cloud test node agency and testing engine, wherein test assignment manager can according to test assignment information, and the information of each cloud test node obtained is acted on behalf of from cloud test node, for the testing engine distribution concurrent test thread of cloud test node, and concurrent test thread on cloud test node ready after, test instruction is sent to it, collect the load test results of testing engine feedback on each cloud test node simultaneously, this function can realize in Web service load testing apparatus, i.e. corresponding above-mentioned middle test processes module embodiment illustrated in fig. 2 and receiver module.Above-mentioned software device manager is the module of software equipment on load each cloud test node above-mentioned mainly, is responsible for the operations such as the registration of various software equipment, startup and closedown.Cloud test node agency is the module of software equipment on assistant software equipment control management cloud test node, it is responsible for the software equipment information time registration of this locality in software device manager, when sending the instructions such as startup, closedown when software device manager, be also act on behalf of actual execution by cloud test node.In addition, above-mentioned testing engine is special-purpose software equipment cloud test node being responsible for load testing, be responsible for initiating call request to target detection service practically, corresponding concurrent test thread is started and invocation target testing service simultaneously according to the concurrent test number of threads of test assignment manager distribution, Collection and analysis is carried out to the result of call request simultaneously, whether judgement calls successful, and can record the information such as the response time of respectively calling.
In addition, IaaS layer mainly refers to the infrastructure of load testing, such as, can comprise the resources such as calculating, storage, network.
For any one test assignment, can be realized by following test process:
Step one: receive test assignment, the test assignment information of user's input is such as received by the connection interface of cloud testing apparatus, this test assignment information is except comprising concurrent test thread information, the address of the Goal Web Services of pretest can also be comprised, the time-out time of test request or the test result etc. of expection, wherein test can be divided into three types by concurrent test thread information, one is static test, namely the total number of concurrent test thread is specified, and be distributed to multiple cloud test node, cloud test node is had once to complete test according to the concurrent test number of threads be distributed to, the second increases progressively test, convention determines the number of concurrent test thread by 10 to 100, totally 10 test subtask, each test subtask increases progressively 10 concurrent test threads, cloud testing apparatus can determine corresponding cloud test node for each test subtask, and distribute corresponding concurrent test number of threads, the third is the test of the expected results upper limit that given need meet, the initial concurrent test number of threads such as providing test is 10, increase progressively 10 concurrent test threads at every turn, do not specify the upper limit of the concurrent test number of threads of testing, only when concurrent test thread calls Web service, error rate reach a certain on stop in limited time test, the test assignment of the type also can comprise multiple test subtask.The time-out time of test request or the test result of expection can also be comprised in concrete test assignment information, these two information can send to each cloud test node, analyze with the test result of the information of being tested according to reality by cloud test node and expection, analysis result is fed back as load test results, or cloud test node is fed back as load test results the information that reality is tested, the test result of the information that cloud testing apparatus is tested according to reality and expection is analyzed, when test call is initiated by concurrent test thread to Web service for cloud test node, if the response time time-out of Web service, namely the time-out time of test request has been exceeded, or the result of calling returned when initiating test call to Web service is not mated with the test result of expection, all can think to make mistakes,
After getting above-mentioned test assignment information, test assignment information can be supplied to test assignment manager.
Step 2: configuration testing environment, after receiving test assignment information, can configuration testing environment, cloud test node can be selected simultaneously, and start the testing engine on each test node.
In this step, select cloud test node can comprise two kinds of situations, one is that tester specifies cloud test node, if tester specifies N dindividual cloud test node, then can calculate whether meet following formula:
Σ i = 1 N d { O i - Σ j = 1 S μ j C ij } ≥ N
Wherein, O irepresent the original concurrent test thread threshold of cloud test node i, this value can be measured by following mode: to choose in Service Source storehouse 20 the most frequently used Web services, then the response time that they call in the non-concurrent of cloud test node i is tested respectively, average and be designated as t1, then progressively improve concurrent thread quantity and calculate average response time t2, as t2=2t1, concurrent thread quantity is at this moment the original concurrent test thread threshold of node i.In addition, N drepresent the number of the cloud test node that tester specifies, S represents other software equipment species numbers that cloud test node is installed, C ijrepresent the quantity with jth categories of software equipment in cloud test node i, μ jrepresent and often increase a jth kind kind equipment to original concurrent test thread threshold O iaffecting parameters, N represents the concurrent test number of threads will carrying out Web service load cloud test.If do not meet above formula, then can require that tester increases new cloud test node, or cloud testing apparatus supplements some new test nodes automatically.
If tester does not specify cloud test node, then can according to the available concurrent thread number of each cloud test node to carrying out descending by test node, obtain one group of cloud test node that in all available cloud test nodes, available concurrent thread number is maximum, the number of this cloud test node is N a, it also meets above-mentioned computing formula Σ i = 1 N d { O i - Σ j = 1 S μ j C ij } ≥ N .
Step 3: test assignment is distributed to each cloud test node, it is tactful that this distribution procedure can be followed " unshared cloud test node is preferential ".
Concrete, can define the resource utilization of cloud testing apparatus according to following mode, cloud testing apparatus is at a period of time T sin average test resource utilization (Average Resource UtilizationRatio, hereinafter referred to as: ARUR) can be defined as:
ARUR = Σ i = 1 n t i N i T s Σ i = 1 Sum O i
Wherein, t iand N irepresent time of implementation and the concurrent test number of threads of test assignment i respectively, n representative is at T sthe test assignment quantity altogether performed in time period, Sum and O irepresent the original concurrent test thread threshold of available cloud test node number and cloud test node i respectively.
In order to improve the test resource utilance in cloud testing apparatus, can adopting unshared node to the distribution of test assignment, preferential (Non-shared First, hereinafter referred to as dispatching algorithm NSF).NSF dispatching algorithm is once dispatched the test assignment received at interval of a △ t, the cloud test node of specifying due to these test assignments may have repetition, if mean allocation concurrent test number of threads is to each cloud test node, the cloud test node of multiple task sharing then may be caused to reach original concurrent test thread threshold very soon, the execution of more test assignment cannot be supported simultaneously, have impact on the test assignment concurrency of cloud testing apparatus, for this reason, the unshared cloud test node of preferential use, shared cloud test node can be made can to support more test assignment simultaneously.Concrete, NSF dispatching algorithm comprises following step:
First, the cloud test node that each test assignment received in the △ t time is specified is divided into respectively shared cloud test node and unshared cloud test node two node listings;
Secondly, following steps are performed for each test assignment:
One is respectively to the descending sort according to available concurrent test number of threads of two node listings of this test assignment;
Two is successively to the cloud test node distribution concurrent test number of threads in the list of unshared cloud test node, the concurrent test number of threads that each cloud test node distributes is its current available concurrent test number of threads, be tasks leave number of concurrent when the residue concurrent test number of threads of this test assignment is less than the available concurrent test number of threads of this test node, namely its maximum capacity performs this test assignment to the greatest extent, and revises the available concurrent test number of threads of corresponding cloud test node.If total concurrent test number of threads of this test assignment is assigned or the list of unshared cloud test node has been sky, then stop;
If three is that the concurrent test thread of this test assignment is also unallocated complete, continue to distribute concurrent test thread, until the concurrent test thread of test assignment is assigned to each cloud test node in the list of shared cloud test node successively with the method for salary distribution of similar above-mentioned steps;
Four is two the concurrent thread series of distribution returning this test assignment: the concurrent thread series of distribution of unshared cloud test node and shared cloud test node.
By using NSF dispatching algorithm, the ARUR of cloud testing apparatus can significantly improve.Such as shown in Fig. 3 a and Fig. 3 b, suppose to receive two test assignment: T1 and T2 in same △ t, the concurrent test number of threads that they need separately is respectively 200,220, and the original concurrent test thread threshold of each cloud test node can be as shown, the original concurrent test thread threshold of cloud test node A ~ F is 80,60,100,50,60,90, wherein.Test assignment T1 needs to use A, B, C, D tetra-cloud test nodes are tested, and T2 needs to use C, D, E, F tetra-cloud test nodes, i.e. C, D is the cloud test node that they are shared, as shown in Figure 3 a, adopt the strategy divided equally that the concurrent test thread of test assignment T1 is all assigned to A, B, C, after D tetra-cloud test nodes, concurrent test number of threads on these four cloud test nodes is 50, A, B, on C tri-cloud test nodes, remaining available concurrent test number of threads is 30, 10 and 50, on cloud test node D, remaining available concurrent test thread is zero, T2 then cannot carry out task matching, can only wait for and can use cloud test node D after T1 is finished.As shown in Figure 3 b, according to NSF dispatching algorithm, T1 takies cloud test node A and B, and 60 available concurrent test threads on cloud test node C, T2 takies cloud test node D, E and F, and 20 available concurrent test threads on cloud test node, then two test assignments can perform simultaneously.Like this, under two kinds of different situations, execute the time period interior (supposing that T1 and the T2 time of implementation is identical) of T1, be respectively 45.5% and 95% according to the ARUR that above-mentioned formulae discovery obtains, be significantly increased.
In the above embodiment of the present invention, if test assignment requires the concurrent test number of threads progressively increased Web service load cloud test to test it, such as require from concurrent test number of threads be 10,20,30,40 ... 100 test Web service load successively, time above-mentioned test process needs longer, then in Web service load cloud test process, after executing a test subtask, can again obtain the plural cloud test node carrying out Web service load cloud test at every turn; And be described plural cloud test node distribution concurrent test thread again, and concurrent test thread on described plural cloud test node ready after, send test instruction to it.
The technical scheme that the above embodiment of the present invention provides, test for the performance of a wherein Web service and ability, the performance of measurement Web service and the foundation of ability can be the response time of this Web service for each test call, or for calling returned results accuracy at every turn.When time-out or the result that returns and expected result inconsistent time, can think that concurrent test thread is made mistakes to calling of Web service, and performance and the ability of Web service can be weighed out by error rate.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that program command is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (8)

1. a Web service load cloud method of testing, is characterized in that, comprising:
Obtain the plural cloud test node carrying out Web service load cloud test, described cloud test node is the node be distributed in system for cloud computing;
The plural cloud test node that Web service load cloud test is carried out in described acquisition comprises:
Obtain the plural cloud test node carrying out Web service load cloud test meeting following condition:
Σ i = 1 N d { O i - Σ j = 1 S μ j C ij } ≥ N
Wherein N drepresent the number of cloud test node, S represents other software equipment species numbers that cloud test node is installed, C ijrepresent the quantity with jth categories of software equipment in cloud test node i, μ jrepresent and often increase a jth kind kind equipment to original concurrent test thread threshold O iaffecting parameters, N represents the concurrent test number of threads will carrying out Web service load cloud test;
Obtain test assignment information, described test assignment information comprises the concurrent test thread information carrying out Web service load cloud test;
Be described plural cloud test node distribution concurrent test number of threads according to described concurrent test thread information, and concurrent test thread on described plural cloud test node ready after, test instruction is sent to it, wherein, the concurrent test number of threads that each cloud test node is assigned to is less than the concurrent test thread threshold of this cloud test node;
Receive the load test results that described plural cloud test node returns.
2. Web service load cloud method of testing according to claim 1, is characterized in that, the plural cloud test node carrying out Web service load cloud test described in described acquisition comprises the cloud test node that user specifies; Or
The plural cloud test node carrying out Web service load cloud test described in obtaining is one group of cloud test node that in all available cloud test nodes, available concurrent thread number is maximum.
3. Web service load cloud method of testing according to claim 1, is characterized in that, described method also comprises:
When Web service load cloud test comprises multiple test subtask, after completing a test subtask, again obtain the plural cloud test node required for next test subtask; And be described plural cloud test node distribution concurrent test number of threads again, and concurrent test thread on described plural cloud test node ready after, send test instruction to it.
4. according to the arbitrary described Web service load cloud method of testing of claim 1-3, it is characterized in that, the unshared cloud test node of preferential acquisition in the plural cloud test node of Web service load cloud test is carried out in described acquisition.
5. a Web service load cloud testing apparatus, is characterized in that, comprising:
First acquisition module, for obtaining the plural cloud test node carrying out Web service load cloud test, described cloud test node is the node be distributed in system for cloud computing;
Described first acquisition module is specifically for obtaining the plural cloud test node carrying out Web service load cloud test of satisfied following condition:
Σ i = 1 N d { O i - Σ j = 1 S μ j C ij } ≥ N
Wherein N drepresent the number of cloud test node, S represents other software equipment species numbers that cloud test node is installed, C ijrepresent the quantity with jth categories of software equipment in cloud test node i, μ jrepresent and often increase a jth kind kind equipment to original concurrent test thread threshold O iaffecting parameters, N represents the concurrent test number of threads will carrying out Web service load cloud test;
Second acquisition module, for obtaining test assignment information, described test assignment information comprises the concurrent test thread information carrying out Web service load cloud test;
Test processes module, for according to described concurrent test thread information being described plural cloud test node distribution concurrent test number of threads, and concurrent test thread on described plural cloud test node ready after, test instruction is sent to it, wherein, the concurrent test number of threads that each cloud test node is assigned to is less than the concurrent test thread threshold of this cloud test node;
Receiver module, for receiving the load test results that described plural cloud test node returns.
6. Web service load cloud testing apparatus according to claim 5, is characterized in that, the plural cloud test node carrying out Web service load cloud test that described first acquisition module obtains comprises the cloud test node that user specifies; Or
The plural cloud test node carrying out Web service load cloud test described in described first acquisition module obtains is one group of cloud test node that in all available cloud test nodes, available concurrent thread number is maximum.
7. Web service load cloud testing apparatus according to claim 5, it is characterized in that, described first acquisition module is specifically for when Web service load cloud test comprises multiple test subtask, after completing a test subtask, again obtain the plural cloud test node required for next test subtask; Described test processes module specifically for being described plural cloud test node distribution concurrent test number of threads again, and concurrent test thread on described plural cloud test node ready after, send test instruction to it.
8. according to the arbitrary described Web service load cloud testing apparatus of claim 5-7, it is characterized in that, described first acquisition module carries out the unshared cloud test node of preferential acquisition in the plural cloud test node of Web service load cloud test in acquisition.
CN201210337759.XA 2012-09-12 2012-09-12 Method and device for Web service load cloud test Active CN102868573B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210337759.XA CN102868573B (en) 2012-09-12 2012-09-12 Method and device for Web service load cloud test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210337759.XA CN102868573B (en) 2012-09-12 2012-09-12 Method and device for Web service load cloud test

Publications (2)

Publication Number Publication Date
CN102868573A CN102868573A (en) 2013-01-09
CN102868573B true CN102868573B (en) 2015-05-27

Family

ID=47447178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210337759.XA Active CN102868573B (en) 2012-09-12 2012-09-12 Method and device for Web service load cloud test

Country Status (1)

Country Link
CN (1) CN102868573B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103475538B (en) * 2013-09-02 2016-04-13 南京邮电大学 A kind of adaptive cloud service method of testing based on multiplex roles
CN104657355B (en) * 2013-11-15 2018-10-23 阿里巴巴集团控股有限公司 A kind of concurrent grasping means of webpage and system
CN105224450B (en) * 2014-07-02 2018-06-05 阿里巴巴集团控股有限公司 Concurrent testing method and device
CN106371990B (en) * 2016-08-30 2018-11-23 福建天晴数码有限公司 A kind of test method and system of interactive software oncurrent processing ability
CN106557363A (en) * 2016-12-05 2017-04-05 广发证券股份有限公司 A kind of system and method for big data task scheduling
US11537272B2 (en) * 2016-12-21 2022-12-27 Aon Global Operations Se, Singapore Branch Content management system extensions
CN107066385A (en) * 2017-03-31 2017-08-18 北京奇艺世纪科技有限公司 A kind of method of testing, apparatus and system
CN108234481B (en) * 2017-12-29 2020-10-30 上海品顺信息科技有限公司 Method for controlling multi-machine distributed access to external system and distributed system
CN108924001A (en) * 2018-06-26 2018-11-30 郑州云海信息技术有限公司 A kind of test method and device
CN112765004B (en) * 2021-01-19 2024-04-26 北京睿企信息科技有限公司 Automatic and self-adaptive interface performance test method
CN113037589B (en) * 2021-03-01 2022-04-22 广东睿住智能科技有限公司 Pressure testing method and device of gateway equipment, testing platform and storage medium
CN114328184B (en) * 2021-12-01 2024-05-17 重庆长安汽车股份有限公司 Big data cloud testing method based on vehicle-mounted Ethernet architecture

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012065521A1 (en) * 2010-11-16 2012-05-24 西安电子科技大学 Hierarchical distributed cloud computing system and method for providing service
CN102655517A (en) * 2011-03-03 2012-09-05 苏州同程旅游网络科技有限公司 Cloud computing based network load balancing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012065521A1 (en) * 2010-11-16 2012-05-24 西安电子科技大学 Hierarchical distributed cloud computing system and method for providing service
CN102655517A (en) * 2011-03-03 2012-09-05 苏州同程旅游网络科技有限公司 Cloud computing based network load balancing method

Also Published As

Publication number Publication date
CN102868573A (en) 2013-01-09

Similar Documents

Publication Publication Date Title
CN102868573B (en) Method and device for Web service load cloud test
US11392561B2 (en) Data migration using source classification and mapping
CN102214139B (en) Automatic test performance control and debugging method facing distributed system
US9268663B1 (en) Software testing analysis and control
CA2624483C (en) A method and system for automatically testing performance of applications run in a distributed processing structure and corresponding computer program product
CN103995735A (en) Device and method for scheduling working flow
US7995474B2 (en) Grid network throttle and load collector
US20070118839A1 (en) Method and apparatus for grid project modeling language
CN103649938B (en) Management work load in multiprocessing computer system
CN106874084B (en) Distributed workflow scheduling method and device and computer equipment
CN106155807A (en) A kind of method and apparatus realizing scheduling of resource
CN109871328B (en) Software testing method and device
CN106557369A (en) A kind of management method and system of multithreading
CN104077212A (en) Pressure test system and method
CN111563014A (en) Interface service performance test method, device, equipment and storage medium
CN111045911B (en) Performance test method, performance test device, storage medium and electronic equipment
Yan et al. Building a TaaS platform for web service load testing
Yan et al. Ws-taas: A testing as a service platform for web service load testing
CN114564374A (en) Operator performance evaluation method and device, electronic equipment and storage medium
CN111966556A (en) Performance pressure measurement method and device, server and computer readable storage medium
CN105677492B (en) A kind of reliability application execution method of terminaloriented
Du et al. Dynamic scheduling with process migration
Ali et al. Performance testing as a service using cloud computing environment: A survey
CN105279065B (en) The method and device of statistical test result in cloud test platform
Zhang et al. Design and implementation of cloud-based performance testing system for web services

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220126

Address after: 215488 No. 301, building 11, phase II, Taicang University Science Park, No. 27, Zigang Road, science and education new town, Taicang City, Suzhou City, Jiangsu Province

Patentee after: Tianhang Changying (Jiangsu) Technology Co.,Ltd.

Address before: 100191 Beihang University, Haidian District, Xueyuan Road, 37, Beijing

Patentee before: BEIHANG University

TR01 Transfer of patent right