CN105373475A - Surge test method and system - Google Patents

Surge test method and system Download PDF

Info

Publication number
CN105373475A
CN105373475A CN201510763250.5A CN201510763250A CN105373475A CN 105373475 A CN105373475 A CN 105373475A CN 201510763250 A CN201510763250 A CN 201510763250A CN 105373475 A CN105373475 A CN 105373475A
Authority
CN
China
Prior art keywords
charge
coupled
virtual user
predetermined number
termination set
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510763250.5A
Other languages
Chinese (zh)
Other versions
CN105373475B (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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN201510763250.5A priority Critical patent/CN105373475B/en
Publication of CN105373475A publication Critical patent/CN105373475A/en
Application granted granted Critical
Publication of CN105373475B publication Critical patent/CN105373475B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The invention provides a surge test method and system. The system comprises a first preset quantity of terminal set groups and a test object connected with the first preset quantity of terminal set groups, wherein all the terminals in each terminal set group are provided with execution ends of LoadRunner software; one terminal in each terminal set group is provided with a master control end of the LoadRunner software; the first preset quantity is greater than or equal to 2. According to the surge test method and system, all the terminals are divided into a plurality of terminal set groups, so that when the quantity of virtual users is decreased, the quantity of the virtual users of all the terminals in one or more terminal set group are decreased to zero; and when the quantity of the virtual users is increased, the quantity of the virtual users of each terminal is only increased on the terminal set groups, the virtual user quantities of which are decreased. According to the method and system, the defects of the Load Runner software can be avoided, and the aim of carrying out surge test by utilizing the LoadRunner software can be realized.

Description

A kind of surge test method and system
Technical field
The application relates to technical field of automation, particularly relates to a kind of surge test method and system.
Background technology
At present, in order to understand the ability to bear of system, generally surge test can be carried out to system.Surge test refers to a kind of test cases to system; The test purpose of this case be system user quantity is excessive cause responding slow time, quantitative measurement reduces rapidly how much pressure can make System recover normal at short notice.Such as, when system access number of users is too much, can reduce the number of users of access system, after minimizing number of users A, System recover is normal, and so, number of users A is the result of surge test.
At present, following 3 steps can be divided into the process that system carries out surge test:
Step 1: the quantity constantly increasing the Virtual User of access system, until tested object goes wrong; Such as, tested object occurs that response slowly, the problems such as the reaction time is longer; Now show the upper limit that the quantity of Virtual User has reached system and can bear.
Step 2: the quantity constantly reducing the Virtual User of access system, now system can slowly be recovered.When System recover is normal, record the Virtual User quantity now reduced.Or directly reduce the Virtual User quantity of some, whether system of checking recovers normal.
Step 3: increase the quantity of Virtual User to normal quantity, to see whether system can normally be run.Normal quantity in step 3, in fact tested object can carry the quantity of Virtual User.
After step 2 reduces Virtual User quantity, in order to whether further certainty annuity is normal, therefore increase Virtual User quantity in step 3 to normal quantity.If tested object is when having the Virtual User of normal quantity, still can normally run, then illustrative system has recovered normal really.The Virtual User quantity that now can will reduce in step 2, is defined as the result of surge test.If tested object is when having the Virtual User of normal quantity, normally can not run, then illustrate that after reducing Virtual User quantity in step 2, system does not recover normal yet.
At present, often can use LoadRunner software in system testing process, LoadRunner software is the testing tool of a kind of prognoses system behavior and performance load; It can implement concurrent load by the up to ten million user of simulation.Therefore, LoadRunner software can be used when carrying out surge test, simulating Virtual User.
To introduce LoadRunner software application to the process of surge test below:
Surge test LoadRunner software can be divided into two parts: main control end and actuating station.For n station terminal, can be: the actuating station of LoadRunner software is mounted on n station terminal the main control end of LoadRunner software is arranged on wherein on a station terminal when specific implementation.Main control end can control the actuating station in each terminal, thus realizes the increase of Virtual User quantity or the object of minimizing.
Step 1 for surge test: when needs increase Virtual User quantity, main control end can control each actuating station evenly increases Virtual User quantity, and namely the meeting of Virtual User quantity is evenly increased on n station terminal, until tested object goes wrong.
Step 2 for surge test: when needs reduce Virtual User quantity, the quantity of Virtual User in a terminal can be reduced to zero by main control end, and then Virtual User quantity in another terminal is reduced to zero, the like, until the Virtual User quantity reduced reaches requirement.Namely the Virtual User quantity of terminal 1 can be dropped to 0 by main control end, again by the Virtual User quantity near zero of terminal 2, the like, until the quantity Virtual User quantity reduced reaches target total quantity, target total quantity can for presetting the Virtual User quantity needing to reduce.
That is, in LoadRunner software, main control end evenly can not reduce the quantity of Virtual User on each terminal, but reduces the quantity of the Virtual User of each terminal one by one.This just makes the Virtual User quantity of wherein a part of terminal be reduced to zero, and the Virtual User quantity of another part terminal can not reduce.
Step 3 for surge test: when needs increase Virtual User quantity, based on the standard of LoadRunner software, when again increasing Virtual User quantity, main control end still evenly increases Virtual User quantity on each terminal.
But, when again increasing Virtual User quantity in step 3, the Virtual User quantity that do not reduce in step 2 in the terminal of Virtual User quantity can be caused too much, thus directly cause tested object to go wrong, after this causes the Virtual User quantity reduced in step 2, whether cannot recover normal by certainty annuity, and then cause surge test failure.
As can be seen from above content: for the special screne of surge test, due to the defect of LoadRunner software self, cause surge test failure.Therefore, need now a kind of method to avoid the defect of LoadRunner software self, thus realize utilizing LoadRunner software to complete the object of surge test.
Summary of the invention
This application provides a kind of surge test method and system, use the application can realize utilizing LoadRunner software to complete the object of surge test.
To achieve these goals, this application provides following technological means:
A kind of surge test system, comprising:
The termination set of the first predetermined number is charge-coupled; Wherein, during each termination set is charge-coupled, all terminals are all provided with the actuating station of LoadRunner software, and a terminal during each termination set is charge-coupled is provided with the main control end of LoadRunner software; Further, described first predetermined number is more than or equal to 2;
The tested object that be connected charge-coupled with the termination set of described first predetermined number.
Preferably, the second quantity summation is not less than in the ratio of occupying of the first quantity summation the desired value preset; Wherein, described first quantity summation is all terminal quantity summations in the termination set of the first predetermined number is charge-coupled, described second quantity summation be the termination set of the second predetermined number charge-coupled in the quantity summation of all terminals; Described second predetermined number is less than described first predetermined number.
Preferably, the charge-coupled terminal comprising equal number of each termination set.
A kind of surge test method, be applied to described surge test system, described method comprises:
The main control end of all LoadRunner software during the termination set of the first predetermined number is charge-coupled, after receiving the instruction increasing Virtual User quantity, control the actuating station of the charge-coupled interior all LoadRunner softwares of this termination set, even increase Virtual User quantity, until the tested object in described surge test system goes wrong;
The main control end of the LoadRunner software that each termination set is charge-coupled in first set, after receiving the instruction reducing Virtual User quantity, control the actuating station of the charge-coupled interior all LoadRunner softwares of this termination set, reduce Virtual User quantity one by one, until the Virtual User quantity to zero of the actuating station of the charge-coupled interior all LoadRunner softwares of this termination set; Wherein, one or more termination set is comprised in described first set charge-coupled;
The main control end of the LoadRunner software that each termination set in the second set is charge-coupled, after receiving the instruction increasing Virtual User quantity, controls the actuating station of the charge-coupled interior all LoadRunner softwares of this termination set, evenly increases Virtual User quantity; Wherein, described second gathers for the charge-coupled set of termination sets one or more in described first set.
Preferably, the second quantity summation is not less than in the ratio of occupying of the first quantity summation the desired value preset; Wherein, described first quantity summation is all terminal quantity summations in the termination set of the first predetermined number is charge-coupled, the quantity summation of all terminals during the termination set of the second predetermined number that described second quantity summation comprises for the first set is charge-coupled; Described second predetermined number is less than described first predetermined number.
Preferably, wherein, described second gathers for the charge-coupled set of the termination set of the 3rd predetermined number in described first set, and described 3rd predetermined number is less than or equal to described second predetermined number.
Preferably, the charge-coupled terminal comprising equal number of described each termination set.
As can be seen from above content, the application has the following advantages:
The application is not changing on LoadRunner basis of software, is divided into multiple termination set charge-coupled all terminals, when reducing Virtual User quantity, the Virtual User quantity of all terminals in charge-coupled for one or more termination set is reduced to zero.When increasing Virtual User quantity, on the termination set reducing Virtual User quantity is charge-coupled, only increase the Virtual User quantity of each terminal.So there will not be when evenly increasing Virtual User quantity, cause Virtual User quantity in some terminals too much, the phenomenon causing tested object to go wrong produces.Namely the application can evade the defect of LoadRunner software, utilizes the application can realize utilizing LoadRunner software to carry out the object of surge test.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The structural drawing of Fig. 1 a kind of surge test system disclosed in the embodiment of the present application;
The process flow diagram of Fig. 2 a kind of surge test method disclosed in the embodiment of the present application;
Fig. 3 is the structural drawing of the embodiment of the present application another surge test system disclosed.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, be clearly and completely described the technical scheme in the embodiment of the present application, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of the application's protection.
Present inventor is after carefully studying the implementation procedure of LoadRunner software in surge test, find: in prior art, all terminals are all provided with the actuating station of LoadRunner software, but only have the main control end of a LoadRunner software, all terminals control by a main control end.This causes prior art to have following problem:
When increasing Virtual User quantity in the surge test first step, main control end evenly increases the Virtual User quantity of all terminals.When reducing Virtual User quantity in surge test second step, main control end reduces the quantity of one or more Virtual User one by one.When surge test the 3rd step adding users quantity, due to all terminals of main control end management and control, the Virtual User quantity of all terminals therefore still evenly can be increased.This causes the failure of surge test.
By researching and analysing, present inventor finds to cause the basic reason of surge test failure to be: in prior art, all terminals are all controlled by the main control end of a LoadRunner software.For this reason, all terminals are divided into multiple termination set charge-coupled by the application's imagination, the charge-coupled main control end that a LoadRunner software is set of each termination set, each main control end for control with it corresponding termination set charge-coupled in each terminal, thus all terminals are controlled by the main control end of multiple LoadRunner software.
Introduce the specific implementation process of the application below:
As shown in Figure 1, this application provides a kind of surge test system, comprising:
The termination set charge-coupled 100 of the first predetermined number; Wherein, in each termination set charge-coupled 100, all terminals are all provided with the actuating station of LoadRunner software, and a terminal during each termination set is charge-coupled is provided with the main control end of LoadRunner software.The tested object 200 be connected with the termination set charge-coupled 100 of described first predetermined number.Wherein, adopt that termination set is charge-coupled 1, termination set charge-coupled 2 ... the charge-coupled N of termination set represents, the first predetermined number N is more than or equal to 2.
All terminals are divided into the first predetermined number termination set charge-coupled by the application, comprise several terminals during each termination set is charge-coupled.All terminals during each termination set is charge-coupled are all provided with the actuating station of LoadRunner software (for convenience of description, following by the actuating station of LoadRunner software referred to as actuating station), actuating station can increase or reduce Virtual User quantity by control terminal.A terminal is had the main control end of LoadRunner software to be installed (for convenience of description during a termination set is charge-coupled, following by the main control end of LoadRunner software referred to as main control end), main control end is for controlling each actuating station, so that each terminal of control increases or reduces the quantity of Virtual User further.
That is, a charge-coupled corresponding main control end of termination set in this application.Due to the application, to have the first predetermined number termination set charge-coupled, and therefore, the application just has the first predetermined number main control end, and compared with only having a main control end with prior art, the application can adopt a predetermined number main control end to control all terminals.
Introducing below utilizes the surge test system shown in Fig. 1 to carry out the process of surge test:
As shown in Figure 2, this application provides a kind of surge test method, application surge test system as shown in Figure 1, comprising:
The main control end of all LoadRunner software during the termination set of the step S201: the first predetermined number is charge-coupled, after receiving the instruction increasing Virtual User quantity, control the actuating station of the charge-coupled interior all LoadRunner softwares of this termination set, even increase Virtual User quantity, until the tested object denial of service in described surge test system.
Can the termination set of the first predetermined number be divided into charge-coupled all terminals in the application, and, for each termination set charge-coupled in all terminals the actuating station of LoadRunner software is installed, be the main control end that the charge-coupled terminal of each termination set installs LoadRunner software.The main control end of the LoadRunner software during each termination set is charge-coupled is controlled by technician, or, be controlled by other controller.
Such as, the first predetermined number is 4, then all terminals can be divided into that termination set is charge-coupled 1, termination set is charge-coupled 2, termination set charge-coupled 3 and termination set charge-coupled 4.Four charge-coupled corresponding four main control end respectively of termination set: main control end 1, main control end 2, main control end 3 and main control end 4.
The main control end that each termination set is charge-coupled in this step can the instruction of increase Virtual User that issues of reception technique personnel or other controller, then, control its termination set belonged to charge-coupled in actuating station, evenly increase Virtual User quantity.
Such as, continue above-mentioned citing, after receiving the instruction increasing Virtual User quantity, all actuating stations in main control end 1 control terminal set group 1, evenly increase Virtual User quantity; All actuating stations in main control end 2 control terminal set group 2, evenly increase Virtual User quantity; All actuating stations in main control end 3 control terminal set group 3, evenly increase Virtual User quantity; All actuating stations in main control end 4 control terminal set group 4, evenly increase Virtual User quantity.
In terminal, observe that tested object goes wrong technician, or after controller finds that tested object goes wrong after carrying out logical operation process, technician or controller, to the charge-coupled main control end of all termination sets, send the instruction stopping increasing Virtual User quantity.Generally speaking, when the abnormal conditions such as response is slow or cannot respond appear in discovery tested object, illustrate that tested object goes wrong, now stop the quantity increasing Virtual User.
The main control end of the LoadRunner software that each termination set is charge-coupled in step S202: the first set, after receiving the instruction reducing Virtual User quantity, control the actuating station of the charge-coupled interior all LoadRunner softwares of this termination set, reduce Virtual User quantity one by one, until the Virtual User quantity to zero of the actuating station of the charge-coupled interior all LoadRunner softwares of this termination set; Wherein, one or more termination set is comprised in described first set charge-coupled.
For convenience of description, it is charge-coupled that the application sets the termination set comprising the second predetermined number in the first set, second preset be less than the first predetermined number.
Technician or controller, in the termination set of the first predetermined number is charge-coupled, select the set that one or more termination set is charge-coupled, namely select the termination set of the second predetermined number charge-coupled, determines as the first set.All termination sets in first set are charge-coupled all for performing the step reducing Virtual User quantity.
Such as, continue above-mentioned citing, using charge-coupled for termination set 1, termination set charge-coupled 2 and termination set charge-coupled 3 as the first set.
The main control end that one or more termination set is charge-coupled in the first aggregate, after receiving the instruction reducing Virtual User quantity, then control the with it corresponding charge-coupled interior all actuating station of termination set and reduce Virtual User quantity one by one, until in the first set all termination sets charge-coupled in Virtual User quantity be zero.
Such as, after receiving the instruction reducing Virtual User quantity, main control end 1 reduces the Virtual User quantity in termination set charge-coupled 1 in each terminal one by one, until the Virtual User quantity of all terminals is reduced to zero on termination set charge-coupled 1.Main control end 2 reduces the Virtual User quantity in termination set charge-coupled 2 in each terminal one by one, until the Virtual User quantity of all terminals is reduced to zero on termination set charge-coupled 2.Main control end 3 reduces the Virtual User quantity in termination set charge-coupled 3 in each terminal one by one, until the Virtual User quantity of all terminals is reduced to zero on termination set charge-coupled 3.
The object of this step is the defect of evading LoadRunner software, and because LoadRunner software is the Virtual User quantity reduced one by one in terminal, the Virtual User quantity in a terminal is reduced to after zero, then reduces the Virtual User quantity in another terminal.Still according to the strategy execution of LoadRunner software in this step.
The main control end of the LoadRunner software that each termination set in the step S203: the second set is charge-coupled, after receiving the instruction increasing Virtual User quantity, control the actuating station of the charge-coupled interior all LoadRunner softwares of this termination set, evenly increase Virtual User quantity; Wherein, described second gathers for the charge-coupled set of termination sets one or more in described first set.
Technician or controller in this step, can select one or more termination set charge-coupled in the first aggregate, for continuing the quantity increasing Virtual User.Comprise in the first aggregate the termination set of the second predetermined number charge-coupled time, the termination set of the 3rd predetermined number can be selected in the first aggregate charge-coupled, by set charge-coupled for the termination set of the 3rd predetermined number, be defined as the 3rd set.
This step, when increasing Virtual User quantity, still according to the strategy execution of LoadRunner software, evenly increases the quantity of Virtual User.Unlike, the application has only reduced in the terminal of Virtual User quantity in the second step, increases Virtual User quantity; And not in the terminal not reducing Virtual User quantity, increase Virtual User quantity, therefore, the Virtual User quantity in some terminal can not be made too much, and then tested object can not be caused to go wrong.
Such as, continue above-mentioned citing, charge-coupled for termination set 1 and termination set charge-coupled 2 are gathered as second.After execution step S202, on termination set charge-coupled 1 and termination set charge-coupled 2, the Virtual User quantity of each terminal is reduced to zero.Therefore, perform when increasing Virtual User quantity in step S203, in each terminal of termination set charge-coupled 1 and termination set charge-coupled 2, evenly can increase Virtual User quantity.
All terminals in step S202 in termination set charge-coupled 4 do not reduce Virtual User quantity.Therefore, in step S203, the Virtual User quantity of all terminals in termination set charge-coupled 4 also can not be increased.Therefore, the Virtual User quantity on termination set charge-coupled 4 remains the Virtual User quantity in step S201, the Virtual User quantity on termination set charge-coupled 4 can not be caused too much, thus cause tested object to go wrong.
On the basis of the embodiment shown in Fig. 1 and Fig. 2, in the process of carrying out surge test, technician can specify in second step the Virtual User quantity needing to reduce, and the application will need the Virtual User quantity set reduced to be desired value.Such as, technician specifies the Virtual User quantity needing minimizing 50% in the second step, so 50% is desired value.
In order to realize the object of the Virtual User quantity reducing desired value, the application can determine the first predetermined number and the second predetermined number according to desired value.Determine the process of the first predetermined number and the second predetermined number according to desired value, two kinds of modes can be divided into: first kind of way, the charge-coupled terminal comprising varying number of each termination set; The second way, the charge-coupled terminal comprising equal number of each termination set.
Below to determining that according to desired value the process of the first predetermined number is described in detail,
First kind of way: the charge-coupled terminal comprising varying number of each termination set.
Suppose there are 100 terminals, desired value is 25%.So, can 2 termination sets are divided into charge-coupled 100 terminals, first terminal set group be 25 terminals, and the second termination set is charge-coupled is 75 terminals.In first terminal set group, the Virtual User quantity of all terminals is reduced to after zero like this, just can reach the object of minimizing 25% Virtual User quantity.Therefore, in the present embodiment, the first predetermined number is 2, and the second predetermined number is 1.
Suppose there are 100 terminals, desired value is 75%.So, can 2 termination sets are divided into charge-coupled 100 terminals, first terminal set group be 25 terminals, and the second termination set is charge-coupled is 75 terminals.Like this being reduced to after zero by the Virtual User quantity of all terminals in charge-coupled for the second termination set, the object of minimizing 75% Virtual User quantity just can be reached.Therefore, in the present embodiment, the first predetermined number is 4, and the second predetermined number is 3.
The second way: the charge-coupled terminal comprising equal number of each termination set.
Such as, suppose there are 100 terminals, desired value is 25%.Can 4 termination sets be divided into charge-coupled 100 terminals, charge-coupled 25 terminals of each termination set.So, being reduced to after 0 by the Virtual User quantity of all terminals in charge-coupled for one of them termination set, then the object of minimizing 25% Virtual User quantity can be reached.Therefore, in the present embodiment, the first predetermined number is 2, and the second predetermined number is 1.Such as, suppose there are 100 terminals, desired value is 65%.Can 4 termination sets be divided into charge-coupled 100 terminals, charge-coupled 25 terminals of each termination set.Being reduced to after zero by charge-coupled for two termination sets, can reaching and Virtual User quantity is reduced 50%.Therefore, again the Virtual User quantity of all terminals charge-coupled for another termination set can be reduced to 0, and then reach object Virtual User quantity being reduced to 75%.Therefore, in the present embodiment, the first predetermined number is 4, and the second predetermined number is 3.
In the Virtual User quantity reduced by the process of 50% to 75%, the process of 65% will inevitably be reached through the Virtual User quantity reduced, therefore, 65% can be reduced to observing Virtual User quantity technician, or, when controller detects that Virtual User quantity has reduced 65%, whether observation test object recovers normal.
By describing above and can learning, determine that the standard of the first predetermined number and the second predetermined number is according to desired value: the second quantity summation is not less than in the ratio of occupying of the first quantity summation the desired value preset; Wherein, described first quantity summation is all terminal quantity summations in the termination set of the first predetermined number is charge-coupled, described second quantity summation be the termination set of the second predetermined number charge-coupled in the quantity summation of all terminals.
Specifically, after determining the first predetermined number, charge-coupled at the termination set of charge-coupled middle selection second predetermined number of the termination set of the first predetermined number, the second predetermined number is less than the first predetermined number.By the quantity summation of all terminals in charge-coupled for the termination set of the first predetermined number, be defined as the first quantity summation; By the quantity summation of all terminals in charge-coupled for the termination set of the second predetermined number, be defined as the second quantity summation.Second quantity summation occupies ratio the first quantity summation, is not less than the desired value preset.Such as, suppose there are 100 terminals, desired value is 65%.Can 4 termination sets be divided into charge-coupled 100 terminals, charge-coupled 25 terminals of each termination set.First predetermined number is 4 in this example, and the second predetermined number is 3.Then the first quantity summation is 100, and the second quantity summation is 75.It is 75%, 75% be greater than the desired value 65% preset that second quantity summation occupies ratio in the first quantity summation.
Determine the first predetermined number and the second predetermined number occurrence in the application, can determine according to concrete condition, not limit.
As can be seen from above content, the application has the following advantages:
The application is not changing on LoadRunner basis of software, is divided into multiple termination set charge-coupled all terminals, when reducing Virtual User quantity, the Virtual User quantity of all terminals in charge-coupled for one or more termination set is reduced to zero.When increasing Virtual User quantity, on the termination set reducing Virtual User quantity is charge-coupled, only increase the Virtual User quantity of each terminal.So there will not be when evenly increasing Virtual User quantity, cause Virtual User quantity in some terminals too much, the phenomenon causing tested object to go wrong produces.Namely the application can evade the defect of LoadRunner software, utilizes the application can realize utilizing LoadRunner software to carry out the object of surge test.
Introduce a scene embodiment of the application below: see Fig. 3, for bank transaction system.In 8 E-bank terminals, LoadRunner software is installed in diagram, in 8 station terminals, request can be initiated to 12 Net silver AP servers as client.Component requests needs inquiry Net silver database server.Part request needs access back end system, and the transaction of access back end system will be kept off back by " back-end system baffle plate ", simulates the state returning to front end after access back end system.
In bank transaction system, carry out surge test, test purpose is: when in quantitative measurement bank transaction system, Virtual User quantity is excessive, and reducing how much pressure can make System recover normal at short notice.
Time excessive with Virtual User quantity in this surge test, (early stage, test obtained conclusion, 3200-3300 concurrent user will cause this Bug), the Bug of Oracle10g can be triggered, response time obviously elongated problem is example to cause bank transaction system to occur, is described in detail to surge test method.
In order to evade the software defect that LoadRunner exists, the flow process of surge test method is as follows:
(1) desired value is set as 50%.
8 E-bank terminals installing LoadRunner are equally divided into two groups, and often group has a main control end to control, and the main control end of two groups is respectively main control end 1 and main control end 2.Often organize and connect the fixing Net silver AP server of equivalent respectively, namely 4 E-bank terminals connect 6 Net silver AP servers.
(2) main control end 1 controls 4 E-bank terminals increases Virtual User quantity, to increase the request to Net silver AP server, and then increases the quantity of accessing database, database is pressed onto and occurs Bug.
(3) the Virtual User quantity of 4 E-bank terminals of main control end 1 correspondence is reduced to zero, namely reduce the Virtual User number of users of 50%, now database generally can recover.
(4) the Virtual User quantity of 4 E-bank terminals of main control end 1 correspondence is increased, to check whether database recovers normal.If recover normal, then the Virtual User quantity that can will reduce in step (3), determines the result of surge test.
If the function described in the present embodiment method using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computing equipment read/write memory medium.Based on such understanding, the part of the part that the embodiment of the present application contributes to prior art or this technical scheme can embody with the form of software product, this software product is stored in a storage medium, comprising some instructions in order to make a computing equipment (can be personal computer, server, mobile computing device or the network equipment etc.) perform all or part of step of method described in each embodiment of the application.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiment, between each embodiment same or similar part mutually see.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the application.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein when not departing from the spirit or scope of the application, can realize in other embodiments.Therefore, the application can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (7)

1. a surge test system, is characterized in that, comprising:
The termination set of the first predetermined number is charge-coupled; Wherein, during each termination set is charge-coupled, all terminals are all provided with the actuating station of LoadRunner software, and a terminal during each termination set is charge-coupled is provided with the main control end of LoadRunner software; Further, described first predetermined number is more than or equal to 2;
The tested object that be connected charge-coupled with the termination set of described first predetermined number.
2. the system as claimed in claim 1, is characterized in that, the second quantity summation is not less than in the ratio of occupying of the first quantity summation the desired value preset; Wherein, described first quantity summation is all terminal quantity summations in the termination set of the first predetermined number is charge-coupled, described second quantity summation be the termination set of the second predetermined number charge-coupled in the quantity summation of all terminals; Described second predetermined number is less than described first predetermined number.
3. system as claimed in claim 1 or 2, is characterized in that, the charge-coupled terminal comprising equal number of each termination set.
4. a surge test method, is characterized in that, is applied to surge test system as claimed in claim 1, and described method comprises:
The main control end of all LoadRunner software during the termination set of the first predetermined number is charge-coupled, after receiving the instruction increasing Virtual User quantity, control the actuating station of the charge-coupled interior all LoadRunner softwares of this termination set, even increase Virtual User quantity, until the tested object in described surge test system goes wrong;
The main control end of the LoadRunner software that each termination set is charge-coupled in first set, after receiving the instruction reducing Virtual User quantity, control the actuating station of the charge-coupled interior all LoadRunner softwares of this termination set, reduce Virtual User quantity one by one, until the Virtual User quantity to zero of the actuating station of the charge-coupled interior all LoadRunner softwares of this termination set; Wherein, one or more termination set is comprised in described first set charge-coupled;
The main control end of the LoadRunner software that each termination set in the second set is charge-coupled, after receiving the instruction increasing Virtual User quantity, controls the actuating station of the charge-coupled interior all LoadRunner softwares of this termination set, evenly increases Virtual User quantity; Wherein, described second gathers for the charge-coupled set of termination sets one or more in described first set.
5. method as claimed in claim 4, it is characterized in that, the second quantity summation is not less than in the ratio of occupying of the first quantity summation the desired value preset; Wherein, described first quantity summation is all terminal quantity summations in the termination set of the first predetermined number is charge-coupled, the quantity summation of all terminals during the termination set of the second predetermined number that described second quantity summation comprises for the first set is charge-coupled; Described second predetermined number is less than described first predetermined number.
6. method as claimed in claim 5, is characterized in that, wherein, described second gathers for the charge-coupled set of the termination set of the 3rd predetermined number in described first set, and described 3rd predetermined number is less than or equal to described second predetermined number.
7. the method as described in any one of claim 4-6, is characterized in that, the charge-coupled terminal comprising equal number of described each termination set.
CN201510763250.5A 2015-11-10 2015-11-10 A kind of surge test method and system Active CN105373475B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510763250.5A CN105373475B (en) 2015-11-10 2015-11-10 A kind of surge test method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510763250.5A CN105373475B (en) 2015-11-10 2015-11-10 A kind of surge test method and system

Publications (2)

Publication Number Publication Date
CN105373475A true CN105373475A (en) 2016-03-02
CN105373475B CN105373475B (en) 2018-03-23

Family

ID=55375693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510763250.5A Active CN105373475B (en) 2015-11-10 2015-11-10 A kind of surge test method and system

Country Status (1)

Country Link
CN (1) CN105373475B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030074606A1 (en) * 2001-09-10 2003-04-17 Udi Boker Network-based control center for conducting performance tests of server systems
US20100042970A1 (en) * 2008-08-13 2010-02-18 Electronic Data System Corporation, a corporation of Delaware Generating loadrunner scripts
CN103959242A (en) * 2011-10-10 2014-07-30 惠普发展公司,有限责任合伙企业 Methods and systems for planning execution of an application in a cloud computing system
CN104123189A (en) * 2014-06-30 2014-10-29 复旦大学 Web multilayer application dynamic resource adjustment method based on IaaS layer application perception

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030074606A1 (en) * 2001-09-10 2003-04-17 Udi Boker Network-based control center for conducting performance tests of server systems
US20100042970A1 (en) * 2008-08-13 2010-02-18 Electronic Data System Corporation, a corporation of Delaware Generating loadrunner scripts
CN103959242A (en) * 2011-10-10 2014-07-30 惠普发展公司,有限责任合伙企业 Methods and systems for planning execution of an application in a cloud computing system
CN104123189A (en) * 2014-06-30 2014-10-29 复旦大学 Web multilayer application dynamic resource adjustment method based on IaaS layer application perception

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘支援: ""基于LoadRunner的ATS系统性能分析及实现方法"", 《信息化研究》 *

Also Published As

Publication number Publication date
CN105373475B (en) 2018-03-23

Similar Documents

Publication Publication Date Title
US5898863A (en) Method and apparatus for determining I/O size distribution of an input/output system and its use for load simulation
CN103248535B (en) A kind of cloud system method of testing and device
CN103677650B (en) Drive letter drifting preventing and treating method and device
CN104079445A (en) Distributed type pressure testing system and method
CN105426298A (en) ADB (Android debug bridge)-based software test method and system
CN107196781B (en) Security configuration checking task allocation method and device
CN104850480A (en) Method and device for testing performance of hard disk of high-density storage server
CN101408857B (en) SAS interface test device
CN105653338A (en) Application updating method and device
CN104020763A (en) Automatic test method and system for input and output interfaces
CN109104337A (en) A kind of method, device and equipment of test network access control tool
US8443157B1 (en) Data storage system having associated situational analysis framework for automatic response to movement in a state space
CN111209148A (en) Method and system for testing storage stability of server
CN111562884B (en) Data storage method and device and electronic equipment
CN105468522A (en) Linux system CPU load control-based software pressure test method
CN108182146A (en) The detection method and system of a kind of memory overflow
CN105049284A (en) Linux system-based network redundancy testing method and device
CN101883019B (en) Test method for verifying video application of storage server
CN105373475A (en) Surge test method and system
CN112579380A (en) Equipment pressure testing method and system
CN112954725B (en) Test method, communication system and NB-IoT device
CN115981940A (en) Storage server testing method and device, electronic equipment and medium
CN112269715A (en) Server power consumption measuring method and related equipment
CN107273198B (en) A kind of interrupt control method, device and the SSD equipment of SSD control chip
CN110855511A (en) Method, device and system for determining capacity of server, storage medium and processor

Legal Events

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