CN104598355A - Automatic testing system and method of router USB performance - Google Patents

Automatic testing system and method of router USB performance Download PDF

Info

Publication number
CN104598355A
CN104598355A CN201410831474.0A CN201410831474A CN104598355A CN 104598355 A CN104598355 A CN 104598355A CN 201410831474 A CN201410831474 A CN 201410831474A CN 104598355 A CN104598355 A CN 104598355A
Authority
CN
China
Prior art keywords
router
usb
testing
test
router usb
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
Application number
CN201410831474.0A
Other languages
Chinese (zh)
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201410831474.0A priority Critical patent/CN104598355A/en
Publication of CN104598355A publication Critical patent/CN104598355A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an automatic testing system and method of router USB performance. The testing method includes the following steps that (101), functions of a router USB are configured; (102), external storage equipment is configured; (103), batch scripts capable of testing the read-write performance of the router USB are edited; (104), the scripts are run, and a testing result is automatically output. The automatic testing system and method have the advantages that by the adoption of the BAT, portability is good, all platforms can be run, meanwhile, efficiency is high, a lot of manual testing work can be replaced, repeated testing is avoided, and a lot of labor is saved; precision is high, expandability is good, the cost is lowered, the testing efficiency is improved, existing resources can be better utilized, and time needed for putting the product into the market is shortened.

Description

