Summary of the invention
It is an object of the invention to provide method for testing pressure and the device of a kind of information system, effectively information system to be entered
Row Load pressure test.
To achieve these goals, the present invention provides following technical scheme:
The method for testing pressure of a kind of information system, it is characterised in that including:
Feature selecting system pressure spot based on business, described system pressure point is for carry out respective operations for described business
Concentration degree higher than time period of preset value;
Under true environment, described information system is carried out stress test for described system pressure point, obtain true environment
Test result;
Judge whether described real world testing result meets preset requirement, if it is, determine that this test is passed through.
Preferably, also include:
If described real world testing result does not meets preset requirement, then output error information, described mistake carries
Show that information includes that described real world testing result and described real world testing result do not meet the reason of described preset requirement.
Preferably, output error information, including:
Described miscue information is sent to designated terminal.
Preferably, also include:
Utilize the test software write in advance that described information system is carried out stress test, obtain software test result, sentence
Whether disconnected described software test result meets preset requirement, if it is, perform feature selecting system pressure spot based on business
Step.
Preferably, determine that described test, by afterwards, also includes:
Based on described test result, the performance of described information system is graded, determine the performance of described information system
Grade.
A kind of pressure test device of information system, including:
Choosing module, for feature selecting system pressure spot based on business, described system pressure point is for described industry
Business carries out the concentration degree time period higher than preset value of respective operations;
First test module, for carrying out pressure to described information system for described system pressure point under true environment
Test, obtains real world testing result;
Judge module, is used for judging whether described real world testing result meets preset requirement, if it is, determine this
Test is passed through.
Preferably, also include:
Output module, if not meeting preset requirement for described real world testing result, then output error prompting letter
Breath, described miscue information includes that described real world testing result and described real world testing result do not meet described pre-
If the reason required.
Preferably, described output module includes:
Output unit, for sending described miscue information to designated terminal.
Preferably, also include:
Second test module, for utilizing the test software write in advance that described information system is carried out stress test,
To software test result, it is judged that whether described software test result meets preset requirement, if it is, perform spy based on business
Point chooses the step of system pressure point.
Preferably, also include:
Grading module, for grading the performance of described information system based on described test result, determines described
The performance rate of information system.
The method for testing pressure of a kind of information system that the present invention provides and device, wherein, the method includes: based on business
Feature selecting system pressure spot, described system pressure point is to carry out the concentration degree of respective operations higher than presetting for described business
The time period of value;Under true environment, described information system is carried out stress test for described system pressure point, obtain true
Environmental testing result;Judge whether described real world testing result meets preset requirement, if it is, determine that this test is led to
Cross.By technique scheme disclosed in the present application, it is first determined the system pressure point of information system, and then in true environment
For system pressure point, information system is carried out stress test, obtain the real world testing result of correspondence, and according to this test
Result judges whether information system can be by test, and thus, the system pressure point for information system enters under true environment
Row stress test, can not only improve testing efficiency, and can effectively reflect behavior pattern and the business of information system
Bearing capacity, thus efficiently accomplish the test for information system.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into the scope of protection of the invention.
Refer to Fig. 1, it illustrates the flow process of the method for testing pressure of a kind of information system that the embodiment of the present invention provides
Figure, may comprise steps of:
S11: feature selecting system pressure spot based on business, system pressure point is the collection carrying out respective operations for business
Moderate is higher than the time period of preset value.
It should be noted that system pressure point be for business carry out the concentration degree of respective operations higher than preset value time
Between section, wherein, carry out the concentration degree of respective operations may refer to carry out in certain period of time respective operations number of times or
With carry out the corresponding data volume of respective operations etc., and the quantity carrying out respective operations that may refer to preset corresponding to preset value or
Person be default with carry out the corresponding data volume of respective operations etc., concrete value can be determined according to actual needs.Citing
Illustrating, the business in the application can be sales service, corresponding, information system can be sales service information system, therefore,
System pressure point sales service can being likely to occur disassemble into following some:
The concentration that every day goes to work first 15 minutes logs in pressure, i.e. concentrates the pressure of log-on message system;The business number at the beginning of the month
According to initializing pressure, i.e. the business datum in information system is carried out initialized pressure;Issue check meter the beginning of the month according to upper dress, lower dress
Pressure, i.e. carries out upper dress, the pressure of lower dress to the table issue evidence of information system;The pressure of the centralized calculation electricity charge in the middle of the month, i.e. utilizes
Information system carries out the pressure of electricity charge calculating;Concentrate the pressure that the electricity charge are issued the middle of the month, i.e. utilize information system to carry out electricity charge distribution
Pressure;The pressure of counter charge in middle of the month peak period, i.e. utilizes information system to carry out the pressure charged;Work before receivable cut-off at the end of month
Single pressure concentrating filing, i.e. utilizes information system to carry out the pressure of work order filing;Concentrate form initialized pressure the beginning of the month, i.e.
Form in information system is carried out initialized pressure.
Wherein, the concentration that every day goes to work first 15 minutes logs in pressure and i.e. represents login times in first 15 minutes of going to work every day
(carrying out the concentration degree of respective operations for business) is more than preset value (presetting login times), other system pressure spot principle one
Cause, do not repeat them here.
S12: under true environment, information system is carried out stress test for system pressure point, obtain real world testing
Result.
Utilize true environment that the system pressure point of information system is carried out stress test, i.e. under true environment, simulation letter
The business that breath system each system pressure point need to be carried out, and then obtain the test result of correspondence.Still with above-mentioned example, i.e. business
For illustrating as a example by sales service, the application emphasizes, under true environment, information system is carried out stress test, it is possible to
Predetermined number (such as 19, specifically can be determined according to actual needs) office of districts and cities of tissue the whole province carries out same in the same time
One business, carries out stress test with the performance to information system.Wherein, the portfolio that each business is corresponding all can be according to reality
Needs are determined, and below relate to data and are in this example the data chosen.
One, 9:00-9:15 system login
Log-on message system detect the load-balanced server of information system, application server, database server and
Whether offered load supports high concurrent login demand under the big hubbed mode of the whole province;Portfolio: 600 times.
Two, 9:30-9:45 job note filing
Realize job note filing and more new archive in high volume based on information system and detect the database service of information system
Whether the execution efficiency of device meets large batch of business Archival requirements;Portfolio: at least 100 is single.
Three, 10:00-10:15 counter charge
Application server and the database server load of charge detection information system is concentrated on a large scale based on information system
Whether support the billing needs of the big concentration of the whole province;Tester: 100 fee-collectors;Portfolio: 2000.
Four, 10:30-10:45 meter reading data is open
Carry out whether the open database server detecting information system of centralized automatic meter-reading data meets based on information system
The open demand of high concurrent meter reading data under the big hubbed mode of the whole province;Portfolio: at least 27000 families.
Five, fill under 11:00-11:15 data
Realize dress under large-scale data based on information system and check the application server of information system, database service
Whether device and metering automation interface meet fills demand under high concurrent data under the big hubbed mode of the whole province;Portfolio: at least 300
Individual section.
Six, fill in 11:30-11:45 data
Realize dress in intensive data based on information system and check application server and the database server of information system
Whether meet and fill demand in high concurrent data under the big hubbed mode of the whole province;Portfolio: at least 300 sections.
Seven, the 14:00-14:15 electricity charge calculate
Realize high-volume based on information system and calculate whether the electricity charge test the calculation expense server of information system and data base
Meet the high concurrent electricity charge under the big hubbed mode of the whole province and calculate demand;Portfolio: at least 17000 families.
Eight, 14:30-14:45 electricity charge distribution
Realize batch electricity charge distribution based on information system and check whether the database server of information system meets the whole province
High concurrent electricity charge distribution demand under big hubbed mode;Portfolio: at least 15000 families.
Nine, 15:00-15:30 form initializes
Realize concentrating form to initialize based on information system and check whether the database server of information system meets complete
Save high concurrent form initial reguirements under big hubbed mode;Portfolio: all power supply stations.
S13: judge whether real world testing result meets preset requirement, if it is, determine that this test is passed through.
It should be noted that preset requirement can be determined according to actual needs, can be a particular number, as
The real world testing result of any system pressure spot is the load number that can realize, then preset requirement can be a preset negative
More than or equal to presetting load number, the load number carrying quantity, i.e. this test result then proves that this test result meets default wanting
Ask.It is still to illustrate, then in real world testing result as a example by sales service with above-mentioned example, i.e. business:
1, user logs in test
This omnidistance (9:00-15:30) the whole province of test user account login times altogether reaches 151851 times, single login scene
Period (9:00-9:18) login system 53630 times, than the original plan more than 19258 times 34372 times;
2, job note filing
During this test job list filing scene, (9:50-10:10) the whole province amounts to finishing service flow process work order and (includes industry
Expand, have a power failure, measure, line loss, all types of work orders such as customer service) file 4394 single, more single than original 1900 (each districts and cities at least 100 are single)
Many 2595 is single;
3, counter charge
During this test counter charge scene, (10:15-10:26) the whole province completes stroke count 23494 of charging altogether, and ratio is former
Fixed 19000 single (each districts and cities at least 1000) how 4494;
4, check meter initialization, lower dress and upper dress
During this pressure surveys initialization of checking meter, lower dress and upper dress scene, (12:00-14:00) the whole province completes to check meter altogether
Data 1127660 family, than original 570000 families (each districts and cities at least 30000 family) many 557660 families;
5, the electricity charge calculate
During these test electricity charge calculate scene, (14:00-14:51) the whole province completes electricity charge calculating stroke count 1166540 altogether
Family, than original 323000 families (each districts and cities at least 17000 family) many 843540;
6, electricity charge distribution
During this test electricity charge distribution scene, (14:30-14:50) the whole province completes electricity charge distribution stroke count 857558 altogether
Family, than original 285000 families (each districts and cities at least 15000 family) many 572558;
7, form initializes
During this testing journal sheet initializes scene, (15:00-15:30) the whole province completes form initialization 6661 times altogether, than
How 4761 times, original 1900 families (each districts and cities at least 100 times).
Wherein, quantity corresponding to the original plan is preset requirement, therefore, can be drawn by above-mentioned test result, each
The quantity that business correspondence completes is all higher than the quantity of the original plan, and therefore, test result shows, Information System Function is complete, property
Can be stable, meet the requirement that districts and cities of full company 19 sales service is applied simultaneously.Above-mentioned test fully examines the industry of information system
Business enabling capabilities and technical performance, test result shows that information system meets single track application requirement, has possessed at pilot office single track
The condition reached the standard grade, i.e. test are passed through.
Test it should be noted that the embodiment of the present invention is specially the load pressure to information system, wherein, information
The load pressure of system refers to the flow that information system is born under certain designated software, hardware and network environment, the most also
Hair amount, continuous working period, data volume etc., wherein concurrent user number is the important embodiment of load pressure, corresponding, load
Stress test refer under certain constraints test information system can bear concurrent user's amount, the operation time, data volume,
To determine the maximum load pressure that information system can bear.Load pressure test contributes to confirming that information measured system whether can
Enough support performance requirement, and the intended growth of load etc..Load pressure test is more than paying close attention to the sound under different loads scene
The index such as between Ying Shi, it also to find to there will be under different loads scene by test, such as, slow, internal memory is let out
The reason of the problems such as leakage.
By technique scheme disclosed in the present application, it is first determined the system pressure point of information system, and then for being
System pressure spot information system is carried out stress test in true environment, obtain correspondence real world testing result, and according to
This test result judges that information system whether can be by test, thus, for the system pressure point of information system at true ring
Carry out stress test under border, testing efficiency can not only be improved, and can effectively reflect the behavior pattern of information system
With service bearer ability, thus efficiently accomplish the test for information system.
The method for testing pressure of a kind of information system that the embodiment of the present invention provides, it is also possible to including:
If real world testing result does not meets preset requirement, then output error information, miscue information bag
Include real world testing result and real world testing result does not meets the reason of preset requirement.
It should be noted that when true environment test result does not meets preset requirement, output error information, its
In, miscue information includes this real world testing result and does not meets the reason of preset requirement, and this reason can be true
Real environment test result and the gap of preset requirement, data as corresponding with preset requirement in the data in real world testing result
Difference, thus, staff can accurately know the survey not meeting preset requirement in this time test by miscue information
Test result, and then determine the performance of information system according to the reason not meeting preset requirement, with further to this information system
Improve.
It addition, output error information, may include that
Miscue information is sent to designated terminal.
Thus, staff can know test status in time by the miscue information that designated terminal obtains, certainly,
Can also be directly displayed on corresponding display screen, it is also possible to carry out report etc. by voice, in a word, it is possible to make work people
Member knows miscue information in time, and then improves information system.
The method for testing pressure of a kind of information system that the embodiment of the present invention provides, it is also possible to including:
Utilize the test software write in advance that information system is carried out stress test, obtain software test result, it is judged that soft
Whether part test result meets preset requirement, if it is, perform the step of feature selecting system pressure spot based on business.
Wherein, test software be specifically as follows automatic test script, i.e. by run this test software can complete right
The stress test of information system, and the testing procedure comprised in automatic test script, can be with step S11 to step S13 mono-
Cause, differ only in, in true environment, do not carry out stress test, but by simulation true environment pair
Information system is tested, and as logging in pressure 100 computers of preparation, every computer logs in 20 accounts simultaneously, simulation
The situation that 2000 accounts log in simultaneously, i.e. by test software, information system being carried out stress test is that technological layer is carried out
Stress test, owing to it is difficult to simulate real application scenarios, therefore, even if software test result meets preset requirement, also
Confirmation system can not can keep required performance when applying in real application scenarios, so, if software is surveyed
Test result meets preset requirement, can perform step S11 further to step S13, determine its performance, if software test result
Do not meet preset requirement, then may determine that information system need improve, at this point it is possible to stop operation, it is of course also possible to export right
The miscue information answered, wherein, this miscue information comprises software test result and software test result does not meets default
The reason required.Thus improve work efficiency to a certain extent, it is ensured that the reliability of test.
The method for testing pressure of a kind of information system that the embodiment of the present invention provides, determines that test is by afterwards, it is also possible to
Including:
Based on test result, the performance of information system is graded, determine the performance rate of information system.
Be analyzed according to test result, the performance of information system can be graded, as by test result with pre-
If the gap and the different performance rate one_to_one corresponding that require, or direct by test result and different performance rate one a pair
Should, above-mentioned corresponding relation can be predefined according to actual needs by staff, as in the above example, can being each industry
The quantity that business correspondence completes is corresponding from different performance rates more than the gap quantity of the quantity of the original plan, this gap quantity
The biggest, performance rate is the highest, shows that this information system is the best.Such that it is able to according to test result, determine the performance of information system
Grade.
Furthermore it is also possible to according to test result, analyze the bottleneck of information system, analyze this information system existing soft, hard
Supported business scale under part environment, the basis that compacting information system single track runs further.Wherein, in stress test,
" bottleneck " this term is used for describing the factor of those restricted information system load pressures, in simple terms, is information system
System causes the reason that information system performance declines to a great extent.
Corresponding with above-described embodiment, the embodiment of the present invention additionally provides the pressure test device of a kind of information system, as
Shown in Fig. 2, may include that
Choosing module 11, for feature selecting system pressure spot based on business, system pressure point is for carry out for business
The concentration degree of respective operations is higher than the time period of preset value;
First test module 12, for information system being carried out stress test for system pressure point under true environment,
Obtain real world testing result;
Judge module 13, is used for judging whether real world testing result meets preset requirement, if it is, determine this survey
Pinged.
The pressure test device of a kind of information system that the embodiment of the present invention provides, it is also possible to including:
Output module, if not meeting preset requirement for real world testing result, then output error information, wrong
Information includes that real world testing result and real world testing result do not meet the reason of preset requirement by mistake.
The pressure test device of a kind of information system that the embodiment of the present invention provides, output module may include that
Output unit, for sending miscue information to designated terminal.
The pressure test device of a kind of information system that the embodiment of the present invention provides, it is also possible to including:
Second test module, for utilizing the test software write in advance that information system is carried out stress test, obtains soft
Part test result, it is judged that whether software test result meets preset requirement, if it is, execution feature based on business is chosen and is
The step of system pressure spot.
The pressure test device of a kind of information system that the embodiment of the present invention provides, it is also possible to including:
Grading module, for grading the performance of information system based on test result, determines the property of information system
Can grade.
In the pressure test device of a kind of information system that the embodiment of the present invention provides, the explanation of relevant portion refers to this
In the method for testing pressure of a kind of information system that inventive embodiments provides, the detailed description of corresponding part, does not repeats them here.
Described above to the disclosed embodiments, makes those skilled in the art be capable of or uses the present invention.To this
The multiple amendment of a little embodiments will be apparent from for a person skilled in the art, and generic principles defined herein can
With without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention will not be limited
It is formed on the embodiments shown herein, and is to fit to consistent with principles disclosed herein and features of novelty the widest
Scope.