CN105912467A - Performance test method and device - Google Patents
Performance test method and device Download PDFInfo
- Publication number
- CN105912467A CN105912467A CN201610216189.7A CN201610216189A CN105912467A CN 105912467 A CN105912467 A CN 105912467A CN 201610216189 A CN201610216189 A CN 201610216189A CN 105912467 A CN105912467 A CN 105912467A
- Authority
- CN
- China
- Prior art keywords
- function
- control
- current version
- code
- test
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/368—Test management for test version control, e.g. updating test cases to a new software version
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention discloses a performance test method. The performance test method includes: acquiring a control function mapping table, wherein the control function mapping table includes a plurality of mapping relationships between an operation control and a call function; determining a difference function between a current version code and a reference version code; searching an operation control corresponding to the difference function from the control function mapping table according to the difference function; triggering the operation control corresponding to the difference function in the current version code, and performing test to acquire test data of the current version code; and determining a test result of the current version code according to the test data of the current version code. The embodiment of the invention also discloses a performance test device. The performance test method and device can decrease test input sets, lower the complexity of test, and improve the efficiency of test.
Description
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of performance test methods and device.
Background technology
Developer is in one software process of exploitation, need constantly the edition code of software to be improved, after developing a new edition code, need new edition code is tested, check whether the edition code made new advances exists Bug, in the prior art scheme, there is following several method of testing: first, cover the test of core test scene, data according to user report feedback or subjective determination, the test input set that the application scenarios that screening operation frequency is higher is correlated with, but, for having the product of a large number of users, only cover core scenario and can not reach actual test needs;Second, use multiple stage test equipment concurrent testing, but, test request cannot be met in the case of resource limit;3rd, the record of software input and output is carried out machine learning, finds some input scenes easily causing software anomaly and preferentially test, but, it is achieved complexity and learning cost are too high;4th, test input set orthogonalization, reduce test input set (set of input operation) dependency each other as far as possible, but, for different test scenes, the dependency how reducing input set element is difficulty with.
Summary of the invention
The embodiment of the present invention provides a kind of performance test methods and device.Test input set can be reduced, lower the complexity of test and improve the efficiency of test.
First aspect present invention provides a kind of performance test methods, including:
Obtaining control Function Mapping table, described control Function Mapping table includes operational controls and the multiple mapping relations calling function;
Determine current version code and with reference to the difference function between edition code;
According to described difference function, search the operational controls corresponding with described difference function from described control Function Mapping table;
The operational controls triggering the described and described difference function in described current version code corresponding is tested, and obtains the test data of described current version code;
According to the test data of described current version code, determine the measurement result of described current version code.
Wherein, described acquisition control Function Mapping table includes:
Trigger described current version code or described carry out traversal test with reference to all operations control in edition code, and follow the tracks of described traversal test is called call function;
Obtain described all operations control trigger message and described in call the recalls information of function;
Trigger message according to described all operations control and described in call the recalls information of function, determine described control Function Mapping table.
Wherein, described trigger message includes that the control triggered time stabs, and described recalls information includes function call timestamp, the described trigger message according to described all operations control and described in call the recalls information of function, determine that described control Function Mapping table includes:
The control triggered time of described all operations control is stabbed and contrasts with the described function call timestamp calling function;
If the control triggered time stamp of the target widget in described all operations control is identical with the function call timestamp of the described object function called in function, then set up the mapping relations of described target widget and described object function.
Wherein, the described difference function determined between current version code and reference edition code includes:
Described current version code is contrasted with reference to edition code with described, determines described difference function.
Wherein, described test result includes that test is abnormal, and the described test data according to described current version code determine that the measurement result of described current version code includes:
Obtain the described test data with reference to edition code;
The test data of described current version code are contrasted with the described test data with reference to edition code, determines and call the test exception that described difference function is caused.
Correspondingly, second aspect present invention provides a kind of performance testing device, including:
Relation acquisition module, is used for obtaining control Function Mapping table, and described control Function Mapping table includes operational controls and the multiple mapping relations calling function;
Function determination module, for determining the difference function between current version code and reference edition code;
Control searches module, for according to described difference function, searching the operational controls corresponding with described difference function from described control Function Mapping table;
Data acquisition module, tests for the operational controls triggering the described and described difference function in described current version code corresponding, and obtains the test data of described current version code;
Result determines module, for the test data according to described current version code, determines the measurement result of described current version code.
Wherein, described Relation acquisition module includes:
Control trigger element, for triggering described current version code or described carrying out traversal test with reference to all operations control in edition code, and follow the tracks of described traversal test is called call function;
Information acquisition unit, for obtain described all operations control trigger message and described in call the recalls information of function;
Mapping table determines unit, for according to the trigger message of described all operations control and described in call the recalls information of function, determine described control Function Mapping table.
Wherein, described trigger message includes that the control triggered time stabs, described recalls information include function call timestamp, described mapping table determine unit specifically for:
The control triggered time of described all operations control is stabbed and contrasts with the described function call timestamp calling function;
If the control triggered time stamp of the target widget in described all operations control is identical with the function call timestamp of the described object function called in function, then set up the mapping relations of described target widget and described object function.
Wherein, described function determination module specifically for:
Described current version code is contrasted with reference to edition code with described, determines described difference function.
Wherein, described test result includes that test is abnormal, described result determine module specifically for:
Obtain the described test data with reference to edition code;
The test data of described current version code are contrasted with the described test data with reference to edition code, determines and call the test exception that described difference function is caused.
Correspondingly, third aspect present invention provides a kind of performance testing device, and described device includes interface circuit, memorizer and processor, wherein, memorizer stores batch processing code, and processor is for calling in memorizer the program code of storage, be used for performing following operation:
Obtaining control Function Mapping table, described control Function Mapping table includes operational controls and the multiple mapping relations calling function;
Determine current version code and with reference to the difference function between edition code;
According to described difference function, search the operational controls corresponding with described difference function from described control Function Mapping table;
The operational controls triggering the described and described difference function in described current version code corresponding is tested, and obtains the test data of described current version code;
According to the test data of described current version code, determine the measurement result of described current version code.
Implement the embodiment of the present invention, first obtain control Function Mapping table;It is then determined that the difference function between current version code and reference edition code;Secondly according to described difference function, the operational controls corresponding with described difference function is searched from described control Function Mapping table;The operational controls again triggering the described and described difference function in described current version code corresponding is tested, and obtains the test data of described current version code;Test data finally according to described current version code, determine the measurement result of described current version code, by searching current version code and with reference to the variance codes between edition code, reduce test input set, thus reduce the complexity of test and improve the efficiency of test.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, in describing embodiment below, the required accompanying drawing used is briefly described, apparently, accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the first embodiment flow chart of the method for a kind of performance test that the present invention proposes;
Fig. 2 is a kind of structural representation obtaining control Function Mapping table that the embodiment of the present invention provides;
Fig. 3 is a kind of control Function Mapping table that the embodiment of the present invention provides;
Fig. 4 is a kind of structural representation obtaining difference function that the embodiment of the present invention provides;
Fig. 5 is the second embodiment flow chart of the method for a kind of performance test that the present invention proposes;
Fig. 6 is the structural representation of the device of a kind of performance test that the embodiment of the present invention proposes;
Fig. 7 is the structural representation of Relation acquisition module in the device that the embodiment of the present invention proposes;
Fig. 8 is the structural representation of the device of the another kind of performance test that the embodiment of the present invention proposes.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under not making creative work premise, broadly fall into the scope of protection of the invention.
Refer to the first embodiment flow chart that Fig. 1, Fig. 1 are the methods of a kind of performance test that the present invention proposes.As it can be seen, the method in the embodiment of the present invention includes:
S101, obtains control Function Mapping table, and described control Function Mapping table includes operational controls and the multiple mapping relations calling function.
In implementing, can first trigger described current version code or described carry out traversal test with reference to all operations control in edition code, and follow the tracks of described traversal test is called call function;Then obtain described all operations control trigger message and described in call the recalls information of function;Finally according to described all operations control trigger message and described in call the recalls information of function, determine described control Function Mapping table, wherein, described trigger message includes that the control triggered time stabs, and described recalls information includes function call timestamp.Further, the control triggered time stamp of described all operations control can be contrasted with the described function call timestamp calling function;If the control triggered time stamp of the target widget in described all operations control is identical with the function call timestamp of the described object function called in function, then set up the mapping relations of described target widget and described object function, if the control triggered time stamp of the target widget in described all operations control differs with the function call timestamp of the described object function called in function, it is determined that described target widget and described object function do not exist mapping relations.
Such as, as shown in Figure 2, while using NewMonkey to carry out traversal test (clicking on all operations control to test), open system built-in tool Trace is tracked starting the function called after operational controls, the trigger message of NewMonkey record all operations control, Trace follows the tracks of and obtains the recalls information calling function, then by two kinds of information contrasts, generation obtains control Function Mapping table, as shown in Figure 3, Fig. 3 is a kind of control Function Mapping table that the embodiment of the present invention provides, each operational controls can be respectively corresponding to few one and call function, as: when trigger action control wiget_w1, need to call function f1, f2 and f3, finally control Function Mapping table is stored in data base.
It should be noted that, any one edition code can be used to set up control Function Mapping table, and the multiple edition code after using this control Function Mapping table to test, if certain edition code is the biggest with the diversity of current version code, new edition code just can be used to regenerate control Function Mapping table, when setting up control Function Mapping table, the method that parallel traversal test can be used.Additionally, control Function Mapping table speed is set up for improving, can be according to the control Function Mapping table set up before, the cluster calling function relevant to operational controls is analyzed, it is then determined that call, with newly added, the operational controls that functional dependence is stronger, these operational controls of first traversal, thus set up the newly added mapping relations calling function and operational controls.
S102, determines current version code and with reference to the difference function between edition code.
In implementing, described current version code can be contrasted with reference to edition code with described, determine described difference function.As shown in Figure 4, current version code and reference edition code can be input to variation analysis platform, compare to current version code with reference to edition code, so that it is determined that difference function.
S103, according to described difference function, searches the operational controls corresponding with described difference function from described control Function Mapping table.
In implementing, first can search from control Function Mapping table and identical with described difference function call function, then basis calls the corresponding relation of function and operational controls, determines that find calls the operational controls that function is corresponding.
S104, the operational controls triggering the described and described difference function in described current version code corresponding is tested, and is obtained the test data of described current version code.
Such as: when music software is tested, if it is determined that operational controls corresponding to difference function is " download " control, then user can click directly on " download " and tests this music software, and after clicking on " download " control, obtain test data, therefore need not other operational controls of music software are tested one by one, shorten the time of test.
S105, according to the test data of described current version code, determines the measurement result of described current version code.
In implementing, can gather the control triggered time put the control end time point between test data, wherein, test data can include frame data, I/O operation number of times etc., such as, may determine that whether the quantity of frame data meets preset requirement, whether I/O operation number of times meets preset times etc., if be unsatisfactory for, then represent that difference function has caused operation exception, need difference function is improved, if it is satisfied, then test is normal.
In embodiments of the present invention, control Function Mapping table is first obtained;It is then determined that the difference function between current version code and reference edition code;Secondly according to described difference function, the operational controls corresponding with described difference function is searched from described control Function Mapping table;The operational controls again triggering the described and described difference function in described current version code corresponding is tested, and obtains the test data of described current version code;Test data finally according to described current version code, determine the measurement result of described current version code, by searching current version code and with reference to the variance codes between edition code, reduce test input set, thus reduce the complexity of test and improve the efficiency of test.
Refer to the second embodiment flow chart that Fig. 5, Fig. 5 are the methods of a kind of performance test that the present invention proposes.As it can be seen, the method in the embodiment of the present invention includes:
S501, obtains control Function Mapping table, and described control Function Mapping table includes operational controls and the multiple mapping relations calling function.
In implementing, first trigger described current version code or described carry out traversal test with reference to all operations control in edition code, and follow the tracks of described traversal test is called call function;Then obtain described all operations control trigger message and described in call the recalls information of function;Finally according to described all operations control trigger message and described in call the recalls information of function, determine described control Function Mapping table, wherein, described trigger message includes that the control triggered time stabs, and described recalls information includes function call timestamp.Further, the control triggered time stamp of described all operations control is contrasted with the described function call timestamp calling function;If the control triggered time stamp of the target widget in described all operations control is identical with the function call timestamp of the described object function called in function, then set up the mapping relations of described target widget and described object function, if the control triggered time stamp of the target widget in described all operations control differs with the function call timestamp of the described object function called in function, it is determined that described target widget and described object function do not exist mapping relations.
Such as, as shown in Figure 2, while using NewMonkey to carry out traversal test (clicking on all operations control to test), open system built-in tool Trace is tracked starting the function called after operational controls, the trigger message of NewMonkey record all operations control, Trace follows the tracks of and obtains the recalls information calling function, then by two kinds of information contrasts, generation obtains control Function Mapping table, as shown in Figure 3, Fig. 3 is a kind of control Function Mapping table that the embodiment of the present invention provides, each operational controls can be respectively corresponding to few one and call function, as: when trigger action control wiget_w1, need to call function f1, f2 and f3, finally control Function Mapping table is stored in data base.
It should be noted that, any one edition code can be used to set up control Function Mapping table, and the multiple edition code after using this control Function Mapping table to test, if certain edition code is the biggest with the diversity of current version code, new edition code just can be used to regenerate control Function Mapping table, when setting up control Function Mapping table, the method that parallel traversal test can be used.Additionally, control Function Mapping table speed is set up for improving, can be according to the control Function Mapping table set up before, the cluster calling function relevant to operational controls is analyzed, it is then determined that call, with newly added, the operational controls that functional dependence is stronger, these operational controls of first traversal, thus set up the newly added mapping relations calling function and operational controls.
S502, determines current version code and with reference to the difference function between edition code.
In implementing, described current version code can be contrasted with reference to edition code with described, determine described difference function.As shown in Figure 4, current version code and reference edition code can be input to variation analysis platform, compare to current version code with reference to edition code, so that it is determined that difference function.
S503, according to described difference function, searches the operational controls corresponding with described difference function from described control Function Mapping table.
In implementing, first can search from control Function Mapping table and identical with described difference function call function, then basis calls the corresponding relation of function and operational controls, determines that find calls the operational controls that function is corresponding.
S504, the operational controls triggering the described and described difference function in described current version code corresponding is tested, and is obtained the test data of described current version code.
Such as: when music software is tested, if it is determined that operational controls corresponding to difference function is " download " control, then user can click directly on " download " and tests this music software, and after clicking on " download " control, obtain test data, therefore need not other operational controls of music software are tested one by one, shorten the time of test.
S505, obtains the described test data with reference to edition code.
In implementing, the described operational controls corresponding with reference to the described and described difference function in edition code can be triggered, gather and put the test data between control end time point with reference to the control triggered time in edition code.
The test data of described current version code are contrasted by S506 with the described test data with reference to edition code, determine and call the test exception that described difference function is caused.
In implementing, may determine that the test data of described current version code are the most identical with the described test data with reference to edition code, if it is identical, then illustrate that described difference function does not cause test abnormal, if differing, then illustrate that described difference function has caused test abnormal, need difference function is detected further, determine that difference function causes the location point of test exception.
In embodiments of the present invention, control Function Mapping table is first obtained;It is then determined that the difference function between current version code and reference edition code;Secondly according to described difference function, the operational controls corresponding with described difference function is searched from described control Function Mapping table;The operational controls again triggering the described and described difference function in described current version code corresponding is tested, and obtains the test data of described current version code;Test data finally according to described current version code, determine the measurement result of described current version code, by searching current version code and with reference to the variance codes between edition code, reduce test input set, thus reduce the complexity of test and improve the efficiency of test.
Refer to the structural representation that Fig. 6, Fig. 6 are the devices of a kind of performance test that the embodiment of the present invention proposes.As it can be seen, the device in the embodiment of the present invention includes:
Relation acquisition module 601, is used for obtaining control Function Mapping table, and described control Function Mapping table includes operational controls and the multiple mapping relations calling function.
In implementing, as it is shown in fig. 7, Relation acquisition module 601 can further include:
Control trigger element 701, for triggering described current version code or described carrying out traversal test with reference to all operations control in edition code, and follow the tracks of described traversal test is called call function.
Information acquisition unit 702, for obtain described all operations control trigger message and described in call the recalls information of function, wherein, described trigger message includes that the control triggered time stabs, and described recalls information includes function call timestamp.
Mapping table determines unit 703, for according to the trigger message of described all operations control and described in call the recalls information of function, determine described control Function Mapping table.
In implementing, the control triggered time of described all operations control can be stabbed and contrast with the described function call timestamp calling function;If the control triggered time stamp of the target widget in described all operations control is identical with the function call timestamp of the described object function called in function, then set up the mapping relations of described target widget and described object function, if the control triggered time stamp of the target widget in described all operations control differs with the function call timestamp of the described object function called in function, it is determined that described target widget and described object function do not exist mapping relations.
Such as, as shown in Figure 2, while using NewMonkey to carry out traversal test (clicking on all operations control to test), open system built-in tool Trace is tracked starting the function called after operational controls, the trigger message of NewMonkey record all operations control, Trace follows the tracks of and obtains the recalls information calling function, then by two kinds of information contrasts, generation obtains control Function Mapping table, as shown in Figure 3, Fig. 3 is a kind of control Function Mapping table that the embodiment of the present invention provides, each operational controls can be respectively corresponding to few one and call function, as: when trigger action control wiget_w1, need to call function f1, f2 and f3, finally control Function Mapping table is stored in data base.
It should be noted that, any one edition code can be used to set up control Function Mapping table, and the multiple edition code after using this control Function Mapping table to test, if certain edition code is the biggest with the diversity of current version code, new edition code just can be used to regenerate control Function Mapping table, when setting up control Function Mapping table, the method that parallel traversal test can be used.Additionally, control Function Mapping table speed is set up for improving, can be according to the control Function Mapping table set up before, the cluster calling function relevant to operational controls is analyzed, it is then determined that call, with newly added, the operational controls that functional dependence is stronger, these operational controls of first traversal, thus set up the newly added mapping relations calling function and operational controls.
Function determination module 602, for determining the difference function between current version code and reference edition code.
In implementing, described current version code can be contrasted with reference to edition code with described, determine described difference function.As shown in Figure 4, current version code and reference edition code can be input to variation analysis platform, compare to current version code with reference to edition code, so that it is determined that difference function.
Control searches module 603, for according to described difference function, searching the operational controls corresponding with described difference function from described control Function Mapping table.
In implementing, first can search from control Function Mapping table and identical with described difference function call function, then basis calls the corresponding relation of function and operational controls, determines that find calls the operational controls that function is corresponding.
Data acquisition module 604, tests for the operational controls triggering the described and described difference function in described current version code corresponding, and obtains the test data of described current version code.
Such as: when music software is tested, if it is determined that operational controls corresponding to difference function is " download " control, then user can click directly on " download " and tests this music software, and after clicking on " download " control, obtain test data, therefore need not other operational controls of music software are tested one by one, shorten the time of test.
Result determines module 605, for the test data according to described current version code, determines the measurement result of described current version code.Wherein, test data can include frame data, I/O operation number of times etc., such as, may determine that whether the quantity of frame data meets preset requirement, whether I/O operation number of times meets preset times etc., if be unsatisfactory for, then represent that difference function has caused operation exception, need difference function is improved, if it is satisfied, then test is normal.
nullIn implementing,Can first trigger the described operational controls corresponding with reference to the described and described difference function in edition code,Gather and put the test data between control end time point with reference to the control triggered time in edition code,And in current version code the control triggered time put the control end time point between test data,Then the test data of described current version code are contrasted with the described test data with reference to edition code,Determine and call the test exception that described difference function is caused,Further,May determine that the test data of described current version code are the most identical with the described test data with reference to edition code,If it is identical,Then illustrate that described difference function does not cause test abnormal,If differing,Then illustrate that described difference function has caused test abnormal,Need difference function is detected further,Determine that difference function causes the location point of test exception.
In embodiments of the present invention, control Function Mapping table is first obtained;It is then determined that the difference function between current version code and reference edition code;Secondly according to described difference function, the operational controls corresponding with described difference function is searched from described control Function Mapping table;The operational controls again triggering the described and described difference function in described current version code corresponding is tested, and obtains the test data of described current version code;Test data finally according to described current version code, determine the measurement result of described current version code, by searching current version code and with reference to the variance codes between edition code, reduce test input set, thus reduce the complexity of test and improve the efficiency of test.
It it is the structural representation of the device of the another kind of performance test that the embodiment of the present invention proposes please continue to refer to Fig. 8, Fig. 8.As shown in Figure 8, this device includes processor 801 and interface circuit 802, gives memorizer 803 and bus 804 in figure, and this processor 801, interface circuit 802 are connected with memorizer 803 by bus 804 and completed mutual communicating.
Wherein, processor 801 is used for performing following operating procedure:
Obtaining control Function Mapping table, described control Function Mapping table includes operational controls and the multiple mapping relations calling function;
Determine current version code and with reference to the difference function between edition code;
According to described difference function, search the operational controls corresponding with described difference function from described control Function Mapping table;
The operational controls triggering the described and described difference function in described current version code corresponding is tested, and obtains the test data of described current version code;
According to the test data of described current version code, determine the measurement result of described current version code.
Wherein, processor 801 is used for performing following operating procedure:
Trigger described current version code or described carry out traversal test with reference to all operations control in edition code, and follow the tracks of described traversal test is called call function;
Obtain described all operations control trigger message and described in call the recalls information of function;
Trigger message according to described all operations control and described in call the recalls information of function, determine described control Function Mapping table.
Wherein, processor 801 is used for performing following operating procedure:
The control triggered time of described all operations control is stabbed and contrasts with the described function call timestamp calling function;
If the control triggered time stamp of the target widget in described all operations control is identical with the function call timestamp of the described object function called in function, then set up the mapping relations of described target widget and described object function.
Wherein, processor 801 is used for performing following operating procedure:
Described current version code is contrasted with reference to edition code with described, determines described difference function.
Wherein, processor 801 is used for performing following operating procedure:
Obtain the described test data with reference to edition code;
The test data of described current version code are contrasted with the described test data with reference to edition code, determines and call the test exception that described difference function is caused.
It should be noted that processor 801 here can be a treatment element, it is also possible to be the general designation of multiple treatment element.Such as, this treatment element can be central processing unit (Central Processing Unit, CPU), it is also possible to be specific integrated circuit (Application Specific Integrated Circuit, ASIC),
This device can also include input/output unit, is connected to bus 808, to be connected with other parts such as processors 801 by bus.This input/output unit can be that operator provide an inputting interface, in order to operator select to deploy to ensure effective monitoring and control of illegal activities item by this inputting interface, it is also possible to be other interface, can be by the external miscellaneous equipment of this interface.
Or it is configured to implement one or more integrated circuits of the embodiment of the present invention, such as: one or more microprocessors (digital singnal processor, DSP), or, one or more field programmable gate array (Field Programmable Gate Array, FPGA).
Memorizer 803 can be a storage device, it is also possible to be the general designation of multiple memory element, and is used for storing executable program code or the operation of application program running gear required parameter, data etc..And memorizer 803 can include random access memory (RAM), it is also possible to include nonvolatile memory (non-volatile memory), such as disk memory, flash memory (Flash) etc..
Bus 804 can be industry standard architecture (Industry Standard Architecture, ISA) bus, external equipment interconnection (Peripheral Component, PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, EISA) bus etc..This bus 804 can be divided into address bus, data/address bus, control bus etc..For ease of representing, Fig. 8 only represents with a thick line, it is not intended that an only bus or a type of bus.
It should be noted that, for each embodiment of the method aforesaid, in order to be briefly described, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement, because according to the present invention, certain some step can use other orders or carry out simultaneously.Secondly, those skilled in the art also should know, embodiment described in this description belongs to preferred embodiment, necessary to involved action and the module not necessarily present invention.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and the part being not described in certain embodiment may refer to the associated description of other embodiments.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment can be by program and completes to instruct relevant hardware, this program can be stored in a computer-readable recording medium, storage medium may include that flash disk, read only memory are (English: Read-Only Memory, be called for short: ROM), random access device (English: Random Access Memory, RAM), disk or CD etc. be called for short:.
The content download method provided the embodiment of the present invention above and relevant device, system are described in detail, principle and the embodiment of the present invention are set forth by specific case used herein, and the explanation of above example is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, the most all will change, in sum, this specification content should not be construed as limitation of the present invention.
Claims (11)
1. a performance test methods, it is characterised in that described method includes:
Obtaining control Function Mapping table, described control Function Mapping table includes operational controls with to call function many
Individual mapping relations;
Determine current version code and with reference to the difference function between edition code;
According to described difference function, search the behaviour corresponding with described difference function from described control Function Mapping table
Make control;
The operational controls triggering the described and described difference function in described current version code corresponding is surveyed
Examination, and obtain the test data of described current version code;
According to the test data of described current version code, determine the measurement result of described current version code.
2. the method for claim 1, it is characterised in that described acquisition control Function Mapping table includes:
The all operations control triggered in described current version code or described reference edition code carries out traversal survey
Examination, and follow the tracks of described traversal test in call call function;
Obtain described all operations control trigger message and described in call the recalls information of function;
Trigger message according to described all operations control and described in call the recalls information of function, determine institute
State control Function Mapping table.
3. method as claimed in claim 2, it is characterised in that described trigger message includes when control triggers
Between stab, described recalls information includes function call timestamp, the described triggering according to described all operations control
Information and described in call the recalls information of function, determine that described control Function Mapping table includes:
The control triggered time of described all operations control is stabbed and the described function call timestamp calling function
Contrast;
If the control triggered time stamp of the target widget in described all operations control calls in function with described
The function call timestamp of object function is identical, then set up the mapping of described target widget and described object function
Relation.
4. the method for claim 1, it is characterised in that described determine current version code and reference
Difference function between edition code includes:
Described current version code is contrasted with reference to edition code with described, determines described difference function.
5. the method as described in claim 1-4 any one, it is characterised in that described test result includes
Test is abnormal, and the described test data according to described current version code determine described current version code
Measurement result includes:
Obtain the described test data with reference to edition code;
It is right the test data of described current version code and the described test data with reference to edition code to be carried out
Ratio, determines and calls the test exception that described difference function is caused.
6. a performance testing device, it is characterised in that described device includes:
Relation acquisition module, is used for obtaining control Function Mapping table, and described control Function Mapping table includes operation
Control and the multiple mapping relations calling function;
Function determination module, for determining the difference function between current version code and reference edition code;
Control searches module, for according to described difference function, searching and institute from described control Function Mapping table
State the operational controls that difference function is corresponding;
Data acquisition module is corresponding for triggering the described and described difference function in described current version code
Operational controls test, and obtain the test data of described current version code;
Result determines module, for the test data according to described current version code, determines described current version
The measurement result of this code.
7. device as claimed in claim 6, it is characterised in that described Relation acquisition module includes:
Control trigger element, for triggering owning in described current version code or described reference edition code
Operational controls carry out traversal test, and follow the tracks of described traversal test in call call function;
Information acquisition unit, for obtain described all operations control trigger message and described in call function
Recalls information;
Mapping table determines unit, for according to the trigger message of described all operations control and described in call letter
The recalls information of number, determines described control Function Mapping table.
8. device as claimed in claim 7, it is characterised in that described trigger message includes when control triggers
Between stab, described recalls information include function call timestamp, described mapping table determine unit specifically for:
The control triggered time of described all operations control is stabbed and the described function call timestamp calling function
Contrast;
If the control triggered time stamp of the target widget in described all operations control calls in function with described
The function call timestamp of object function is identical, then set up the mapping of described target widget and described object function
Relation.
9. device as claimed in claim 6, it is characterised in that described function determination module specifically for:
Described current version code is contrasted with reference to edition code with described, determines described difference function.
10. the device as described in claim 6-9 any one, it is characterised in that described test result includes
Test is abnormal, described result determine module specifically for:
Obtain the described test data with reference to edition code;
It is right the test data of described current version code and the described test data with reference to edition code to be carried out
Ratio, determines and calls the test exception that described difference function is caused.
11. 1 kinds of performance testing devices, it is characterised in that described device include interface circuit, memorizer with
And processor, wherein, memorizer stores batch processing code, and processor is used for calling in memorizer and deposits
The program code of storage, is used for performing following operation:
Obtaining control Function Mapping table, described control Function Mapping table includes operational controls with to call function many
Individual mapping relations;
Determine current version code and with reference to the difference function between edition code;
According to described difference function, search the behaviour corresponding with described difference function from described control Function Mapping table
Make control;
The operational controls triggering the described and described difference function in described current version code corresponding is surveyed
Examination, and obtain the test data of described current version code;
According to the test data of described current version code, determine the measurement result of described current version code.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610216189.7A CN105912467B (en) | 2016-04-08 | 2016-04-08 | Performance test method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610216189.7A CN105912467B (en) | 2016-04-08 | 2016-04-08 | Performance test method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105912467A true CN105912467A (en) | 2016-08-31 |
| CN105912467B CN105912467B (en) | 2021-05-11 |
Family
ID=56745023
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610216189.7A Active CN105912467B (en) | 2016-04-08 | 2016-04-08 | Performance test method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105912467B (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107807882A (en) * | 2017-10-26 | 2018-03-16 | 北京广利核系统工程有限公司 | Timing alorithm block method of testing and device based on MPU operations |
| CN108459949A (en) * | 2017-02-17 | 2018-08-28 | 腾讯科技(深圳)有限公司 | A kind of test method and terminal |
| CN110908898A (en) * | 2019-11-06 | 2020-03-24 | 贝壳技术有限公司 | Method and system for generating test scheme |
| CN113157570A (en) * | 2021-04-07 | 2021-07-23 | 腾讯音乐娱乐科技(深圳)有限公司 | Method, device and storage medium for determining trigger subject information |
| CN114840419A (en) * | 2022-04-14 | 2022-08-02 | 腾讯音乐娱乐科技(深圳)有限公司 | Application program testing method, electronic equipment and computer readable storage medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101256490A (en) * | 2008-03-18 | 2008-09-03 | 腾讯科技(深圳)有限公司 | Expandable skin system and implementing method |
| US20100002685A1 (en) * | 2008-06-30 | 2010-01-07 | Shaham Eliezer | Method and system for providing communication |
| US20140282031A1 (en) * | 2013-03-14 | 2014-09-18 | Vmware, Inc. | Dynamic Field Extraction of Log Data |
| US20140282459A1 (en) * | 2013-03-15 | 2014-09-18 | International Business Machines Corporation | Automated patch generation |
| CN104298595A (en) * | 2014-09-29 | 2015-01-21 | 百视通网络电视技术发展有限责任公司 | Automatic testing method and testing system |
| CN105302710A (en) * | 2014-07-03 | 2016-02-03 | 腾讯科技(深圳)有限公司 | Method and apparatus for determining test case in need of regression testing |
| CN105404582A (en) * | 2015-10-26 | 2016-03-16 | 努比亚技术有限公司 | Application improvement verification method and system |
-
2016
- 2016-04-08 CN CN201610216189.7A patent/CN105912467B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101256490A (en) * | 2008-03-18 | 2008-09-03 | 腾讯科技(深圳)有限公司 | Expandable skin system and implementing method |
| US20100002685A1 (en) * | 2008-06-30 | 2010-01-07 | Shaham Eliezer | Method and system for providing communication |
| US20140282031A1 (en) * | 2013-03-14 | 2014-09-18 | Vmware, Inc. | Dynamic Field Extraction of Log Data |
| US20140282459A1 (en) * | 2013-03-15 | 2014-09-18 | International Business Machines Corporation | Automated patch generation |
| CN105302710A (en) * | 2014-07-03 | 2016-02-03 | 腾讯科技(深圳)有限公司 | Method and apparatus for determining test case in need of regression testing |
| CN104298595A (en) * | 2014-09-29 | 2015-01-21 | 百视通网络电视技术发展有限责任公司 | Automatic testing method and testing system |
| CN105404582A (en) * | 2015-10-26 | 2016-03-16 | 努比亚技术有限公司 | Application improvement verification method and system |
Non-Patent Citations (1)
| Title |
|---|
| 闵 艳 等: "在Visual C++中任意多个控件的创建", 《计算机工程与设计》 * |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108459949A (en) * | 2017-02-17 | 2018-08-28 | 腾讯科技(深圳)有限公司 | A kind of test method and terminal |
| CN108459949B (en) * | 2017-02-17 | 2021-08-06 | 腾讯科技(深圳)有限公司 | Test method and terminal |
| CN107807882A (en) * | 2017-10-26 | 2018-03-16 | 北京广利核系统工程有限公司 | Timing alorithm block method of testing and device based on MPU operations |
| CN107807882B (en) * | 2017-10-26 | 2021-08-31 | 北京广利核系统工程有限公司 | Sequential algorithm block testing method and device based on MPU operation |
| CN110908898A (en) * | 2019-11-06 | 2020-03-24 | 贝壳技术有限公司 | Method and system for generating test scheme |
| CN113157570A (en) * | 2021-04-07 | 2021-07-23 | 腾讯音乐娱乐科技(深圳)有限公司 | Method, device and storage medium for determining trigger subject information |
| CN114840419A (en) * | 2022-04-14 | 2022-08-02 | 腾讯音乐娱乐科技(深圳)有限公司 | Application program testing method, electronic equipment and computer readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105912467B (en) | 2021-05-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Ocariza et al. | An empirical study of client-side JavaScript bugs | |
| CN106933733B (en) | Method and device for determining memory leak position | |
| CN113342685A (en) | Precise test method and device, computer equipment and storage medium | |
| US8140911B2 (en) | Dynamic software tracing | |
| Salihu et al. | AMOGA: A static-dynamic model generation strategy for mobile apps testing | |
| CN105912467A (en) | Performance test method and device | |
| CN108459964B (en) | Test case selection method, device, equipment and computer readable storage medium | |
| CN113590454B (en) | Test method, device, computer equipment and storage medium | |
| US20150378724A1 (en) | Identifying code that exhibits ideal logging behavior | |
| CN108595319B (en) | Function selection method and server | |
| CN107015841B (en) | Preprocessing method for program compiling and program compiling device | |
| US9405659B2 (en) | Measuring the logging quality of a computer program | |
| US9921946B2 (en) | Method and system to display and browse program trace using source code decoration | |
| US20130179867A1 (en) | Program Code Analysis System | |
| CN106557419B (en) | Program testing method and device | |
| CN111859047A (en) | A kind of fault solving method and device | |
| CN114416545B (en) | Method, device and electronic device for determining test code coverage | |
| CN105183658A (en) | Software code testing method and device | |
| CN111026647A (en) | Code coverage rate obtaining method and device, computer equipment and storage medium | |
| US9842044B2 (en) | Commit sensitive tests | |
| CN108399125B (en) | Automatic testing method and device, computer equipment and storage medium | |
| US9189372B2 (en) | Trace coverage analysis | |
| CN110889116A (en) | Advertisement blocking method and device and electronic equipment | |
| US9489284B2 (en) | Debugging method and computer program product | |
| CN109359042A (en) | An Automated Testing Method Based on Path Search Algorithm |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |