CN103840987B - Home gateway testing method - Google Patents
Home gateway testing method Download PDFInfo
- Publication number
- CN103840987B CN103840987B CN201410092982.1A CN201410092982A CN103840987B CN 103840987 B CN103840987 B CN 103840987B CN 201410092982 A CN201410092982 A CN 201410092982A CN 103840987 B CN103840987 B CN 103840987B
- Authority
- CN
- China
- Prior art keywords
- home gateway
- test
- file
- normal mode
- production
- 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.)
- Active
Links
Landscapes
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a home gateway testing method. A production mode identification document, a delivery configuration document and a testing configuration document are preset in a home gateway. An independent progress facmode is set on the home gateway. When the home gateway starts, the independent progress facmode starts simultaneously. A normal mode or a production testing mode is operated according to whether a normal mode identification document exists on the home gateway. If the production testing mode is operated, the testing configuration document is loaded for a function test. After the test succeeds, a corresponding normal mode identification document is generated. If the normal mode is operated, the delivery configuration document is loaded. According to the method, whether the normal mode identification document exists on the home gateway is detected, and the production testing mode or the normal mode is operated, so that testing stations can be arranged at will at testing time, restart times are reduced, and the flexibility and the efficiency in production tests of the home gateway are improved.
Description
Technical field
The present invention relates to the production test of home gateway is and in particular to the method for testing of home gateway.
Background technology
In order to ensure the outgoing of home gateway, need in process of production its property indices is surveyed comprehensively
Examination.Although its product quality can tentatively be ensured by corresponding test method for hardware before dispatching from the factory, due to home gateway
Always it is made up of different hardware modules, just can complete the correlation function of home gateway by cooperation each other.Therefore, very
It is cannot to complete it is necessary to could find whether it meets matter by upper software test that many test indexs rely solely on hardware testing
Amount requires.
At present, it is all by home gateway and test main frame phase to the test mode of software on home gateway by using netting twine
Even, the test program in test main frame is led to tested home gateway by file transfer protocol (FTP) and Telnet
Letter, the configuration of the test instruction modification home gateway providing according to Design of Home Gateway person, and the return according to home gateway
Information and by external meters, judges to test whether accordingly to pass through.Concrete testing process is as shown in Figure 1:
(1), after home gateway starts, relevant parameter is arranged by command line mode;
(2) each function of home gateway is tested, after the completion of a functional test, restart home gateway, so that
This function comes into force;
(3), after the completion of repertoire test, loading is dispatched from the factory pre-configured;
(4) simulation web operation, file opening transmission service and remote login service;
(5) by command line mode inquire about home gateway configuration, if configuration qualified, reload dispatch from the factory prewired
Put, prepare shipment;Otherwise, go to the 1st step to retest.
There are following some problems in above-mentioned method of testing:
(1) because there are the configuration needs for its area network environment various places operation commercial city, and this configuration and software version
Often all bundle, when testing to home gateway it cannot be guaranteed that this configures the home network with test program requirement
Close configuration identical, therefore, test program on main frame in order to easily obtain test configurations it is necessary in file transfer protocol (FTP) and
The configuration of every equipment is changed under the premise of Telnet is available;
(2) testing efficiency affecting production line because needs restart the function of coming into force in order to avoid home gateway, production line
Necessary strict arrangement test station during test, restarts, with the normal operation and minimizing ensureing test program, the impact bringing.
As can be seen here, the method for testing motility of existing home gateway is poor, less efficient.
Content of the invention
The technical problem to be solved is test poor, the less efficient problem of motility of home gateway.
In order to solve above-mentioned technical problem, the technical solution adopted in the present invention is to provide a kind of test side of home gateway
Method, comprises the following steps:
Step a10, in home gateway preset production model mark file, dispatch from the factory configuration file and test configurations literary composition
Part;
Step a20, independent process facmode is arranged on home gateway, when home gateway starts, start solely simultaneously
Vertical process facmode;
Step a30, according on home gateway whether there is normal mode identify file, normal operation pattern or produce survey
Die trial formula;If running production test pattern, go to step a40;If normal operation pattern, go to step a60;
Step a40, home gateway load test profile, each function of test home gateway, and repertoire is surveyed
Try successfully, then go to step a50;Otherwise, exit production test pattern, display test is not passed through;
Step a50, exit production test pattern, and generate normal mode mark file;
Step a60, restart home gateway and load the configuration file that dispatches from the factory.
In the above-mentioned methods, in step a40, the file transfer services of home gateway and remote login service are unconditional
Open.
In the above-mentioned methods, step a50 comprises the following steps:
Manually boot facmode process, facmode process judges whether to immediately exit from producing according to the parameter of user input
Test pattern, if it is, generating normal mode mark file, gives file transfer services process and Telnet process immediately
Send message and close respective service, go to step a60;Otherwise, generate normal mode mark file, go to step a60.
In the above-mentioned methods, in step a60, before restarting home gateway, judge whether SR is pressed, if
It is then to delete the normal mode mark file on home gateway, go to step a40;Otherwise, restart home gateway and load to dispatch from the factory and join
Put file.
In the above-mentioned methods, in step a40, when completing a test function and needing to restart home gateway, to test journey
Sequence returns one and restarts message, is not really to restart home gateway.
The present invention, by detect home gateway on the presence or absence of normal mode identify file, judge normal operation pattern or
Person's production test pattern, makes home gateway can not be affected by pre-configured in test phase, and automatically loading test program needs
Gateway configuration, the file transfer protocol (FTP) of unconfined use home gateway and Telnet, need in home gateway
Only exporting corresponding return information when restarting can be without really restarting so that can arbitrarily arrange testing station when testing
Point, reduces and restarts number of times, thus improving the motility in home gateway production test and production efficiency.
Brief description
Fig. 1 is the method for testing flow chart of existing home gateway;
The method of testing flow chart of the home gateway that Fig. 2 provides for the present invention.
Specific embodiment
The method of testing of the home gateway that the present invention provides, can not affected by pre-configured in test phase, automatically add
Carry gateway configuration, the file transfer protocol (FTP) of unconfined use home gateway and the Telnet that test program needs,
Only exporting corresponding return information when home gateway needs to restart can be without really restarting so that can appoint when testing
Meaning arranges test station, reduces and restarts number of times, thus improving the motility in home gateway production test and production efficiency.Below
In conjunction with accompanying drawing, the present invention is described in detail.
As shown in Fig. 2 the method for testing of the home gateway of present invention offer, comprise the following steps:
Step a10: preset production model identifies file in home gateway, dispatch from the factory configuration file and test configurations literary composition
Part, above-mentioned file is saved in the specified location of home gateway file system.Wherein, the configuration file that dispatches from the factory is various places Carrier Requirements
Configuration when networking for the gateway, test profile is the configuration that needs during home gateway test.
Step a20: independent process facmode is set in home gateway, during home gateway electrifying startup, opens simultaneously
Dynamic independent process facmode.Independent process facmode is the same with the other programs on home gateway, is one executable two
Binary program, exits after startup stage operation, if necessary to run again, it is possible to use the remote login service of home gateway
Manually performed by order line after login.
During step a30, facmode process initiation, check and identify file with the presence or absence of normal mode on home gateway, if
Do not exist, then go to step a40 and run production test pattern;Otherwise go to step a60.I.e. when exist production model mark file and not
When there is normal mode mark file, home gateway can run production test pattern (step a40) when starting;When normal mode mark
Know file and there is normal operation pattern (step a60).
Step a40, loading test profile, home gateway carries out functional test, if repertoire is successfully tested,
Go to step a50;Otherwise show that test is not passed through.Run and produce under survey pattern, the unconditional file transmission clothes opening home gateway
Business and remote login service.When completing a test function and needing to restart home gateway, return one to test program and restart
Message, is not really to restart home gateway.
Step a50, manually booting facmode process can be according to user to exit production test pattern, facmode process
The parameter of input judges user the need of immediately exiting from production test pattern.If immediately exiting from production test pattern, will be
Under the specified path of home gateway flash generate a Permanent File Name normal mode mark file, simultaneously using process between
The message mechanism of communication, for example, can be entered to file transfer services process and Telnet using message queue or shared drive
Journey sends message, notifies it to close file transfer services and remote login service (step a51);Otherwise, home gateway flash
Only generate the normal mode mark file of a Permanent File Name under specified path, restart backed off after random production test in next time
Pattern, simultaneously closes off file transfer services and remote login service (step a52).
Step a60, restart home gateway, load the provisioning file that dispatches from the factory, the test profile before covering, with full
Sufficient shipment requires.
Before restarting home gateway, check whether SR is pressed, if SR is pressed then it represents that
The equipment dispatching from the factory needs to reenter production test pattern after the transformation of the way, and facmode process-kill step a51 or a52 generate
Normal mode mark file, then restart home gateway, load the configuration file that dispatches from the factory;If button is not pressed, directly
Connect and restart home gateway, load the configuration file that dispatches from the factory.
In the present invention, after home gateway starts, can detect first and under the assigned catalogue of home gateway flash, there is production
Pattern identification file and do not exist normal mode mark file, now home gateway acquiescence enter production test pattern, load life
Produce test configurations.It is no longer necessary to when carrying out functional test change the configuration of home gateway, simultaneously when test needs to restart, family
Front yard gateway simply returns one to test program and restarts message, represents that this function meets, rather than real restarting equipment.Work as test
By rear, manually perform facmode process and exit production test pattern, load the configuration file that dispatches from the factory, will to meet shipment configuration
Ask.
Compared with existing home gateway testing process shown in Fig. 1, the method that the present invention provides eliminates the modification in Fig. 1
Gateway configuration step, thus not limited by file transfer services and remote login service, can arbitrarily arrange test station
Sequentially, which enhance the motility of test;Meanwhile, when present invention test needs the function items restarted, home gateway detects
Simply return type information to test program after instruction of restarting, represent that instruction of restarting receives, without really restarting, so very big
Improve production test efficiency and production capacity.
The present invention is not limited to above-mentioned preferred forms, and anyone should learn the knot made under the enlightenment of the present invention
Structure changes, and every have same or like technical scheme with the present invention, each falls within protection scope of the present invention.
Claims (5)
1. the method for testing of home gateway is it is characterised in that comprise the following steps:
Step a10, in home gateway preset production model mark file, dispatch from the factory configuration file and test profile;
Step a20, on home gateway arrange independent process facmode, home gateway start when, simultaneously start independently enter
Journey facmode;
Step a30, identify file, normal operation pattern or production test mould according to normal mode be whether there is on home gateway
Formula;If running production test pattern, go to step a40;If normal operation pattern, go to step a60;
Step a40, home gateway load test profile, each function of test home gateway, and repertoire is tested into
Work(, then go to step a50;Otherwise, exit production test pattern, display test is not passed through;
Step a50, exit production test pattern, and generate normal mode mark file;
Step a60, restart home gateway and load the configuration file that dispatches from the factory.
2. the method for claim 1 is it is characterised in that in step a40, the file transfer services of home gateway and
Remote login service is unconditionally opened.
3. the method for claim 1 is it is characterised in that step a50 comprises the following steps:
Manually boot facmode process, facmode process judges whether to immediately exit from production test according to the parameter of user input
Pattern, if it is, generating normal mode mark file, sends to immediately file transfer services process and Telnet process
Message closes respective service, goes to step a60;Otherwise, generate normal mode mark file, go to step a60.
4. the method for claim 1 is it is characterised in that in step a60, judge SR before restarting home gateway
Whether being pressed, if it is, deleting the normal mode mark file on home gateway, going to step a40;Otherwise, restart family
Gateway simultaneously loads the configuration file that dispatches from the factory.
5. the method for claim 1 is it is characterised in that in step a40, completing a test function needs to restart house
During the gateway of front yard, return one to test program and restart message, be not really to restart home gateway.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410092982.1A CN103840987B (en) | 2014-03-14 | 2014-03-14 | Home gateway testing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410092982.1A CN103840987B (en) | 2014-03-14 | 2014-03-14 | Home gateway testing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103840987A CN103840987A (en) | 2014-06-04 |
CN103840987B true CN103840987B (en) | 2017-01-25 |
Family
ID=50804148
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410092982.1A Active CN103840987B (en) | 2014-03-14 | 2014-03-14 | Home gateway testing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103840987B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105979509A (en) * | 2016-04-19 | 2016-09-28 | 美的集团股份有限公司 | Intelligent equipment detection method, intelligent equipment detection device, WIFI module and automatic connection method thereof |
CN106126113B (en) * | 2016-06-14 | 2019-04-16 | 烽火通信科技股份有限公司 | A kind of method of home gateway service data classification storage management |
CN109819353B (en) * | 2019-01-30 | 2021-10-29 | 网经科技(苏州)有限公司 | Method for gateway self-adaptive access passive optical network |
CN110445687A (en) * | 2019-08-12 | 2019-11-12 | 太仓市同维电子有限公司 | A kind of HGU product startup function test method and device |
CN110784359B (en) * | 2019-10-31 | 2022-06-21 | 四川天邑康和通信股份有限公司 | One-key diagnosis method for voice state of home gateway |
CN112187580B (en) * | 2020-09-29 | 2022-08-12 | 苏州迈科网络安全技术股份有限公司 | Automatic testing framework and testing method for gateway plug-in |
CN113485727A (en) * | 2021-08-23 | 2021-10-08 | 一飞(海南)科技有限公司 | Design method, system, terminal and unmanned aerial vehicle supported by formation aircraft firmware |
CN113612665B (en) * | 2021-08-27 | 2022-08-02 | 中国电信股份有限公司 | Gateway detection method and device, electronic equipment and computer readable medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102222009A (en) * | 2011-06-02 | 2011-10-19 | 深圳市共进电子有限公司 | Method for producing assortment versions of home gateway system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8528037B2 (en) * | 2009-08-28 | 2013-09-03 | CSC Holdings, LLC | Dynamic application loader for set top box |
-
2014
- 2014-03-14 CN CN201410092982.1A patent/CN103840987B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102222009A (en) * | 2011-06-02 | 2011-10-19 | 深圳市共进电子有限公司 | Method for producing assortment versions of home gateway system |
Also Published As
Publication number | Publication date |
---|---|
CN103840987A (en) | 2014-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103840987B (en) | Home gateway testing method | |
CN104978263B (en) | A kind of mobile terminal applied program testing method and system | |
CN106484622B (en) | Test method, apparatus and system | |
CN106095677B (en) | The RESTful Webservice automatic interface testing methods realized based on Robot Framework | |
CN109683899B (en) | Software integration method and device | |
CN103744784B (en) | Mobile phone application automated testing method and system | |
CN104794057B (en) | A kind of crossing event automated testing method and device | |
CN107463362A (en) | The method and system of lasting deployment based on multiple Jenkins | |
CN102420891B (en) | Mobile terminal and test method, equipment and system thereof | |
CN110380939A (en) | The conformance test method and system of local communication protocol in a kind of power information acquisition system | |
CN103634592A (en) | Automatic test method and system for intelligent televisions | |
CN106528424A (en) | Test method and test platform based on background system service or interface | |
CN110162481A (en) | A kind of method for testing software, device, equipment and storage medium | |
CN105117346A (en) | Automatic testing method and system for distributed system of virtualization platform | |
CN106897216A (en) | The method and apparatus of test software | |
CN109032925A (en) | A kind of mobile unit drive software automated testing method | |
CN107561379A (en) | The method of testing and system of a kind of electronic product | |
US11876672B2 (en) | Change deployment system | |
CN104008055B (en) | The method of software test, equipment and system | |
CN108270837A (en) | A kind of distributed task dispatching method and system using slack resources | |
CN110493812A (en) | Processing method, device, system, processor and the main control device of distribution test | |
CN110196800A (en) | Distributed transaction test method, apparatus and system | |
CN110048904A (en) | A kind of test macro and method for user-plane function network element in 5G core net | |
CN113055408B (en) | Network security test integrated device | |
CN106371962B (en) | A kind of cross-platform driving test method, apparatus and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |