CN103268286B - The flow rate test method of application program, system and test machine in mobile terminal - Google Patents
The flow rate test method of application program, system and test machine in mobile terminal Download PDFInfo
- Publication number
- CN103268286B CN103268286B CN201310219016.7A CN201310219016A CN103268286B CN 103268286 B CN103268286 B CN 103268286B CN 201310219016 A CN201310219016 A CN 201310219016A CN 103268286 B CN103268286 B CN 103268286B
- Authority
- CN
- China
- Prior art keywords
- test
- flow
- application program
- mobile terminal
- test machine
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The present invention proposes flow rate test method, system and the test machine of application program in a kind of mobile terminal, and wherein this method comprises the following steps:Test machine is set up with mobile terminal and is connected, and obtains corresponding test case according to the application program to be measured run in mobile terminal;Test machine implementation of test cases, so that test case is communicated with application program to be measured;And test machine obtains the flow value information of test machine, and survey application program progress flow rate test is treated according to flow value information.Method according to embodiments of the present invention, test case corresponding with application program to be measured can be obtained by test machine, and implementation of test cases is to obtain the flow value information of test machine, and then survey application program progress flow rate test is treated according to flow value information, flow is realized to test automatically, and test machine is independent with mobile terminal function, and relevance is small, easily safeguard, reduce the human cost and time cost of flow rate test.
Description
Technical field
The present invention relates to a kind of flow survey of application program in mobile device manufacturing technology field, more particularly to mobile terminal
Method for testing, system and test machine.
Background technology
Growing with mobile terminal technology, increasing application program needs to use data flow in mobile terminal
Amount, therefore flow need to be tested to ensure that the data on flows that application program is used is normal.Journey is applied in current mobile terminal
The flow rate test method of sequence is mainly manual testing, artificial statistics and analyze data.
The problem of presently, there are is that the result of manual testing can be operated by tester to be influenceed, it is impossible to ensure each
Test process is all consistent, when carrying out manual analysis to mass data, it is necessary to expend a large amount of manpowers, and efficiency is low and error
Greatly, human cost and time cost are high, and it cannot be guaranteed that test quality.
The content of the invention
It is contemplated that at least solving one of above-mentioned technical problem.
Therefore, first purpose of the present invention is the flow rate test method for proposing application program in a kind of mobile terminal.
This method realizes flow and tested automatically without manually participating in, and test machine is independent with mobile terminal function, and relevance is small,
Easily safeguard, greatly reduce the human cost and time cost of flow rate test.
Second object of the present invention is the flow testing system for proposing application program in a kind of mobile terminal.
Third object of the present invention is to propose a kind of test machine.
To achieve these goals, in the mobile terminal of first aspect present invention embodiment application program flow rate test side
Method comprises the following steps:Test machine is set up with mobile terminal and is connected, and according to the application journey to be measured run in the mobile terminal
Sequence obtains corresponding test case;The test machine performs the test case so that the test case with it is described it is to be measured should
Communicated with program;And the test machine obtains the flow value information of the test machine, and according to the flow value information
Flow rate test is carried out to the application program to be measured.
The flow rate test method of application program in mobile terminal according to embodiments of the present invention, can by test machine obtain with
The corresponding test case of application program to be measured run in mobile terminal, and implementation of test cases is to obtain the flow value of test machine
Information, and then survey application program progress flow rate test is treated according to flow value information, without artificial participation, realize flow automatic
Test, and test machine is independent with mobile terminal function, and relevance is small, easily safeguards, greatly reduces the manpower of flow rate test
Cost and time cost.
To achieve these goals, in the mobile terminal of second aspect of the present invention embodiment application program flow rate test system
System, including:Operation has application program to be measured in mobile terminal, the mobile terminal;Test machine, the test machine and the movement
Terminal sets up connection, for obtaining corresponding test case according to the application program to be measured run in the mobile terminal, and holds
The row test case, so that the test case is communicated with the application program to be measured, and obtains the test machine
Flow value information, and flow rate test is carried out to the application program to be measured according to the flow value information.
The flow testing system of application program in mobile terminal according to embodiments of the present invention, test machine can be with mobile terminal
Connection is set up, and corresponding test case, and implementation of test cases are obtained according to the application program to be measured run in mobile terminal
Flow rate test is carried out to obtain the flow value information of test machine, and then survey application program is treated according to flow value information, without people
Work is participated in, and is realized flow and is tested automatically, improves the accuracy of flow rate test, and test machine and mobile terminal function are only
Vertical, relevance is small, easily safeguards, greatly reduces the human cost and time cost of flow rate test.
To achieve these goals, the test machine of third aspect present invention embodiment, including:Communication module, for shifting
Dynamic terminal sets up connection;Test case acquisition module, for being obtained according to the application program to be measured run in the mobile terminal
Corresponding test case;Test case performing module, for performing the test case, so that the test case is treated with described
Application program is surveyed to be communicated;And flow statistical module, the flow value information for obtaining the test machine, and according to described
Flow value information carries out flow rate test to the application program to be measured.
Test machine according to embodiments of the present invention, can be by test case acquisition module according to application program to be measured acquisition phase
The test case answered, and perform, and then the flow value information produced in test case implementation procedure can be obtained, and can be according to flow
Value information carries out flow rate test to application program to be measured, without artificial participation, realizes flow and tests automatically, and test machine with
Mobile terminal function is independent, and relevance is small, easily safeguards, greatly reduces the human cost and time cost of flow rate test.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description
Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments
Substantially and be readily appreciated that, wherein,
Fig. 1 is the flow chart of the flow rate test method of application program in mobile terminal according to an embodiment of the invention;
Fig. 2 is the flow of the flow rate test method of application program in mobile terminal in accordance with another embodiment of the present invention
Figure;
Fig. 3 is the flow of the flow rate test method of application program in the mobile terminal according to another embodiment of the invention
Figure;
Fig. 4 is the structural representation of the flow testing system of application program in mobile terminal according to an embodiment of the invention
Figure;
Fig. 5 is the structural representation of test machine according to an embodiment of the invention;
Fig. 6 is the structural representation of test machine in accordance with another embodiment of the present invention;
Fig. 7 is the structural representation of the test machine according to another embodiment of the invention.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end
Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached
The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not considered as limiting the invention.On the contrary, this
All changes in the range of spirit and intension that the embodiment of invention includes falling into attached claims, modification and equivalent
Thing.
In the description of the invention, it is to be understood that term " first ", " second " etc. be only used for describe purpose, without
It is understood that to indicate or imply relative importance.In the description of the invention, it is necessary to which explanation, is provided unless otherwise clear and definite
And restriction, term " connected ", " connection " should be interpreted broadly, for example, it may be fixedly connected or be detachably connected,
Or be integrally connected;Can be mechanical connection or electrical connection;Can be joined directly together, intermediary can also be passed through
It is indirectly connected to.For the ordinary skill in the art, the tool of above-mentioned term in the present invention can be understood with concrete condition
Body implication.In addition, in the description of the invention, unless otherwise indicated, " multiple " are meant that two or more.
Any process described otherwise above or method description are construed as in flow chart or herein, represent to include
Module, fragment or the portion of the code of one or more executable instructions for the step of realizing specific logical function or process
Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not be by shown or discussion suitable
Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Below with reference to the accompanying drawings describe the flow rate test method of application program in mobile terminal according to embodiments of the present invention, be
System and test machine.
The flow rate test method of application program is mainly measured data by forced convection and tested in current mobile terminal,
Thus the result of test can be operated by tester and influenceed, it is impossible to ensure that each test process is all consistent, and be worked as
, it is necessary to expend a large amount of manpowers when carrying out manual analysis to mass data, efficiency is low and error is big, human cost and time cost
Height, and it cannot be guaranteed that test quality.
It is proposed to this end that in a kind of mobile terminal application program flow rate test method, comprise the following steps:Test machine with
Mobile terminal sets up connection, and obtains corresponding test case according to the application program to be measured run in mobile terminal;Test machine
Implementation of test cases, so that test case is communicated with application program to be measured;And test machine obtains the flow value of test machine
Information, and survey application program progress flow rate test is treated according to flow value information.
Fig. 1 is the flow chart of the flow rate test method of application program in mobile terminal according to an embodiment of the invention.
As shown in figure 1, the flow rate test method of application program comprises the following steps in mobile terminal.
S101, test machine is set up with mobile terminal and is connected, and is obtained according to the application program to be measured run in mobile terminal
Corresponding test case.
In one embodiment of the invention, need to initialize test environment before test, it is specifically, first
First, the version of mobile terminal can be initialized by modes such as brush machines, then application journey to be measured is installed on mobile terminals
Sequence, and dispose the data such as video, audio, picture in test process needed for application program to be tested.When test machine passes through USB numbers
Set up according to the radio connection such as the wired connection modes such as line or bluetooth, WiFi and mobile terminal after connecting, can be according to mobile terminal
Type and the application program to be measured wherein run obtain the test case matched with mobile terminal and application program, test
Use-case obtains flexible and reusable, reduces testing cost.
S102, test machine implementation of test cases, so that test case is communicated with application program to be measured.
Specifically, test machine implementation of test cases, so that test case is communicated with application program to be measured, and controls to treat
Survey application program and complete corresponding test case execution, to generate the flow value produced during implementation of test cases.
S103, test machine obtains the flow value information of test machine, and treats survey application program progress according to flow value information
Flow rate test.
Specifically, test machine can obtain test case and interapplication communications to be measured in real time in test case implementation procedure
The flow value information of generation, and survey application program progress flow rate test is treated according to flow value information.Wherein, flow value information can
Including the real-time flow data in test phase.
The flow rate test method of application program in mobile terminal according to embodiments of the present invention, can by test machine obtain with
The corresponding test case of application program to be measured run in mobile terminal, and implementation of test cases is to obtain the flow value of test machine
Information, and then survey application program progress flow rate test is treated according to flow value information, without artificial participation, realize flow automatic
Test, and test machine is independent with mobile terminal function, and relevance is small, easily safeguards, greatly reduces the manpower of flow rate test
Cost and time cost.
Fig. 2 is the flow of the flow rate test method of application program in mobile terminal in accordance with another embodiment of the present invention
Figure.
In order to improve the accuracy of test result, test machine needs to be monitored the flow of test machine, when when default
When the flow volume change values of interior test machine are less than preset value, then judge that test case is finished, specifically, as shown in Fig. 2 moving
The flow rate test method of application program comprises the following steps in dynamic terminal.
S201, test machine is set up with mobile terminal and is connected, and is obtained according to the application program to be measured run in mobile terminal
Corresponding test case.
In one embodiment of the invention, need to initialize test environment before test, it is specifically, first
First, the version of mobile terminal can be initialized by modes such as brush machines, then application journey to be measured is installed on mobile terminals
Sequence, and dispose the data such as video, audio, picture in test process needed for application program to be tested.When test machine passes through USB numbers
Set up according to the radio connection such as the wired connection modes such as line or bluetooth, WiFi and mobile terminal after connecting, can be according to mobile terminal
Type and the application program to be measured wherein run obtain the test case matched with mobile terminal and application program, test
Use-case obtains flexible and reusable, reduces testing cost.
S202, test machine implementation of test cases, so that test case is communicated with application program to be measured.
Specifically, test machine implementation of test cases, so that test case is communicated with application program to be measured, and controls to treat
Survey application program and complete corresponding test case execution, to generate the flow value produced during implementation of test cases.
S203, test machine obtains the flow value information of test machine, and treats survey application program progress according to flow value information
Flow rate test.
Wherein, flow value information includes the real-time flow data in test phase.Specifically, test machine can be obtained in real time is surveying
The flow value produced in example implementation procedure on probation, and flow rate test is carried out to application program to be measured according to flow value.
S204, real-time streams spirogram is generated according to the real-time flow data in the testing time.
Specifically, test machine can generate real-time streams spirogram according to the real-time flow data in the testing time, and pass through test machine
Display device show real-time streams spirogram in real time.
S205, test machine is monitored to the flow of test machine.
Specifically, test machine can be monitored to the flow of test machine, and then can be judged according to the change of real-time flow data
Whether the flow produced by test machine implementation of test cases terminates.
S206, when the flow volume change values of the test machine in preset time are less than preset value, test machine judges test case
It is finished.
Specifically, when the flow value changes of the test machine in preset time are less than preset value, illustrate test case with treating
Sign off between test program, then test case be finished, wherein, preset value can be test machine default value or
Tester oneself setting.If for example, preset time is 5 seconds, when the flow volume change values of the test machine in continuous 5 seconds are less than
During preset value, then the flow produced by test case implementation procedure terminates, and then can determine whether that test case is finished.
The flow rate test method of application program in mobile terminal according to embodiments of the present invention, can pass through the stream to test machine
Amount is monitored, and when the flow volume change values of test machine are less than preset value in preset time, judges that test case is finished,
It can accurately determine to test the end time, improve the accuracy of test result, realize flow and test automatically, and test machine
Independent with mobile terminal function, relevance is small, easily safeguards, greatly reduces the human cost and time cost of flow rate test.
Fig. 3 is the flow of the flow rate test method of application program in the mobile terminal according to another embodiment of the invention
Figure.
In order to further improve the accuracy of test result, test machine need to according to preserved in flow and test machine it is to be measured should
Judge to test whether exception with the corresponding historical traffic of program, specifically, as shown in figure 3, in mobile terminal application program stream
Weight testing method comprises the following steps.
S301, test machine is set up with mobile terminal and is connected, and is obtained according to the application program to be measured run in mobile terminal
Corresponding test case.
In one embodiment of the invention, need to initialize test environment before test, it is specifically, first
First, the version of mobile terminal can be initialized by modes such as brush machines, then application journey to be measured is installed on mobile terminals
Sequence, and dispose the data such as video, audio, picture in test process needed for application program to be tested.When test machine passes through USB numbers
Set up according to the radio connection such as the wired connection modes such as line or bluetooth, WiFi and mobile terminal after connecting, can be according to mobile terminal
Type and the application program to be measured wherein run obtain the test case matched with mobile terminal and application program, test
Use-case obtains flexible and reusable, reduces testing cost.
S302, test machine implementation of test cases, so that test case is communicated with application program to be measured.
Specifically, test machine implementation of test cases, so that test case is communicated with application program to be measured, and controls to treat
Survey application program and complete corresponding test case execution, to generate the flow value produced during implementation of test cases.
S303, test machine obtains the flow value information of test machine, and treats survey application program progress according to flow value information
Flow rate test.
Wherein, flow value information may include the real-time flow data in test phase.Specifically, test machine can be obtained in real time
The flow value produced in test case implementation procedure, and flow rate test is carried out to application program to be measured according to flow value.
S304, real-time streams spirogram is generated according to the real-time flow data in the testing time.
Specifically, test machine can generate real-time streams spirogram according to the real-time flow data in the testing time, and pass through test machine
Display device show real-time streams spirogram in real time.
S305, test machine is monitored to the flow of test machine.
Specifically, test machine can be monitored to the flow of test machine, and then can be judged according to the change of real-time flow data
Whether the flow produced by test machine implementation of test cases terminates.
S306, when the flow volume change values of the test machine in preset time are less than preset value, then test machine judges that test is used
Example is finished.
Specifically, when the flow value changes of the test machine in preset time are less than preset value, illustrate test case with treating
Sign off between test program, then test case be finished, wherein, preset value can be test machine default value or
Tester oneself setting.If for example, preset time is 5 seconds, when the flow volume change values of the test machine in continuous 5 seconds are less than
During preset value, then the flow produced by test case implementation procedure terminates, and then can determine whether that test case is finished.
S307, test machine obtains the flow in test phase.
Specifically, test machine can obtain total stream that test case is produced with interapplication communications to be measured in test phase
Amount.
S308, test machine judges to test according to the corresponding historical traffic of the application program to be measured preserved in flow and test machine
It is whether abnormal.
In one embodiment of the invention, test machine can have multiple verification engines, and each verification engine has respective
Verification rule, and verification engine is used to judge to survey according to itself verification rule, the flow in test phase and historical traffic
Whether examination is abnormal.Specifically, each verification engine can be used according to each test in the verification rule judgment of itself this test phase
Whether the data difference of the historical traffic preserved in total flow and test machine that example is produced when being performed exceedes predetermined threshold value, if
Exceed, then judge this time to test abnormal.
S309, if it is determined that it is abnormal, then re-execute test case.
Specifically, if it is determined that this time testing abnormal, then need to re-execute test case, and performed according to test case
The flow value information produced in journey re-starts test.
Thus, extraneous many factors can be avoided(What such as other applications burst flow, network environment were caused retries)
Interference to flow rate test, further increases the accuracy of flow rate test.
The flow rate test method of application program in mobile terminal according to embodiments of the present invention, test machine can be according to this survey
The historical traffic preserved in examination flow and test machine judges to test whether exception, if it is determined that exception, then re-execute test and use
Example, further increases the accuracy of flow rate test, realizes flow and test automatically, and test machine and mobile terminal function are only
Vertical, relevance is small, easily safeguards, greatly reduces the human cost and time cost of flow rate test.
In order to realize above-described embodiment, the present invention also proposes a kind of flow testing system of application program in mobile terminal.
The flow testing system of application program in a kind of mobile terminal, including:Operation needs in mobile terminal, mobile terminal
Survey application program;Test machine, test machine is set up with mobile terminal and is connected, for according to the application journey to be measured run in mobile terminal
Sequence obtains corresponding test case, and implementation of test cases, so that test case is communicated with application program to be measured, and obtains
The flow value information of test machine is taken, and survey application program is treated according to flow value information and carries out flow rate test.
Fig. 4 is the structural representation of the flow testing system of application program in mobile terminal according to an embodiment of the invention
Figure.
As shown in figure 4, the flow testing system of application program includes in mobile terminal:Mobile terminal 1 00 and test machine
200。
Specifically, operation has application program to be measured in mobile terminal 1 00.
Test machine 200 is set up with mobile terminal 1 00 and is connected, for according to the application journey to be measured run in mobile terminal 1 00
Sequence obtains corresponding test case, and implementation of test cases, so that test case is communicated with application program to be measured, and obtains
The flow value information of test machine 200 is taken, and survey application program is treated according to flow value information and carries out flow rate test.The present invention's
In one embodiment, need to initialize test environment before test, specifically, first, the modes such as brush machine can be passed through
The version of mobile terminal 1 00 is initialized, then application program to be measured is installed in mobile terminal 1 00, and dispose test
During the data such as video, audio, picture needed for application program to be tested.When test machine 200 is wired by USB data line etc.
The radio connection such as connected mode or bluetooth, WiFi and mobile terminal are set up connect after, can according to the type of mobile terminal 1 00 with
And the application program to be measured wherein run obtains the test case matched with mobile terminal 1 00 and application program, test case
Obtain flexible and reusable, reduce testing cost.
In one embodiment of the invention, flow value information may include the real-time flow data in test phase, test machine
200 are additionally operable to generate real-time streams spirogram according to the real-time flow data in the testing time, and real by the display device of test machine 200
When show real-time streams spirogram, test machine 200 can be also monitored to flow, when in preset time test machine 200 flow become
When change value is less than preset value, judge that test case is finished.More specifically, when the flow of the test machine 200 in preset time
When value changes are less than preset value, illustrate sign off between test case and program to be tested, then test case is finished, its
In, preset value can be test machine default value or tester oneself setting.If for example, preset time be 5 seconds,
When the flow volume change values of the test machine in continuous 5 seconds are less than preset value, then the flow knot produced by test case implementation procedure
Beam, and then can determine whether that test case is finished.
In one embodiment of the invention, test machine 200 is additionally operable to obtain the flow in test phase, and according to stream
When amount historical traffic corresponding with the application program to be measured preserved in test machine 200 judges that test is abnormal, re-execute test and use
Example.Wherein, test machine 200 can have multiple verification engines, and each verification engine has respective verification rule, and verification engine
Judge to test whether exception for the flow and historical traffic that verify in regular, test phase according to itself.More specifically, surveying
Test-run a machine 200 can obtain the total flow that test case is produced with interapplication communications to be measured in test phase, when verification engine root
According to being protected in the total flow and test machine produced when each test case is performed in the verification rule judgment of itself this test phase
When the data difference for the historical traffic deposited exceedes predetermined threshold value, judge this time to test abnormal, and implementation of test cases again, and
Flow value information according to being produced in test case implementation procedure re-starts test.Thus, extraneous many factors can be avoided(Such as
What other applications burst flow, network environment were caused retries)Interference to flow rate test, further increases flow survey
The accuracy of examination.
The flow testing system of application program in mobile terminal according to embodiments of the present invention, test machine can be with mobile terminal
Connection is set up, and corresponding test case, and implementation of test cases are obtained according to the application program to be measured run in mobile terminal
Flow rate test is carried out to obtain the flow value information of test machine, and then survey application program is treated according to flow value information, without people
Work is participated in, and is realized flow and is tested automatically, improves the accuracy of flow rate test, and test machine and mobile terminal function are only
Vertical, relevance is small, easily safeguards, greatly reduces the human cost and time cost of flow rate test.
In order to realize above-described embodiment, the present invention proposes a kind of test machine again.
A kind of test machine, including:Communication module, is connected for being set up with mobile terminal;Test case acquisition module, is used for
Corresponding test case is obtained according to the application program to be measured run in mobile terminal;Test case performing module, for performing
Test case, so that test case is communicated with application program to be measured;And flow statistical module, for obtaining test machine
Flow value information, and survey application program progress flow rate test is treated according to flow value information.
Fig. 5 is the structural representation of test machine according to an embodiment of the invention.
As shown in figure 5, test machine, including:Communication module 210, test case acquisition module 220, test case perform mould
Block 230 and flow statistical module 240.
Specifically, communication module 210 is used to set up with mobile terminal and is connected.More specifically, communication module 210 can pass through
The radio connection such as the wired connection modes such as USB data line or bluetooth, WiFi is set up with mobile terminal and is connected.
Test case acquisition module 220 is used to obtain corresponding test according to the application program to be measured run in mobile terminal
Use-case.In one embodiment of the invention, after communication module 210 and mobile terminal, which are set up, to be connected, test case acquisition module
220 can obtain and mobile terminal and application program phase according to the type of mobile terminal and the application program to be measured wherein run
The test case matched somebody with somebody, test case obtains flexible and reusable, reduces testing cost.
Test case performing module 230 is used for implementation of test cases, so that test case is led to application program to be measured
Letter.More specifically, the implementation of test cases of test case performing module 230, so that test case is led to application program to be measured
Letter, and control application program to be measured to complete corresponding test case execution, to generate the flow value produced during implementation of test cases.
Flow statistical module 240 is used for the flow value information for obtaining test machine, and treats survey application according to flow value information
Program carries out flow rate test.Wherein, flow value information may include the real-time flow data in test phase.More specifically, flow is united
Meter module 240 can obtain the flow value information produced in test case implementation procedure in real time, and can be according to flow value information pair
Application program to be measured carries out flow rate test.
Test machine according to embodiments of the present invention, can be by test case acquisition module according to application program to be measured acquisition phase
The test case answered, and perform, and then the flow value information produced in test case implementation procedure can be obtained, and can be according to flow
Value information carries out flow rate test to application program to be measured, without artificial participation, realizes flow and tests automatically, and test machine with
Mobile terminal function is independent, and relevance is small, easily safeguards, greatly reduces the human cost and time cost of flow rate test.
Fig. 6 is the structural representation of test machine in accordance with another embodiment of the present invention.
As shown in fig. 6, test machine also includes on the basis of embodiment illustrated in fig. 5:First test module 250 and monitoring mould
Block 260.
Specifically, the first test module 250 is used to generate real-time streams spirogram according to the real-time flow data in the testing time.More
Specifically, the first test module 250 can generate real-time streams spirogram according to the real-time flow data in the testing time, and pass through test machine
Display device show real-time streams spirogram in real time.
Monitoring module 260 is used to be monitored the flow of test machine, and when the flow of the test machine in preset time becomes
When change value is less than preset value, judge that test case is finished.More specifically, monitoring module 260 can monitor real-time flow data
Changing value, when the flow value changes of the test machine in preset time are less than preset value, illustrates test case and program to be tested
Between sign off, then test case be finished, wherein, preset value can be test machine default value or tester
Oneself setting.If for example, preset time is 5 seconds, when the flow volume change values of the test machine in continuous 5 seconds are less than preset value
When, then the flow produced by test case implementation procedure terminates, and then can determine whether that test case is finished.
Test machine according to embodiments of the present invention, can be monitored by monitoring module to the flow of test machine, and be worked as
When the flow volume change values of test machine are less than preset value in preset time, judge that test case is finished, can accurately determine to survey
The end time is tried, the accuracy of test result is improved, realizes flow and test automatically, and test machine and mobile terminal function
Independent, relevance is small, easily safeguards, greatly reduces the human cost and time cost of flow rate test.
Fig. 7 is the structural representation of the test machine according to another embodiment of the invention.
As shown in fig. 7, test machine also includes the second test module 270 on the basis of embodiment illustrated in fig. 6.
Specifically, the second test module 270 is used to obtain the flow in test phase, and according in flow and test machine
When the corresponding historical traffic of application program to be measured preserved judges that test is abnormal, held again by test case performing module 230
Row test case.
In one embodiment of the invention, the second test module 270 can have multiple verification engines, each verify engine
With respective verification rule, and verification engine is used for the verification rule according to itself, flow and history stream in test phase
Amount judgement tests whether exception.Answered more specifically, the second test module 270 can obtain the test case in test phase with to be measured
The total flow produced with interprogram communication, each verification engine can be according to each surveying in the verification rule judgment of itself this test phase
Whether the data difference of the historical traffic preserved in total flow and test machine that example on probation is produced when being performed exceedes predetermined threshold value,
If it does, then judge this time to test abnormal, at this time, it may be necessary to test case is re-executed, and according to test case implementation procedure
The flow value information of middle generation re-starts test.Thus, extraneous many factors can be avoided(Such as other applications burst flow
What amount, network environment were caused retries)Interference to flow rate test, further increases the accuracy of flow rate test.
Test machine according to embodiments of the present invention, can be by the second test module according in this test flow and test machine
The historical traffic of preservation judges to test whether exception, and re-executes test case when testing abnormal, further increases stream
The accuracy of examination is measured, flow is realized and tests automatically, and test machine is independent with mobile terminal function, and relevance is small, easily
Safeguard, greatly reduce the human cost and time cost of flow rate test.
It should be appreciated that in an embodiment of the present invention, mobile terminal can be mobile phone, tablet personal computer, personal digital assistant,
E-book etc. has the hardware device of various operating systems.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned
In embodiment, the software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage
Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware
Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal
Discrete logic, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array(PGA), scene
Programmable gate array(FPGA)Deng.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means to combine specific features, structure, material or the spy that the embodiment or example are described
Point is contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not
Necessarily refer to identical embodiment or example.Moreover, specific features, structure, material or the feature of description can be any
One or more embodiments or example in combine in an appropriate manner.
Although an embodiment of the present invention has been shown and described, it will be understood by those skilled in the art that:Not
In the case of departing from the principle and objective of the present invention a variety of change, modification, replacement and modification can be carried out to these embodiments, this
The scope of invention is limited by claim and its equivalent.
Claims (9)
1. the flow rate test method of application program in a kind of mobile terminal, it is characterised in that comprise the following steps:
Test machine is set up with mobile terminal and is connected, and obtains corresponding according to the application program to be measured run in the mobile terminal
Test case, wherein, after the test machine and the mobile terminal are set up and be connected, the test machine is according to the mobile terminal
Type and the application program to be measured of operation obtain the institute matched with the mobile terminal and the application program to be measured
State test case;
The test machine performs the test case, so that the test case is communicated with the application program to be measured;
The test machine obtains the flow value information of the test machine, and according to the flow value information to the application journey to be measured
Sequence carries out flow rate test;
The test machine is monitored to the flow of the test machine;
When the flow volume change values of the test machine in preset time are less than preset value, the test machine judges that the test is used
Example is finished;The test machine obtains the flow in test phase;
The test machine is according to the corresponding historical traffic of the application program to be measured preserved in the flow and the test machine
Judgement tests whether exception, wherein the Measurer has multiple verification engines, each verification engine has respective school
Test rule, and each verification engine is performed according to each test case in the verification rule judgment of itself this test phase
When the total flow that produces and the data difference of the historical traffic preserved in test machine whether exceed predetermined threshold value, if it exceeds described
Predetermined threshold value, then judge that test is abnormal;And
If it is determined that it is abnormal, then the test case is re-executed, and according to the flow value produced in test case implementation procedure
Information re-starts test.
2. the method as described in claim 1, it is characterised in that the flow value information includes the real-time traffic in test phase
Value.
3. method as claimed in claim 2, it is characterised in that also include:
Real-time streams spirogram is generated according to the real-time flow data in the test phase.
4. the flow testing system of application program in a kind of mobile terminal, it is characterised in that including:
Operation has application program to be measured in mobile terminal, the mobile terminal;And
Test machine, the test machine is set up with the mobile terminal and is connected, for be measured according to what is run in the mobile terminal
Application program obtains corresponding test case, and performs the test case, so that the test case and the application to be measured
Program is communicated, and obtains the flow value information of the test machine, and according to the flow value information to it is described it is to be measured should
Flow rate test is carried out with program, wherein, after the test machine and the mobile terminal are set up and be connected, the test machine is according to institute
The application program to be measured for stating mobile terminal model and operation is obtained and the mobile terminal and the application program to be measured
The test case matched;
The test machine, is additionally operable to be monitored the flow of the test machine, and when the test machine in preset time
When flow volume change values are less than preset value, judge that the test case is finished;
The test machine, is additionally operable to obtain the flow in test phase, and preserve according in the flow and the test machine
The application program to be measured corresponding historical traffic when judging that test is abnormal, re-execute the test case, and according to survey
The flow value information produced in example implementation procedure on probation re-starts test, wherein the Measurer has multiple verification engines,
Each verification engine has respective verification rule, and each verification engine is according to the verification rule judgment sheet of itself
The data difference of the historical traffic preserved in the total flow and test machine that are produced when each test case is performed in test phase
Whether predetermined threshold value is exceeded, if it exceeds the predetermined threshold value, then judge that test is abnormal.
5. system as claimed in claim 4, it is characterised in that the flow value information includes the real-time traffic in test phase
Value.
6. system as claimed in claim 5, it is characterised in that the test machine, is additionally operable to according in the test phase
Real-time flow data generates real-time streams spirogram.
7. a kind of test machine, it is characterised in that including:
Communication module, is connected for being set up with mobile terminal;
Test case acquisition module, is used for obtaining corresponding test according to the application program to be measured run in the mobile terminal
Example, wherein, the test machine and the mobile terminal foundation be connected after, the test machine according to the mobile terminal model with
And the application program to be measured of operation obtains the test matched with the mobile terminal and the application program to be measured
Use-case;
Test case performing module, for performing the test case, so that the test case and the application program to be measured
Communicated;And
Flow statistical module, the flow value information for obtaining the test machine, and treated according to the flow value information to described
Survey application program and carry out flow rate test;
Monitoring module, is monitored for the flow to the test machine, and when the flow of the test machine in preset time
When changing value is less than preset value, judge that the test case is finished;
Second test module, is preserved for obtaining the flow in test phase, and according in the flow and the test machine
The application program to be measured corresponding historical traffic when judging that test is abnormal, held again by the test case performing module
The row test case, and test is re-started according to the flow value information produced in test case implementation procedure, wherein described
Second test module has multiple verification engines, and each verification engine has respective verification rule, and each school
Engine is tested according to the total flow and survey produced when each test case is performed in the verification rule judgment of itself this test phase
Whether the data difference of the historical traffic preserved in test-run a machine exceedes predetermined threshold value, if it exceeds the predetermined threshold value, then judge to survey
Examination is abnormal.
8. test machine as claimed in claim 7, it is characterised in that the flow value information includes the real-time streams in test phase
Value.
9. test machine as claimed in claim 8, it is characterised in that also include:
First test module, for generating real-time streams spirogram according to the real-time flow data in the test phase.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310219016.7A CN103268286B (en) | 2013-06-04 | 2013-06-04 | The flow rate test method of application program, system and test machine in mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310219016.7A CN103268286B (en) | 2013-06-04 | 2013-06-04 | The flow rate test method of application program, system and test machine in mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103268286A CN103268286A (en) | 2013-08-28 |
CN103268286B true CN103268286B (en) | 2017-08-18 |
Family
ID=49011917
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310219016.7A Active CN103268286B (en) | 2013-06-04 | 2013-06-04 | The flow rate test method of application program, system and test machine in mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103268286B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105227391B (en) * | 2014-06-30 | 2017-11-21 | 腾讯科技(深圳)有限公司 | The traffic statistic function method of testing and system of application program |
CN105577462B (en) * | 2014-10-10 | 2018-08-31 | 阿里巴巴集团控股有限公司 | The flow statistical method and device of mobile device |
CN105022694B (en) * | 2015-08-19 | 2018-07-13 | 上海斐讯数据通信技术有限公司 | Method for generating test case and system for mobile terminal test |
CN107547309B (en) * | 2017-08-21 | 2020-09-04 | 奇安信科技集团股份有限公司 | Automatic testing method and device for security gateway performance |
CN109144855A (en) * | 2018-07-27 | 2019-01-04 | 南昌黑鲨科技有限公司 | Mobile terminal master control MMI test method and device |
CN111614514B (en) * | 2020-04-30 | 2021-09-24 | 北京邮电大学 | Network traffic identification method and device |
CN114221850A (en) * | 2021-12-22 | 2022-03-22 | 广东安创信息科技开发有限公司 | Flow monitoring method based on server |
CN117729055A (en) * | 2024-02-08 | 2024-03-19 | 中汽智联技术有限公司 | Network flow statistics method and system based on Linux process |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101242286A (en) * | 2007-02-06 | 2008-08-13 | 信息产业部通信计量中心 | Accurate detection method for data communication network billing |
CN102014031A (en) * | 2010-12-31 | 2011-04-13 | 湖南神州祥网科技有限公司 | Method and system for network flow anomaly detection |
CN102938800A (en) * | 2012-11-07 | 2013-02-20 | 大唐移动通信设备有限公司 | System and method for automatically testing wireless communication quality |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103117903B (en) * | 2013-02-07 | 2016-01-06 | 中国联合网络通信集团有限公司 | Surfing flow method for detecting abnormality and device |
-
2013
- 2013-06-04 CN CN201310219016.7A patent/CN103268286B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101242286A (en) * | 2007-02-06 | 2008-08-13 | 信息产业部通信计量中心 | Accurate detection method for data communication network billing |
CN102014031A (en) * | 2010-12-31 | 2011-04-13 | 湖南神州祥网科技有限公司 | Method and system for network flow anomaly detection |
CN102938800A (en) * | 2012-11-07 | 2013-02-20 | 大唐移动通信设备有限公司 | System and method for automatically testing wireless communication quality |
Non-Patent Citations (1)
Title |
---|
基于异常流量监测的智能手机恶意软件检测研究;洪云峰 等;《计算机安全》;20120930(第9期);第11-14页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103268286A (en) | 2013-08-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103268286B (en) | The flow rate test method of application program, system and test machine in mobile terminal | |
Klis et al. | Vibration monitoring via spectro-temporal compressive sensing for wireless sensor networks | |
US10127740B2 (en) | Inspection apparatus, inspection system, and inspection method | |
CN108205114B (en) | Method and system for predicting service life of battery | |
CN109933852B (en) | Method and device for predicting vehicle size deviation, storage medium and electronic equipment | |
CN107944211A (en) | Service life acceleration model creation method, device and lifetime estimation method | |
ATE450830T1 (en) | SENSOR FAULT DIAGNOSIS AND PREDICTION USING A COMPONENT MODEL AND TIMESCALE ORTHOGONAL DEVELOPMENTS | |
CN108064391B (en) | A kind of method for quick predicting and its quick predict device of battery cycle life | |
EP2141560A3 (en) | System and method for predicting system events and deterioration | |
CN103914353A (en) | Combined test method for combining software reliability tests with hardware reliability tests | |
Rohner et al. | Evaluating battery models in wireless sensor networks | |
CN102494695A (en) | High-efficiency MTBF (Mean Time Between Failures) proof test method applied to ship navigation product | |
JP2008524595A5 (en) | ||
WO2019049406A1 (en) | Failure probability evaluation system | |
CN105785965B (en) | A kind of entire new energy automobile control strategy and Instruction Network Test System Platform | |
CN110658393A (en) | Comprehensive evaluation method for accelerated life of electronic control device | |
CN108845952A (en) | A kind of avionics FC data stimuli method based on test case script | |
CN106886440A (en) | The version updating method of testing and device of a kind of BMC | |
CN104317263A (en) | Concrete construction vibration trajectory control method | |
CN103024790B (en) | Network communication quality automated testing method and system | |
CN106885702A (en) | A kind of rail transit rolling stock equipment life appraisal procedure | |
CN107478433B (en) | Combined HIL (hardware in the loop) test system and control method thereof | |
CN116227248B (en) | Digital twin body construction method and device of gravity energy storage system and electronic equipment | |
CN110505352B (en) | Call quality testing method, system, computer device and computer storage medium | |
Calderón et al. | GPRS telemetry system for high-efficiency electric competition vehicles |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |