The method and device of operational trials
Technical field
The present invention relates to Internet technical field, more particularly to a kind of method and device of operational trials.
Background technology
More and more using the user of internet with the development of Internet technology, the thing followed is user to various
The demand of network access also becomes increasingly complex.In order to meet the needs of user, the application of all kinds of offer different business arises
To meet the needs of user.
Before use is issued in application, tester needs to test the business in application, it has been determined that whether business
In this application can be with normal use.Such as:Whether the business that test browser application is commented on can be with normal operating;Test
Whether browser application can be with normal operating etc. to the function of user's PUSH message.
Inventor has found that prior art at least has problems with:
Due to generally test test terminal residing for environment be Intranet, and external public network address be then uniquely not
Become.And some business set access limitation for same public network address in certain time in testing, therefore testing such
During business, because test environment problem can then cause testing efficiency relatively low, the issue of business and application is influenceed.
The content of the invention
In order to solve problem of the prior art, the embodiments of the invention provide a kind of method and device of operational trials.Institute
It is as follows to state technical scheme:
On the one hand, there is provided a kind of method of operational trials, methods described include:
Receive the operational trials order that test terminal is sent;
Choose what public network address differed with the last time for the public network address for testing the access server that terminal is chosen
Access server;The access server passes through each self-corresponding Asymmetrical Digital Subscriber Line ADSL access via telephone line networks, institute
Each unique public network address is allocated after stating access server access network;
The operational trials order is sent to the access server of the selection, so that the access server passes through certainly
The operational trials order is sent to service server by the network of body access.
Optionally, before the operational trials order for receiving test terminal and sending, methods described also includes:
The order for the change corresponding relation that test terminal is sent is received, change is carried in the order of the change corresponding relation
The mark of access server afterwards;
In the corresponding relation of test terminal and access server, the incidence relation of the test terminal is changed, by described in
Test terminal is associated with the access server after the change;
Accordingly, it is described to choose public network address with the public network of the last access server chosen for the test terminal
The access server that location differs, including:
In the corresponding relation of test terminal and access server, after choosing the change corresponding to the test terminal
Access server is as the access server chosen.
Optionally, before the operational trials order for receiving test terminal and sending, methods described also includes:
Receive the first access networking command that test terminal is sent;
The corresponding access server of the test terminal is searched in corresponding relation of the test terminal with access server;
The first access networking command is sent to access server corresponding to the test terminal;So that the access clothes
Business device re-accessing network, and get the public network address of renewal;
Accordingly, it is described to choose public network address with the public network of the last access server chosen for the test terminal
The access server that location differs, including:
In the corresponding relation of test terminal and access server, access server work corresponding to the test terminal is chosen
For the access server of selection.
Optionally, before the operational trials order for receiving test terminal and sending, methods described also includes:
Receive the second access networking command and the identification code that test terminal is sent;
Judge whether the identification code is identical with the identification code that local terminal pre-saves;
If the identification code is identical with the identification code that local terminal pre-saves, described second is sent to each access server
Access networking command;So that each access server re-accessing network, and get the public network address of renewal.
Optionally, it is characterised in that methods described also includes:
Record the time for the access networking command that the test terminal is sent and carry out the access clothes of re-accessing network
The mark of business device.
On the other hand, there is provided a kind of device of operational trials, described device include:
First receiving module, the operational trials order sent for receiving test terminal;
Module is chosen, for choosing the public network of public network address and the last access server chosen for the test terminal
The access server that address differs;The access server passes through each self-corresponding Asymmetrical Digital Subscriber Line ADSL special lines
Network is accessed, each unique public network address is allocated after the access server access network;
First sending module, for the operational trials order to be sent to the access server of the selection, so that institute
State access server and the operational trials order is sent to by service server by the network that itself is accessed.
Optionally, described device also includes:
Second receiving module, the order of the change corresponding relation sent for receiving test terminal, the change is corresponding to close
The mark of the access server after change is carried in the order of system;
Module is changed, in the corresponding relation of test terminal and access server, changing the pass of the test terminal
Connection relation, the test terminal is associated with the access server after the change;
Accordingly, the selection module is used for:
In the corresponding relation of test terminal and access server, after choosing the change corresponding to the test terminal
Access server is as the access server chosen.
Optionally, described device also includes:
3rd receiving module, the first access networking command sent for receiving test terminal;
Searching modul, it is corresponding for searching the test terminal in corresponding relation of the test terminal with access server
Access server;
Second sending module, for sending the first access network life to access server corresponding to the test terminal
Order;So that the access server re-accessing network, and get the public network address of renewal;
Accordingly, the selection module is used for:
In the corresponding relation of test terminal and access server, access server work corresponding to the test terminal is chosen
For the access server of selection.
Optionally, described device also includes:
4th receiving module, for receiving the second access networking command and the identification code that test terminal is sent;
Judge module, for judging whether the identification code is identical with the identification code that local terminal pre-saves;
3rd sending module, if identical with the identification code that local terminal pre-saves for the identification code, to each access
Server sends the second access networking command;So that each access server re-accessing network, and get renewal
Public network address.
Optionally, described device also includes:
Logging modle, for recording the time for testing the access networking command that terminal is sent and being accessed again
The mark of the access server of network.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
The access server public network that by the network equipment be the selection of test terminal and the last time is test terminal selection
The access server that location differs, and the operational trials order for testing terminal transmission is sent to the access server chosen.
The transmission of operational trials instruction is realized by choosing the different access server of public network address, is improved for same public network
Address sets the testing efficiency for the business for accessing limitation in certain time, and saves the testing time, improves business and answers
Efficiency for issuing.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment
Accompanying drawing is briefly described, it should be apparent 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.
Fig. 1 is the method flow diagram for the operational trials that the embodiment of the present invention one provides;
Fig. 2 is the method flow diagram for the operational trials that the embodiment of the present invention two provides;
Fig. 3 is the method flow diagram for the operational trials that the embodiment of the present invention three provides;
Fig. 4 is the public network address that whole access servers are updated in the method for the operational trials that the embodiment of the present invention four provides
Method flow diagram;
Fig. 5 is the apparatus structure schematic diagram for the operational trials that the embodiment of the present invention five provides.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
Embodiment one
The embodiments of the invention provide a kind of method of operational trials, referring to Fig. 1, method flow includes:
101:The network equipment receives the operational trials order that test terminal is sent;
102:The network equipment chooses the public network address of public network address and the last access server chosen for test terminal
The access server differed;Access server passes through each self-corresponding Asymmetrical Digital Subscriber Line ADSL access via telephone line nets
Network, access server are allocated each unique public network address after accessing network;
103:Operational trials order is sent to the access server of selection by the network equipment, so that access server passes through certainly
Operational trials order is sent to service server by the network of body access.
It should be noted that terminal and the network equipment are tested in embodiments of the present invention in same Intranet.In addition, set
One or more access server, wherein every access server is provided with two pieces of network interface cards, one piece of network interface card is accessed by circuit
In the network equipment stated, ADSL (Asymmetric Digital Subscriber that another piece of network interface card is provided by operator
Line, Asymmetrical Digital Subscriber Line) in access via telephone line external network, each access server can quilt after accessing external network
Distribute a unique public network address.In addition, when access server carries out the operation of re-accessing network every time, all can again by
Distribute a public network address.
The corresponding relation of test terminal and access server is preserved in the network device, is wherein preserved in the corresponding relation
There are the mark of each test terminal and the mark of access server associated there.In addition, also preserve in the network device
There is the internal address of each access server, so that the network equipment will receive according to the internal address of each access server
Operational trials order is forwarded.
Wherein, a test terminal can associate an access server, and an access server can be by more tests
Terminal is associated.
The embodiment of the present invention is to test the access that terminal is chosen with the last time is test terminal selection by the network equipment
The access server that server public network address differs, and the operational trials order for testing terminal transmission is sent to what is chosen
Access server.The transmission of operational trials instruction is realized by choosing the different access server of public network address, improves pin
The testing efficiency for the business for accessing limitation is set in certain time to same public network address, and saves the testing time, is carried
The high efficiency for issuing of business and application.
Embodiment two
The embodiments of the invention provide a kind of method of operational trials, referring to Fig. 2.
It should be noted that sending the order of change corresponding relation in the embodiment of the present invention by testing terminal, change is surveyed
The incidence relation of terminal and access server is tried, is entered with realizing that test terminal can send test command to service server again
The operation of row test.
Wherein, this method includes:
201:The administration page tested in terminal logging in network equipment, choose access service associated with itself after changing
The mark of device.
Wherein, administration page can be the Webpage in the network equipment.When test terminal logs in the administration page, net
Network equipment can choose the content corresponding with the test terminal according to the terminal iidentification of the test terminal and be shown.Such as:It is aobvious
Show the mark of test terminal;The public network address of the display access server associated with the test terminal;Show access server
Expression list, the access server mark that display is wherein given tacit consent in the list can be that terminal is associated connects with current test
Enter the mark of server;Show the option of operation to being currently accessed server, wherein option of operation can be to redial operation, i.e., to
Access server sends the first access networking command;Show to the option of operation of each access server, wherein option of operation can be with
To redial operation, i.e., send the second access networking command to each access server;The transmission access of the current test terminal of display
The record of networking command.
Tester chooses the access server after current test terminal change incidence relation in the administration page
Mark, now test terminal to the network equipment send change corresponding relation order, in the order carry change after access
The mark of server.
202:The network equipment receives the order for the change corresponding relation that test terminal is sent, and changes in the order of corresponding relation
Carry the mark of the access server after change.
203:The network equipment in the corresponding relation of test terminal and access server, close by the association of change test terminal
System, terminal will be tested and be associated with the access server after change.
204:Test terminal and send operational trials order to the network equipment.
Wherein, this operational trials order sent, belongs to the non-test command sent first of the test terminal.
205:The network equipment receives the operational trials order that test terminal is sent.
206:The network equipment chooses the public network address of public network address and the last access server chosen for test terminal
The access server differed;Access server passes through each self-corresponding Asymmetrical Digital Subscriber Line ADSL access via telephone line nets
Network, access server are allocated each unique public network address after accessing network.
Wherein, in embodiments of the present invention, the network equipment is chosen in the corresponding relation of test terminal and access server
The access server tested after being changed corresponding to terminal is as the access server chosen.
207:Operational trials order is sent to the access server chosen by the network equipment.
Now, because test terminal has changed incidence relation, public network address and the network of the access server after change are set
Standby public network address in the upper access server once chosen for test terminal simultaneously differs, therefore this operational trials for sending
Order can be received by service server and normally handled.
208:Access server receives the operational trials order that the network equipment is sent, and the network accessed by itself should
Operational trials order is sent to service server.
The embodiment of the present invention is to test the access that terminal is chosen with the last time is test terminal selection by the network equipment
The access server that server public network address differs, and the operational trials order for testing terminal transmission is sent to what is chosen
Access server.The transmission of operational trials instruction is realized by choosing the different access server of public network address, improves pin
The testing efficiency for the business for accessing limitation is set in certain time to same public network address, and saves the testing time, is carried
The high efficiency for issuing of business and application.
Embodiment three
The embodiments of the invention provide a kind of method of operational trials, referring to Fig. 3.
It should be noted that access associated with current test terminal by testing terminal-pair in the embodiment of the present invention
Server sends access networking command for the first time so that and the access server carries out dialing again and gets new public network address,
To realize the operation tested terminal and can tested again to service server transmission test command.
Wherein, this method includes:
301:The administration page tested in terminal logging in network equipment, and send the first access network life to the network equipment
Order.
Wherein, administration page can be the Webpage in the network equipment.When test terminal logs in the administration page, net
Network equipment can choose the content corresponding with the test terminal according to the terminal iidentification of the test terminal and be shown.Such as:It is aobvious
Show the mark of test terminal;The public network address of the display access server associated with the test terminal;Show access server
Expression list, the access server mark that display is wherein given tacit consent in the list can be that terminal is associated connects with current test
Enter the mark of server;Show the option of operation to being currently accessed server, wherein option of operation can be to redial operation, i.e., to
Access server sends the first access networking command;Show to the option of operation of each access server, wherein option of operation can be with
To redial operation, i.e., send the second access networking command to each access server;The transmission access of the current test terminal of display
The record of networking command.
Tester is chosen in option of operation corresponding to the access server that current default is shown in the administration page
Operation is redialed, terminal is now tested and sends the first access networking command to the network equipment.
302:The network equipment receives the first access networking command that test terminal is sent.
303:The network equipment searches the corresponding access of test terminal in corresponding relation of the test terminal with access server
Server.
304:Access server corresponding to the network equipment to test terminal sends the first access networking command;So that access takes
Business device re-accessing network, and get the public network address of renewal.
305:The time for the access networking command that network equipment record test terminal is sent and progress re-accessing network
Access server mark.
306:Access server receives the first access networking command, and is connect again according to the first access networking command
Enter the operation of network, and obtain the public network address of renewal.
307:Test terminal and send operational trials order to the network equipment.
Wherein, this operational trials order sent, belongs to the non-test command sent first of the test terminal.
308:The network equipment receives the operational trials order that test terminal is sent.
309:The network equipment chooses the public network address of public network address and the last access server chosen for test terminal
The access server differed;Access server passes through each self-corresponding Asymmetrical Digital Subscriber Line ADSL access via telephone line nets
Network, access server are allocated each unique public network address after accessing network.
Wherein, in embodiments of the present invention, the network equipment is chosen in the corresponding relation of test terminal and access server
Access server corresponding to terminal is tested as the access server chosen.
310:Operational trials order is sent to access server by the network equipment.
Now, because test terminal have sent the first access networking command so that the access service with testing terminal association
Device re-accessing network, and the public network address of renewal is assigned, the public network address of the access server and the last access
Server is the public network address when test terminal sends operational trials order and differed, therefore the operational trials of this transmission
Order can be received by service server and normally handled.
In the public network address of the upper access server once chosen for test terminal and differed with the network equipment, therefore should
Operational trials order can be received by service server and normally handled.
311:Access server receives the operational trials order that the network equipment is sent, and the network accessed by itself should
Operational trials order is sent to service server.
The embodiment of the present invention is to test the access that terminal is chosen with the last time is test terminal selection by the network equipment
The access server that server public network address differs, and the operational trials order for testing terminal transmission is sent to what is chosen
Access server.The transmission of operational trials instruction is realized by choosing the different access server of public network address, improves pin
The testing efficiency for the business for accessing limitation is set in certain time to same public network address, and saves the testing time, is carried
The high efficiency for issuing of business and application.
Example IV
The embodiments of the invention provide the public network address that whole access servers are updated in a kind of method of operational trials
Method, referring to Fig. 4.
It should be noted that test terminal can be by the administration page of logging in network equipment to whole access servers
Again dialled, so that the public network address of whole access servers is updated.
Wherein, this method includes:
401:The administration page tested in terminal logging in network equipment, and send the second access networking command to the network equipment
And identification code.
Wherein, administration page can be the Webpage in the network equipment.When test terminal logs in the administration page, net
Network equipment can choose the content corresponding with the test terminal according to the terminal iidentification of the test terminal and be shown.Such as:It is aobvious
Show the mark of test terminal;The public network address of the display access server associated with the test terminal;Show access server
Expression list, the access server mark that display is wherein given tacit consent in the list can be that terminal is associated connects with current test
Enter the mark of server;Show the option of operation to being currently accessed server, wherein option of operation can be to redial operation, i.e., to
Access server sends the first access networking command;Show to the option of operation of each access server, wherein option of operation can be with
To redial operation, i.e., send the second access networking command to each access server;The transmission access of the current test terminal of display
The record of networking command.
Tester is chosen in the administration page to redialing operation in option of operation corresponding to each access server, this
When test terminal to the network equipment send second access networking command.
Optionally, one identification of input is needed when redialing operation in option of operation corresponding to each access server is carried out
Code, to prevent this from redialing operation as maloperation.
402:The network equipment receives the second access networking command and the identification code that test terminal is sent;
403:The network equipment judges whether identification code is identical with the identification code that local terminal pre-saves;
404:If identification code is identical with the identification code that local terminal pre-saves, the network equipment is sent to each access server
Second access networking command;So that each access server re-accessing network, and get the public network address of renewal.
405:The time for the access networking command that record test terminal is sent and the access clothes for carrying out re-accessing network
Business device mark.
406:Each access server receives the second access networking command, and is carried out again according to the second access networking command
The operation of network is accessed, and obtains the public network address of renewal.
The embodiment of the present invention is to test the access that terminal is chosen with the last time is test terminal selection by the network equipment
The access server that server public network address differs, and the operational trials order for testing terminal transmission is sent to what is chosen
Access server.The transmission of operational trials instruction is realized by choosing the different access server of public network address, improves pin
The testing efficiency for the business for accessing limitation is set in certain time to same public network address, and saves the testing time, is carried
The high efficiency for issuing of business and application.
Embodiment five
The embodiments of the invention provide a kind of device of operational trials, and referring to Fig. 5, the device includes:
First receiving module 501, the operational trials order sent for receiving test terminal;
Module 502 is chosen, for choosing the public network of public network address and the last access server chosen for test terminal
The access server that address differs;Access server passes through each self-corresponding Asymmetrical Digital Subscriber Line ADSL access via telephone lines
Network, access server are allocated each unique public network address after accessing network;
First sending module 503, for operational trials order to be sent to the access server of selection, so that access service
Operational trials order is sent to service server by device by the network that itself is accessed.
Wherein, device also includes:
Second receiving module 504, the order of the change corresponding relation sent for receiving test terminal, changes corresponding relation
Order in carry change after access server mark;
Module 505 is changed, in the corresponding relation of test terminal and access server, the association of terminal to be tested in change
Relation, terminal will be tested and be associated with the access server after change;
Accordingly, module 502 is chosen to be used for:
In the corresponding relation of test terminal and access server, the access service after being changed corresponding to test terminal is chosen
Device is as the access server chosen.
Wherein, device also includes:
3rd receiving module 506, the first access networking command sent for receiving test terminal;
Searching modul 507, it is corresponding for searching test terminal in corresponding relation of the test terminal with access server
Access server;
Second sending module 508, for sending the first access networking command to access server corresponding to test terminal;With
Make access server re-accessing network, and get the public network address of renewal;
Accordingly, module 502 is chosen to be used for:
In the corresponding relation of test terminal and access server, access server corresponding to test terminal is chosen as choosing
The access server taken.
Wherein, device also includes:
4th receiving module 509, for receiving the second access networking command and the identification code that test terminal is sent;
Judge module 510, for judging whether identification code is identical with the identification code that local terminal pre-saves;
3rd sending module 511, if identical with the identification code that local terminal pre-saves for identification code, taken to each access
Business device sends the second access networking command;So that each access server re-accessing network, and get the public network address of renewal.
Wherein, device also includes:
Logging modle 512, the time for the access networking command that terminal is sent is tested for recording and is accessed again
The mark of the access server of network.
The embodiment of the present invention is to test the access that terminal is chosen with the last time is test terminal selection by the network equipment
The access server that server public network address differs, and the operational trials order for testing terminal transmission is sent to what is chosen
Access server.The transmission of operational trials instruction is realized by choosing the different access server of public network address, improves pin
The testing efficiency for the business for accessing limitation is set in certain time to same public network address, and saves the testing time, is carried
The high efficiency for issuing of business and application.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment
To complete, by program the hardware of correlation can also be instructed to complete, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.