CN103268286A - Method, system and testing machine for testing flow of application program in mobile terminal - Google Patents
Method, system and testing machine for testing flow of application program in mobile terminal Download PDFInfo
- Publication number
- CN103268286A CN103268286A CN2013102190167A CN201310219016A CN103268286A CN 103268286 A CN103268286 A CN 103268286A CN 2013102190167 A CN2013102190167 A CN 2013102190167A CN 201310219016 A CN201310219016 A CN 201310219016A CN 103268286 A CN103268286 A CN 103268286A
- Authority
- CN
- China
- Prior art keywords
- test
- flow
- application program
- test machine
- 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.)
- Granted
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The invention provides a method and system for testing the flow of an application program in a mobile terminal and a testing machine for testing the flow of the application program in the mobile terminal. The method includes the steps that the testing machine is connected with the mobile terminal and a corresponding testing case is obtained according to a running application program to be test in the mobile terminal; the testing machine executes the testing case so as to enable the testing case to be communicated with the application program to be tested; the testing machine obtains flow value information of the testing machine and conducts flow testing on the application program to be tested according to the flow value information. According to the method, the testing machine can be used for obtaining the testing case which corresponds to the application program to be tested and executes the testing case to obtain the flow value information, then a flow test is conducted on the application program to be tested according to the flow value information, so that a flow automatic test is achieved. Besides, the testing machine and the mobile terminal are independent in function, relevance is small, maintaining is easy, and labor cost and time cost of the flow test are reduced.
Description
Technical field
The present invention relates to mobile device manufacturing technology field, relate in particular to flow rate test method, system and the test machine of application program in a kind of portable terminal.
Background technology
Growing along with the portable terminal technology, increasing application program need be used data traffic in the portable terminal, therefore needs test to guarantee that to flow the data on flows that application program uses is normal.The flow rate test method of application program mainly is the manual testing in the portable terminal at present, and complicate statistics is also analyzed data.
The problem that exists is at present, manual testing's result can be subjected to the influence of tester's operation, can not guarantee that each test process all is consistent, when mass data is carried out manual analysis, need expend a large amount of manpowers, efficient is low and error is big, human cost and time cost height, and can not guarantee test mass.
Summary of the invention
The present invention is intended to one of solve the problems of the technologies described above at least.
For this reason, first purpose of the present invention is to propose the flow rate test method of application program in a kind of portable terminal.This method need not artificial participation, has realized that flow tests automatically, and test machine and mobile terminal function are independent, and relevance is little, safeguards easily, greatly reduces human cost and the time cost of flow rate test.
Second purpose of the present invention is to propose the flow testing system of application program in a kind of portable terminal.
The 3rd purpose of the present invention is to propose a kind of test machine.
To achieve these goals, the flow rate test method of application program may further comprise the steps in the portable terminal of first aspect present invention embodiment: test machine and portable terminal connect, and obtain corresponding test case according to the application program of moving in the described portable terminal to be measured; Described test machine is carried out described test case, so that described test case and described application program to be measured communicate; And described test machine obtains the flow value information of described test machine, and according to described flow value information described application program to be measured carried out flow rate test.
Flow rate test method according to application program in the portable terminal of the embodiment of the invention, can by test machine obtain with portable terminal in the corresponding test case of application program to be measured moved, and implementation of test cases is to obtain the flow value information of test machine, and then according to flow value information application program to be measured is carried out flow rate test, need not artificial participation, realized that flow tests automatically, and test machine and mobile terminal function are independent, relevance is little, safeguard easily, greatly reduce human cost and the time cost of flow rate test.
To achieve these goals, the flow testing system of application program in the portable terminal of second aspect present invention embodiment comprises: portable terminal, and operation has application program to be measured in the described portable terminal; Test machine, described test machine and described portable terminal connect, be used for obtaining corresponding test case according to the application program to be measured that described portable terminal moves, and carry out described test case, so that described test case and described application program to be measured communicate, and the flow value information of obtaining described test machine, and according to described flow value information described application program to be measured is carried out flow rate test.
Flow testing system according to application program in the portable terminal of the embodiment of the invention, test machine can connect with portable terminal, and obtain corresponding test case according to the application program of moving in the portable terminal to be measured, and implementation of test cases is to obtain the flow value information of test machine, and then according to flow value information application program to be measured is carried out flow rate test, need not artificial participation, realized that flow tests automatically, improved the degree of accuracy of flow rate test, and test machine and mobile terminal function are independent, relevance is little, safeguards easily, greatly reduces human cost and the time cost of flow rate test.
To achieve these goals, the test machine of third aspect present invention embodiment comprises: communication module is used for connecting with portable terminal; The test case acquisition module is used for obtaining corresponding test case according to the application program to be measured that described portable terminal moves; The test case execution module is used for carrying out described test case, so that described test case and described application program to be measured communicate; And the traffic statistics module, be used for obtaining the flow value information of described test machine, and according to described flow value information described application program to be measured carried out flow rate test.
Test machine according to the embodiment of the invention, can obtain corresponding test case according to application program to be measured by the test case acquisition module, and carry out, and then can obtain the flow value information that produces in the test case implementation, and can carry out flow rate test to application program to be measured according to flow value information, need not artificial participation, realized that flow tests automatically, and test machine and mobile terminal function are independent, relevance is little, safeguard easily, greatly reduce human cost and the time cost of flow rate test.
The aspect that the present invention adds and advantage part in the following description provide, and part will become obviously from the following description, or recognize by practice of the present invention.
Description of drawings
Above-mentioned and/or the additional aspect of the present invention and advantage be from obviously and easily understanding becoming the description of embodiment below in conjunction with accompanying drawing, wherein,
Fig. 1 is the process flow diagram of the flow rate test method of application program in the portable terminal according to an embodiment of the invention;
Fig. 2 is the process flow diagram of the flow rate test method of application program in the portable terminal in accordance with another embodiment of the present invention;
Fig. 3 is the process flow diagram of the flow rate test method of application program in the portable terminal of another embodiment according to the present invention;
Fig. 4 is the structural representation of the flow testing system of application program in the portable terminal according to an embodiment of the invention;
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 of another embodiment according to the present invention.
Embodiment
Describe embodiments of the invention below in detail, the example of described embodiment is shown in the drawings, and wherein identical or similar label is represented identical or similar elements or the element with identical or similar functions from start to finish.Be exemplary below by the embodiment that is described with reference to the drawings, only be used for explaining the present invention, and can not be interpreted as limitation of the present invention.On the contrary, embodiments of the invention comprise spirit and interior all changes, modification and the equivalent of intension scope that falls into institute's additional claims.
In description of the invention, it will be appreciated that term " first ", " second " etc. only are used for describing purpose, and can not be interpreted as indication or hint relative importance.In description of the invention, need to prove that unless clear and definite regulation and restriction are arranged in addition, term " links to each other ", " connection " should do broad understanding, for example, can be fixedly connected, also can be to removably connect, or connect integratedly; Can be mechanical connection, also can be to be electrically connected; Can be directly to link to each other, also can link to each other indirectly by intermediary.For the ordinary skill in the art, can concrete condition understand above-mentioned term concrete implication in the present invention.In addition, in description of the invention, except as otherwise noted, the implication of " a plurality of " is two or more.
Describe and to be understood that in the process flow diagram or in this any process of otherwise describing or method, expression comprises module, fragment or the part of code of the executable instruction of the step that one or more is used to realize specific logical function or process, and the scope of preferred implementation of the present invention comprises other realization, wherein can be not according to order shown or that discuss, comprise according to related function by the mode of basic while or by opposite order, carry out function, this should be understood by the embodiments of the invention person of ordinary skill in the field.
Below with reference to flow rate test method, system and the test machine of accompanying drawing description according to application program in the portable terminal of the embodiment of the invention.
The flow rate test method of application program mainly is to measure data by the forced convection to test in the portable terminal at present, thereby the result of test can be subjected to the influence of tester's operation, can not guarantee that each test process all is consistent, and when mass data is carried out manual analysis, need expend a large amount of manpowers, efficient is low and error is big, human cost and time cost height, and can not guarantee test mass.
For this reason, proposed the flow rate test method of application program in a kind of portable terminal, may further comprise the steps: test machine and portable terminal connect, and obtain corresponding test case according to the application program of moving in the portable terminal to be measured; The test machine implementation of test cases is so that test case and application program to be measured communicate; And test machine obtains the flow value information of test machine, and according to flow value information application program to be measured carried out flow rate test.
Fig. 1 is the process flow diagram of the flow rate test method of application program in the portable terminal according to an embodiment of the invention.
As shown in Figure 1, the flow rate test method of application program may further comprise the steps in the portable terminal.
S101, test machine and portable terminal connect, and obtain corresponding test case according to the application program of moving in the portable terminal to be measured.
In one embodiment of the invention, before test, need test environment is carried out initialization, particularly, at first, can carry out initialization to the version of portable terminal by modes such as brush machines, at portable terminal application program to be measured is installed then, and disposes data such as the required video of application program to be tested in the test process, audio frequency, picture.After test machine is set up company by wireless connections modes such as wired connection mode such as usb data line or bluetooth, WiFi and portable terminal, can obtain the test case that is complementary with portable terminal and application program according to the application program to be measured of the type of portable terminal and wherein operation, test case is obtained flexibly, and reusable, reduced testing cost.
S102, the test machine implementation of test cases is so that test case and application program to be measured communicate.
Particularly, the test machine implementation of test cases so that test case and application program to be measured communicate, and is controlled application program to be measured and is finished corresponding test case and carry out, the flow value that produces when generating implementation of test cases.
S103, test machine obtain the flow value information of test machine, and according to flow value information application program to be measured are carried out flow rate test.
Particularly, test machine can obtain the flow value information of test case and interapplication communications to be measured generation in real time in the test case implementation, and according to flow value information application program to be measured is carried out flow rate test.Wherein, flow value information can comprise the real-time flow data in the test phase.
Flow rate test method according to application program in the portable terminal of the embodiment of the invention, can by test machine obtain with portable terminal in the corresponding test case of application program to be measured moved, and implementation of test cases is to obtain the flow value information of test machine, and then according to flow value information application program to be measured is carried out flow rate test, need not artificial participation, realized that flow tests automatically, and test machine and mobile terminal function are independent, relevance is little, safeguard easily, greatly reduce human cost and the time cost of flow rate test.
Fig. 2 is the process flow diagram of the flow rate test method of application program in the portable terminal in accordance with another embodiment of the present invention.
In order to improve the degree of accuracy of test result, test machine need be monitored the flow of test machine, when in the fluctuations in discharge value of Preset Time build-in test machine during less than preset value, judge that then test case is finished, particularly, as shown in Figure 2, the flow rate test method of application program may further comprise the steps in the portable terminal.
S201, test machine and portable terminal connect, and obtain corresponding test case according to the application program of moving in the portable terminal to be measured.
In one embodiment of the invention, before test, need test environment is carried out initialization, particularly, at first, can carry out initialization to the version of portable terminal by modes such as brush machines, at portable terminal application program to be measured is installed then, and disposes data such as the required video of application program to be tested in the test process, audio frequency, picture.After test machine is set up company by wireless connections modes such as wired connection mode such as usb data line or bluetooth, WiFi and portable terminal, can obtain the test case that is complementary with portable terminal and application program according to the application program to be measured of the type of portable terminal and wherein operation, test case is obtained flexibly, and reusable, reduced testing cost.
S202, the test machine implementation of test cases is so that test case and application program to be measured communicate.
Particularly, the test machine implementation of test cases so that test case and application program to be measured communicate, and is controlled application program to be measured and is finished corresponding test case and carry out, the flow value that produces when generating implementation of test cases.
S203, test machine obtain the flow value information of test machine, and according to flow value information application program to be measured are carried out flow rate test.
Wherein, flow value information comprises the real-time flow data in the test phase.Particularly, test machine can obtain the flow value that produces in real time in the test case implementation, and according to flow value application program to be measured is carried out flow rate test.
S204 generates real-time traffic figure according to the real-time flow data in the test duration.
Particularly, test machine can generate real-time traffic figure according to the real-time flow data in the test duration, and shows real-time traffic figure in real time by the display device of test machine.
S205, test machine is monitored the flow of test machine.
Particularly, test machine can be monitored the flow of test machine, and then can judge whether the flow that the test machine implementation of test cases produces finishes according to the variation of real-time flow data.
S206, when in the fluctuations in discharge value of Preset Time build-in test machine during less than preset value, test machine judges that test case is finished.
Particularly, when the flow value at Preset Time build-in test machine changes less than preset value, sign off between test case and the program to be tested is described, then test case is finished, wherein, preset value can be the test machine default value, also tester oneself setting.For example, if Preset Time is 5 seconds, then when in the fluctuations in discharge value of continuous 5 seconds build-in test machines during less than preset value, the then flow end that produces of test case implementation, and then can judge that test case is finished.
Flow rate test method according to application program in the portable terminal of the embodiment of the invention, can monitor by the flow to test machine, and in the fluctuations in discharge value of Preset Time build-in test machine during less than preset value, judge that test case is finished, can accurately determine the end of test (EOT) time, improved the degree of accuracy of test result, realized that flow tests automatically, and test machine and mobile terminal function are independent, relevance is little, safeguard easily, greatly reduce human cost and the time cost of flow rate test.
Fig. 3 is the process flow diagram of the flow rate test method of application program in the portable terminal of another embodiment according to the present invention.
In order further to improve the degree of accuracy of test result, test machine needs to judge according to the application program corresponding historical flow of preserving in flow and the test machine to be measured whether test is unusual, particularly, as shown in Figure 3, the flow rate test method of application program may further comprise the steps in the portable terminal.
S301, test machine and portable terminal connect, and obtain corresponding test case according to the application program of moving in the portable terminal to be measured.
In one embodiment of the invention, before test, need test environment is carried out initialization, particularly, at first, can carry out initialization to the version of portable terminal by modes such as brush machines, at portable terminal application program to be measured is installed then, and disposes data such as the required video of application program to be tested in the test process, audio frequency, picture.After test machine is set up company by wireless connections modes such as wired connection mode such as usb data line or bluetooth, WiFi and portable terminal, can obtain the test case that is complementary with portable terminal and application program according to the application program to be measured of the type of portable terminal and wherein operation, test case is obtained flexibly, and reusable, reduced testing cost.
S302, the test machine implementation of test cases is so that test case and application program to be measured communicate.
Particularly, the test machine implementation of test cases so that test case and application program to be measured communicate, and is controlled application program to be measured and is finished corresponding test case and carry out, the flow value that produces when generating implementation of test cases.
S303, test machine obtain the flow value information of test machine, and according to flow value information application program to be measured are carried out flow rate test.
Wherein, flow value information can comprise the real-time flow data in the test phase.Particularly, test machine can obtain the flow value that produces in real time in the test case implementation, and according to flow value application program to be measured is carried out flow rate test.
S304 generates real-time traffic figure according to the real-time flow data in the test duration.
Particularly, test machine can generate real-time traffic figure according to the real-time flow data in the test duration, and shows real-time traffic figure in real time by the display device of test machine.
S305, test machine is monitored the flow of test machine.
Particularly, test machine can be monitored the flow of test machine, and then can judge whether the flow that the test machine implementation of test cases produces finishes according to the variation of real-time flow data.
S306, when in the fluctuations in discharge value of Preset Time build-in test machine during less than preset value, then test machine judges that test case is finished.
Particularly, when the flow value at Preset Time build-in test machine changes less than preset value, sign off between test case and the program to be tested is described, then test case is finished, wherein, preset value can be the test machine default value, also tester oneself setting.For example, if Preset Time is 5 seconds, then when in the fluctuations in discharge value of continuous 5 seconds build-in test machines during less than preset value, the then flow end that produces of test case implementation, and then can judge that test case is finished.
S307, test machine obtain the flow in the test phase.
Particularly, test machine can obtain the total flow in test phase build-in test use-case and interapplication communications to be measured generation.
S308, test machine judges according to the application program corresponding historical flow of preserving in flow and the test machine to be measured whether test is unusual.
In one embodiment of the invention, test machine can have a plurality of verification engines, and each verification engine has verification rule separately, and the verification engine is used for judging according to the verification rule of self, flow and historical flow in the test phase whether test is unusual.Particularly, whether the data difference of the historical flow of preserving in the total flow that each verification engine can produce when each test case is performed in this test phase of verification rule judgment of self and the test machine is above predetermined threshold value, if surpass, judge that then this time test is unusual.
S309 if judge unusually, then re-executes test case.
Particularly, if judge that this time test is unusual, then need re-execute test case, and test again according to the flow value information that produces in the test case implementation.
Thus, can avoid extraneous multiple factor (retry that causes as other application program burst flows, network environment etc.) to the interference of flow rate test, further to improve the degree of accuracy of flow rate test.
Flow rate test method according to application program in the portable terminal of the embodiment of the invention, test machine can judge whether test is unusual according to the historical flow of preserving in this test traffic and the test machine, if judge unusual, then re-execute test case, further improved the degree of accuracy of flow rate test, realized that flow tests automatically, and test machine and mobile terminal function are independent, relevance is little, safeguards easily, greatly reduces human cost and the time cost of flow rate test.
In order to realize above-described embodiment, the present invention also proposes the flow testing system of application program in a kind of portable terminal.
The flow testing system of application program in a kind of portable terminal comprises: portable terminal, and operation has application program to be measured in the portable terminal; Test machine, test machine and portable terminal connect, be used for obtaining corresponding test case according to the application program to be measured that portable terminal moves, and implementation of test cases, so that test case and application program to be measured communicate, and the flow value information of obtaining test machine, and according to flow value information application program to be measured is carried out flow rate test.
Fig. 4 is the structural representation of the flow testing system of application program in the portable terminal according to an embodiment of the invention.
As shown in Figure 4, the flow testing system of application program comprises in the portable terminal: portable terminal 100 and test machine 200.
Particularly, operation has application program to be measured in the portable terminal 100.
Test machine 200 connects with portable terminal 100, be used for obtaining corresponding test case according to the application program to be measured of portable terminal 100 operations, and implementation of test cases, so that test case and application program to be measured communicate, and the flow value information of obtaining test machine 200, and according to flow value information application program to be measured is carried out flow rate test.In one embodiment of the invention, before test, need test environment is carried out initialization, particularly, at first, can carry out initialization to the version of portable terminal 100 by modes such as brush machines, at portable terminal 100 application program to be measured is installed then, and disposes data such as the required video of application program to be tested in the test process, audio frequency, picture.After test machine 200 is set up company by wired connection mode such as usb data line or wireless connections modes such as bluetooth, WiFi with portable terminal, can obtain the test case that is complementary with portable terminal 100 and application program according to the application program to be measured of the type of portable terminal 100 and wherein operation, test case is obtained flexibly, and reusable, reduced testing cost.
In one embodiment of the invention, flow value information can comprise the real-time flow data in the test phase, test machine 200 also is used for generating real-time traffic figure according to the real-time flow data in the test duration, and show real-time traffic figure in real time by the display device of test machine 200, test machine 200 also can be monitored flow, when during less than preset value, judging that test case is finished in the fluctuations in discharge value of Preset Time build-in test machine 200.More specifically, when the flow value at Preset Time build-in test machine 200 changes less than preset value, sign off between test case and the program to be tested is described, then test case is finished, wherein, preset value can be the test machine default value, also tester oneself setting.For example, if Preset Time is 5 seconds, then when in the fluctuations in discharge value of continuous 5 seconds build-in test machines during less than preset value, the then flow end that produces of test case implementation, and then can judge that test case is finished.
In one embodiment of the invention, test machine 200 also is used for obtaining the flow in the test phase, and the application program corresponding historical flow to be measured of preservation is judged when test is unusual in according to flow and test machine 200, re-executes test case.Wherein, test machine 200 can have a plurality of verification engines, and each verification engine has verification rule separately, and the verification engine is used for judging according to the verification rule of self, flow and historical flow in the test phase whether test is unusual.More specifically, test machine 200 can obtain the total flow in test phase build-in test use-case and interapplication communications to be measured generation, the data difference of the historical flow of preserving in the total flow that produces when being performed of each test case and the test machine in according to this test phase of verification rule judgment of self when the verification engine is during above predetermined threshold value, judge that this time test is unusual, and implementation of test cases again, and test again according to the flow value information that produces in the test case implementation.Thus, can avoid extraneous multiple factor (retry that causes as other application program burst flows, network environment etc.) to the interference of flow rate test, further to improve the degree of accuracy of flow rate test.
Flow testing system according to application program in the portable terminal of the embodiment of the invention, test machine can connect with portable terminal, and obtain corresponding test case according to the application program of moving in the portable terminal to be measured, and implementation of test cases is to obtain the flow value information of test machine, and then according to flow value information application program to be measured is carried out flow rate test, need not artificial participation, realized that flow tests automatically, improved the degree of accuracy of flow rate test, and test machine and mobile terminal function are independent, relevance is little, safeguards easily, greatly reduces human cost and the 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 comprises: communication module is used for connecting with portable terminal; The test case acquisition module is used for obtaining corresponding test case according to the application program to be measured that portable terminal moves; The test case execution module is used for implementation of test cases, so that test case and application program to be measured communicate; And the traffic statistics module, be used for obtaining the flow value information of test machine, and according to flow value information application program to be measured carried out flow rate test.
Fig. 5 is the structural representation of test machine according to an embodiment of the invention.
As shown in Figure 5, test machine comprises: communication module 210, test case acquisition module 220, test case execution module 230 and traffic statistics module 240.
Particularly, communication module 210 is used for connecting with portable terminal.More specifically, communication module 210 can connect by wireless connections modes such as wired connection modes such as usb data line or bluetooth, WiFi and portable terminal.
Test case acquisition module 220 is used for obtaining corresponding test case according to the application program to be measured that portable terminal moves.In one embodiment of the invention, after communication module 210 and portable terminal are set up even, test case acquisition module 220 can obtain the test case that is complementary with portable terminal and application program according to the application program to be measured of the type of portable terminal and wherein operation, test case is obtained flexibly, and reusable, reduced testing cost.
Test case execution module 230 is used for implementation of test cases, so that test case and application program to be measured communicate.More specifically, 230 implementations of test cases of test case execution module so that test case and application program to be measured communicate, and are controlled application program to be measured and are finished corresponding test case and carry out, the flow value that produces when generating implementation of test cases.
Traffic statistics module 240 is used for obtaining the flow value information of test machine, and according to flow value information application program to be measured is carried out flow rate test.Wherein, flow value information can comprise the real-time flow data in the test phase.More specifically, traffic statistics module 240 can be obtained the flow value information that produces in real time in the test case implementation, and can carry out flow rate test to application program to be measured according to flow value information.
Test machine according to the embodiment of the invention, can obtain corresponding test case according to application program to be measured by the test case acquisition module, and carry out, and then can obtain the flow value information that produces in the test case implementation, and can carry out flow rate test to application program to be measured according to flow value information, need not artificial participation, realized that flow tests automatically, and test machine and mobile terminal function are independent, relevance is little, safeguard easily, greatly reduce human cost and the 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 Figure 6, test machine also comprises on basis embodiment illustrated in fig. 5: first test module 250 and monitoring module 260.
Particularly, first test module 250 is used for generating real-time traffic figure according to the real-time flow data in the test duration.More specifically, first test module 250 can generate real-time traffic figure according to the real-time flow data in the test duration, and shows real-time traffic figure in real time by the display device of test machine.
Monitoring module 260 is used for the flow of test machine is monitored, and when in the fluctuations in discharge value of Preset Time build-in test machine during less than preset value, the judgement test case is finished.More specifically, monitoring module 260 can be monitored the changing value of real-time flow data, when the flow value at Preset Time build-in test machine changes less than preset value, sign off between test case and the program to be tested is described, then test case is finished, wherein, preset value can be the test machine default value, also tester oneself setting.For example, if Preset Time is 5 seconds, then when in the fluctuations in discharge value of continuous 5 seconds build-in test machines during less than preset value, the then flow end that produces of test case implementation, and then can judge that test case is finished.
Test machine according to the embodiment of the invention, can monitor the flow of test machine by monitoring module, and when during less than preset value, judging that test case is finished in the fluctuations in discharge value of Preset Time build-in test machine, can accurately determine the end of test (EOT) time, improved the degree of accuracy of test result, realized that flow tests automatically, and test machine and mobile terminal function are independent, relevance is little, safeguard easily, greatly reduce human cost and the time cost of flow rate test.
Fig. 7 is the structural representation of the test machine of another embodiment according to the present invention.
As shown in Figure 7, test machine also comprises second test module 270 on basis embodiment illustrated in fig. 6.
Particularly, second test module 270 is used for obtaining the flow in the test phase, and the application program corresponding historical flow of preserving in according to flow and test machine to be measured judges when test is unusual, re-executes test case by test case execution module 230.
In one embodiment of the invention, second test module 270 can have a plurality of verification engines, each verification engine has verification rule separately, and the verification engine is used for judging according to the verification rule of self, flow and historical flow in the test phase whether test is unusual.More specifically, second test module 270 can obtain the total flow in test phase build-in test use-case and interapplication communications to be measured generation, whether the data difference of the historical flow of preserving in the total flow that each verification engine can produce when each test case is performed in this test phase of verification rule judgment of self and the test machine is above predetermined threshold value, if surpass, judge that then this time test is unusual, at this moment, need re-execute test case, and test again according to the flow value information that produces in the test case implementation.Thus, can avoid extraneous multiple factor (retry that causes as other application program burst flows, network environment etc.) to the interference of flow rate test, further to improve the degree of accuracy of flow rate test.
Test machine according to the embodiment of the invention, can judge according to the historical flow of preserving in this test traffic and the test machine whether test is unusual by second test module, and re-execute test case when unusual in test, further improved the degree of accuracy of flow rate test, realized that flow tests automatically, and test machine and mobile terminal function are independent, relevance is little, safeguard easily, greatly reduce human cost and the time cost of flow rate test.
Should be appreciated that in an embodiment of the present invention portable terminal can be the hardware device that mobile phone, panel computer, personal digital assistant, e-book etc. have various operating systems.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, a plurality of steps or method can realize with being stored in the storer and by software or firmware that suitable instruction execution system is carried out.For example, if realize with hardware, the same in another embodiment, in the available following technology well known in the art each or their combination realize: have for the discrete logic of data-signal being realized the logic gates of logic function, special IC with suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
In the description of this instructions, concrete feature, structure, material or characteristics that the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means in conjunction with this embodiment or example description are contained at least one embodiment of the present invention or the example.In this manual, the schematic statement to above-mentioned term not necessarily refers to identical embodiment or example.And concrete feature, structure, material or the characteristics of description can be with the suitable manner combination in any one or more embodiment or example.
Although illustrated and described embodiments of the invention, those having ordinary skill in the art will appreciate that: can carry out multiple variation, modification, replacement and modification to these embodiment under the situation that does not break away from principle of the present invention and aim, scope of the present invention is limited by claim and equivalent thereof.
Claims (18)
1. the flow rate test method of application program in the portable terminal is characterized in that, may further comprise the steps:
Test machine and portable terminal connect, and obtain corresponding test case according to the application program of moving in the described portable terminal to be measured;
Described test machine is carried out described test case, so that described test case and described application program to be measured communicate; And
Described test machine obtains the flow value information of described test machine, and according to described flow value information described application program to be measured is carried out flow rate test.
2. the method for claim 1 is characterized in that, described flow value information comprises the real-time flow data in the test phase.
3. method as claimed in claim 2 is characterized in that, also comprises:
Generate real-time traffic figure according to the real-time flow data in the described test duration.
4. as each described method of claim 1-3, it is characterized in that, also comprise:
Described test machine is monitored the flow of described test machine; And
When the fluctuations in discharge value of described test machine in Preset Time during less than preset value, described test machine judges that described test case is finished.
5. as each described method of claim 1-4, it is characterized in that, also comprise:
Described test machine obtains the flow in the test phase;
Described test machine judges according to the application program corresponding historical flow of preserving in described flow and the described test machine described to be measured whether test is unusual; And
If judge unusually, then re-execute described test case.
6. method as claimed in claim 5, it is characterized in that, described test machine has a plurality of verification engines, each described verification engine has verification rule separately, and described verification engine is used for judging according to the verification rule of self, flow and described historical flow in the described test phase whether described test is unusual.
7. the flow testing system of application program in the portable terminal is characterized in that, comprising:
Portable terminal, operation has application program to be measured in the described portable terminal; And
Test machine, described test machine and described portable terminal connect, be used for obtaining corresponding test case according to the application program to be measured that described portable terminal moves, and carry out described test case, so that described test case and described application program to be measured communicate, and the flow value information of obtaining described test machine, and according to described flow value information described application program to be measured is carried out flow rate test.
8. system as claimed in claim 7 is characterized in that, described flow value information comprises the real-time flow data in the test phase.
9. system as claimed in claim 8 is characterized in that, described test machine also is used for generating real-time traffic figure according to the real-time flow data in the described test duration.
10. system as claimed in claim 7 is characterized in that, described test machine also is used for the flow of described test machine is monitored, and when the fluctuations in discharge value of described test machine in Preset Time during less than preset value, judges that described test case is finished.
11. system as claimed in claim 7, it is characterized in that described test machine also is used for obtaining the flow in the test phase, and the application program corresponding historical flow of preserving in according to described flow and described test machine described to be measured judges when test is unusual, re-executes described test case.
12. system as claimed in claim 7, it is characterized in that, described test machine has a plurality of verification engines, each described verification engine has verification rule separately, and described verification engine is used for judging according to the verification rule of self, flow and described historical flow in the described test phase whether described test is unusual.
13. a test machine is characterized in that, comprising:
Communication module is used for connecting with portable terminal;
The test case acquisition module is used for obtaining corresponding test case according to the application program to be measured that described portable terminal moves;
The test case execution module is used for carrying out described test case, so that described test case and described application program to be measured communicate; And
The traffic statistics module is used for obtaining the flow value information of described test machine, and according to described flow value information described application program to be measured is carried out flow rate test.
14. test machine as claimed in claim 13 is characterized in that, described flow value information comprises the real-time flow data in the test phase.
15. test machine as claimed in claim 14 is characterized in that, also comprises:
First test module is used for generating real-time traffic figure according to the real-time flow data in the described test duration.
16. test machine as claimed in claim 13 is characterized in that, also comprises:
Monitoring module is used for the flow of described test machine is monitored, and when the fluctuations in discharge value of described test machine in Preset Time during less than preset value, judges that described test case is finished.
17. test machine as claimed in claim 13 is characterized in that, also comprises:
Second test module, be used for obtaining the flow in the test phase, and the application program corresponding historical flow of preserving in according to described flow and described test machine described to be measured judges when test is unusual, re-executes described test case by described test case execution module.
18. test machine as claimed in claim 17, it is characterized in that, described second test module has a plurality of verification engines, each described verification engine has verification rule separately, and described verification engine is used for judging according to the verification rule of self, flow and described historical flow in the described test phase whether described test is unusual.
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 true CN103268286A (en) | 2013-08-28 |
CN103268286B 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) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105022694A (en) * | 2015-08-19 | 2015-11-04 | 上海斐讯数据通信技术有限公司 | Test case generation method and system for mobile terminal test |
CN105227391A (en) * | 2014-06-30 | 2016-01-06 | 腾讯科技(深圳)有限公司 | The traffic statistic function method of testing of application program and system |
CN105577462A (en) * | 2014-10-10 | 2016-05-11 | 阿里巴巴集团控股有限公司 | Mobile device flow statistical method and device |
CN107547309A (en) * | 2017-08-21 | 2018-01-05 | 北京奇安信科技有限公司 | A kind of automated testing method and device of security gateway performance |
CN109144855A (en) * | 2018-07-27 | 2019-01-04 | 南昌黑鲨科技有限公司 | Mobile terminal master control MMI test method and device |
CN111614514A (en) * | 2020-04-30 | 2020-09-01 | 北京邮电大学 | 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 (4)
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 |
CN103117903A (en) * | 2013-02-07 | 2013-05-22 | 中国联合网络通信集团有限公司 | Internet surfing unusual flow detection method and device |
-
2013
- 2013-06-04 CN CN201310219016.7A patent/CN103268286B/en active Active
Patent Citations (4)
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 |
CN103117903A (en) * | 2013-02-07 | 2013-05-22 | 中国联合网络通信集团有限公司 | Internet surfing unusual flow detection method and device |
Non-Patent Citations (1)
Title |
---|
洪云峰 等: "基于异常流量监测的智能手机恶意软件检测研究", 《计算机安全》 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105227391A (en) * | 2014-06-30 | 2016-01-06 | 腾讯科技(深圳)有限公司 | The traffic statistic function method of testing of application program and system |
CN105577462A (en) * | 2014-10-10 | 2016-05-11 | 阿里巴巴集团控股有限公司 | Mobile device flow statistical method and device |
CN105577462B (en) * | 2014-10-10 | 2018-08-31 | 阿里巴巴集团控股有限公司 | The flow statistical method and device of mobile device |
CN105022694A (en) * | 2015-08-19 | 2015-11-04 | 上海斐讯数据通信技术有限公司 | Test case generation method and system for mobile terminal test |
CN105022694B (en) * | 2015-08-19 | 2018-07-13 | 上海斐讯数据通信技术有限公司 | Method for generating test case and system for mobile terminal test |
CN107547309A (en) * | 2017-08-21 | 2018-01-05 | 北京奇安信科技有限公司 | A kind of automated testing method and device of security gateway performance |
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 |
CN111614514A (en) * | 2020-04-30 | 2020-09-01 | 北京邮电大学 | Network traffic identification 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 |
Also Published As
Publication number | Publication date |
---|---|
CN103268286B (en) | 2017-08-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103268286A (en) | Method, system and testing machine for testing flow of application program in mobile terminal | |
CN111459794A (en) | Communication network testing method, device, computer equipment and storage medium | |
US20150220426A1 (en) | Performance tests in a continuous deployment pipeline | |
CN105025141A (en) | Method and device for testing electricity consumption of terminal | |
CA2976012C (en) | Control and monitoring of battery-backed emergency lighting systems | |
CN104777762A (en) | Vehicle-mounted system monitoring method and terminal thereof | |
CN111937006A (en) | System for determining performance based on entropy values | |
CN106294108B (en) | Application program testing method and device | |
WO2020034690A1 (en) | Bandwidth measurement method for linear motor | |
CN105187608A (en) | Method and device obtaining power consumption of application program in mobile terminal | |
CN108038283A (en) | A kind of efficient high coverage rate SoC verification platforms of dummy clock synchronization | |
CN103237108A (en) | Test method and test terminal for mobile terminal | |
CN112032031B (en) | Cloud data analysis method, device and system for air compressor | |
CN103324890A (en) | Method and device for detecting vulnerable local files of links | |
TW201314234A (en) | Method for testing handheld electronic device | |
CN107836107A (en) | Message processing device, device, information processing system, information processing method and message handling program | |
CN104301901B (en) | The detection method disturbed between GSM, apparatus and system | |
CN103698639B (en) | Crystal oscillator waveform parameter automatic measurement system and method | |
CN106776330A (en) | Application testing method and device and electronic equipment | |
CN109597700B (en) | Disk life prediction method and related device | |
US9774408B2 (en) | Mobile communication terminal test device and a test analysis unit therefor | |
CN103970648B (en) | The method of testing of installation kit and system | |
US20220200857A1 (en) | Method and Apparatus for Anomaly Detection in a Network | |
CN109375606A (en) | A kind of algorithm library test method | |
CN109462866A (en) | The automatic channel test method of wireless router |
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 |