CN112925542A - Test method for supporting silent upgrade of wireless router - Google Patents

Test method for supporting silent upgrade of wireless router Download PDF

Info

Publication number
CN112925542A
CN112925542A CN202110203517.0A CN202110203517A CN112925542A CN 112925542 A CN112925542 A CN 112925542A CN 202110203517 A CN202110203517 A CN 202110203517A CN 112925542 A CN112925542 A CN 112925542A
Authority
CN
China
Prior art keywords
file
upgrade
test
wireless router
testing
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.)
Granted
Application number
CN202110203517.0A
Other languages
Chinese (zh)
Other versions
CN112925542B (en
Inventor
王文斌
曹树鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Ruiyi Electronic Technology Co ltd
Original Assignee
Shenzhen Tenda Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Tenda Technology Co Ltd filed Critical Shenzhen Tenda Technology Co Ltd
Priority to CN202110203517.0A priority Critical patent/CN112925542B/en
Publication of CN112925542A publication Critical patent/CN112925542A/en
Application granted granted Critical
Publication of CN112925542B publication Critical patent/CN112925542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Abstract

The invention relates to a test method for a wireless router to support silent upgrade. Which comprises the following steps: s1, dividing an independent silent upgrade partition in a memory, and storing an independent file or a functional module; s2, carrying out silent upgrade operation on the individual files or the functional modules; s3, combing application scenes of silent upgrade, dynamically loading individual files or functional modules and performing acceptance test; s4, analyzing a basic test point according to logic realization and function association in wireless router software; s5, adding test cases by combining the application scene and the basic test points to obtain a complete case set; and S6, executing by adopting an automatic test tool to complete the automatic test. The method for testing the wireless router product supporting the silent upgrade function provides method guidance for actual work, is simple and feasible, and can be repeatedly used for case design and test of the silent upgrade function of other network products.

Description

Test method for supporting silent upgrade of wireless router
Technical Field
The invention relates to the field of router upgrade and update, in particular to a test method for supporting silent upgrade of a wireless router.
Background
If some independent files or functional modules of the current router equipment need to be updated, the whole system needs to be upgraded, the whole system is troublesome and inefficient to maintain, the module functions do not support the personalized customization of customers, and the product software is not flexible.
The silent upgrade function can only upgrade a single file or a function module and then dynamically load, the whole system is not required to be upgraded, the files needing to be maintained regularly in the system can be quickly replaced, the function of the module is optimized, and the user experience is improved.
Disclosure of Invention
The invention provides a test method for a wireless router to support silent upgrade, which aims to solve the problem that the current router equipment needs to be upgraded in the whole system.
The invention provides a test method for a wireless router to support silent upgrade, which comprises the following steps:
s1, dividing an independent silent upgrade partition in a memory, and storing an independent file or a functional module;
s2, carrying out silent upgrade operation on the individual files or the functional modules;
s3, combing application scenes of silent upgrade, dynamically loading individual files or functional modules and performing acceptance test;
s4, analyzing a basic test point according to logic realization and function association in wireless router software;
s5, adding test cases by combining the application scene and the basic test points to obtain a complete case set;
and S6, executing by adopting an automatic test tool to complete the automatic test.
As a further improvement of the present invention, the operation process of the silent upgrade in step S2 includes:
reading: reading the file content, and checking whether the file is damaged or not before reading;
writing: writing a file into the partition, and if the file originally has the file name, overwriting the original file;
and (3) deleting: deleting the file, and deleting the file from the partition;
formatting: erasing the whole partition, and emptying the content of the whole partition;
checking: and checking the file by using a CRC algorithm, and checking the integrity of the file.
As a further improvement of the present invention, in step S3, the logic of the 4 application scenarios is developed by an upper layer, and modes including cloud-down automatic update, background direct update, and user-selected update are supported.
As a further improvement of the present invention, in the step S5, the use case set includes a use case for verifying the basic function of the silent upgrade, verifying the integrated function of the system upgrade with other modes, verifying the reliability of repeatedly operating the silent upgrade partition, loading a file from the silent upgrade partition, and verifying the stability of the system during long-time operation.
As a further improvement of the present invention, in step S6, the automated testing tool is developed by compiling and completing the testing steps according to the interface and command designed by the wireless router software.
As a further improvement of the present invention, the automated testing process in step S6 includes:
a1. entering a specified directory to load an individual file or a functional module;
a2. downloading and storing the correct file, testing by adopting the correct file, and accumulating the testing error times of the correct file;
a3. downloading and storing an error file, testing by adopting the error file, and accumulating the testing error times of the error file;
a4. and after the test of the correct file and the wrong file is finished, accumulating the complete test times, judging whether the test is interrupted, if so, directly printing the counted complete test times, and otherwise, repeatedly executing the step a2.
As a further improvement of the present invention, the specific process of step a2 includes:
a21. downloading a correct file, and executing and saving the file;
a22. acquiring a CRC value of correct file content, verifying the CRC value calculated by the current file content of the wireless router before storing the file, and executing the step a23 if the verification is successful; if the verification fails, accumulating the error times of the once verified correct file, and then executing the step a 23;
a23. the CRC check value calculated by the acquired file content is compared with the CRC value of the saved file, if the comparison is consistent, the step a24 is executed; if the comparison is inconsistent, accumulating the error times of acquiring the correct file once, and then executing the step a 24;
a24. deleting the files in the silent upgrade partition in the wireless router, if the deletion is successful, executing the step a3, if the deletion is unsuccessful, accumulating the error times of deleting the correct files once, and then executing the step a3.
As a further improvement of the present invention, the specific process of step a3 includes:
a31. downloading an error file, and executing and saving the file;
a32. acquiring a CRC value of the content of the error file, verifying the CRC value calculated by the content of the current file of the wireless router before storing the file, and executing the step a33 if the verification is successful; if the verification fails, accumulating the error times of the file with the error once verified, and then executing the step a 33;
a33. unloading and erasing the silent upgrade partition, and judging whether the silent upgrade partition is mounted again, if so, executing step a 4; if not, the number of erasure partition errors is accumulated, and step a4 is executed again.
The invention has the beneficial effects that: the method for testing the wireless router product supporting the silent upgrade function provides method guidance for actual work, is simple and feasible, and can be repeatedly used for case design and test of the silent upgrade function of other network products.
Drawings
FIG. 1 is a flow chart of an automated testing process in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments.
The invention provides a test method for supporting silent upgrade of a wireless router, wherein the silent upgrade function can only upgrade individual files and functional modules and then dynamically load, so that the test method comprises the following steps:
s1, dividing a separate silent upgrade partition in a flash memory, wherein the size of the partition is 2M and the partition is used for storing related independent files or function modules.
S2, carrying out silent upgrade operation on the individual files or the functional modules; the operation of upgrading the silence comprises the following steps:
reading: the file content can be read, and verification is carried out before reading to check whether the file is damaged or not;
writing: writing a file into the partition, and if the file originally has the file name, overwriting the original file;
and (3) deleting: deleting the file, and deleting the file from the partition;
formatting: erasing the whole partition, and emptying the content of the whole partition;
checking: and checking the file by using a CRC algorithm, and checking the integrity of the file.
S3, combing several scenes of silent upgrading used by a user, for example, scenes that the user selects a file locally and loads the file into a router, and a cloud automatically sends the file and loads the file into the router, and performing acceptance test by file loading, wherein logic implementation of an application scene is developed by an upper layer, and cloud sending automatic updating, background direct updating, user selection updating and the like are supported.
And S4, analyzing the basic test points according to logic implementation and function association in the wireless router software.
And S5, combining the scene and the basic test points, increasing reliability and stability test cases to obtain a complete case set, wherein the case set comprises the verification of the basic function of the silent upgrade, the verification of the integrated function of the system upgrade in other modes, the verification of the reliability of the repeatedly operated silent upgrade partition, the loading of files from the silent upgrade partition, and the verification of the stability of the system in long-time operation.
And S6, compiling the testing steps according to the related interfaces and commands of the software design, developing related automatic testing tools, and executing and completing the automatic testing by adopting the automatic testing tools.
The software operation process of the test method comprises the following steps:
b1. opening a tftp server, and placing scripts to be used on a computer desktop;
b2. a serial port inputs a command to enter a/var directory, the directory is readable and writable, and other directories are read-only; downloading a test.sh script to a DUT, adding an executable right to the test.sh script file, and executing the test.sh script;
ctrl + c stop script to get the test result.
As shown in fig. 1, the automated testing process includes:
a1. and entering a specified directory to load a separate file or a functional module.
a2. Downloading and storing the correct file, testing by adopting the correct file, and accumulating the testing error times of the correct file; the method specifically comprises the following steps:
a21. downloading a correct file, and executing and saving the file;
a22. before saving the file, performing file check, wherein the header of the file has a CRC value of the file content, before saving the file, acquiring the value of the correct file and checking the value with the CRC calculated by the current file content, and if the check is successful, executing the step a 23; if the verification fails, accumulating the error times of the once verified correct file, and then executing the step a 23;
a23. acquiring file contents for comparison, wherein the stored files have independent CRC (cyclic redundancy check) values, the acquired file contents are calculated to calculate the CRC value and compare the CRC value with the CRC value, and if the comparison is correct, the step a24 is executed; if the comparison fails, accumulating the error times of obtaining the correct file once, and then executing the step a 24;
a24. deleting the files, deleting the files in the silent upgrade partition in the wireless router, executing the step a3 if the deletion is successful, and accumulating the error times of deleting the correct files once if the deletion is failed, and then executing the step a3.
And (4) performing +1 accumulation on error times in the checking, obtaining and deleting processes of the correct file, and counting the processes after the correct file is downloaded to ensure the success rate of verification operation and the reliability of the system.
a3. Downloading and storing an error file, testing by adopting the error file, and accumulating the testing error times of the error file; the method specifically comprises the following steps:
a31. downloading an error file, and executing and saving the file;
a32. carrying out file check before saving the file, wherein the head of the file has a CRC value of the file content, acquiring the value of an error file before saving the file and checking the value with the CRC calculated by the current file content, and if the check is successful, executing a step a 33; if the verification fails, accumulating the error times of the file with the error once verified, and then executing the step a 33;
a33. unloading and erasing the silent upgrade partition, and judging whether the silent upgrade partition is mounted again, if so, executing step a 4; if not, the number of erasure partition errors is accumulated, and step a4 is executed again.
And (4) performing +1 accumulation on error times generated in the error file verification and partition erasure error processes, and counting the processes after the error files are downloaded to ensure the success rate of verification operation and the fault tolerance and reliability of the system.
a4. And after the test of the correct file and the wrong file is finished, accumulating the complete test times, judging whether the test is interrupted, if so, directly printing the counted complete test times, and otherwise, repeatedly executing the step a2.
In the automatic test process, after the correct files are checked and stored, the wrong files are checked and stored, and the correctness of a program, the fault tolerance of a system and the reliability are verified by covering different types of files.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (8)

1. A test method for supporting silent upgrade of a wireless router is characterized by comprising the following steps:
s1, dividing an independent silent upgrade partition in a memory, and storing an independent file or a functional module;
s2, carrying out silent upgrade operation on the individual files or the functional modules;
s3, combing application scenes of silent upgrade, dynamically loading individual files or functional modules and performing acceptance test;
s4, analyzing a basic test point according to logic realization and function association in wireless router software;
s5, adding test cases by combining the application scene and the basic test points to obtain a complete case set;
and S6, executing by adopting an automatic test tool to complete the automatic test.
2. The method for testing the wireless router supporting the upgrade of silence according to claim 1, wherein the operation procedure of the upgrade of silence in step S2 includes:
reading: reading the file content, and checking whether the file is damaged or not before reading;
writing: writing a file into the partition, and if the file originally has the file name, overwriting the original file;
and (3) deleting: deleting the file, and deleting the file from the partition;
formatting: erasing the whole partition, and emptying the content of the whole partition;
checking: and checking the file by using a CRC algorithm, and checking the integrity of the file.
3. The method for testing the wireless router supporting the upgrade of silence according to claim 1, wherein in step S3, the logic of the 4-application scenario is developed by an upper layer, and the support includes automatic update under cloud delivery, direct update in background, and update mode selected by a user.
4. The method for testing that the wireless router supports the upgrade of silence according to claim 1, wherein in step S5, the set of use cases includes a verification of a basic function of the upgrade of silence, a verification of an integrated function of the upgrade of other systems, a verification of reliability of repeatedly operating the upgrade of silence partition, loading a file from the upgrade of silence partition, and a verification of stability of long-time running of the system.
5. The method for testing the wireless router supporting the upgrade of silence according to claim 1, wherein in the step S6, the automated testing tool is developed by writing and commanding the testing steps according to the interface and command designed by the software of the wireless router.
6. The method for testing the wireless router supporting the upgrade of silence according to claim 1, wherein the automated testing procedure in step S6 includes:
a1. entering a specified directory to load an individual file or a functional module;
a2. downloading and storing the correct file, testing by adopting the correct file, and accumulating the testing error times of the correct file;
a3. downloading and storing an error file, testing by adopting the error file, and accumulating the testing error times of the error file;
a4. and after the test of the correct file and the wrong file is finished, accumulating the complete test times, judging whether the test is interrupted, if so, directly printing the counted complete test times, and otherwise, repeatedly executing the step a2.
7. The method for testing the wireless router supporting the upgrade of silence according to claim 6, wherein the specific process of step a2 includes:
a21. downloading a correct file, and executing and saving the file;
a22. acquiring a CRC value of correct file content, verifying the CRC value calculated by the current file content of the wireless router before storing the file, and executing the step a23 if the verification is successful; if the verification fails, accumulating the error times of the once verified correct file, and then executing the step a 23;
a23. the CRC check value calculated by the acquired file content is compared with the CRC value of the saved file, if the comparison is consistent, the step a24 is executed; if the comparison is inconsistent, accumulating the error times of acquiring the correct file once, and then executing the step a 24;
a24. deleting the files in the silent upgrade partition in the wireless router, if the deletion is successful, executing the step a3, if the deletion is unsuccessful, accumulating the error times of deleting the correct files once, and then executing the step a3.
8. The method for testing the wireless router supporting the upgrade of silence according to claim 6, wherein the specific process of step a3 includes:
a31. downloading an error file, and executing and saving the file;
a32. acquiring a CRC value of the content of the error file, verifying the CRC value calculated by the content of the current file of the wireless router before storing the file, and executing the step a33 if the verification is successful; if the verification fails, accumulating the error times of the file with the error once verified, and then executing the step a 33;
a33. unloading and erasing the silent upgrade partition, and judging whether the silent upgrade partition is mounted again, if so, executing step a 4; if not, the number of erasure partition errors is accumulated, and step a4 is executed again.
CN202110203517.0A 2021-02-24 2021-02-24 Test method for supporting silent upgrading of wireless router Active CN112925542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110203517.0A CN112925542B (en) 2021-02-24 2021-02-24 Test method for supporting silent upgrading of wireless router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110203517.0A CN112925542B (en) 2021-02-24 2021-02-24 Test method for supporting silent upgrading of wireless router

Publications (2)

Publication Number Publication Date
CN112925542A true CN112925542A (en) 2021-06-08
CN112925542B CN112925542B (en) 2024-04-30

Family

ID=76170501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110203517.0A Active CN112925542B (en) 2021-02-24 2021-02-24 Test method for supporting silent upgrading of wireless router

Country Status (1)

Country Link
CN (1) CN112925542B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100281143A1 (en) * 2009-04-29 2010-11-04 Jim Krahn Maintaining mobile device operations
CN102075781A (en) * 2009-11-20 2011-05-25 上海倍亚得信息技术有限公司 System and method for testing user perception effect of video telephony and streaming media
CN102118260A (en) * 2009-12-30 2011-07-06 中兴通讯股份有限公司 Method for automatically managing net element version and network system
CN102346709A (en) * 2010-07-30 2012-02-08 国际商业机器公司 Software development assisting method and system
CN106874040A (en) * 2017-01-17 2017-06-20 武汉天喻教育科技有限公司 Realize that PC ends software is mourned in silence the system and method for upgrading based on Windows services
US20180018161A1 (en) * 2016-07-13 2018-01-18 Blackberry Limited Updating firmware at enterprise devices
CN109062815A (en) * 2018-10-11 2018-12-21 郑州云海信息技术有限公司 Generate the method and system of upgrading/service packs test bag of virtualization software
CN109375937A (en) * 2018-10-30 2019-02-22 Oppo广东移动通信有限公司 Method for upgrading system, device, terminal device and storage medium
CN110786053A (en) * 2017-06-19 2020-02-11 T移动美国公司 System and method for testing power consumption of electronic device
CN111629200A (en) * 2019-02-27 2020-09-04 深圳Tcl数字技术有限公司 Method and device for rapidly detecting differential packet reliability and readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100281143A1 (en) * 2009-04-29 2010-11-04 Jim Krahn Maintaining mobile device operations
CN102075781A (en) * 2009-11-20 2011-05-25 上海倍亚得信息技术有限公司 System and method for testing user perception effect of video telephony and streaming media
CN102118260A (en) * 2009-12-30 2011-07-06 中兴通讯股份有限公司 Method for automatically managing net element version and network system
CN102346709A (en) * 2010-07-30 2012-02-08 国际商业机器公司 Software development assisting method and system
US20180018161A1 (en) * 2016-07-13 2018-01-18 Blackberry Limited Updating firmware at enterprise devices
CN106874040A (en) * 2017-01-17 2017-06-20 武汉天喻教育科技有限公司 Realize that PC ends software is mourned in silence the system and method for upgrading based on Windows services
CN110786053A (en) * 2017-06-19 2020-02-11 T移动美国公司 System and method for testing power consumption of electronic device
CN109062815A (en) * 2018-10-11 2018-12-21 郑州云海信息技术有限公司 Generate the method and system of upgrading/service packs test bag of virtualization software
CN109375937A (en) * 2018-10-30 2019-02-22 Oppo广东移动通信有限公司 Method for upgrading system, device, terminal device and storage medium
CN111629200A (en) * 2019-02-27 2020-09-04 深圳Tcl数字技术有限公司 Method and device for rapidly detecting differential packet reliability and readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BO JIANG等: "To What Extent is Stress Testing of Android TV Applications Automated in Industrial Environments?", 《IEEE TRANSACTIONS ON RELIABILITY》, vol. 65, no. 3, pages 1223 - 1239, XP011621305, DOI: 10.1109/TR.2015.2481601 *
周 寻等: "基于Python和Robotframework的继电保护装置自动化集成测试方法", 《电气时代》, no. 02, pages 78 - 84 *

Also Published As

Publication number Publication date
CN112925542B (en) 2024-04-30

Similar Documents

Publication Publication Date Title
US9804933B2 (en) System differential upgrade method, apparatus, and mobile terminal
US20070074201A1 (en) Method and system for updating software and computer readable recording medium storing the method
KR20060064660A (en) Tri-phase boot process in electronic devices
CN101695162A (en) Method and device for upgrading aerial firmware on mobile terminal
CN113821235B (en) Operating system data updating method, device, storage medium and program product
CN111813428A (en) Method and device for upgrading terminal firmware, electronic equipment and storage medium
CN108182078B (en) Optimized missile-borne device non-dismantling software online upgrading method
CN110597544A (en) Software system upgrading method and device
CN110597545A (en) Hot patch intelligent upgrading method and system based on OTA component
CN106708550B (en) Method and device for loading shared object library
CN112015447A (en) System updating method and device for electronic equipment, electronic equipment and storage medium
CN114780019A (en) Electronic device management method and device, electronic device and storage medium
CN110750280A (en) Application upgrading method and system based on Android platform and storage medium
CN113094077B (en) System differential upgrading method and device, intelligent terminal and storage medium
CN112925542B (en) Test method for supporting silent upgrading of wireless router
CN114741091A (en) Firmware loading method and device, electronic equipment and computer readable storage medium
CN111629200A (en) Method and device for rapidly detecting differential packet reliability and readable storage medium
CN115145596A (en) OTA (over the air) upgrading method and device for robot upgrading package
CN105278993B (en) A kind of drive module upgrade method and device based on linux system
CN114356658A (en) Processing method of firmware upgrading exception, computer equipment and readable storage medium
CN111918278A (en) Over-the-air upgrade checking method, device, medium and intelligent terminal equipment
CN114915554A (en) Remote upgrading method and device, computer equipment and storage medium
CN107967160B (en) Method and device for updating operating system file through Boot Loader
CN112925549A (en) System application upgrading system based on android frame
CN107229502B (en) Multi-application combination upgrading method based on Android platform terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20240320

Address after: 523000 No. 3, Gongye West 2nd Road, Songshanhu high tech Industrial Development Zone, Dongguan City, Guangdong Province

Applicant after: Dongguan Ruiyi Electronic Technology Co.,Ltd.

Country or region after: China

Address before: 6-8 / F, building E3, TCL hi tech park, 1001 Zhongshan Garden Road, Xili, Nanshan District, Shenzhen, Guangdong 518000

Applicant before: SHENZHEN TENDA TECHNOLOGY Co.,Ltd.

Country or region before: China

TA01 Transfer of patent application right
GR01 Patent grant