CN106775968A - A kind of server test method, apparatus and system - Google Patents
A kind of server test method, apparatus and system Download PDFInfo
- Publication number
- CN106775968A CN106775968A CN201611072335.XA CN201611072335A CN106775968A CN 106775968 A CN106775968 A CN 106775968A CN 201611072335 A CN201611072335 A CN 201611072335A CN 106775968 A CN106775968 A CN 106775968A
- Authority
- CN
- China
- Prior art keywords
- test
- server
- assignment
- tested
- performance
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/2236—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Software Systems (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of server test method, apparatus and system.Method includes step:S100 receives test open command, calls test script file;S200 is tested according to the test assignment order of test script file, exports current test result;Current test assignment is completed, next test assignment is switched to and is tested;Whether S300 judges corresponding test result in corresponding preset reference range of results;S400 exports the judged result of corresponding test event.Tester of the present invention simply enters test open command, it becomes possible to call test script file, can automatic testing results program, and test result is recorded automatically, testing efficiency, reduces cost are improved, and saves the time and efforts that Test Engineer spends.
Description
Technical field
The present invention relates to the field of server stress test, more particularly to a kind of server test method, device and it is
System.
Background technology
With the propulsion of IT wave, gushing for the new industry such as cloud computing, cloud service, big data comes, to server
Demand is more and more.In face of huge userbase, the carrying at application server end and the ability such as concurrently, it appears ever more important.
For reliability of service and stability, the necessary links that server stress is tested before being reached the standard grade as software.With wireless interconnected
The gradually popularization of net, the user of mobile terminal application is in a short time into the growth of geometry multiple.In face of huge userbase,
The carrying at application server end and the ability such as concurrently, it appears ever more important.
Most close patent is as follows with this patent:
Application number:CN201210593441.8
Patent name:Server stress test system and method
A kind of server stress test system that the inventive embodiments are provided includes:At least one test script machine, management
The server of platform, database and needs test.Data in database storage system;Input number of the management platform according to user
According to generation control instruction, and control instruction is issued to each test script machine.It is provided with to be directed in test script machine and needs test
At least test script control script corresponding with the test script set up of server;Test script, generation test please
Ask, the control according to control script sends to the server for needing test test request, and the reception server is to described
The test response that test request is returned, and, at least part of test result data is obtained according to test response, and by test result
In data Ji Lu databases;Control script, receives the control instruction that management platform is issued, according to the control instruction to test pin
Originally it is controlled.
At present, commonly used pressure test software is the LoadRunner of Hewlett-Packard Corporation of Hewlett-Packard, and the software has from script
Develop the overall process function of test report.However, existing pressure test software at least has the disadvantage that:Existing pressure is surveyed
Examination software is generally only applicable to the operating environment of Windows, and the mostly test of object web page (Web), and the scope of application is narrower, has
Larger limitation;Also, not only deployment operation is sufficiently complex for existing pressure test software, and require that user must be to the pressure
Power test software is proficient in very much, and manpower requirements are too high, and testing cost is also too high.
The content of the invention
It is of the invention there is provided a kind of server test method, apparatus and system, its object is to automatic testing results
Program, and being recorded automatically to test result, improves testing efficiency, reduces cost, and save that Test Engineer spends when
Between and energy.
The technical scheme that the present invention is provided is as follows:
A kind of server test method, including step:
S100 receives test open command, calls test script file;
S200 is tested according to the test assignment order of the test script file, exports current test result;Complete
Current test assignment, switches to next test assignment and is tested;
Whether S300 judges the corresponding test result in corresponding preset reference range of results;
S400 exports the judged result of corresponding test event.
In the present invention, test open command is simply entered, it becomes possible to call test script file, tested needed for operation
The test software of test event test and obtain test result, after completing current test event, according to test script
File, switches to next test event and is tested.The present invention can be judged after completing when previous item test assignment
Whether the current test result of current test assignment is in the preset reference range of current test assignment, if so output is worked as
The current test result of preceding test assignment is currently surveyed in the preset reference range of current test assignment if not so exporting
The current test result of trial business is not in the preset reference range of current test assignment.Can also be by all of test assignment
After the completion of being tested, then carry out judging respectively and then count to enumerate, graphically export the test of all test events
Judged result.Can automatic testing results program, and test result is recorded automatically, testing efficiency can be improved, drop
Low cost, and save the time and efforts that Test Engineer spends.
Further, the step S200 includes step:
S210 carries out cpu performance test according to default test benchmark, obtains the cpu performance test result;Complete
Current test assignment, switches to next test assignment and is tested;And/or,
S220 carries out internal memory performance test according to default test benchmark, obtains the internal memory performance test result;It is complete
Into current test assignment, switch to next test assignment and tested;And/or,
S230 carries out disk performance test according to default test benchmark, obtains the disk performance test result;It is complete
Into current test assignment, switch to next test assignment and tested;And/or,
S240 carries out applied in network performance test according to default test benchmark, obtains the applied in network performance test result.
In present invention, it is desirable to during test, server is tested by test script file and test software, test event
There are one or more combinations in cpu performance test, internal memory performance test, disk performance test, applied in network performance test.This hair
It is bright can automatic testing results program, and test result is recorded automatically, and by default in test script file
Term of reference, will test the test result obtained after terminating and is judged accordingly with corresponding term of reference, obtain every survey
The judged result of examination project improves testing efficiency, and saves the time and efforts that Test Engineer spends, and the scope of application is wide, manpower
Less demanding, testing cost is low.
Further, the step S210 includes step:
S211 opens operation cpu performance testing tool, heating CPU to maximum load work according to the test script file
Make temperature;
Within the default test CPU time, according to default algorithm, constantly detection CPU is in overclocking/full load for S212
Cpu performance test result;
S213 exports the cpu performance test result;
S214 completes the cpu performance test assignment, switches to next test assignment and is tested.
Further, the step S220 includes step:
S221 is automatically switched off the application program of all operations according to the test script file;
S222 opens running memory performance testing tool according to the test script file;
S223, according to the order changed from small to big, increases successively according to the size and default testing time of default test memory
The size of test memory, carries out internal memory performance test, obtains internal memory performance test result;
S224 judges whether the internal memory performance testing time reaches the default testing time;If performing step
S225;Otherwise, return and perform step S223;
S225 is automatically stopped the internal memory performance test;
S226 exports the internal memory performance test result;
S227 completes the internal memory performance test assignment, switches to next test assignment and is tested.
Further, the step S230 includes step:
S231 pre-sets test file size, and the test file size is more than the server memory size;
S232 opens operation disk performance testing tool according to the test script file;
S233 is tested disk by running the disk performance testing tool, obtains disk performance test result;
S234 exports the disk performance test result;
S235 completes the disk performance test assignment, switches to next test assignment and is tested.
Further, the step S240 includes step:
S241 opens operational network performance testing tool according to the test script file;
S242 sends and receives default test data by running the applied in network performance test instrument;
S243 obtains the handling capacity of the transmission default test data within the default testing time;
S244 exports the applied in network performance test result.
Further, step is also included before the step S100:
S010 managers write test script file using programming language compiler;The test script file will be serviced
Device Performance measurement software, is classified and is sorted according to test assignment, and is tested according to test open command;
S020 managers are preserved the test script file, each server performance test software.
In the present invention, manager writes test script file in advance, and by test script file and the property of each server
Energy test software is saved in specified path, and then tester can preserve test script file with each server
The USB flash disk of Performance measurement software is inserted into server to be measured, it is necessary to when testing, server passes through the test script of shared file underedge
File and test software are tested, and test event has cpu performance to test, internal memory performance is tested, disk performance is tested, internetworking
One or more combinations in testing.
The present invention also provides a kind of server test device, including opening module, test module, judge module and output mould
Block;The test module is connected with opening module communication;The judge module is connected with test module communication;It is described
Output module is connected with judge module communication;
The opening module, receives test open command, calls test script file;
The test module, the test assignment order according to the test script file is tested, the current test of output
As a result;Current test assignment is completed, next test assignment is switched to and is tested;
Whether the judge module, judge the corresponding test result in corresponding preset reference range of results;
The output module, exports the judged result of corresponding test event.
In the present invention, test open command is simply entered, it becomes possible to call test script file, tested needed for operation
The test software of test event test and obtain test result, after completing current test event, according to test script
Whether file, switches to next test event and is tested, and judge corresponding test result in corresponding preset reference result
In the range of, then export the judged result of corresponding test event.Can automatic testing results program, and test result is carried out
Automatic record, can improve testing efficiency, reduces cost, and save the time and efforts that Test Engineer spends.
Further, the test module includes:Control submodule and test submodule, the control submodule with it is described
Opening module communication connection;The test submodule is connected with control submodule communication;
The control submodule, the test assignment according to the test script file sequentially, controls the test submodule
Tested;
The test submodule, according to default test benchmark, carries out cpu performance test, obtains the cpu performance test
As a result;Current test assignment is completed, next test assignment is switched to and is tested;And/or,
The test submodule, according to default test benchmark, carries out internal memory performance test, obtains the internal memory performance and surveys
Test result;Current test assignment is completed, next test assignment is switched to and is tested;And/or,
The test submodule, according to default test benchmark, carries out disk performance test, obtains the disk performance and surveys
Test result;Current test assignment is completed, next test assignment is switched to and is tested;And/or,
The test submodule, according to default test benchmark, carries out applied in network performance test, obtains the network performance and surveys
Test result.
, it is necessary to when testing, tester can as needed select server test project in the embodiment of the present invention, wherein
Test event has cpu performance to test, internal memory performance is tested, disk performance is tested, applied in network performance test, and tester can select
One or more in above-mentioned test event combine to be tested.Certainly, tester can also adjust test event
Testing sequence come carry out testing service device survey performance test.The present invention can automatic testing results program, and to test result
Automatically recorded, and by the preset reference range in test script file, will test the test result that is obtained after terminating with
Corresponding term of reference judged accordingly, obtains the judged result of every test event, and intuitively shown in screen
Out, tester can be allowed to be visually known performance-related data and performance the quality degree of server to be measured, while improving
Testing efficiency, and the time and efforts that Test Engineer spends is saved, the scope of application is wide, and manpower requirements are not high, and testing cost is low.
The present invention also provides a kind of server test system, including server, at least one client, holder;It is described
Holder is provided with test script file;Wherein, including server, at least one client, holder;The holder is set
There is test script file;The holder is connected with the server data;The server and at least one client
Communication connection;
The server receives test open command, calls the test script file in the holder;
The server is tested according to the test assignment order of the test script file, the current test knot of output
Really;Current test assignment is completed, next test assignment is switched to and is tested;
Whether the server judges the corresponding test result in corresponding preset reference range of results;And export phase
Answer the judged result of test event.
In the present invention, holder can be mobile storage hard disk, or local disk.Tester is only needed to defeated
Enter to test open command, it becomes possible to call the test script file of holder, according to test script file, surveyed needed for operation
The test software of the test event of examination, corresponding test software test and obtains test result, completes current test event
Afterwards, according to test script file, switch to next test event and tested, until server is according to test script file
Test assignment order poll complete all test events untill.
Compared with prior art, the present invention provides a kind of server test method, apparatus and system, at least brings with next
Plant technique effect:
1st, automatic testing results program, and test result is recorded automatically, testing efficiency is improved, reduction is tested into
This.
2nd, deployment operation is enormously simplify, the requirement to deployment side's professional skill is reduced, manpower testing cost is reduced.
Brief description of the drawings
Below by clearly understandable mode, preferred embodiment is described with reference to the drawings, to a kind of server test method,
The characteristic of apparatus and system, technical characteristic, advantage and its implementation are further described.
Fig. 1 is a kind of flow chart of one embodiment of server test method of the invention;
Fig. 2 is a kind of flow chart of another embodiment of server test method of the invention;
Fig. 3 is a kind of flow chart of another embodiment of server test method of the invention;
Fig. 4 is a kind of structural representation of one embodiment of server test device of the invention;
Fig. 5 is a kind of structural representation of another embodiment of server test device of the invention;
Fig. 6 is a kind of structural representation of server test system one embodiment of the invention;
Fig. 7 is one flow chart of example of a kind of server test method of the invention.
Specific embodiment
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, control is illustrated below
Specific embodiment of the invention.It should be evident that drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing, and obtain other implementation methods.
To make simplified form, part related to the present invention is only schematically show in each figure, they are not represented
Its as product practical structures.In addition, so that simplified form is readily appreciated, there is identical structure or function in some figures
Part, only symbolically depicts one of those, or has only marked one of those.Herein, " one " is not only represented
" only this ", it is also possible to represent the situation of " more than one ".
Shown in reference picture 1, the present invention provides a kind of one embodiment of server test method, including step:
S100 receives test open command, calls test script file;
S200 is tested according to the test assignment order of the test script file, exports current test result;Complete
Current test assignment, switches to next test assignment and is tested;
Whether S300 judges the corresponding test result in corresponding preset reference range of results;
S400 exports the judged result of corresponding test event.
In the embodiment of the present invention, tester simply enters test open command, it becomes possible to the test in invoking server
Script file, according to test script file, the test software of the test event tested needed for operation, corresponding test software
Test and obtain test result, complete after current test event, according to test script file, switch to next test
Project is tested.The embodiment of the present invention can be carried out judging current test assignment after completing when previous item test assignment
Whether current test result is in the preset reference range of current test assignment, if so exporting working as current test assignment
Preceding test result in the preset reference range of current test assignment, if not the current survey for so exporting current test assignment
Test result is not in the preset reference range of current test assignment.Can also be that all of test assignment is carried out into test completion
Afterwards, then respectively carry out judging and then statistics is enumerated, graphically output test judged result.Can automatic testing results
Program, and test result is recorded automatically, testing efficiency, reduces cost can be improved, and save Test Engineer's cost
Time and efforts.The embodiment of the present invention by setting test script file, because the operation of test script is not rely on tool
The operating system of body, so as to significantly improve the usability of scheme.This programme only need to will test pin when system deployment is carried out
Presents is distributed in corresponding equipment, you can the carrying out of control test, enormously simplify deployment operation, reduces deployment specialty
The requirement of technical ability, reduces the testing cost of human cost.
Shown in reference picture 2, the present invention provides a kind of another embodiment of server test method, including step:
S010 managers write test script file using programming language compiler;
S020 managers are preserved the test script file, each server performance test software;
S100 receives test open command, calls test script file;
S210 carries out cpu performance test according to default test benchmark, obtains the cpu performance test result;Complete
Current test assignment, switches to next test assignment and is tested;And/or,
S220 carries out internal memory performance test according to default test benchmark, obtains the internal memory performance test result;It is complete
Into current test assignment, switch to next test assignment and tested;And/or,
S230 carries out disk performance test according to default test benchmark, obtains the disk performance test result;It is complete
Into current test assignment, switch to next test assignment and tested;And/or,
S240 carries out applied in network performance test according to default test benchmark, obtains the applied in network performance test result;
Whether S300 judges the corresponding test result in corresponding preset reference range of results;
S400 exports the judged result of corresponding test event.
In the embodiment of the present invention, manager writes test script file in advance, and test script file is serviced with each
The Performance measurement software of device is saved in specified path, and then tester can will preserve test script file and each takes
The USB flash disk of the Performance measurement software of business device is inserted into server to be measured, it is necessary to when testing, server passes through the survey of shared file underedge
Training presents and test software are tested, test event has cpu performance to test, internal memory performance is tested, disk performance is tested,
One or more combinations in applied in network performance test.Certainly, tester can build a test system, and institute is in need
The server to be measured tested connects same network, so by network transmission carry out shared test script file and each
The Performance measurement software of server, while carrying out testing service device surveys performance test.The present invention can automatic testing results journey
Sequence, and test result is recorded automatically, testing efficiency is improved, and the time and efforts that Test Engineer spends is saved, fit
With wide ranges, manpower requirements are not high, and testing cost is low.
Wherein, server performance test software is classified and is sorted by test script file according to test assignment, and root
Tested according to test open command, can will be applied to test software, the behaviour suitable for Unix of the operating environment of Windows
Make the test software of environment and classified respectively suitable for the test software of the operating environment of Linux, when test is needed, can
With the operating environment for according to the decision instruction in test script file judge server to be measured be Windows, Unix or
Linux, php itself have many systems relevant with operation operating system to predefine variables, can be with by these predefined variables
Easily judge that very much current system is Windows, Unix or Linux.After distinguishing, it is only necessary to be input into open command,
Then server to be measured can successively carry out automatic test and preset reference range contrast, and successively in screen output test knot
Really.Can automatic testing results program, and test result is recorded automatically, can improve testing efficiency, reduces cost,
And save the time and efforts that Test Engineer spends.It is from the main functional hardware angle measurement emphasis scope of computer:CPU
Performance test, disk performance test, internal memory performance test, applied in network performance test etc..From the metrizability of computing power index
Test scope includes if angle is tested:Quantitative testing performance index, wherein having CPU floating-point operations performance, memory read-write
Speed, disk read-write speed, I/O throughput etc.;Qualitative testing performance index, including CPU stability, stable memory, computer
Expansibility, ease of manageability etc..
Shown in reference picture 3, the present invention provides a kind of another embodiment of server test method, including step:
S100 receives test open command, calls test script file;
S211 opens operation cpu performance testing tool, heating CPU to maximum load work according to the test script file
Make temperature;
Within the default test CPU time, according to default algorithm, constantly detection CPU is in overclocking/full load for S212
Cpu performance test result;
S213 exports the cpu performance test result;
S214 completes the cpu performance test assignment, switches to next test assignment and is tested;
S221 is automatically switched off the application program of all operations according to the test script file;
S222 opens running memory performance testing tool according to the test script file;
S223, according to the order changed from small to big, increases successively according to the size and default testing time of default test memory
The size of test memory, carries out internal memory performance test, obtains internal memory performance test result;
S224 judges whether the internal memory performance testing time reaches the default testing time;If performing step
S225;Otherwise, return and perform step S223;
S225 is automatically stopped the internal memory performance test;
S226 exports the internal memory performance test result;
S227 completes the internal memory performance test assignment, switches to next test assignment and is tested;
S231 pre-sets test file size, and the test file size is more than the server memory size;
S232 opens operation disk performance testing tool according to the test script file;
S233 is tested disk by running the disk performance testing tool, obtains disk performance test result;
S234 exports the disk performance test result;
S235 completes the disk performance test assignment, switches to next test assignment and is tested;
S241 opens operational network performance testing tool according to the test script file;
S242 sends and receives default test data by running the applied in network performance test instrument;
S243 obtains the handling capacity of the transmission default test data within the default testing time;
S244 exports the applied in network performance test result.
, it is necessary to when testing, tester can as needed select server test project in the embodiment of the present invention, wherein
Test event has cpu performance to test, internal memory performance is tested, disk performance is tested, applied in network performance test, and tester can select
One or more in above-mentioned test event combine to be tested.Certainly, tester can also adjust test event
Testing sequence come carry out testing service device survey performance test.The present invention can automatic testing results program, and to test result
Automatically recorded, and by the preset reference range in test script file, will test the test result that is obtained after terminating with
Corresponding term of reference judged accordingly, obtains the judged result of every test event, and intuitively shown in screen
Out, tester can be allowed to be visually known performance-related data and performance the quality degree of server to be measured, while improving
Testing efficiency, and the time and efforts that Test Engineer spends is saved, the scope of application is wide, and manpower requirements are not high, and testing cost is low.
Shown in reference picture 4, the present invention provides a kind of one embodiment of server test device 100, server test dress
Putting 100 includes opening module 110, test module 120, judge module 130 and output module 140;The test module 120 and institute
State the communication connection of opening module 110;The judge module 130 is connected with the communication of the test module 120;The output module
140 are connected with the communication of the judge module 130;
The opening module 110, receives test open command, calls test script file;
The test module 120, the test assignment order according to the test script file is tested, and output is current to survey
Test result;Current test assignment is completed, next test assignment is switched to and is tested;
Whether the judge module 130, judge the corresponding test result in corresponding preset reference range of results;
The output module 140, exports the judged result of corresponding test event.
In the embodiment of the present invention, tester only needs to the input test open command in server test device 100, just
Test script file can be called, according to test script file, the test software of the test event tested needed for operation, phase
The test software answered test and obtains test result, is completed after current test event, according to test script file, is switched
Tested to next test event, until server test device 100 according to the test assignment of test script file sequentially
Untill poll completes all test events.The present invention can automatic testing results program, and test result is remembered automatically
Record, can improve testing efficiency, reduces cost, and save the time and efforts that Test Engineer spends.
Shown in reference picture 5, relative to upper one embodiment, identical part repeats no more.The present invention provides a kind of service
Another embodiment of device test device 100, test module 120 includes:Control submodule 121 and test submodule 122, it is described
Control submodule 121 is connected with the communication of the opening module 110;The test submodule 122 is logical with the control submodule 121
News connection;
The control submodule 121, the test assignment according to the test script file sequentially, controls the test submodule
Block is tested;
The test submodule 122, according to default test benchmark, carries out cpu performance test, obtains the cpu performance
Test result;Current test assignment is completed, next test assignment is switched to and is tested;And/or,
The test submodule 122, according to default test benchmark, carries out internal memory performance test, obtains the interior sustainability
Can test result;Current test assignment is completed, next test assignment is switched to and is tested;And/or,
The test submodule 122, according to default test benchmark, carries out disk performance test, obtains the disk
Can test result;Current test assignment is completed, next test assignment is switched to and is tested;And/or,
The test submodule 122, according to default test benchmark, carries out applied in network performance test, obtains the internetworking
Can test result.
, it is necessary to when testing, tester can as needed select server test project in the embodiment of the present invention, wherein
Test event has cpu performance to test, internal memory performance is tested, disk performance is tested, applied in network performance test, and tester can select
One or more in above-mentioned test event combine to be tested.Certainly, tester can also adjust test event
Testing sequence come carry out testing service device survey performance test.The present invention can automatic testing results program, and to test result
Automatically recorded, and by the preset reference range in test script file, will test the test result that is obtained after terminating with
Corresponding term of reference judged accordingly, obtains the judged result of every test event, and intuitively shown in screen
Out, tester can be allowed to be visually known performance-related data and performance the quality degree of server to be measured, while improving
Testing efficiency, and the time and efforts that Test Engineer spends is saved, the scope of application is wide, and manpower requirements are not high, and testing cost is low.
Shown in reference picture 6, the present invention provides a kind of one embodiment of server test system 1000, wherein, including clothes
Business device 1100, at least one client 1200, holder 1300;The holder 1300 is provided with test script file;It is described
Holder 1300 and the data cube computation of the server 1100;The server 1100 is communicated with least one client 1200
Connection;
The server 1100 receives test open command, calls the test script file in the holder 1300;
The server 1100 is tested according to the test assignment order of the test script file, the current test of output
As a result;Current test assignment is completed, next test assignment is switched to and is tested;
Whether the server 1100 judges the corresponding test result in corresponding preset reference range of results;And it is defeated
Go out the judged result of corresponding test event.
In the embodiment of the present invention, holder 1300 can be mobile storage hard disk, or local disk.Here store
The holder 1300 with memory function such as including USB flash disk, SD card, mobile hard disk of device 1300.Tester is only needed in clothes to be measured
Input test open command on business device 1100, it becomes possible to call test script file, according to test script file, enters needed for operation
The test software of the test event of row test, corresponding test software test and obtains test result, completes current test
After project, according to test script file, switch to next test event and tested, until server 1100 is according to test
Untill the test assignment order poll of script file completes all test events.The present invention can automatic testing results program,
And test result is recorded automatically, testing efficiency, reduces cost can be improved, and save the time that Test Engineer spends
And energy.Wherein, during the dependence test project of testing service device 1100, many clients 1200 can be increased and connects service to be measured
Device 1100, while being tested.
Wherein, client here can be virtual client, as long as writing one section of simulation carry program, simulation in script
Multiple client carry is on the server, it is possible to carries out real server and uses simulated scenario, so as to carry out server stress
Test.
Shown in reference picture 7, the present invention provides an a kind of example of server test method, including:
S1, software are put into specified path;
S2, gcc compile C language;
The C language of S3, Shell script combination gcc compilings, software classification is arranged;
S4, input instruction call test software;
S5, CPU pressure test;
S6, memory pressure test;
S7, disk pressure test;
S8, network performance pressure test;
S9, output test result.
The C programmer compiled by shell script combinations gcc, server performance test software is classified, and whole
It is file to manage, and is pre-installed in USB flash disk.By USB flash disk server of the insertion equipped with linux system, called accordingly by script
Test software, tests server.During test, it is only necessary to be input into open command, then automatic test and pre- is carried out successively
If term of reference is contrasted, and is outputed test result in screen successively.
Test content mainly includes:CPU pressure tests, memory pressure test, disk pressure test, network performance pressure is surveyed
Examination.
1st, CPU pressure tests
Mainly by running the CPU Burn instruments in USB flash disk, CPU Burn are a tests for test CPU overclocking stability
Instrument, program can heat any X86CPU and maximum operation temperature is can bear to it, and it can be such that user adds in actual applications
Fast CPU, even if in the case where pressure is big it is also ensured that stability.By by CPU " heating " to the limit temperature that can bear
Degree, according to built-in algorithm, the operation mistake that constantly detection CPU occurs in overclocking, so as to test the stability of CPU.Typically
Run 60 minutes or so, output it result and compare with preset value automatically, and export this test report.
2nd, memory pressure test
After CPU pressure tests and output result has been run, script is automatically brought to and internally deposits into row pressure test, by fortune
Row memtester linux versions instrument internally deposits into row pressure test, first automatically by making in script closing system before test
Part internal memory shared by all application programs, otherwise application program will not be detected by the default survey of script
Try internal memory size and number of times (test 2G internal memories once before this, wherein, test 1G internal memories, 1.5G internal memories, 2G internal memories, Ran Houyi
Secondary amplification, is automatically stopped to pre-determined number), carry out the failure of test memory subsystem, result is compared with preset value, and export survey
Examination report.
3rd, disk pressure test
Ibid, script is automatically brought to disk pressure test software, and disk is tested by running IO zone instruments,
IO zone are a file system test benchmark instruments, can test the readwrite performance of file system in different operating systems,
The size of the test file of setting must be greater than your internal memory (being set to the twice size of internal memory herein).This paper servers are surveyed
Main project includes in training sheet:Write:Test the performance write to a new file;Re-write:Test and deposited to one
File write-in performance;Read:A performance for already present file is read in test;Re-Read:Test is read one and is read recently
The performance of the file crossed.Finally test result and preset reference value are contrasted, and judges whether corresponding transmission digit rate conforms to
Ask, and export test report.
4th, network performance pressure test
Ibid, script is automatically brought to network stress test software, and network is tested by running Net perf instruments,
Net perf can carry out the applied in network performance test of different mode, i.e. batch data mainly for the transmission based on TCP or UDP
Transmission mode and request/answer-mode.What Net perf test results were reflected be a system can with speed how soon to
Another system sends data, and another system can be with speed receiving data how soon.This paper server tests
Mainly by setting up a control connection between client and server at least one, special flow mould is transmitted back and forth
Formula, reflection at least sends data and receives the speed of data between client and server.In test process, net perf to
Net server send the tcp data packet of batch, to determine the handling capacity in data transmission procedure, test 60 seconds.Finally will
Test result is contrasted with preset reference value, and judges whether network throughput meets the requirements, and exports test report.
Server test system and method in the embodiment of the present invention are based on linux system, can automatically run survey
Examination program, and test result is recorded automatically, testing efficiency, reduces cost can be improved, and saves Test Engineer and spent
The time and efforts taken.
It should be noted that above-described embodiment can independent assortment as needed.The above is only of the invention preferred
Implementation method, it is noted that for those skilled in the art, is not departing from the premise of the principle of the invention
Under, some improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.
Claims (10)
1. a kind of server test method, it is characterised in that including step:
S100 receives test open command, calls test script file;
S200 is tested according to the test assignment order of the test script file, exports current test result;Complete current
Test assignment, switches to next test assignment and is tested;
Whether S300 judges the corresponding test result in corresponding preset reference range of results;
S400 exports the judged result of corresponding test event.
2. server test method according to claim 1, it is characterised in that the step S200 includes step:
S210 carries out cpu performance test according to default test benchmark, obtains the cpu performance test result;Complete current survey
Trial is engaged in, and is switched to next test assignment and is tested;And/or,
S220 carries out internal memory performance test according to default test benchmark, obtains the internal memory performance test result;Complete current
Test assignment, switches to next test assignment and is tested;And/or,
S230 carries out disk performance test according to default test benchmark, obtains the disk performance test result;Complete current
Test assignment, switches to next test assignment and is tested;And/or,
S240 carries out applied in network performance test according to default test benchmark, obtains the applied in network performance test result.
3. server test method according to claim 2, it is characterised in that the step S210 includes step:
S211 opens operation cpu performance testing tool according to the test script file, and heating CPU to maximum load works warm
Degree;
S212, according to default algorithm, constantly detects CPUs of the CPU in overclocking/full load within the default test CPU time
Can test result;
S213 exports the cpu performance test result;
S214 completes the cpu performance test assignment, switches to next test assignment and is tested.
4. server test method according to claim 2, it is characterised in that the step S220 includes step:
S221 is automatically switched off the application program of all operations according to the test script file;
S222 opens running memory performance testing tool according to the test script file;
S223 according to the size and default testing time of default test memory, according to the order changed from small to big, test by increase successively
The size of internal memory, carries out internal memory performance test, obtains internal memory performance test result;
S224 judges whether the internal memory performance testing time reaches the default testing time;If performing step S225;It is no
Then, return and perform step S223;
S225 is automatically stopped the internal memory performance test;
S226 exports the internal memory performance test result;
S227 completes the internal memory performance test assignment, switches to next test assignment and is tested.
5. server test method according to claim 2, it is characterised in that the step S230 includes step:
S231 pre-sets test file size, and the test file size is more than the server memory size;
S232 opens operation disk performance testing tool according to the test script file;
S233 is tested disk by running the disk performance testing tool, obtains disk performance test result;
S234 exports the disk performance test result;
S235 completes the disk performance test assignment, switches to next test assignment and is tested.
6. server test method according to claim 2, it is characterised in that the step S240 includes step:
S241 opens operational network performance testing tool according to the test script file;
S242 sends and receives default test data by running the applied in network performance test instrument;
S243 obtains the handling capacity of the transmission default test data within the default testing time;
S244 exports the applied in network performance test result.
7. according to any described server test methods of claim 1-6, it is characterised in that also wrapped before the step S100
Include step:
S010 managers write test script file using programming language compiler;The test script file is by server performance
Test software, is classified and is sorted according to test assignment, and is tested according to test open command;
S020 managers are preserved the test script file, each server performance test software.
8. a kind of server test device, it is characterised in that:Using any described server test methods of claim 1-7;
The server test device includes opening module, test module, judge module and output module;The test module with it is described
Opening module communication connection;The judge module is connected with test module communication;The output module and the judgement mould
Block communication connection;
The opening module, receives test open command, calls test script file;
The test module, the test assignment order according to the test script file is tested, and exports current test result;
Current test assignment is completed, next test assignment is switched to and is tested;
Whether the judge module, judge the corresponding test result in corresponding preset reference range of results;
The output module, exports the judged result of corresponding test event.
9. server test system according to claim 8, it is characterised in that the test module includes:Control submodule
Block and test submodule, the control submodule are connected with opening module communication;Test submodule and the control
Submodule communication connection;
The control submodule, the test assignment according to the test script file sequentially, controls the test submodule to carry out
Test;
The test submodule, according to default test benchmark, carries out cpu performance test, obtains the cpu performance test knot
Really;Current test assignment is completed, next test assignment is switched to and is tested;And/or,
The test submodule, according to default test benchmark, carries out internal memory performance test, obtains the internal memory performance test knot
Really;Current test assignment is completed, next test assignment is switched to and is tested;And/or,
The test submodule, according to default test benchmark, carries out disk performance test, obtains the disk performance test knot
Really;Current test assignment is completed, next test assignment is switched to and is tested;And/or,
The test submodule, according to default test benchmark, carries out applied in network performance test, obtains the applied in network performance test knot
Really.
10. a kind of server test system, it is characterised in that:Using any described server test methods of claim 1-7;
Wherein, including server, at least one client, holder;The holder is provided with test script file;The holder
It is connected with the server data;The server is connected with least one user client communication;
The server receives test open command, calls the test script file in the holder;
The server is tested according to the test assignment order of the test script file, exports current test result;It is complete
Into current test assignment, switch to next test assignment and tested;
Whether the server judges the corresponding test result in corresponding preset reference range of results;And export corresponding survey
The judged result of examination project.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611072335.XA CN106775968A (en) | 2016-11-29 | 2016-11-29 | A kind of server test method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611072335.XA CN106775968A (en) | 2016-11-29 | 2016-11-29 | A kind of server test method, apparatus and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106775968A true CN106775968A (en) | 2017-05-31 |
Family
ID=58905425
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611072335.XA Pending CN106775968A (en) | 2016-11-29 | 2016-11-29 | A kind of server test method, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106775968A (en) |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107423176A (en) * | 2017-06-30 | 2017-12-01 | 郑州云海信息技术有限公司 | A kind of method of testing of internal memory, control terminal, server and system |
CN107506271A (en) * | 2017-08-25 | 2017-12-22 | 郑州云海信息技术有限公司 | A kind of method of testing and device |
CN107666416A (en) * | 2017-09-07 | 2018-02-06 | 郑州云海信息技术有限公司 | A kind of iperf test results decision-making system |
CN108717386A (en) * | 2018-05-17 | 2018-10-30 | 郑州云海信息技术有限公司 | A kind of server automated diagnostic method and system |
CN108763003A (en) * | 2018-05-25 | 2018-11-06 | 厦门集微科技有限公司 | A kind of test method, device and system |
CN108845898A (en) * | 2018-05-29 | 2018-11-20 | 郑州云海信息技术有限公司 | A kind of test method and test macro |
CN109246125A (en) * | 2018-10-09 | 2019-01-18 | 郑州云海信息技术有限公司 | A kind of Host Security condition evaluation system |
CN109254862A (en) * | 2018-08-21 | 2019-01-22 | 奇酷互联网络科技(深圳)有限公司 | It is automatically repaired method, mobile terminal and the storage medium of DDR overturning |
CN109324974A (en) * | 2018-10-09 | 2019-02-12 | 郑州云海信息技术有限公司 | It is a kind of to control the method and device for executing in batches script |
CN110197698A (en) * | 2019-05-23 | 2019-09-03 | 东莞记忆存储科技有限公司 | The method and device that automatic test SSD different electrical power state influences |
CN111078576A (en) * | 2019-12-30 | 2020-04-28 | 世纪恒通科技股份有限公司 | Independent Web service test equipment based on USB network card technology |
CN111552599A (en) * | 2020-04-26 | 2020-08-18 | 武汉精测电子集团股份有限公司 | Distributed process processing system, semiconductor aging test method and system and distributed system |
CN111597082A (en) * | 2020-05-22 | 2020-08-28 | 山东超越数控电子股份有限公司 | Test method and system for computer production |
CN111756594A (en) * | 2019-03-29 | 2020-10-09 | 上海哔哩哔哩科技有限公司 | Control method of pressure test, computer device and computer readable storage medium |
CN112134754A (en) * | 2020-09-18 | 2020-12-25 | 中移(杭州)信息技术有限公司 | Pressure testing method and device, network equipment and storage medium |
CN113220586A (en) * | 2021-05-31 | 2021-08-06 | 五八到家有限公司 | Automatic interface pressure test execution method, device and system |
CN113220550A (en) * | 2021-05-08 | 2021-08-06 | 浪潮电子信息产业股份有限公司 | Performance test method and device for flow format software |
CN113886194A (en) * | 2021-10-27 | 2022-01-04 | 傲网信息科技(厦门)有限公司 | Operation and maintenance method and device for database |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102708056A (en) * | 2012-05-15 | 2012-10-03 | 浪潮电子信息产业股份有限公司 | Method for evaluating performances of servers |
CN104407951A (en) * | 2014-11-05 | 2015-03-11 | 浪潮电子信息产业股份有限公司 | Method for automatically testing complete server |
CN104516799A (en) * | 2013-09-27 | 2015-04-15 | 上海宝信软件股份有限公司 | Server performance testing method |
CN105183605A (en) * | 2015-10-29 | 2015-12-23 | 浪潮(北京)电子信息产业有限公司 | Server performance test method and device |
-
2016
- 2016-11-29 CN CN201611072335.XA patent/CN106775968A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102708056A (en) * | 2012-05-15 | 2012-10-03 | 浪潮电子信息产业股份有限公司 | Method for evaluating performances of servers |
CN104516799A (en) * | 2013-09-27 | 2015-04-15 | 上海宝信软件股份有限公司 | Server performance testing method |
CN104407951A (en) * | 2014-11-05 | 2015-03-11 | 浪潮电子信息产业股份有限公司 | Method for automatically testing complete server |
CN105183605A (en) * | 2015-10-29 | 2015-12-23 | 浪潮(北京)电子信息产业有限公司 | Server performance test method and device |
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107423176A (en) * | 2017-06-30 | 2017-12-01 | 郑州云海信息技术有限公司 | A kind of method of testing of internal memory, control terminal, server and system |
CN107423176B (en) * | 2017-06-30 | 2021-06-29 | 郑州云海信息技术有限公司 | Memory test method, control terminal, server and system |
CN107506271A (en) * | 2017-08-25 | 2017-12-22 | 郑州云海信息技术有限公司 | A kind of method of testing and device |
CN107666416A (en) * | 2017-09-07 | 2018-02-06 | 郑州云海信息技术有限公司 | A kind of iperf test results decision-making system |
CN108717386A (en) * | 2018-05-17 | 2018-10-30 | 郑州云海信息技术有限公司 | A kind of server automated diagnostic method and system |
CN108763003A (en) * | 2018-05-25 | 2018-11-06 | 厦门集微科技有限公司 | A kind of test method, device and system |
CN108845898A (en) * | 2018-05-29 | 2018-11-20 | 郑州云海信息技术有限公司 | A kind of test method and test macro |
CN109254862B (en) * | 2018-08-21 | 2022-04-12 | 奇酷互联网络科技(深圳)有限公司 | Method for automatically repairing DDR (double data Rate) upset, mobile terminal and storage medium |
CN109254862A (en) * | 2018-08-21 | 2019-01-22 | 奇酷互联网络科技(深圳)有限公司 | It is automatically repaired method, mobile terminal and the storage medium of DDR overturning |
CN109246125A (en) * | 2018-10-09 | 2019-01-18 | 郑州云海信息技术有限公司 | A kind of Host Security condition evaluation system |
CN109324974A (en) * | 2018-10-09 | 2019-02-12 | 郑州云海信息技术有限公司 | It is a kind of to control the method and device for executing in batches script |
CN111756594B (en) * | 2019-03-29 | 2022-04-15 | 上海哔哩哔哩科技有限公司 | Control method of pressure test, computer device and computer readable storage medium |
CN111756594A (en) * | 2019-03-29 | 2020-10-09 | 上海哔哩哔哩科技有限公司 | Control method of pressure test, computer device and computer readable storage medium |
CN110197698B (en) * | 2019-05-23 | 2021-03-05 | 东莞记忆存储科技有限公司 | Method and device for automatically testing influence of different power states of SSD (solid State drive) |
CN110197698A (en) * | 2019-05-23 | 2019-09-03 | 东莞记忆存储科技有限公司 | The method and device that automatic test SSD different electrical power state influences |
CN111078576A (en) * | 2019-12-30 | 2020-04-28 | 世纪恒通科技股份有限公司 | Independent Web service test equipment based on USB network card technology |
CN111552599A (en) * | 2020-04-26 | 2020-08-18 | 武汉精测电子集团股份有限公司 | Distributed process processing system, semiconductor aging test method and system and distributed system |
CN111552599B (en) * | 2020-04-26 | 2024-04-09 | 武汉精测电子集团股份有限公司 | Distributed process processing system, semiconductor aging test method and system and distributed system |
CN111597082A (en) * | 2020-05-22 | 2020-08-28 | 山东超越数控电子股份有限公司 | Test method and system for computer production |
CN112134754A (en) * | 2020-09-18 | 2020-12-25 | 中移(杭州)信息技术有限公司 | Pressure testing method and device, network equipment and storage medium |
CN113220550A (en) * | 2021-05-08 | 2021-08-06 | 浪潮电子信息产业股份有限公司 | Performance test method and device for flow format software |
CN113220586A (en) * | 2021-05-31 | 2021-08-06 | 五八到家有限公司 | Automatic interface pressure test execution method, device and system |
CN113886194A (en) * | 2021-10-27 | 2022-01-04 | 傲网信息科技(厦门)有限公司 | Operation and maintenance method and device for database |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106775968A (en) | A kind of server test method, apparatus and system | |
US5303166A (en) | Method and system for automated network benchmark performance analysis | |
CN110377520B (en) | Transaction scenario testing method and device, electronic equipment and readable storage medium | |
CN109815252A (en) | Test data generating method, device, computer equipment and readable storage medium storing program for executing | |
CN108519943A (en) | Testing and control and test execution device, method and computer storage media | |
CN113254323B (en) | Online full link voltage measurement method and device and computer equipment | |
CN108491321A (en) | test case range determining method, device and storage medium | |
CN103605606B (en) | A kind of embedded software test use-case batch execution method that can automatically change | |
CN118093434B (en) | Performance evaluation and test method and system for intelligent information system | |
CN109104337A (en) | A kind of method, device and equipment of test network access control tool | |
EP0460114A1 (en) | System for evaluating the performance of a large scale programmable machine capable of having a plurality of terminals attached thereto | |
CN112631926A (en) | Code test coverage rate display method and device, computer equipment and storage medium | |
CN105389200A (en) | Multi-group stimulation batch simulation method and system applied to super-large scale chip verification | |
CN107679423A (en) | Partition integrity inspection method and device | |
CN110750445A (en) | Method, system and equipment for testing high-availability function of YARN component | |
CN116244133A (en) | Hard disk test management method, system, terminal and storage medium | |
CN108259895A (en) | set-top box test method, system and terminal device | |
CN115629928B (en) | Software and hardware cooperative verification method and system for brain-like processor | |
CN116663490A (en) | Verification method, platform, device and medium of asynchronous memory chip | |
CN113127331A (en) | Fault injection-based test method and device and computer equipment | |
CN116319320A (en) | Network performance optimization method, system, electronic equipment and medium | |
CN109684205A (en) | System detection method, device, electronic equipment and storage medium | |
CN115576788A (en) | Performance automatic test method and device, computer equipment and storage medium | |
CN113986753A (en) | Interface test method, device, equipment and storage medium | |
CN113254332A (en) | Multi-scenario testing method, system, terminal and storage medium for storage system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170531 |