CN105306304A - Data transmission rate automatic testing method and intelligent terminal - Google Patents

Data transmission rate automatic testing method and intelligent terminal Download PDF

Info

Publication number
CN105306304A
CN105306304A CN201510757508.0A CN201510757508A CN105306304A CN 105306304 A CN105306304 A CN 105306304A CN 201510757508 A CN201510757508 A CN 201510757508A CN 105306304 A CN105306304 A CN 105306304A
Authority
CN
China
Prior art keywords
transmission
data
module
transmission mode
mode
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
CN201510757508.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 CN201510757508.0A priority Critical patent/CN105306304A/en
Publication of CN105306304A publication Critical patent/CN105306304A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate

Abstract

The invention discloses a data transmission rate automatic testing method. The method comprises the following steps of: S10, analyzing operations of a user, and obtaining at least one transmission mode and at least one transmission data selected by the user; S20, according to the selected transmission mode and transmission data, transmitting the selected transmission data in the selected transmission mode; S30, recording transmission quantity and transmission time of the transmission data during the transmission process; S40, testing transmission rate of the data according to the recorded transmission quantity and transmission time of the transmission data. The method can realize automatic testing and recording of transmission rate of a transmission file in various transmission modes. Moreover, the method also has the advantages, such as high degree of automation, high accuracy of testing result and high readability.

Description

A kind of data transmission rate automatic test approach and intelligent terminal
Technical field
The present invention relates to test data transfer rate technical field, particularly relate to data transmission rate automatic test approach and intelligent terminal.
Background technology
USB (USB) is a kind of serial bus standard connecting computer system and external equipment, also be a kind of technical specification of input/output interface, be widely used in the information communication products such as PC, mobile device and SD card, and extend to other association areas such as photographic goods, Digital Television (Set Top Box), game machine.Wherein, the data transmission rate of USB is most important.In prior art, when the data transmission rate of test all-purpose universal serial bus, can only test the transfer files under a kind of transmission mode and record, test and comprehensive record automatically cannot be carried out to the transfer files under multiple transmission mode.Therefore, under the multiple transmission mode of automatic test, the data transmission rate of transfer files becomes problem demanding prompt solution.
Summary of the invention
Technical scheme provided by the invention is as follows:
A kind of data transmission rate automatic test approach, comprising: step S10 resolves the operation of user, at least one transmission mode that acquisition user chooses and at least one transmission data; Step S20 is according to the transmission mode selected and transmission data, and the transmission data selected are transmitted under the transmission mode selected; The step S30 record transmission quantity of transmission data in transmitting procedure and transmission time; Step S40 according to the transmission quantity of transmission data of record and transmission time, the transfer rate of test data.
Another kind of data transmission rate automatic test approach provided by the invention, comprising: step S10 resolves the operation of user, at least one transmission mode that acquisition user chooses and at least one transmission data; Step S20 is according to the transmission mode selected and transmission data, and the transmission data selected are transmitted under the transmission mode selected; The step S30 record transmission quantity of transmission data in transmitting procedure and transmission time; Step S40 according to the transmission quantity of transmission data of record and transmission time, the transfer rate of test data; This data transmission rate, according to the data transmission rate of test gained, writes in the log file of setting by step S50; Step S60 resolves the data transmission rate write in log file, the data transmission rate parsed is inserted in report template.
Also comprised before described step S10: step S00 prestores multiple transmission mode and multiple transmission data, and is added in allocation list.
Another data transmission rate automatic test approach provided by the invention, comprising: step S01 judges whether user has selected a kind of transmission mode and transmission data at least; If step S02 user has selected transmission mode and transmission data, then perform step S10; Otherwise prompting user goes to step S11 after at least selecting a kind of transmission mode and transmission data; Step S10 resolves the operation of user, at least one transmission mode that acquisition user chooses and at least one transmission data; Step S20 is according to the transmission mode selected and transmission data, and the transmission data selected are transmitted under the transmission mode selected; The step S30 record transmission quantity of transmission data in transmitting procedure and transmission time; Step S40 according to the transmission quantity of transmission data of record and transmission time, the transfer rate of test data.
Described step S20 also comprises: according at least one transmission mode selected and multiple transmission data, the transmission data selected are transmitted one by one under the same transmission mode selected.
Another kind of data transmission rate automatic test approach provided by the invention, comprising: step S10 resolves the operation of user, at least one transmission mode that acquisition user chooses and at least one transmission data; Step S211 reads current transmission mode; Step S212 reads current transmission data; Step S213 current transmission data are transmitted at current transmission mode; The step S30 record transmission quantity of transmission data in transmitting procedure and transmission time; Step S40 according to the transmission quantity of transmission data of record and transmission time, the transfer rate of test data; Step S214 judges whether current transmission data complete transmission under current transmission mode; If step S216 current transmission data complete transmission, then, after entering next transmission data, go to step S212; Otherwise, perform step S213.
Described step S20 also comprises: according to the multiple transmission mode selected and at least one transmission data, the transmission data selected are being selected to transmit under corresponding transmission mode one by one.
Another kind of data transmission rate automatic test approach provided by the invention, comprising: step S10 resolves the operation of user, at least one transmission mode that acquisition user chooses and at least one transmission data; Step S221 reads current transmission mode; Step S222 reads current transmission data; Step S223 current transmission data are transmitted at current transmission mode; The step S30 record transmission quantity of transmission data in transmitting procedure and transmission time; Step S40 according to the transmission quantity of transmission data of record and transmission time, the transfer rate of test data; Step S224 judges whether the transmission data under current transmission mode complete transmission; If the transmission data under step S226 current transmission mode complete transmission, then, after entering lower a kind of transmission mode, go to step S221; Otherwise, perform step S222.
Another kind of data transmission rate automatic test approach provided by the invention, comprising: step S10 resolves the operation of user, at least one transmission mode that acquisition user chooses and at least one transmission data; Step S231 reads current transmission mode; Step S232 reads current transmission data; Step S233 current transmission data are transmitted at current transmission mode; The step S30 record transmission quantity of transmission data in transmitting procedure and transmission time; Step S40 according to the transmission quantity of transmission data of record and transmission time, the transfer rate of test data; Step S234 judges whether current transmission data complete transmission under current transmission mode; If step S235 current transmission data complete transmission, then judge whether all transmission data under current transmission mode complete transmission; Otherwise, perform step S233; If the transmission data under step S236 current transmission mode complete transmission, then perform step S238; Otherwise, after entering next transmission data, go to step S232; Step S238 goes to step S231 after entering lower a kind of transmission mode.
Described step S10 also comprises: the operation of resolving user, obtains transmission mode, transmission data and the number of transmissions that user chooses; Described step S20 also comprises: according to the transmission mode selected, transmission data and the number of transmissions, the transmission data selected transmit corresponding time under the transmission mode selected.
Another kind of data transmission rate automatic test approach provided by the invention, comprising: step S10 resolves the operation of user, at least one transmission mode that acquisition user chooses and at least one transmission data; Step S241 reads current transmission mode; Step S242 reads current transmission data; Step S243 reads current transmission number; Step S244 current transmission data are transmitted at current transmission mode; The step S30 record transmission quantity of transmission data in transmitting procedure and transmission time; Step S40 according to the transmission quantity of transmission data of record and transmission time, the transfer rate of test data; Step S245 judges whether current transmission data complete transmission; If step S2451 current transmission data complete transmission, then current transmission number adds 1; Otherwise, perform step S244; Step S246 judgement adds the number of transmissions whether current transmission number after 1 equals to choose; If step S2461 adds the current transmission number after 1 and is not equal to the number of transmissions chosen, then, after entering next transmission data, perform step S242.
Described transmission mode refers to: carry out between mobile phone and computer transmitting, carry out between SD card and computer transmitting, transmit between mobile phone and SD card at least choose one.
An intelligent terminal for automatic test data transfer rate, comprising: acquisition module, and this acquisition module resolves the operation of user, at least one transmission mode that acquisition user chooses and at least one transmission data; Data transmission module, this data transmission module receives the transmission mode and transmission data that described acquisition module sends over, and the transmission data selected are transmitted by described data transmission module under the transmission mode selected; Logging modle, this logging modle reads the transmission quantity of transmission data in data transmission module and transmission time, and the transmission quantity of record transmission data in transmitting procedure and transmission time; Transfer rate test module, this transfer rate test module receives the transmission quantity and transmission time that described logging modle sends over, and tests out the transfer rate of data.
The intelligent terminal of the automatic test data transfer rate of another kind provided by the invention, comprising: acquisition module, and this acquisition module resolves the operation of user, the transmission mode that acquisition user chooses and transmission data; Data transmission module, this data transmission module receives the transmission mode and transmission data that described acquisition module sends over, and the transmission data selected are transmitted by described data transmission module under the transmission mode selected; Logging modle, this logging modle reads the transmission quantity of transmission data in data transmission module and transmission time, and the transmission quantity of record transmission data in transmitting procedure and transmission time; Transfer rate test module, this transfer rate test module receives the transmission quantity and transmission time that described logging modle sends over, and tests out the transfer rate of data; File generating module, this file generating module reads the data transmission rate in described transfer rate test module, in the log file set the data transmission rate write read; Report generation module, this report generation module reads the data transmission rate write in the log file in described file generating module, inserts in report template by the data transmission rate of reading; Memory module, this memory module prestores multiple transmission mode and multiple transmission data, and is added in allocation list.
Also comprise in the intelligent terminal of one or another kind of automatic test data transfer rate provided by the invention: judge module, this judge module judges whether user has selected a kind of transmission mode and transmission data at least; Reminding module, this reminding module receives the judged result that described judge module sends, and prompting user at least selects a kind of transmission mode and transmission data.
Also comprise in the intelligent terminal of one or another kind of automatic test data transfer rate provided by the invention: computing module, this computing module receives the judged result that described judge module sends, add 1 calculating to current transmission number, the result after calculating is sent to described judge module by this computing module.
Compared with prior art, a kind of data transmission rate automatic test approach provided by the invention and intelligent terminal, can realize automatic test, automatically record the transfer rate transmitting data under multiple transmission mode.In addition, the present invention also has that automaticity is high, the accuracy of test result is high and the readable advantage such as strong.
Accompanying drawing explanation
Below by clearly understandable mode, accompanying drawings preferred implementation, is further described the above-mentioned characteristic of a kind of data transmission rate automatic test approach and intelligent terminal, technical characteristic, advantage and implementation thereof.
Fig. 1 is a kind of data transmission rate automatic test approach of the present invention key step schematic diagram;
Fig. 2 is the entire protocol schematic diagram of a kind of data transmission rate automatic test approach of the present invention;
Fig. 3 is the schematic flow sheet of a kind of data transmission rate automatic test approach of the present invention;
Fig. 4 is the part run schematic diagram of a kind of data transmission rate automatic test approach of the present invention;
Fig. 5 is the part run schematic diagram of the another kind of data transmission rate automatic test approach of the present invention;
Fig. 6 is the part run schematic diagram of another data transmission rate automatic test approach of the present invention;
Fig. 7 is the part run schematic diagram of another data transmission rate automatic test approach of the present invention;
Fig. 8 is the main composition structural representation of a kind of intelligent terminal of the present invention;
Fig. 9 is the part composition structural representation of a kind of intelligent terminal of the present invention;
Figure 10 is the partial schematic diagram of a kind of user selection interface in the present invention;
Figure 11 is the partial schematic diagram of another kind of user selection interface in the present invention;
Figure 12 is the partial schematic diagram at a kind of display data transmissions interface in the present invention;
Figure 13 is for recording the schematic diagram of the log file of transfer rate in the present invention;
Figure 14 is for recording the partial schematic diagram of the reporting modules of transfer rate in the present invention;
Figure 15 is for recording the partial schematic diagram of the reporting modules of transfer rate in the present invention.
Drawing reference numeral illustrates:
10. input module, 20. memory modules, 30. judge modules, 31. reminding modules, 32. computing modules, 40. acquisition modules, 50. data transmission modules, 60. logging modles, 70. transfer rate test modules, 80. file generating module, 90. report generation modules.
Embodiment
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, contrast accompanying drawing is illustrated the specific embodiment of the present invention below.Apparently, accompanying drawing in the following describes is only some embodiments 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, and obtain other execution mode.
For making simplified form, only schematically show part related to the present invention in each figure, they do not represent its practical structures as product.In addition, be convenient to make simplified form understand, there are the parts of same structure or function in some figure, only schematically depict one of them, or only marked one of them.In this article, " one " not only represents " only this ", also can represent the situation of " more than one ".
Fig. 1 is the key step schematic diagram of a kind of data transmission rate automatic test approach of the present invention.As shown in Figure 1, a kind of data transmission rate automatic test approach, comprising: step S10 resolves the operation of user, at least one transmission mode that acquisition user chooses and at least one transmission data; Described transmission mode refers to: carry out between mobile phone and computer transmitting, carry out between SD card and computer transmitting, transmit between mobile phone and SD card at least choose one; Described transmission data refer to: transfer files; Step S20 is according to the transmission mode selected and transmission data, and the transmission data selected are transmitted under the transmission mode selected; The step S30 record transmission quantity of transmission data in transmitting procedure and transmission time; Step S40 according to the transmission quantity of transmission data of record and transmission time, the transfer rate of test data.
Fig. 2 is the entire protocol schematic diagram of a kind of data transmission rate automatic test approach of the present invention.Figure 10 is the partial schematic diagram of a kind of user selection interface in the present invention.Figure 11 is the partial schematic diagram of another kind of user selection interface in the present invention.Figure 12 is the partial schematic diagram at a kind of display data transmissions interface in the present invention.Figure 13 is for recording the schematic diagram of the log file of transfer rate in the present invention.Figure 14 is for recording the partial schematic diagram of the reporting modules of transfer rate in the present invention.Figure 15 is for recording the partial schematic diagram of the reporting modules of transfer rate in the present invention.As shown in Figure 2, for the improvement of above-described embodiment, the present embodiment also provides another kind of data transmission rate automatic test approach, also comprise: step S00 prestores multiple transmission mode and multiple transmission data, and be added in allocation list, such as setting allocation list (as shown in Figure 10 and Figure 11); Step S10 resolves the operation of user, at least one transmission mode that acquisition user chooses and at least one transmission data; Described transmission mode refers to: carry out between mobile phone and computer transmitting, carry out between SD card and computer transmitting, transmit between mobile phone and SD card at least choose one; Described transmission data refer to: transfer files; Step S20 is according to the transmission mode selected and transmission data, the transmission data selected carry out transmitting (as shown in figure 12) under the transmission mode selected, and transfer to assigned address (mobile phone in transmission mode, computer and SD card); The step S30 record transmission quantity of transmission data in transmitting procedure and transmission time; Step S40 according to the transmission quantity of transmission data of record and transmission time, the transfer rate of test data; This data transmission rate, according to the data transmission rate of test gained, writes in the log file of setting, such as txt file (as shown in figure 13) by step S50; Step S60 resolves the data transmission rate write in log file, inserts in report template by the data transmission rate parsed, such as visual xls report (as shown in Figure 14 and Figure 15).
Fig. 3 is the schematic flow sheet of a kind of data transmission rate automatic test approach of the present invention.Composition graphs 3, Figure 10, Figure 11, Figure 12, Figure 13 and Figure 14, for the improvement of above-described embodiment, the present embodiment also provides another kind of data transmission rate automatic test approach, comprise: step S00 prestores multiple transmission mode and multiple transmission data, and be added in allocation list, such as setting allocation list (as shown in Figure 10 and Figure 11); Step S01 judges whether user has selected a kind of transmission mode and transmission data at least; If step S02 user has selected transmission mode and transmission data, then perform step S10; Otherwise prompting user goes to step S01 after at least selecting a kind of transmission mode and transmission data; Step S10 resolves the operation of user, at least one transmission mode that acquisition user chooses and at least one transmission data; Described transmission mode refers to: carry out between mobile phone and computer transmitting, carry out between SD card and computer transmitting, transmit between mobile phone and SD card at least choose one; Described transmission data refer to: transfer files; Step S20 is according to the transmission mode selected and transmission data, the transmission data selected carry out transmitting (as shown in figure 12) under the transmission mode selected, and transfer to assigned address (mobile phone in transmission mode, computer and SD card); The step S30 record transmission quantity of transmission data in transmitting procedure and transmission time; Step S40 according to the transmission quantity of transmission data of record and transmission time, the transfer rate of test data; This data transmission rate, according to the data transmission rate of test gained, writes in the log file of setting, such as txt file (as shown in figure 13) by step S50; Step S60 resolves the data transmission rate write in log file, inserts in report template by the data transmission rate parsed, such as visual xls report (as shown in Figure 14 and Figure 15).
For the improvement of above-described embodiment, the step S20 in above-described embodiment also comprises according to the transmission mode selected and transmission data, and the transmission data selected are transmitted one by one under the same transmission mode selected.
Fig. 4 is the part run schematic diagram of a kind of data transmission rate automatic test approach of the present invention.As Fig. 3, Fig. 4, Figure 10, Figure 11, Figure 12, Figure 13 and Figure 14, for the improvement of above-described embodiment, the present embodiment also provides another kind of data transmission rate automatic test approach, comprise: step S00 prestores multiple transmission mode and multiple transmission data, and be added in allocation list, such as setting allocation list (as shown in Figure 10 and Figure 11); Step S01 judges whether user has selected a kind of transmission mode and transmission data at least; If step S02 user has selected transmission mode and transmission data, then perform step S10; Otherwise prompting user goes to step S01 after at least selecting a kind of transmission mode and transmission data; Step S10 resolves the operation of user, at least one transmission mode that acquisition user chooses and at least one transmission data; Described transmission mode refers to: carry out between mobile phone and computer transmitting, carry out between SD card and computer transmitting, transmit between mobile phone and SD card at least choose one; Described transmission data refer to: transfer files; Step S211 reads current transmission mode; Step S212 reads current transmission data; Step S213 current transmission data carry out transmitting (as shown in figure 12) at current transmission mode, transfer to assigned address (mobile phone in transmission mode, computer and SD card); The step S30 record transmission quantity of transmission data in transmitting procedure and transmission time; Step S40 according to the transmission quantity of transmission data of record and transmission time, the transfer rate of test data; Step S214 judges whether current transmission data complete transmission under current transmission mode; If step S215 current transmission data complete transmission under current transmission mode, then judge whether the transmission data selected under current transmission mode complete transmission; Otherwise, perform step S213; If the current transmission data under step S216 current transmission mode complete transmission, then perform step S217, otherwise, after entering next transmission data, go to step S212; After the transmission of step S217 end data, go to step S50; This data transmission rate, according to the data transmission rate of test gained, writes in the log file of setting, such as txt file (as shown in figure 13) by step S50; Step S60 resolves the data transmission rate write in log file, inserts in report template by the data transmission rate parsed, such as visual xls report (as shown in Figure 14 and Figure 15).
For the improvement of above-described embodiment, the step S20 in above-described embodiment also comprises: according to the transmission mode selected and transmission data, the transmission data selected are transmitted one by one under the often kind of transmission mode selected.
Fig. 5 is the part run schematic diagram of the another kind of data transmission rate automatic test approach of the present invention.Composition graphs 3, Fig. 5, Figure 10, Figure 11, Figure 12, Figure 13 and Figure 14, for the improvement of above-described embodiment, the present embodiment also provides another kind of data transmission rate automatic test approach, comprise: step S00 prestores multiple transmission mode and multiple transmission data, and be added in allocation list, such as setting allocation list (as shown in Figure 10 and Figure 11); Step S01 judges whether user has selected a kind of transmission mode and transmission data at least; If step S02 user has selected transmission mode and transmission data, then perform step S10; Otherwise prompting user goes to step S01 after at least selecting a kind of transmission mode and transmission data; Step S10 resolves the operation of user, at least one transmission mode that acquisition user chooses and at least one transmission data; Described transmission mode refers to: carry out between mobile phone and computer transmitting, carry out between SD card and computer transmitting, transmit between mobile phone and SD card at least choose one; Described transmission data refer to: transfer files; Step S221 reads current transmission mode; Step S222 reads current transmission data; Step S223 current transmission data carry out transmitting (as shown in figure 12) at current transmission mode, transfer to assigned address (mobile phone in transmission mode, computer and SD card); The step S30 record transmission quantity of transmission data in transmitting procedure and transmission time; Step S40 according to the transmission quantity of transmission data of record and transmission time, the transfer rate of test data; Step S224 judges whether the transmission data under current transmission mode complete transmission; If the transmission data under step S225 current transmission mode complete transmission, then judge whether the transmission mode selected completes transmission; Otherwise, perform step S222; If the front transmission mode that step S226 has selected completes transmission, then perform step 227, otherwise after entering lower a kind of transmission mode, go to step S221; After the transmission of step 227 end data, go to step S50; This data transmission rate, according to the data transmission rate of test gained, writes in the log file of setting, such as txt file (as shown in figure 13) by step S50; Step S60 resolves the data transmission rate write in log file, inserts in report template by the data transmission rate parsed, such as visual xls report (as shown in Figure 14 and Figure 15).
Fig. 6 is the part run schematic diagram of another data transmission rate automatic test approach of the present invention.Composition graphs 3, Fig. 6, Figure 10, Figure 11, Figure 12, Figure 13 and Figure 14, for the improvement of above-described embodiment, the present embodiment also provides another kind of data transmission rate automatic test approach, comprise: step S00 prestores multiple transmission mode and multiple transmission data, and be added in allocation list, such as setting allocation list (as shown in Figure 10 and Figure 11); Step S01 judges whether user has selected a kind of transmission mode and transmission data at least; If step S02 user has selected transmission mode and transmission data, then perform step S10; Otherwise prompting user goes to step S01 after at least selecting a kind of transmission mode and transmission data; Step S10 resolves the operation of user, at least one transmission mode that acquisition user chooses and at least one transmission data; Described transmission mode refers to: carry out between mobile phone and computer transmitting, carry out between SD card and computer transmitting, transmit between mobile phone and SD card at least choose one; Described transmission data refer to: transfer files; Step S231 reads current transmission mode; Step S232 reads current transmission data; Step S233 current transmission data carry out transmitting (as shown in figure 12) at current transmission mode, transfer to assigned address (mobile phone in transmission mode, computer and SD card); The step S30 record transmission quantity of transmission data in transmitting procedure and transmission time; Step S40 according to the transmission quantity of transmission data of record and transmission time, the transfer rate of test data; Step S234 judges whether current transmission data complete transmission under current transmission mode; If step S235 current transmission data complete transmission, then judge whether all transmission data under current transmission mode complete transmission; Otherwise, perform step S233; If the transmission data under step S236 current transmission mode complete transmission, then perform step S237; Otherwise, after entering next transmission data, go to step S232; Step S237 judges whether the transmission mode selected completes transmission; If the transmission mode that step S238 has selected completes transmission, after entering lower a kind of transmission mode, go to step S231; Otherwise, perform step S239; After the transmission of step S239 end data, go to step S50; This data transmission rate, according to the data transmission rate of test gained, writes in the log file of setting, such as txt file (as shown in figure 13) by step S50; Step S60 resolves the data transmission rate write in log file, inserts in report template by the data transmission rate parsed, such as visual xls report (as shown in Figure 14 and Figure 15).
For the improvement of above-described embodiment, the step S10 in above-described embodiment also comprises the operation of resolving user, obtains transmission mode, transmission data and the number of transmissions that user chooses; Step S20 in above-described embodiment also comprises according to the transmission mode selected, transmission data and the number of transmissions, and the transmission data selected transmit corresponding time under the transmission mode selected.
Fig. 7 is the part run schematic diagram of another data transmission rate automatic test approach of the present invention.Composition graphs 3, Fig. 7, Figure 10, Figure 11, Figure 12, Figure 13 and Figure 14, for the improvement of above-described embodiment, the present embodiment provides another kind of data transmission rate automatic test approach, comprise: step S00 prestores multiple transmission mode and multiple transmission data, and be added in allocation list, such as setting allocation list (as shown in Figure 10 and Figure 11); Step S01 judges whether user has at least selected a kind of transmission mode, transmission data and once transmitted; If step S02 user has selected transmission mode and transmission data, then perform step S10; Otherwise prompting user goes to step S01 after at least selecting a kind of transmission mode and transmission data; Step S10 resolves the operation of user, at least one transmission mode that acquisition user chooses and at least one transmission data; Described transmission mode refers to: carry out between mobile phone and computer transmitting, carry out between SD card and computer transmitting, transmit between mobile phone and SD card at least choose one; Described transmission data refer to: transfer files; Step S241 reads current transmission mode; Step S242 reads current transmission data; Step S243 reads current transmission number; Step S244 current transmission data carry out transmitting (as shown in figure 12) at current transmission mode, transfer to assigned address (mobile phone in transmission mode, computer and SD card); The step S30 record transmission quantity of transmission data in transmitting procedure and transmission time; Step S40 according to the transmission quantity of transmission data of record and transmission time, the transfer rate of test data; Step S245 judges whether current transmission data complete transmission; If step S2451 current transmission data complete transmission, then current transmission number adds 1; Otherwise, perform step S244; Step S246 judgement adds the number of transmissions whether current transmission number after 1 equals to choose; If step S2461 adds the current transmission number after 1 and is not equal to the number of transmissions chosen, then, after entering next transmission data, perform step S242; Otherwise, perform step S247; Step S247 judges whether the transmission mode selected completes transmission; If the transmission mode that step S2471 selects completes transmission, then perform step S2472; Otherwise, enter lower a kind of transmission mode; After the transmission of step S2472 end data, go to step S50; This data transmission rate, according to the data transmission rate of test gained, writes in the log file of setting, such as txt file (as shown in figure 13) by step S50; Step S60 resolves the data transmission rate write in log file, inserts in report template by the data transmission rate parsed, such as visual xls report (as shown in Figure 14 and Figure 15).
An intelligent terminal for automatic test data transfer rate, comprising: memory module 20, and this memory module 20 prestores multiple transmission mode and multiple transmission data, and is added in allocation list; Input module 10, the defeated pattern of user in this input module 10 in option and installment table and transmission data, and be stored in memory module 20; Acquisition module 40, this acquisition module 40 resolves the operation of user in described input module 10, the transmission mode that acquisition user chooses and transmission data; Data transmission module 50, this data transmission module 50 receives the transmission mode and transmission data that described acquisition module 40 sends over, and the transmission data selected are transmitted by described data transmission module 50 under the transmission mode selected; Logging modle 60, this logging modle 60 record transmission quantity of transmission data in transmitting procedure and transmission time; Transfer rate test module 70, this transfer rate test module 70 receives the transmission quantity and transmission time that described logging modle 60 sends over, and tests out the transfer rate of data.
Fig. 8 is the main composition structural representation of a kind of intelligent terminal of the present invention.As shown in Figure 8, for the improvement of above-described embodiment, the present embodiment also provides a kind of intelligent terminal of automatic test data transfer rate, also comprises: memory module 20, this memory module 20 prestores multiple transmission mode and multiple transmission data, and is added in allocation list; Input module 10, the defeated pattern of user in this input module 10 in option and installment table and transmission data, and be stored in memory module 20; Acquisition module 40, this acquisition module 40 resolves the operation of user in described input module 10, the transmission mode that acquisition user chooses and transmission data; Data transmission module 50, this data transmission module 50 receives the transmission mode and transmission data that described acquisition module 40 sends over, and the transmission data selected are transmitted by described data transmission module 50 under the transmission mode selected; Logging modle 60, this logging modle 60 reads the transmission quantity of transmission data in data transmission module 50 and transmission time, and the transmission quantity of record transmission data in transmitting procedure and transmission time; Transfer rate test module 70, this transfer rate test module 70 receives the transmission quantity and transmission time that described logging modle 60 sends over, and tests out the transfer rate of data; File generating module 80, this file generating module 80 reads the data transmission rate in described transfer rate test module 70, in the log file set the data transmission rate write read; Report generation module 90, this report generation module 90 reads the data transmission rate write in the log file in described file generating module 80, the data transmission rate of reading is inserted in report template.
Fig. 9 is the part composition structural representation of a kind of intelligent terminal of the present invention.Composition graphs 8 and Fig. 9, for the improvement of above-described embodiment, the present embodiment provides a kind of intelligent terminal of automatic test data transfer rate, also comprises: memory module 20, this memory module 20 prestores multiple transmission mode and multiple transmission data, and is added in allocation list; Input module 10, the defeated pattern of user in this input module 10 in option and installment table and transmission data, and be stored in memory module 20; Judge module 30, this judge module 30 reads the transport module and transmission data that in memory module 20, user has selected, judges whether user has selected a kind of transmission mode and transmission data at least; Reminding module 31, this reminding module 31 receives the judged result that described judge module 30 sends, and prompting user at least selects a kind of transmission mode and transmission data; Computing module 32, this computing module 32 receives the judged result that described judge module 30 sends, and adds 1 calculating to current transmission number, and the result after calculating is sent to described judge module by this computing module, and this judge module 30 pairs of result of calculations judge; Acquisition module 40, this acquisition module 40 receives the judged result that described judge module 30 sends over, the transmission mode that acquisition user chooses and transmission data; Data transmission module 50, this data transmission module 50 receives the transmission mode and transmission data that described acquisition module 40 sends over, the transmission data selected are transmitted by described data transmission module 50 under the transmission mode selected, and described data transmission module 50 also receives the judged result that described judge module 30 sends; Logging modle 60, this logging modle 60 reads the transmission quantity of transmission data in data transmission module 50 and transmission time, and the transmission quantity of record transmission data in transmitting procedure and transmission time; Transfer rate test module 70, this transfer rate test module 70 receives the transmission quantity and transmission time that described logging modle 60 sends over, and tests out the transfer rate of data; File generating module 80, this file generating module 80 reads the data transmission rate in described transfer rate test module 70, in the log file set the data transmission rate write read; Report generation module 90, this report generation module 90 reads the data transmission rate write in the log file in described file generating module 80, the data transmission rate of reading is inserted in report template.
Composition graphs 3, Fig. 7, Fig. 8, Fig. 9, Figure 10, Figure 11, Figure 12, Figure 13 and Figure 14, the present embodiment also provides another kind of data transmission rate automatic test approach, comprise: in memory module 20, prestore multiple transmission mode and multiple transmission data, and be added in allocation list, such as setting allocation list (as shown in Figure 10 and Figure 11); Described transmission mode refers to: carry out between mobile phone and computer transmitting, carry out between SD card and computer transmitting, transmit between mobile phone and SD card at least choose one; Described transmission data refer to: transfer files; At least select a kind of transmission mode and transmission data in the setting allocation list of user in input module 10, and be stored in memory module 20; Judge module 30 reads the transmission mode and transmission data that in memory module 20, user selects, and judges whether user has selected a kind of transmission mode and transmission data at least; Reminding module 31 receives the judged result not selecting transmission mode and transmission data about user that described judge module 30 sends over, and points out user at least to select a kind of transmission mode and transmission data; Acquisition module 40 receives the judged result having selected transmission mode, transmission data about user that described judge module 30 sends over, and described acquisition module 40 receives at least one transmission mode that user in memory module 20 chooses, at least one transmission data and the number of transmissions; Described acquisition module 40 reads current transmission mode; Described acquisition module 40 also reads current transmission data; Described acquisition module 40 also reads current transmission number; Current transmission data carry out transmitting (as shown in figure 12) at current transmission mode by data transmission module 50, transfer to assigned address (mobile phone in transmission mode, computer and SD card); Logging modle 60 reads the transmission quantity of transmission data in data transmission module 50 and transmission time, and the transmission quantity of record transmission data in transmitting procedure and transmission time; Transfer rate test module 70 receives transmission quantity and the transmission time of the transmission data that described logging modle 60 sends over, and tests out the transfer rate of data; Described judge module 30 reads the transmission quantity of current transmission data in data transmission module 50, and judges whether current transmission data complete transmission; Counting module 32 receives the judged result having completed transmission about current transmission data that described judge module 30 sends over, and adds 1 calculating to current transmission number; Described data transmission module 50 receives the judged result not completing transmission about current transmission data that described judge module 30 sends over, current transmission data are carried out under current transmission mode transmit (as shown in figure 12), transfer to assigned address (mobile phone in transmission mode, computer and SD card); Described judge module 30 receives the result of calculation that described computing module 32 sends over, and judgement adds the number of transmissions whether current transmission number after 1 equals to have chosen; Described acquisition module 40 receive that described judge module 30 sends over about the judged result adding the current transmission number after 1 and be not equal to the number of transmissions chosen, enter next transmission data, read next transmission data as current transmission data, and transmit; Described judge module 30, according to the judged result adding the number of transmissions that the current transmission number after 1 equals to choose, judges whether the transmission data under current transmission mode complete transmission; Described acquisition module 40 receives the judged result not completing transmission about the transmission data under current transmission mode that described judge module 30 sends over, enter next transmission data, read next transmission data as current transmission data, and transmit; Described judge module 30 has completed the judged result of transmission according to the transmission data under current transmission mode, judges whether the transmission mode selected completes transmission; Described acquisition module 40 receives the judged result not completing transmission about the transmission mode selected that described judge module 30 sends over, and enters lower a kind of transmission mode, reads lower a kind of transmission mode as current transmission mode, and transmits; Described data transmission module 50 receives the judged result that the transmission mode selected that described judge module 30 sends over has completed transmission, and end data is transmitted; File generating module 80 receives the data transmission rate that described transfer rate test module 70 sends over, by the log file of this data transmission rate write setting, and such as txt file (as shown in figure 13); Report generation module 90 resolves the data transmission rate write in the log file that described file generating module 80 sends over, and inserts in report template by the data transmission rate parsed, such as visual xls report (as shown in Figure 14 and Figure 15).
The present embodiment provides another kind of data transmission rate automatic test approach, comprising: by the Setting allocation list of fetch program, imports executable replication mode and the listed files needing to copy; User selects the file and the pattern that need execution, clicks and starts; After user selects, copy to assigned address (pattern performed is for reproduction path) according to the file that user selects by the pattern of user's selection with the form of document data flow; Log file size and doubling time; Computation rate (file size/time) also writes in txt file; The data of the inside are inserted report template by automatic analysis txt file automatically after all completing.
It should be noted that above-described embodiment all can independent assortment as required.The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (16)

1. a data transmission rate automatic test approach, is characterized in that, comprising:
Step S10 resolves the operation of user, at least one transmission mode that acquisition user chooses and at least one transmission data;
Step S20 is according to the transmission mode selected and transmission data, and the transmission data selected are transmitted under the transmission mode selected;
The step S30 record transmission quantity of transmission data in transmitting procedure and transmission time;
Step S40 according to the transmission quantity of transmission data of record and transmission time, the transfer rate of test data.
2. data transmission rate automatic test approach as claimed in claim 1, is characterized in that, also comprise:
This data transmission rate, according to the data transmission rate of test gained, writes in the log file of setting by step S50;
Step S60 resolves the data transmission rate write in log file, the data transmission rate parsed is inserted in report template.
3. data transmission rate automatic test approach as claimed in claim 1, is characterized in that, also comprised before step S10:
Step S00 prestores multiple transmission mode and multiple transmission data, and is added in allocation list.
4. the data transmission rate automatic test approach as described in claim 1 or 2 or 3, is characterized in that, also comprise:
Step S01 judges whether user has selected a kind of transmission mode and transmission data at least;
If step S02 user has selected transmission mode and transmission data, then perform step S10; Otherwise prompting user goes to step S01 after at least selecting a kind of transmission mode and transmission data.
5. the data transmission rate automatic test approach as described in claim 1 or 2 or 3, it is characterized in that: described step S20 also comprises according at least one transmission mode selected and multiple transmission data, and the transmission data selected are transmitted one by one under the same transmission mode selected.
6. data transmission rate automatic test approach as claimed in claim 5, it is characterized in that, described step S20 comprises further:
Step S211 reads current transmission mode;
Step S212 reads current transmission data;
Step S213 current transmission data are transmitted at current transmission mode;
Step S214 judges whether current transmission data complete transmission under current transmission mode;
If step S216 current transmission data complete transmission, then, after entering next transmission data, go to step S212; Otherwise, perform step S213.
7. the data transmission rate automatic test approach as described in claim 1 or 2 or 3, it is characterized in that: described step S20 also comprises according to the multiple transmission mode selected and at least one transmission data, and the transmission data selected are being selected to transmit under corresponding transmission mode one by one.
8. data transmission rate automatic test approach as claimed in claim 7, it is characterized in that, described step S20 comprises further:
Step S221 reads current transmission mode;
Step S222 reads current transmission data;
Step S223 current transmission data are transmitted at current transmission mode;
Step S224 judges whether the transmission data under current transmission mode complete transmission;
If the transmission data under step S226 current transmission mode complete transmission, then, after entering lower a kind of transmission mode, go to step S221; Otherwise, perform step S222.
9. the data transmission rate automatic test approach as described in claim 6 or 8, is characterized in that, described step S20 comprises further:
Step S231 reads current transmission mode;
Step S232 reads current transmission data;
Step S233 current transmission data are transmitted at current transmission mode;
Step S234 judges whether current transmission data complete transmission under current transmission mode;
If step S235 current transmission data complete transmission, then judge whether all transmission data under current transmission mode complete transmission; Otherwise, perform step S233;
If the transmission data under step S236 current transmission mode complete transmission, then perform step S238; Otherwise, after entering next transmission data, go to step S232;
Step S238 goes to step S231 after entering lower a kind of transmission mode.
10. the data transmission rate automatic test approach as described in claim 1 or 2 or 3, is characterized in that: described step S10 also comprises the operation of resolving user, obtains transmission mode, transmission data and the number of transmissions that user chooses;
Described step S20 also comprises according to the transmission mode selected, transmission data and the number of transmissions, and the transmission data selected transmit corresponding time under the transmission mode selected.
11. data transmission rate automatic test approach as claimed in claim 10, is characterized in that: described step S20 comprises further:
Step S241 reads current transmission mode;
Step S242 reads current transmission data;
Step S243 reads current transmission number;
Step S244 current transmission data are transmitted at current transmission mode;
Step S245 judges whether current transmission data complete transmission;
If step S2451 current transmission data complete transmission, then current transmission number adds 1; Otherwise, perform step S244;
Step S246 judgement adds the number of transmissions whether current transmission number after 1 equals to choose;
If step S2461 adds the current transmission number after 1 and is not equal to the number of transmissions chosen, then, after entering next transmission data, perform step S242.
12. data transmission rate automatic test approach as described in claim 1 or 2 or 3, is characterized in that: described transmission mode refers to: carry out between mobile phone and computer transmitting, carry out between SD card and computer transmitting, transmit between mobile phone and SD card at least choose one.
13. 1 kinds of application, as the intelligent terminal of the data transmission rate automatic test approach in claim 1 ~ 12 as described in any one, is characterized in that, comprising:
Acquisition module, this acquisition module resolves the operation of user, at least one transmission mode that acquisition user chooses and at least one transmission data;
Data transmission module, this data transmission module receives the transmission mode and transmission data that described acquisition module sends over, and the transmission data selected are transmitted by described data transmission module under the transmission mode selected;
Logging modle, this logging modle reads the transmission quantity of transmission data in data transmission module and transmission time, and the transmission quantity of record transmission data in transmitting procedure and transmission time;
Transfer rate test module, this transfer rate test module receives the transmission quantity and transmission time that described logging modle sends over, and tests out the transfer rate of data.
The intelligent terminal of 14. test data transfer rates automatically as claimed in claim 13, is characterized in that, also comprise:
File generating module, this file generating module reads the data transmission rate in described transfer rate test module, in the log file set the data transmission rate write read;
Report generation module, this report generation module reads the data transmission rate write in the log file in described file generating module, inserts in report template by the data transmission rate of reading;
Memory module, this memory module prestores multiple transmission mode and multiple transmission data, and is added in allocation list.
The intelligent terminal of 15. automatic test data transfer rates as described in claim 13 or 14, is characterized in that, also comprise:
Judge module, this judge module judges whether user has selected a kind of transmission mode and transmission data at least;
Reminding module, this reminding module receives the judged result that described judge module sends, and prompting user at least selects a kind of transmission mode and transmission data.
The intelligent terminal of 16. test data transfer rates automatically as claimed in claim 15, is characterized in that, also comprise:
Computing module, this computing module receives the judged result that described judge module sends, and adds 1 calculating to current transmission number, and the result after calculating is sent to described judge module by this computing module.
CN201510757508.0A 2015-11-10 2015-11-10 Data transmission rate automatic testing method and intelligent terminal Pending CN105306304A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510757508.0A CN105306304A (en) 2015-11-10 2015-11-10 Data transmission rate automatic testing method and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510757508.0A CN105306304A (en) 2015-11-10 2015-11-10 Data transmission rate automatic testing method and intelligent terminal

Publications (1)

Publication Number Publication Date
CN105306304A true CN105306304A (en) 2016-02-03

Family

ID=55203084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510757508.0A Pending CN105306304A (en) 2015-11-10 2015-11-10 Data transmission rate automatic testing method and intelligent terminal

Country Status (1)

Country Link
CN (1) CN105306304A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100265068B1 (en) * 1998-05-25 2000-09-01 윤종용 Real-time traffic monitoring and control method in asynchronous transmission mode switching node
CN101882099A (en) * 2009-05-06 2010-11-10 鸿富锦精密工业(深圳)有限公司 Network card test system and method
CN104320164A (en) * 2014-10-14 2015-01-28 宇龙计算机通信科技(深圳)有限公司 Data transmission method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100265068B1 (en) * 1998-05-25 2000-09-01 윤종용 Real-time traffic monitoring and control method in asynchronous transmission mode switching node
CN101882099A (en) * 2009-05-06 2010-11-10 鸿富锦精密工业(深圳)有限公司 Network card test system and method
CN104320164A (en) * 2014-10-14 2015-01-28 宇龙计算机通信科技(深圳)有限公司 Data transmission method and device

Similar Documents

Publication Publication Date Title
CN113127338A (en) Firmware testing method, server and computer readable storage medium
WO2017000424A1 (en) Protocol detection method and apparatus
CN108829647A (en) A kind of data transfer device and device
CN105022694B (en) Method for generating test case and system for mobile terminal test
CN111190596A (en) Joint debugging method and device, computer equipment and readable storage medium
CN105045714A (en) Method and device for testing starting duration of application software and terminal
CN103196464A (en) Testing system for vehicle-mounted multimedia terminal
CN112631937A (en) Automatic CAN operation testing method and device for T-Box
CN115408367A (en) Data testing method, storage medium and electronic device
CN111693294A (en) Vehicle detection method and device, terminal equipment and storage medium
CN111339231A (en) Method and device for processing crowdsourcing update result
CN114281624A (en) Method, system, device and equipment for testing I2C signal integrity
CN113126993B (en) Automatic test method and system applied to vehicle detection software
CN105306304A (en) Data transmission rate automatic testing method and intelligent terminal
CN111352821A (en) Service testing method, device, electronic equipment and computer readable storage medium
CN114461193B (en) Method, device, equipment and storage medium for generating communication protocol code
CN104615564A (en) Data transmission method based on QPI bus and computer system
CN114066331A (en) Shareholder investment information acquisition method and device, electronic equipment and storage medium
CN112579352A (en) Quality monitoring result generation method, storage medium and quality monitoring system of service data processing link
CN112579699A (en) Quality monitoring method, system and storage medium for service data processing link
CN111967274A (en) Label conversion processing method and device, electronic equipment and readable storage medium
CN116955195A (en) Power module debugging method and device, upper computer and storage medium
CN110990203A (en) Solid state disk testing method and device
CN115470214A (en) DBC file generation method and device and electronic equipment
CN114936905A (en) Flash memory screening method and device, storage medium and computer equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20160203