CN104065541A - Method and system for automatically performing network mode testing - Google Patents
Method and system for automatically performing network mode testing Download PDFInfo
- Publication number
- CN104065541A CN104065541A CN201410333537.XA CN201410333537A CN104065541A CN 104065541 A CN104065541 A CN 104065541A CN 201410333537 A CN201410333537 A CN 201410333537A CN 104065541 A CN104065541 A CN 104065541A
- Authority
- CN
- China
- Prior art keywords
- test
- communication module
- network schemer
- pattern
- network
- 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
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method and system for automatically performing network mode testing. The method and system are applied to a communication module which is connected with a network server by adopting one or more modes, and the communication module is arranged in equipment which can log in the network server. According to the method, firstly, the network mode of the communication module is set into a first mode on the basis of a testing starting instruction, and a login program for logging in the network server in the equipment is started on the basis of the first mode; then, corresponding information is output according to whether login is successful or not; if the communication module comprises a plurality of network modes, and the network modes of the communication module are modified into other modes for the next login testing after login is successful until each network mode is traversed. Thus, automatic testing on the network mode can be achieved, and the problem that manual mistaken operation causes the testing failure in a manual testing process can be effectively solved.
Description
Technical field
The present invention relates to network schemer field tests, particularly relate to a kind of method and system of automatically carrying out network schemer test.
Background technology
Develop rapidly along with wireless network, the leading position that SOHO WIFI product has occupied everybody network life, all SOHO WIFI products are all to surf the Net by network schemer mouth, and network schemer comprises three kinds of patterns, the i.e. pattern based on DHCP (Dynamic Host Configuration Protocol, DHCP) linked network server, pattern and the pattern based on static IP linked network server based on PPPOE (point-to-point protocol over ethernet) the protocol link webserver.Can SOHO WIFI product surf the Net successfully, depends on whether aforementioned three kinds of patterns come into force, therefore extremely important to the test of SOHO WIFI product network pattern.
At present, for the test of network schemer, mainly take manual test as main, first by tester, select the network schemer in WIFI product to be tested, for example, the pattern of selection based on the DHCP protocol link webserver, subsequently, the web browser that tester restarts this product logs in a certain webserver, if log in successfully, tester is revised as network schemer the pattern based on the PPPOE protocol link webserver again, subsequently, tester restarts and logs in a certain webserver and test, can surf the Net successfully determining whether, and after logging in successfully, again network schemer is revised as to the pattern based on static IP linked network server, and configuring static address, subnet mask, default gateway and domain name resolution server, restart again subsequently and log in a certain webserver, with test, whether can surf the Net successfully, so test, shortcoming is a lot of: 1, test period is long: testing procedure is loaded down with trivial details, expends the plenty of time, 2, increase the cost of product: because need to increase test manpower and materials, and while having extended test, cause the whole R&D costs of product to increase, 3, manual test false failure rate is high: because test process is loaded down with trivial details, similar, easily in testing engineering, cause misoperation etc.
Therefore, the utmost point is necessary to provide a kind of and can automatically carries out the method for network schemer test.
Summary of the invention
The shortcoming of prior art, the object of the present invention is to provide a kind of method and system of automatically carrying out network schemer test in view of the above, to realize the automatic test of network schemer.
For achieving the above object and other relevant objects, the invention provides a kind of method of automatically carrying out network schemer test, be applied to the communication module that adopts at least one pattern and the webserver to link, described communication module is arranged in the equipment of energy logging in online server, described method of automatically carrying out network schemer test at least comprises: the network schemer based on the described communication module of test initiation command is set to first mode, and based on described first mode, starts the landing program of logging in online server in described equipment; And successfully export corresponding information based on whether logging in.
Preferably, if described communication module comprises multiple network pattern, after logging in successfully, after being revised as to other patterns, the network schemer of described communication module again logs in test.
The present invention also provides a kind of test macro that automatically carries out network schemer test, be applied to the communication module that adopts at least one pattern and the webserver to link, described communication module is arranged in the equipment of energy logging in online server, the described test macro that automatically carries out network schemer test at least comprises: module is set, for the network schemer based on the described communication module of test initiation command, be set to first mode, and based on described first mode, start the landing program of logging in online server in described equipment; And output module, for successfully exporting corresponding information based on whether logging in.
Preferably, if described communication module comprises multiple network pattern, the described module that arranges also comprises: revise unit, for after logging in successfully, again log in test after the network schemer of described communication module is revised as to other patterns.
Preferably, described communication module comprises WiFi communication module; More preferably, the network schemer of described WiFi communication module comprises pattern, the pattern based on the PPPOE protocol link webserver and the pattern based on static IP linked network server based on the DHCP protocol link webserver.
As mentioned above, method and system of automatically carrying out network schemer test of the present invention, have following beneficial effect: can realize the automatic test of network schemer, shorten test period, can effectively avoid the problems such as test crash that cause because of artificial incorrect operation.
Accompanying drawing explanation
Fig. 1 is shown as the flow chart that automatically carries out the method for network schemer test of the present invention.
Fig. 2 is shown as the test macro schematic diagram that automatically carries out network schemer test of the present invention.
Element numbers explanation
1 test macro
11 arrange module
111 revise unit
12 output modules
S1~S6 step
Embodiment
Below, by specific instantiation explanation embodiments of the present invention, those skilled in the art can understand other advantages of the present invention and effect easily by the disclosed content of this specification.The present invention can also be implemented or be applied by other different embodiment, and the every details in this specification also can be based on different viewpoints and application, carries out various modifications or change not deviating under spirit of the present invention.
Refer to Fig. 1 to Fig. 2.It should be noted that, the diagram providing in the present embodiment only illustrates basic conception of the present invention in a schematic way, satisfy and only show with assembly relevant in the present invention in graphic but not component count, shape and size drafting while implementing according to reality, during its actual enforcement, kenel, quantity and the ratio of each assembly can be a kind of random change, and its assembly layout kenel also may be more complicated.
As shown in Figure 1, the invention provides a kind of method of automatically carrying out network schemer test, it is mainly used in the communication module that adopts at least one pattern and the webserver to link, and described communication module is arranged in the equipment of energy logging in online server; Preferably, described communication module includes but not limited to: WiFi communication module etc.
By take, to include pattern based on DHCP linked network server, pattern based on the PPPOE protocol link webserver and the SOHO WIFI FIR303B product of the pattern based on static IP linked network server be example below, and method of automatically carrying out network schemer test of the present invention is described in detail in detail.
Wherein, method of the present invention mainly completes by test macro, and it comprises step S1 to S6.
In step S1, the network schemer of described test macro based on the described communication module of test initiation command is set to first mode, and based on described first mode, starts the landing program of logging in online server in described equipment.
Particularly, the test initiation command that described test macro sends by button etc. based on tester, enters the administration page of WiFi communication module by moving following script one:
Script one:
Subsequently, described test macro enters the network schemer configuration page by moving following script two again, and configuration network pattern is first mode, for example, and the pattern based on the DHCP protocol link webserver:
Script two:
Then, described test macro is by the following script three of operation, and the browser that starts SOHO WIFI FIR303B product logs in a certain webserver, and for example, address is:
www.baidu.comthe webserver:
Script three:
Then, in step S2, described test macro judges whether to log in successfully, if log in unsuccessfully, enters step S6; If log in, successfully enter step S3.
Wherein, whether described test macro receive from the webserver according to the browser of SOHO WIFI FIR303B product in the scheduled time, and for example address is:
www.baidu.comthe information of the webserver judge whether to log in successfully.
Then,, in step S3, described test macro starts landing program after the network schemer of described communication module is revised as to other patterns again, and judges whether to log in successfully.
Particularly, described test macro enters the network schemer configuration page again, and configuration network pattern is other patterns, for example, pattern based on the PPPOE protocol link webserver, the browser that again starts subsequently SOHO WIFI FIR303B product logs in address and is:
www.baidu.comthe webserver, if log in successfully, enter step S4, otherwise enter step S6.
Then, in step S4, described test macro enters the network schemer configuration page again, and configuration network pattern is the pattern based on static IP linked network server, and the browser that again starts subsequently SOHO WIFI FIR303B product logs in address and is:
www.baidu.comthe webserver, if log in successfully, enter step S5, otherwise enter step S6.
In step S5, the successful information of described test macro output test.
In step S6, the information of described test macro output test crash.
Preferably, also can export based on various patterns the information of corresponding test pattern test crash.For example, if under the pattern based on the DHCP protocol link webserver logging in online server failure, export the abnormal information of pattern based on the DHCP protocol link webserver; Again for example, if under the pattern based on the PPPOE protocol link webserver logging in online server failure, export the abnormal information of pattern based on the PPPOE protocol link webserver; Again for example, if under the pattern based on static IP linked network server logging in online server failure, information that the pattern based on static IP linked network server exported is abnormal etc.
It should be noted that, it should be appreciated by those skilled in the art that the above only just lists, but not limitation of the present invention, in fact, the webserver logging in based on each network schemer can be different, and the order of configuration network pattern is not limited with described; Moreover, for the communication module that only comprises a kind of network schemer, after step S2, enter step S6 or S5, for the communication module that comprises 2 kinds of network schemers, after step S3, enter step S6 or S5; If the communication module that comprises 3 kinds of above network schemers,, after step S4, also needs again to test remaining each network schemer, until travel through each network schemer.
As shown in Figure 2, the invention provides a kind of test macro that automatically carries out network schemer test, it is mainly used in the communication module that adopts at least one pattern and the webserver to link, and described communication module is arranged in the equipment of energy logging in online server; Preferably, described communication module includes but not limited to: WiFi communication module etc.
Below the SOHO WIFI FIR303B product that includes pattern, the pattern based on the PPPOE protocol link webserver and the pattern based on static IP linked network server based on DHCP linked network server of still take is example, and the test macro that automatically carries out network schemer test of the present invention is described in detail in detail.
Wherein, described test macro 1 at least comprises: module 11 and output module 12 are set; Preferably, the described module 11 that arranges also comprises: revise unit 111.
The described network schemer of module 11 based on the described communication module of test initiation command that arrange is set to first mode, and based on described first mode, starts the landing program of logging in online server in described equipment.
Particularly, described the test initiation command that module 11 is sent by button etc. based on tester is set, by Run Script one, enter the administration page of WiFi communication module, subsequently, by Run Script two, enter the network schemer configuration page again, and configuration network pattern is first mode, for example, the pattern based on the DHCP protocol link webserver; Then, then by the following script three of operation, the browser that starts SOHO WIFI FIR303B product logs in a certain webserver, and for example, address is: the webserver of www.baidu.com; Wherein, script one, script two and script three are described in detail in the embodiment shown in fig. 1, and are contained in this by reference, no longer repeat.
Then, described output module 12 judges whether to log in successfully, if log in unsuccessfully, exports corresponding information, for example, and the abnormal information of pattern based on the DHCP protocol link webserver; If log in successfully described output module 12, start described modification unit 111.
Wherein, whether described output module 12 receive from the webserver according to the browser of SOHO WIFI FIR303B product in the scheduled time, and for example address is:
www.baidu.comthe information of the webserver judge whether to log in successfully.
Described modification unit 111 starts landing program after the network schemer of described communication module is revised as to other patterns again, and described output module 12 judges whether to log in successfully again.
Particularly, described modification unit 111 enters the network schemer configuration page again, and configuration network pattern is other patterns, for example, pattern based on the PPPOE protocol link webserver, the browser that again starts subsequently SOHO WIFI FIR303B product logs in address and is:
www.baidu.comthe webserver, if log in unsuccessful, output module 12 output corresponding informations, for example, the abnormal information of pattern based on the PPPOE protocol link webserver; If log in successfully, described modification unit 111 enters the network schemer configuration page again, and configuration network pattern is the pattern based on static IP linked network server, and the browser that again starts subsequently SOHO WIFI FIR303B product logs in address and is:
www.baidu.comthe webserver, if log in successfully, the successful information of output module 12 output test, otherwise the pattern abnormal information of output based on static IP linked network server.
It should be noted that, it should be appreciated by those skilled in the art that the above only just lists, but not limitation of the present invention, in fact, the webserver logging in based on each network schemer can be different, and the order of configuration network pattern is not limited with described; Moreover, for the communication module that only comprises a kind of network schemer, finishing after test for the first time, for the communication module that comprises 2 kinds of network schemers, after test, finishing for the second time; If the communication module that comprises 3 kinds of above network schemers,, finishing after test for the third time, also needs again to test remaining each network schemer, until travel through each network schemer.
In sum, method and system form realization with automation by the test of network schemer of automatically carrying out network schemer test of the present invention, compares with existing best technique, and advantage of the present invention comprises:
1) test is simple: tester only need check test result, does not need to do loaded down with trivial details action;
2) reliability is high: in manual configuration, unavoidably occur some errors, but automatic test there will not be configuration error problem;
3) shorten the testing time: tester is without carry out any control operation in test;
4) testing complex degree reduces: unfamiliar tester also can carry out test operation smoothly.
So the present invention has effectively overcome various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all can, under spirit of the present invention and category, modify or change above-described embodiment.Therefore, such as in affiliated technical field, have and conventionally know that the knowledgeable, not departing from all equivalence modifications that complete under disclosed spirit and technological thought or changing, must be contained by claim of the present invention.
Claims (8)
1. a method of automatically carrying out network schemer test, be applied to the communication module that adopts at least one pattern and the webserver to link, described communication module is arranged in the equipment of energy logging in online server, and described method of automatically carrying out network schemer test is characterised in that, at least comprises:
Network schemer based on the described communication module of test initiation command is set to first mode, and based on described first mode, starts the landing program of logging in online server in described equipment;
Based on whether logging in, successfully export corresponding information.
2. method of automatically carrying out network schemer test according to claim 1, it is characterized in that: if described communication module comprises multiple network pattern, after logging in successfully, after being revised as to other patterns, the network schemer of described communication module again logs in test.
3. method of automatically carrying out network schemer test according to claim 1 and 2, is characterized in that: described communication module comprises WiFi communication module.
4. method of automatically carrying out network schemer test according to claim 3, is characterized in that: the network schemer of described WiFi communication module comprises pattern, the pattern based on the PPPOE protocol link webserver and the pattern based on static IP linked network server based on the DHCP protocol link webserver.
5. a test macro that automatically carries out network schemer test, be applied to the communication module that adopts at least one pattern and the webserver to link, described communication module is arranged in the equipment of energy logging in online server, the described test macro that automatically carries out network schemer test is characterised in that, at least comprises:
Module is set, for the network schemer based on the described communication module of test initiation command, is set to first mode, and based on described first mode, start the landing program of logging in online server in described equipment;
Output module, for successfully exporting corresponding information based on whether logging in.
6. the test macro that automatically carries out network schemer test according to claim 5, it is characterized in that: if described communication module comprises multiple network pattern, the described module that arranges also comprises: revise unit, for after logging in successfully, after being revised as to other patterns, the network schemer of described communication module again logs in test.
7. according to automatically carrying out the test macro of network schemer test described in claim 5 or 6, it is characterized in that: described communication module comprises WiFi communication module.
8. the test macro that automatically carries out network schemer test according to claim 7, is characterized in that: the network schemer of described WiFi communication module comprises pattern, the pattern based on the PPPOE protocol link webserver and the pattern based on static IP linked network server based on the DHCP protocol link webserver.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410333537.XA CN104065541A (en) | 2014-07-14 | 2014-07-14 | Method and system for automatically performing network mode testing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410333537.XA CN104065541A (en) | 2014-07-14 | 2014-07-14 | Method and system for automatically performing network mode testing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104065541A true CN104065541A (en) | 2014-09-24 |
Family
ID=51553082
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410333537.XA Pending CN104065541A (en) | 2014-07-14 | 2014-07-14 | Method and system for automatically performing network mode testing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104065541A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104320309A (en) * | 2014-11-17 | 2015-01-28 | 上海斐讯数据通信技术有限公司 | Automatic testing system and method for automatic redial function |
CN106506269A (en) * | 2016-11-03 | 2017-03-15 | 北京蓝海讯通科技股份有限公司 | Execute method, system, computing device and the test system of test assignment |
CN108770012A (en) * | 2018-05-29 | 2018-11-06 | 四川斐讯信息技术有限公司 | A kind of automated wireless attenuation test system and method allowing hand over test environment |
CN110784879A (en) * | 2019-10-31 | 2020-02-11 | 上海移远通信技术股份有限公司 | Network mode switching test method, system, equipment and medium of communication module |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1668007A (en) * | 2004-03-10 | 2005-09-14 | 技嘉科技股份有限公司 | System and method for automatic detection of network online mode |
US20070130286A1 (en) * | 2004-12-07 | 2007-06-07 | Pure Networks, Inc. | Network device management |
CN101242311A (en) * | 2007-02-05 | 2008-08-13 | 智邦科技股份有限公司 | Method and system for automatic network connection mode detection |
CN103744784A (en) * | 2014-01-06 | 2014-04-23 | 中国移动(深圳)有限公司 | Method and system for automatically testing mobile phone applications |
-
2014
- 2014-07-14 CN CN201410333537.XA patent/CN104065541A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1668007A (en) * | 2004-03-10 | 2005-09-14 | 技嘉科技股份有限公司 | System and method for automatic detection of network online mode |
US20070130286A1 (en) * | 2004-12-07 | 2007-06-07 | Pure Networks, Inc. | Network device management |
CN101242311A (en) * | 2007-02-05 | 2008-08-13 | 智邦科技股份有限公司 | Method and system for automatic network connection mode detection |
CN103744784A (en) * | 2014-01-06 | 2014-04-23 | 中国移动(深圳)有限公司 | Method and system for automatically testing mobile phone applications |
Non-Patent Citations (2)
Title |
---|
《中国优秀硕士学位论文全文数据库》 * |
何海波: "IPv6 Router的设计与实现", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104320309A (en) * | 2014-11-17 | 2015-01-28 | 上海斐讯数据通信技术有限公司 | Automatic testing system and method for automatic redial function |
CN106506269A (en) * | 2016-11-03 | 2017-03-15 | 北京蓝海讯通科技股份有限公司 | Execute method, system, computing device and the test system of test assignment |
CN106506269B (en) * | 2016-11-03 | 2019-06-04 | 北京蓝海讯通科技股份有限公司 | It executes the method for test assignment, system, calculate equipment and test macro |
CN108770012A (en) * | 2018-05-29 | 2018-11-06 | 四川斐讯信息技术有限公司 | A kind of automated wireless attenuation test system and method allowing hand over test environment |
CN110784879A (en) * | 2019-10-31 | 2020-02-11 | 上海移远通信技术股份有限公司 | Network mode switching test method, system, equipment and medium of communication module |
CN110784879B (en) * | 2019-10-31 | 2023-05-26 | 上海移远通信技术股份有限公司 | Network mode switching test method, system, equipment and medium of communication module |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104065541A (en) | Method and system for automatically performing network mode testing | |
CN106708719A (en) | Business function testing method and apparatus | |
CN104901848A (en) | Automated testing system and method for startup and shutdown of router | |
CN104518924A (en) | Automatic testing and result comparison method and system | |
CN103019936A (en) | Numerical control software testing system | |
CN102479132A (en) | Test system and test method for multiple chips | |
CN104796240A (en) | Fuzz testing system for stateful network protocol | |
CN105512343A (en) | Method and device for simulating network anomaly and testing automatic switching of database faults | |
CN110781089B (en) | Method and device for automatically testing UI of equipment, electronic equipment and medium | |
CN110990269A (en) | Interface testing method, device and system | |
CN103631706B (en) | A kind of browser testing method and apparatus | |
CN106649090A (en) | Automated test system and method | |
CN106546834B (en) | A kind of environmental stress screening test method and device | |
CN112100085B (en) | Android application program stability testing method, device and equipment | |
CN104123397A (en) | Automatic test device and method for Web page | |
CN111193638A (en) | Linux platform based network card automatic testing method and device | |
CN116300681B (en) | Automatic wiring monitoring method and system for PLC | |
CN115934559A (en) | Testing method of intelligent form testing system | |
CN109783368A (en) | Trapezoidal pattern programming software testing system and method | |
CN106021056A (en) | Automatic testing system and method for Arinc429 communication chip | |
CN107870840B (en) | IPMI-based server multi-test instruction automatic execution method | |
CN112859660B (en) | Equipment synchronization control method, device, terminal and system | |
CN102419726A (en) | Method and system for testing dispersed configuration of programs | |
CN111552263B (en) | Method, computer-readable storage medium and system for inspecting industrial facilities | |
CN111737065B (en) | Interface test method and system of demand model based on server interface test |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140924 |