A kind of router USB automatic performance test system and method for testing thereof
Technical field
The present invention relates to data test technical field, especially relate to a kind of router USB automatic performance test system and method for testing thereof.
Background technology
With the development of science and technology, conventional wireless router can not meet the application of our life.Increasing user starts to pay close attention to intelligent router.New function such as Bluetooth transmission, charger baby, remote download and the USB storage of intelligent router can bring user abundanter adventure in daily life.Wherein USB memory function refers to and connects the memory devices such as USB flash disk, portable hard drive or TF card by USB interface, with any computer shared file in LAN (Local Area Network) or wide area network.USB performance is by the time directly affecting transfer files between computer thus affect Consumer's Experience, and the method for testing of traditional function is based on manual testing, manual testing's manual transmission file is that manual record time point draws mistiming computation rate, the Fumction display real time rate that utilizes win7 system to carry again, or utilizes online existing software simply to read and write rate test.Above method is by manual testing's intelligent router USB performance, and the shortcoming showed is as follows: 1. the start and end time of manual record transfer files, and error causes more greatly test result to there is larger error.2. artificial computing time is poor, is accurate to second, then computation rate, and involved data are comparatively large, and error probability is larger.3., during transfer files, the mean speed real-time change that windows shows automatically, cannot be expressed as result accurately.4. the data of the different divisional type of reperformance test, easily obscure, cause result to make mistakes.5. manual test spended time is longer, and testing efficiency is lower.
This programme proposes a kind of router USB automatic performance test system and method for testing thereof, reduce manual testing's task, improve its yield-power and reduce the testing cost of development, accurate test results, can tackle the in enormous quantities and complicated test request of intelligent router USB performance better simultaneously.
Summary of the invention
The invention provides a kind of router USB automatic performance test system and method for testing thereof, reduce manual testing's task, improve its yield-power and reduce the testing cost of development, accurate test results, the in enormous quantities and complicated test request of intelligent router USB performance can be tackled simultaneously better.。
Technical matters solved by the invention realizes by the following technical solutions:
A kind of router USB automatic performance method of testing, comprises the following steps:
101, configuration router USB function;
102, external storage equipment is configured;
103, editor can test the batch processing script of described router USB readwrite performance;
104, Run Script, outputs test result automatically.
As preferred technical scheme, the external storage equipment described in step 102 comprises USB flash disk, HDD, SSD or TF card etc.
As preferred technical scheme, the external storage equipment described in step 102 comprises the different-format subregions such as NTFS, FAT32.
As preferred technical scheme, the batch processing script described in step 103 comprises following steps:
A) the test start time is captured;
B) at computer and external storage equipment transmission fixed size file;
C) the test end time is captured;
D) transmission mean speed is calculated and Output rusults according to above-mentioned end time and start time.
As preferred technical scheme, the further comprising the steps of e of described batch processing script: repeat step a-d, tests the router USB readwrite performance of different-format subregion respectively, and exports net result in form.
The invention allows for a kind of router USB automatic performance test system, be applied to computer and in the router that is connected with described computer, in order to test the readwrite performance of described router USB, comprise:
Time handling module, reads and writes start time and the end time of process in order to record described router USB;
External memory module, is connected with computer by described router, in order to transmit packet;
Processor module, calculates transmission mean speed and Output rusults by end time of described time handling module record and start time.
As preferred technical scheme, described external memory module comprises USB flash disk, HDD, SSD or TF card etc.
As preferred technical scheme, described external memory module comprises the different-format subregions such as NTFS, FAT32.
The beneficial effect that the present invention has is: (1) transplantability is good, and employing BAT batch processing is a kind of script of simplification, and without the need to needing independently operation platform as VC, C language etc., Windows system directly can be double-clicked and connect operation; (2) efficiency is high, can replace a large amount of manual test work, avoid repeated test, save a large amount of manpower; (3) degree of accuracy is high, compares manual timing, and system real time display rate is more accurate; (4) extensibility is good, and batch processing script can direct editing amendment, without the need to independently operation platform, simple, convenient; (5) the in enormous quantities of intelligent router and complicated test request can be tackled better; (6) reduce our daily expenses cost, improve testing efficiency, utilize existing resource better, and shorten the time needed for our launch products.
Accompanying drawing explanation
In order to be illustrated more clearly in embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments more of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the present invention: a kind of schematic flow sheet of router USB automatic performance method of testing.
Embodiment
The technological means realized to make the present invention, creation characteristic, reaching object and effect is easy to understand, below in conjunction with concrete diagram, setting forth the present invention further.
With reference to shown in Fig. 1, a kind of router USB automatic performance method of testing, comprises the following steps:.
101, configuration router USB function;
102, external storage equipment is configured;
103, editor can test the batch processing script of described router USB readwrite performance;
104, Run Script, outputs test result automatically.
Wherein, the external storage equipment described in step 102 comprises USB flash disk, HDD, SSD or TF card etc., and the external storage equipment described in step 102 comprises the different-format subregions such as NTFS, FAT32.
Batch processing script described in step 103 comprises following steps:
A) the test start time is captured;
B) at computer and external storage equipment transmission fixed size file;
C) the test end time is captured;
D) transmission mean speed is calculated and Output rusults according to above-mentioned end time and start time.
E) repeat step a-d, test the router USB readwrite performance of different-format subregion respectively, and export net result in form.
Concrete test process is as follows:
Testing procedure 1: configuration router
Computer end logs in the router administration page, configuration USB memory function.
Testing procedure 2: the zoned format of the external equipments such as configuration portable hard drive, is connected to DUT
Testing procedure 3: run batch processing script (USB device read-write write capability) and automatically perform and Output rusults.
Wherein, the code of batch processing script is as follows:
**************************************************************
*
* Step1. captures the test start time, its result is outputted in C dish TimeStart.txt file
*
**************************************************************
Echo%time: ~ 0,2% %time: ~ 3,2% point %time: ~ 6,2% second >>c: TimeStart.txt
set/a h_start=%time:~0,2%
set/a m_start=%time:~3,2%
set/a s_start=%time:~6,2%
set/a res1=%h_start%*3600+%m_start%*60+%s_start%
:: the start time of crawl is converted into second
**************************************************************
*
* Step2. transmits fixed size file between computer and USB device, test write performance
*
**************************************************************
@echo off
fsutil file createnew c:\1.rar 1073741824
:: the file creating 1073741824 bytes (1G) size, called after 1.rar is saved in the C dish of computer
copy c:\1.rar\\192.168.2.1\media\sda6\2.rar>>c:\Copy_Stress_Test.txt
:: output results to C dish Copy_Stress_Test.txt after end of transmission (EOT)
**************************************************************
*
* Step3. captures the test end time, its result is outputted in C dish TimeEnd.txt file
*
**************************************************************
Echo%time: ~ 0,2% %time: ~ 3,2% point %time: ~ 6,2% second >>c: TimeEnd.txt
set/a h_end=%time:~0,2%
set/a m_end=%time:~3,2%
set/a s_end=%time:~6,2%
set/a res2=%h_end%*3600+%m_end%*60+%s_end%
:: the end time of crawl is converted into second
**************************************************************
*
* Step4. calculates transmission mean speed and Output rusults according to end time and start time
*
**************************************************************
set/a res=%res2%-%res1%
echo%res%
:: defining variable res, the difference of assignment end time and start time
set/a time3=8192/%res%
:: defining variable time3, calculates transfer rate assignment to time3
echo NTFS-To-FAT32.bat%time3%Mbps>>c:\Result.txt
:: result is outputted in C dish Result.txt
Testing procedure 4: test different partitions of file, USB device readwrite performance respectively, and export in net result to form so that statistical study
By BAT batch processing script test intelligent router USB performance, before test, only need the access path of the USB device in modify steps 3 in script.As multiple subregion need be tested, then set up multiple BAT batch processing script according to the mode in step 3, the path of amendment access USB device wherein.
The present invention has following beneficial effect: (1) transplantability is good, and employing BAT batch processing is a kind of script of simplification, and without the need to needing independently operation platform as VC, C language etc., Windows system directly can be double-clicked and connect operation; (2) efficiency is high, can replace a large amount of manual test work, avoid repeated test, save a large amount of manpower; (3) degree of accuracy is high, compares manual timing, and system real time display rate is more accurate; (4) extensibility is good, and batch processing script can direct editing amendment, without the need to independently operation platform, simple, convenient; (5) the in enormous quantities of intelligent router and complicated test request can be tackled better; (6) reduce our daily expenses cost, improve testing efficiency, utilize existing resource better, and shorten the time needed for our launch products.
The invention allows for a kind of router USB automatic performance test system, be applied to computer and in the router that is connected with described computer, in order to test the readwrite performance of described router USB, comprise:
Time handling module, reads and writes start time and the end time of process in order to record described router USB;
External memory module, is connected with computer by described router, in order to transmit packet;
Processor module, calculates transmission mean speed and Output rusults by end time of described time handling module record and start time.
Preferably, described external memory module comprises USB flash disk, HDD, SSD or TF card etc.And described external memory module comprises the different-format subregions such as NTFS, FAT32.
More than show and describe ultimate principle of the present invention and principal character and advantage of the present invention.The technician of the industry should understand; the present invention is not restricted to the described embodiments; what describe in above-described embodiment and instructions just illustrates principle of the present invention; without departing from the spirit and scope of the present invention; the present invention also has various changes and modifications, and these changes and improvements all fall in the claimed scope of the invention.Application claims protection domain is defined by appending claims and equivalent thereof.

