A kind of WIFI router performance test method and system
Technical field
The present invention relates to WIFI router technology field more particularly to a kind of WIFI router performance test method and it is
System.
Background technique
WIFI router test item is various at present, each project will the numerous tasks of retest, such as: measurement of handling up
Examination, power enhancing test, 100M upload downloading test, maximum throughput test, coverage test through walls, the test of wireless direction, letter
Road and frequency adaptive testing, co-channel interference test, terminal transparency test, the test of PING packet delay, reason (bridge joint) mode
Forwarding performance test etc..Each test item requires the numerous test assignments of retest, the problem of due to time and equipment, work
Cheng Shi is once tested according to job placement and is needed to repeat to build complicated test environment.Therefore it provides a kind of high efficiency
Router test method, become current urgent problem to be solved.
Summary of the invention
In view of the above problems, the application describes a kind of WIFI router performance test method, the method includes the steps:
The beta version of test item is selected, and test assignment in need of test is selected according to the beta version;
Store the test assignment;
Obtain the testing sequence of the test assignment;
Whether diagnostic test network communicates normally;
If the test network communication abnormality, measurement network communication exception information is issued;
If the test network communication is normal, is tested automatically according to the testing sequence and obtain test report;
It stores the test report and exports the report to web page;
It issues test and completes information.
Preferably, being obtained according to the priority-level of the test assignment and/or testing time and/or required test equipment
Take the testing sequence of the test assignment.
Preferably, tested automatically according to the testing sequence and obtain the test report process comprising steps of
Automatic test is carried out according to the testing sequence to obtain test result;
The testing standard data of the test result and the test assignment are compared, the test report is obtained.
Preferably, performance test submodule required for different test assignments is different, institute is not present in test macro
When stating the performance test submodule corresponding to test assignment, the performance test submodule is added in the test macro
Block.
Preferably, the method also includes steps when adding the performance test submodule in the test macro:
The network equipment of the performance test submodule is added in the test;
Test file needed for adding the performance test submodule in database module;
All data needed for backing up the performance test submodule;
The network communication state of the performance test submodule is tested.
Preferably, the method also includes steps:
The contact method for storing Test Engineer, when Yu Suoshu test network communication abnormality, by the contact method to
The Test Engineer sends the measurement network communication exception information;
It is tested after test completion to the Test Engineer and sends the test completion information.
Preferably, the test assignment includes descending on WIFI testing throughput and/or power enhancing test and/or 100M
Carry test and/or delay test.
Preferably, all data in the test process are stored.
The present invention also provides a kind of WIFI router performance test macro, the test macro includes:
Database module, to store all data in the locating test macro;
Front end web module, is connected with the database module, to obtain test item, beta version, test assignment with
And the contact method of Test Engineer, and by the test item, the beta version, test assignment and/or the correspondent party
Formula is stored into the database module;
Plan target module is connected, to according to respectively with the front end web module and the database module
Test assignment obtains the testing sequence of the test assignment and stores the testing sequence into the database module;
Whether grid diagnostic module is connected with the plan target control module, communicates to diagnostic test network
Normally;
WIFI performance test module is connected with the database module, to be surveyed automatically according to the testing sequence
Examination is stored the test result into the database module with obtaining test result;
Test report produces module, is connected with the database module, to generate test report according to the test result
It accuses and stores the test report into the database module.
Preferably, the database module include test item table and/or beta version table and/or test assignment table and/
Or task scheduling table and/or testing standard table and/or test report table and/or user contact details table.
Preferably, the grid diagnostic module is also connected with the database module, the database module is received
It is described system network diagnostic modules diagnostic result and according to the diagnostic result generation error log.
Preferably, the grid diagnostic module includes:
Grid diagnosis unit is connected with the plan target module, to diagnose whether the test network communicates
Normally;
Abnormal notification unit is connected, to work as respectively with the grid diagnosis unit and the database module
The contact method is transferred when the test network exception from the database module and according to the contact method to described
Test Engineer sends Network Abnormal information.
Preferably, the test macro further includes notification module, the notification module is connected with the database module, uses
It is surveyed with transferring the contact method in the database module and being sent according to the contact method item Test Engineer
Information is completed in examination.
Preferably, the WIFI performance test module includes performance test submodule several different, the performance is surveyed
Swab module is WIFI testing throughput unit or power enhances test cell or 100M uploads downloading test cell or PING packet
Delay test unit.
Above-mentioned technical proposal has the following advantages that or the utility model has the advantages that WIFI router performance provided by the present invention test side
Method and system avoid Test Engineer and repeat the problem of building test environment, and the mode of automatic test substantially increases work
Make efficiency;Plan target control module is able to carry out intelligent sequencing, more convenient reliable;It can be according to the need of Test Engineer
It asks, freely adds test cell in WIFI performance test module;All data in test process are all stored in sorted order number
According in library module, so as to investigation and analysis in the future.
Detailed description of the invention
With reference to appended attached drawing, more fully to describe the embodiment of the present invention.However, appended attached drawing be merely to illustrate and
It illustrates, and is not meant to limit the scope of the invention.
Fig. 1 is a kind of flow chart of WIFI router performance test method of the present invention;
Fig. 2 is a kind of structural schematic diagram one of WIFI router performance test macro of the present invention;
Fig. 3 is a kind of structural schematic diagram two of WIFI router performance test macro of the present invention;
Fig. 4 is a kind of structural schematic diagram three of WIFI router performance test macro of the present invention;
Fig. 5 is the structural schematic diagram of WIFI performance test module in a kind of WIFI router performance test macro of the present invention.
Specific embodiment
A kind of WIFI router performance test method of the present invention and system are carried out in the following with reference to the drawings and specific embodiments
It is described in detail.
Embodiment one
As shown in Figure 1, a kind of WIFI router performance test method, comprising steps of
Test Engineer selects the beta version of test item, and survey in need of test is selected from the beta version
Trial business;
Store the contact method of the test assignment and the Test Engineer;
The testing sequence of the test assignment is obtained according to the test assignment;
Whether diagnostic test network communicates normally;
If the test network communication abnormality notifies Test Engineer by the contact method, Resolving probiems are laggard
The automatic test of row;
If the test network communication is normal, is tested automatically according to the testing sequence and obtain test report;
It stores the test report and exports the test report to web page;
Notify the Test Engineer tests to complete by the contact method.
A kind of WIFI router performance test method is present embodiments provided, in the method, Test Engineer is logical first
The beta version that web page determines test item is crossed, and selects test assignment in need of test from the beta version.
It is also desirable to input the testing sequence of the Test Engineer, by web page so that test process to be timely pushed to institute
State Test Engineer.
After the Test Engineer has determined test assignment, the survey of the test assignment is obtained according to the test assignment
Examination sequence.It is worth noting that the test assignment may include it is a variety of, as WIFI testing throughput, power enhancing test,
100M uploads downloading test, maximum throughput test, coverage test through walls, the test of wireless direction, channel and frequency and adaptively surveys
Examination, co-channel interference test, terminal transparency test, delay test (i.e. PING packet delay is tested), the forwarding of reason (bridge joint) mode
Performance test etc..In addition, certain priority-level, testing time and test equipment are required to due to each test assignment,
And the equipment may carry out other tests, so usually after test assignment has been determined, it is also necessary to according to the test
The priority of task, required time and test equipment arrange its testing sequence, to prevent the test assignment and its
Its test assignment mutually conflicts, so that causing test result the problems such as error occurs.
After the testing time that the test assignment has been determined, it is also necessary to be detected to the communication state of test network.Such as
Fruit test network is unobstructed, then can test the test assignment.Otherwise, it is necessary to pass through the Test Engineer's
Contact method issues Network Abnormal notice to the Test Engineer.This mode can notify Test Engineer to carry out in time
The maintenance process of network continues to test the test assignment after test network restores normal.
After the completion of test, according to the test result generate test report, by the test report carry out storage and by its
It exports to the web page.In addition it is also necessary to which sending test to the Test Engineer completes information, to remind testing engineering
Teacher's test has been completed.Wherein, the testing standard data of the test result and the test assignment are compared, to obtain
Take the test report.
It is worth noting that in the present embodiment, performance test submodule required for different test assignments is different, in
There is no when the performance test submodule corresponding to the test assignment in test macro, added in the test macro
The performance test submodule.When adding the performance test submodule in the test macro, the method also includes
Step:
The network equipment of the performance test submodule is added in the test;
Test file needed for adding the performance test submodule in database module;
All data needed for backing up the performance test submodule;
The network communication state of the performance test submodule is tested.
Specifically, a test macro is needed to the test of WIFI router performance, in the test macro, if including
The test assignment of dry different test submodule, each test be able to carry out test of submodule is different.When in the test
There is no when test submodule corresponding to the test assignment in system, need to add the test submodule in the test macro
Block.Specific adding procedure are as follows: the network equipment that the performance test submodule is first added in the test, then in data
Test file needed for adding the performance test submodule in library module, it is also desirable to back up the performance test submodule institute
All data needed, finally test the network communication state of the performance test submodule.It is surveyed when adding the performance
After the completion of swab module, the test assignment can be tested.
WIFI router performance test method provided by the present embodiment avoids Test Engineer and repeats to build test wrapper
The mode of the problem of border, automatic test greatly improve work efficiency;Plan target control module is able to carry out intelligent sequencing,
It is more convenient reliable.By the priority of test assignment, testing time and equipment etc. needed for testing carries out intelligent sequencing, using taking
The test environment built up is tested automatically, substantially reduces the time of Test Engineer, and test can be reminded in time when completing
Test Engineer improves the working efficiency of test.
Embodiment two
According to a kind of WIFI router performance test method that embodiment one proposes, the present embodiment proposes a kind of road WIFI
By device Performance Test System.
As shown in Fig. 2, a kind of WIFI router performance test macro, comprising:
Database module, to store the data in the system;
Front end web module, is connected with the database module, and Test Engineer selects to survey by the front end web module
The beta version of examination project, and test assignment in need of test is selected from the beta version;Meanwhile the front end
Web module stores the test item, beta version, test assignment and the contact method of the Test Engineer to described
In database module;
Plan target control module is connected, to according to the front end web module and the database module
Test assignment obtains the testing sequence of the test assignment and stores the testing sequence into the database module;
Whether grid diagnostic module is connected with the plan target control module, communicates to diagnostic test network
Normally;Grid diagnostic module is also connected with database module, to store the error log of test network;
WIFI performance test module is connected with the Data Data library module, to be carried out certainly according to the testing sequence
Dynamic test obtains test result and stores the test result into the database module;
Test report generation module is connected with the database module, to according to the test result and the number
Test report is generated according to the testing standard stored in library module, and the test report is saved into the database module;
Notification module is connected with the database module, to transfer the testing engineering in the database module
The contact method of teacher simultaneously sends test completion information to the Test Engineer according to the contact method.
Wherein, as shown in figure 3, the grid diagnostic module includes:
Grid diagnosis unit is connected, whether to diagnose the test network with the plan target control module
Communication is normal;
Abnormal notification unit is connected, to work as respectively with the grid diagnosis unit and the database module
The contact method of the Test Engineer is transferred when the test network exception from the database module and according to described
Being mode sends Network Abnormal information to the Test Engineer.
As shown in figure 4, the front end web module includes:
Test item selecting unit is connected with the database module, to list all test items and will test work
The test item of Cheng Shi selection is saved into the database module;
Beta version selecting unit is connected with the test item selecting unit and the database module respectively, uses
With according to the selected test item of the Test Engineer list beta version and will Test Engineer selection described in
Beta version is saved into the database module;
Test assignment selecting unit is connected with the beta version selecting unit and the database module respectively, uses
To list test assignment corresponding to the beta version according to the selected beta version of the Test Engineer, and will
The test assignment of Test Engineer's selection is saved into the database module;
Contact method acquiring unit is connected with the database module, to obtain the contact method of Test Engineer simultaneously
The contact method is saved into the database module;
Test report display unit is connected with the database module, to obtain described in the test report and display
Test report.
In the present embodiment, test item to be tested needed for Test Engineer is selected by test item selecting unit,
Then beta version selecting unit can list corresponding beta version according to the test item, and Test Engineer's selection is corresponding to survey
After test run sheet, test assignment selecting unit can list corresponding test assignment according to the beta version.Test Engineer's confirmation
After test assignment, the contact method of oneself is inputted by contact method acquiring unit.Wherein, the test item, beta version
Originally, test assignment and contact method, are stored in the database module.
After test assignment has been determined, plan target control module determines the testing sequence of the test assignment.It is worth pointing out
, certain priority-level, testing time and equipment are required to due to each test assignment, and the equipment may be
Other tests are carried out, so usually after test assignment has been determined, it is also necessary to according to the test assignment priority, required
Time and test equipment arrange its testing sequence, to prevent the test assignment from mutually conflicting with other test assignments, from
And it causes test result and the problems such as error occurs.Later, activation system network diagnosis unit, to the communication state of test network
It is diagnosed.When test network is normal, WIFI performance test module is directly initiated, otherwise, needs to start abnormal notification unit,
To notify Test Engineer's Network Abnormal, after Network Abnormal Resolving probiems, restart WIFI performance test module.
Wherein, as shown in figure 5, the WIFI performance test module includes performance test submodule several different, institute
Stating performance test submodule can be with are as follows: WIFI testing throughput unit, power enhancing test cell, that 100M uploads downloading test is single
Member, PING packet delay test cell etc..The test that these test cells are realized is different, these test the measurement that can handle up for WIFI
Examination, power enhancing test, 100M upload downloading test, maximum throughput test, coverage test through walls, the test of wireless direction, letter
Road and frequency adaptive testing, co-channel interference test, terminal transparency test, the test of PING packet delay, reason (bridge joint) mode
Forwarding performance test etc..
After WIFI performance test module, which is tested, to be completed and obtain test result, test report generation module is according to the test
As a result test report is generated, while the test report being stored into the data module.In addition, test report display unit obtains
It takes the test report and shows, notification module transfers the contact method and root of the Test Engineer in the database module
Test, which is sent, to the Test Engineer according to the contact method completes information.
It is worth noting that database module is the core of this system, it is all relevant with other modules.User exists
The information of front end web module input can all import in the database module;Plan target control module is according to database mould
Information in block carries out test assignment sequence arrangement;If there is first problem when system diagnostics, abnormal notification unit can call number
According to the contact method in library to Test Engineer send information, Test Engineer by the error log generated in database module into
Row network restoration;The test result that WIFI performance test module is tested out is first directed to database, according to the survey in database
Test-object standard carries out judging the test result;Test report produces module can be according to database module finally derived data generation
Test report, and the test report is imported in database and achieved, then has database to export to test report and shows
Unit;While database module receives test report, notification module can item Test Engineer transmission test completion information.
It include multiple tables in the database module, such as test item table, beta version table, test assignment table, task meter
Table, testing standard table, test report table, user contact details table etc. are drawn, there is special data base administration in database module
Member carries out maintenance and management.It is worth noting that the test item table is for storing the selected survey of the Test Engineer
Examination project, the beta version table is to store the selected beta version of the Test Engineer, the test assignment
Table stores the test of the test assignment to store the selected test assignment of the engineer, the task scheduling table user
Sequentially, testing standard data of the testing standard table to store the test assignment, the test report table is to store
The test report, contact method of the user contact details table to store the Test Engineer.
WIFI router performance test macro provided by the present embodiment avoids Test Engineer and repeats to build test wrapper
The mode of the problem of border, automatic test greatly improve work efficiency;Plan target control module is able to carry out intelligent sequencing,
It is more convenient reliable;Automatic test engineer can be according to the demand of Test Engineer, in WIFI performance test module certainly
By addition test cell;All data in test process are all stored in sorted order in database module, so as to investigation in the future
And analysis.
For a person skilled in the art, after reading above description, various changes and modifications undoubtedly be will be evident.
Therefore, appended claims should regard the whole variations and modifications for covering true intention and range of the invention as.It is weighing
The range and content of any and all equivalences, are all considered as still belonging to the intent and scope of the invention within the scope of sharp claim.