Claims (8)

1. a router USB automatic performance method of testing, is characterized in that, comprise the following steps:
101, configuration router USB function;
102, external storage equipment is configured;
103, editor can test the batch processing script of described router USB readwrite performance;
104, Run Script, outputs test result automatically.
2. a kind of router USB automatic performance method of testing according to claim 1, it is characterized in that, the external storage equipment described in step 102 comprises USB flash disk, HDD, SSD or TF card.
3. a kind of router USB automatic performance method of testing according to claim 1, it is characterized in that, the external storage equipment described in step 102 comprises the different-format subregion of NTFS, FAT32.
4. a kind of router USB automatic performance method of testing according to claim 1, it is characterized in that, the batch processing script described in step 103 comprises following steps:
A) the test start time is captured;
B) at computer and external storage equipment transmission fixed size file;
C) the test end time is captured;
D) transmission mean speed is calculated and Output rusults according to above-mentioned end time and start time.
5. a kind of router USB automatic performance method of testing according to claim 4, it is characterized in that, the further comprising the steps of e of described batch processing script: repeat step a-d, tests the router USB readwrite performance of different-format subregion respectively, and exports net result in form.
6. a router USB automatic performance test system, is applied to computer and in the router that is connected with described computer, in order to test the readwrite performance of described router USB, it is characterized in that, comprising:
Time handling module, reads and writes start time and the end time of process in order to record described router USB;
External memory module, is connected with computer by described router, in order to transmit packet;
Processor module, calculates transmission mean speed and Output rusults by end time of described time handling module record and start time.
7. a kind of router USB automatic performance test system according to claim 6, it is characterized in that, described external memory module comprises USB flash disk, HDD, SSD or TF card.
8. a kind of router USB automatic performance method of testing according to claim 6, it is characterized in that, described external memory module comprises the different-format subregion of NTFS, FAT32.
CN201410831474.0A 2014-12-23 2014-12-23 Automatic testing system and method of router USB performance Pending CN104598355A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410831474.0A CN104598355A (en) 2014-12-23 2014-12-23 Automatic testing system and method of router USB performance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410831474.0A CN104598355A (en) 2014-12-23 2014-12-23 Automatic testing system and method of router USB performance

Publications (1)

Publication Number Publication Date
CN104598355A true CN104598355A (en) 2015-05-06

Family

ID=53124168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410831474.0A Pending CN104598355A (en) 2014-12-23 2014-12-23 Automatic testing system and method of router USB performance

Country Status (1)

Country Link
CN (1) CN104598355A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700980A (en) * 2016-04-27 2016-06-22 浪潮电子信息产业股份有限公司 Method for realizing automatic mounting of USB flash disk and testing speed of USB port
CN105893198A (en) * 2016-04-29 2016-08-24 浪潮电子信息产业股份有限公司 Method and device for testing KVM stability
CN106528358A (en) * 2016-11-28 2017-03-22 上海斐讯数据通信技术有限公司 Test method and system for USB (Universal Serial Bus) storage stability of route
CN107239375A (en) * 2017-06-12 2017-10-10 郑州云海信息技术有限公司 It is a kind of to realize the method for testing that USB2.0 High Speed controls are given out a contract for a project
CN109510733A (en) * 2018-07-02 2019-03-22 四川斐讯信息技术有限公司 A kind of method and device of test router store function
CN109992463A (en) * 2018-01-03 2019-07-09 浙江舜宇智能光学技术有限公司 A kind of method and system with automatic detection packaged type storage equipment read or write speed adaptation electronic equipment
CN111192623A (en) * 2018-11-14 2020-05-22 慧荣科技股份有限公司 Method, computer device and user interface for automated testing
CN113178225A (en) * 2021-05-20 2021-07-27 惠州Tcl移动通信有限公司 Router Flash stability automatic test method, device and test terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
BLADE: "双频无线1900Mbps,华硕RT-AC68U路由器评测", 《HTTP://WWW.EXPREVIEW.COM/30863-ALL.HTML》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700980A (en) * 2016-04-27 2016-06-22 浪潮电子信息产业股份有限公司 Method for realizing automatic mounting of USB flash disk and testing speed of USB port
CN105893198A (en) * 2016-04-29 2016-08-24 浪潮电子信息产业股份有限公司 Method and device for testing KVM stability
CN106528358A (en) * 2016-11-28 2017-03-22 上海斐讯数据通信技术有限公司 Test method and system for USB (Universal Serial Bus) storage stability of route
CN107239375A (en) * 2017-06-12 2017-10-10 郑州云海信息技术有限公司 It is a kind of to realize the method for testing that USB2.0 High Speed controls are given out a contract for a project
CN109992463A (en) * 2018-01-03 2019-07-09 浙江舜宇智能光学技术有限公司 A kind of method and system with automatic detection packaged type storage equipment read or write speed adaptation electronic equipment
CN109510733A (en) * 2018-07-02 2019-03-22 四川斐讯信息技术有限公司 A kind of method and device of test router store function
CN111192623A (en) * 2018-11-14 2020-05-22 慧荣科技股份有限公司 Method, computer device and user interface for automated testing
CN111192623B (en) * 2018-11-14 2022-02-01 慧荣科技股份有限公司 Method, computer device and user interface for automated testing
CN113178225A (en) * 2021-05-20 2021-07-27 惠州Tcl移动通信有限公司 Router Flash stability automatic test method, device and test terminal

Similar Documents

Publication Publication Date Title
CN104598355A (en) Automatic testing system and method of router USB performance
CN110147411B (en) Data synchronization method, device, computer equipment and storage medium
CN109448778B (en) Method, system and device for testing performance of solid state disk and readable storage medium
US9436566B2 (en) Methods, systems, and computer readable media for scaling a workload
CN109346122B (en) Method and device for testing performance of solid state disk
US8667245B2 (en) Spatial extent migration for tiered storage architecture
WO2016000546A1 (en) Method and device for checking influence of deletion of cache file, and mobile terminal
WO2018120720A1 (en) Method for locating test error of client program, electronic device, and storage medium
CN104572386B (en) Automatically the wide method of HBA cassette tapes is tested under a kind of Linux
CN104660471A (en) Method for automatically testing PCIE-SSD transmission rate and bandwidth under Linux
CN104317684A (en) Method for synchronously and automatically testing bandwidths and transmission rates of multiple USB interfaces
CN104020763A (en) Automatic test method and system for input and output interfaces
CN110989926A (en) Fault disk slot positioning method and device and electronic equipment
CN103984613A (en) Method for automatically testing floating point calculation performance of CPU (Central Processing Unit)
CN108231132B (en) NAND flash memory verification device and verification system
CN114417761B (en) Chip verification method, device and system, control server and medium
CN104731617A (en) Server starting device determining method
CN109032864A (en) A kind of method and system of NVMe SSD hot plug test
CN101883019B (en) Test method for verifying video application of storage server
US20190187904A1 (en) Efficient export scheduling using index and schema to determine data distribution
CN105260281A (en) Iozone-based PCIE SSD card performance test method
CN113656224A (en) NVMe SSD hot plug test method, system, device and readable storage medium
US10382311B2 (en) Benchmarking servers based on production data
Milosevic et al. An environment for automated power measurements on mobile computing platforms
CN116663490A (en) Verification method, platform, device and medium of asynchronous memory chip

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: 20150506