CN105760288A - Method and device testing rewritten application program - Google Patents

Method and device testing rewritten application program Download PDF

Info

Publication number
CN105760288A
CN105760288A CN201410778756.9A CN201410778756A CN105760288A CN 105760288 A CN105760288 A CN 105760288A CN 201410778756 A CN201410778756 A CN 201410778756A CN 105760288 A CN105760288 A CN 105760288A
Authority
CN
China
Prior art keywords
application program
tested
entrance
test case
influence
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
Application number
CN201410778756.9A
Other languages
Chinese (zh)
Other versions
CN105760288B (en
Inventor
张喆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201410778756.9A priority Critical patent/CN105760288B/en
Publication of CN105760288A publication Critical patent/CN105760288A/en
Application granted granted Critical
Publication of CN105760288B publication Critical patent/CN105760288B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a method and device testing rewritten application programs; the method comprises the following steps: obtaining a rewritten application program as a to-be tested application program; determining a change method of the to-be tested application program according to the to-be tested application program and a corresponding original application program, wherein the change method refers to the changing method of the to-be tested application program relative to the original application program; determining an inlet method of the to-be tested application program according to the change method of the to-be tested application program; obtaining a test case corresponding to the inlet method of the to-be tested application program according to a preset corresponding relation between an inlet method of the original application program and the test case; executing the obtained test case to test the to-be tested application program. The method and device can ensure the quality of the to-be tested application program, and can improve test efficiency.

Description

Test method and the device of revised application program
Technical field
The application relates to field of computer technology, particularly relates to a kind of method testing revised application program and device.
Background technology
Current era, computer technology obtains and develops rapidly, and the demand increasing in order to meet user, the function that application program can realize also gets more and more.When user's request increases, the function that application program realizes also to change therewith.The change of function of application is to rewrite the code of original application program by developer to realize, usual developer will not write the code of whole application program again, and only rewrite the code that in original application program, this function is corresponding, such as, in the application programs such as webpage (Web) engineering, function is to be realized by the method (Method) in one or more classes (Class), rewrites the code of this function in original application program and namely rewrites the code of Method.Developer needs revised application program is tested after completing rewriting, it is ensured that revised application program is reached the standard grade can be properly functioning.
Method according to the revised application program of existing test, need the entrance Method first being determined the Method (be called for short and change Method) of change by developer and having influence on, then according to the entrance Method the having influence on revised application program of functional test realized.
In the above-mentioned methods, it is necessary to being tested revised application program by developer, testing efficiency is relatively low;And, the developer of usual original application program is different with the developer rewriting original application program, the developer rewriting original program cannot obtain the entrance Method the having influence on repertoire realized exactly, and then cannot be complete judge change Method whether have the impact surpassed the expectation, affect the quality of revised application program.
Summary of the invention
The embodiment of the present application provides a kind of method testing revised application program and device, relatively low in order to the testing efficiency solving to exist in prior art, and the problem affecting revised application program quality.
According to the embodiment of the present application, it is provided that a kind of method testing revised application program, including:
Obtain revised application program as application program to be tested;
Original application program according to described application program to be tested and correspondence thereof determines that the change method Method of described application program to be tested, the change Method of described application program to be tested are the Method that described application program to be tested occurs relative to described original application program to change;
That determines described application program to be tested changes the Method entrance Method having influence on, and the Method entrance Method having influence on that changes of described application program to be tested is carried out described original application program and the starting point of described application program to be tested;
Corresponding relation according to the entrance Method pre-set Yu test case, what obtain described application program to be tested changes the Method test case corresponding for entrance Method having influence on;
The test case performing to obtain tests described application program to be tested.
Concrete, determine the change Method of described application program to be tested according to the original application program of described application program to be tested and correspondence thereof, specifically include:
Obtain the original application program that described application program to be tested is corresponding;
Described application program to be tested and described original application program are compared in units of class Class;
Obtain described application program to be tested relative to the Class that described original application program the is changed code included;
Described application program to be tested is determined the Method that the code of change is corresponding, obtains the change Method of described application program to be tested.
Concrete, it is determined that the entrance Method that the change Method of described application program to be tested has influence on, specifically include:
Analyze the call relation between the Method that described application program to be tested comprises;
Determine that the Method that changes with described application program to be tested affects link for starting point according to the call relation analyzed;
Obtaining each described Method affecting link end, what obtain described application program to be tested changes the Method entrance Method having influence on.
Concrete, according to the entrance Method pre-set Yu test case corresponding relation, obtains the change Method of the described application program to be tested test case corresponding for entrance Method having influence on, specifically includes:
Obtain the corresponding relation of entrance Method and the test case pre-set;
That searches described application program to be tested in described corresponding relation changes the Method test case corresponding for entrance Method having influence on;
Obtain the change Method of the application program described to be tested the found test case corresponding for entrance Method having influence on.
Optionally, also include:
Obtain described original application program;
Analyze the call relation between the Method that described original application program comprises, obtain the entrance Method of described original program;
Obtain the test case corresponding for entrance Method of described original application program;
Associate the entrance Method of described original application program and the test case of correspondence thereof, obtain described corresponding relation.
According to the embodiment of the present application, also provide for a kind of device testing revised application program, including:
First acquiring unit, is used for obtaining revised application program as application program to be tested;
First determines unit, for determining that according to the original application program of described application program to be tested and correspondence thereof the change method Method of described application program to be tested, the change Method of described application program to be tested are the Method that described application program to be tested occurs relative to described original application program to change;
Second determines unit, for determining the change Method of the described application program to be tested entrance Method having influence on, the Method entrance Method having influence on that changes of described application program to be tested is carried out described original application program and the starting point of described application program to be tested;
Second acquisition unit, for the corresponding relation according to the entrance Method pre-set with test case, what obtain described application program to be tested changes the Method test case corresponding for entrance Method having influence on;
Performance element, the test case being used for performing to obtain is to test described application program to be tested.
Concrete, described first determines unit, specifically for:
Obtain the original application program that described application program to be tested is corresponding;
Described application program to be tested and described original application program are compared in units of class Class;
Obtain described application program to be tested relative to the Class that described original application program the is changed code included;
Described application program to be tested is determined the Method that the code of change is corresponding, obtains the change Method of described application program to be tested.
Concrete, described second determines unit, specifically for:
Analyze the call relation between the Method that described application program to be tested comprises;
Determine that the Method that changes with described application program to be tested affects link for starting point according to the call relation analyzed;
Obtaining each described Method affecting link end, what obtain described application program to be tested changes the Method entrance Method having influence on.
Concrete, described second acquisition unit, specifically for:
Obtain the corresponding relation of entrance Method and the test case pre-set;
That searches described application program to be tested in described corresponding relation changes the Method test case corresponding for entrance Method having influence on;
Obtain the change Method of the application program described to be tested the found test case corresponding for entrance Method having influence on.
Optionally, also include:
3rd acquiring unit, is used for obtaining described original application program;
Analytic unit, for analyzing the call relation between the Method that described original application program comprises, obtains the entrance Method of described original program;
4th acquiring unit, for obtaining the test case corresponding for entrance Method of described original application program;
Associative cell, for associating the entrance Method of described original application program and the test case of correspondence thereof, obtains described corresponding relation.
The method of the revised application program of test that the embodiment of the present application provides and device, by obtaining described revised application program as application program to be tested;Original application program according to described application program to be tested and correspondence thereof determines that the change Method of described application program to be tested, the change Method of described application program to be tested are the Method that described application program to be tested occurs relative to described original application program to change;The Method that changes according to described application program to be tested determines the entrance Method of described application program to be tested, and the entrance Method of described application program to be tested is carried out the starting point of described application program to be tested;Entrance Method according to the described original application program pre-set and the corresponding relation of test case, obtain the test case corresponding for entrance Method of described application program to be tested;The test case performing to obtain tests described application program to be tested.In the program, owing to pre-setting the corresponding relation of entrance Method and test case, therefore, after the change Method the getting application program to be tested entrance Method having influence on, the test case corresponding for entrance Method that application program to be tested has influence on can be obtained according to this corresponding relation, such that it is able to the repertoire that the entrance Method that the change Method obtaining application program to be tested exactly has influence on realizes, intactly judge to change whether Method has the impact surpassed the expectation, it is ensured that the quality of application program to be tested;Further, whole test process participates in without developer, it is possible to increase testing efficiency.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes the part of the application, and the schematic description and description of the application is used for explaining the application, is not intended that the improper restriction to the application.In the accompanying drawings:
Fig. 1 is the flow chart of a kind of method testing revised application program in the embodiment of the present application;
Fig. 2 is the flow chart of a kind of inlet porting Method in the embodiment of the present application and the method for the corresponding relation of test case;
Fig. 3 is the structural representation of a kind of device testing revised application program in the embodiment of the present application;
Fig. 4 is the structural representation that the another kind in the embodiment of the present application tests the device of revised application program.
Detailed description of the invention
In order to make technical problems to be solved in this application, technical scheme and beneficial effect clearly, understand, below in conjunction with drawings and Examples, the application is further elaborated.Should be appreciated that specific embodiment described herein is only in order to explain the application, be not used to limit the application.
Testing efficiency in order to solve to exist in prior art is relatively low, and affects the problem of revised application program quality, and the embodiment of the present application provides a kind of method testing revised application program, and the flow process of the method is as it is shown in figure 1, specifically include following steps:
S11: obtain revised application program as application program to be tested.
After a usual application development completes, later stage also need to the situation according to user's practice this application program is upgraded, reparation etc., this needs to rewrite code and realizes, then revised application program is tested, determine revised application program can properly functioning after reach the standard grade again.
In the embodiment of the present application, revised application program is as application program to be tested.
S12: determine the change Method of application program to be tested according to the original application program of application program to be tested and correspondence thereof.
Generally, application program can include multiple Class, each Class includes again multiple Method, Method can as unit minimum in application program, therefore, can first determine that the Method, i.e. the change Method of application program to be tested changed occurs application program to be tested relative to original application program.
S13: that determines application program to be tested changes the Method entrance Method having influence on, the Method entrance Method having influence on that changes of application program to be tested is carried out original application program and the starting point of application program to be tested.
Each application program has the starting point of execution, these starting points are called entrance Method, after code in original application program is written over, influence whether all or part of entrance Method therein, therefore, when testing application program to be tested, it is necessary first to that determines application program to be tested changes the Method entrance Method having influence on.
Entrance Method is external protocol and calls Method, wherein, external protocol can be remote procedure call protocol (RemoteProcedureCallProtocol, RPC), HTTP (Hypertexttransferprotocol, HTTP) etc..
S14: the corresponding relation according to the entrance Method pre-set Yu test case, what obtain application program to be tested changes the Method test case corresponding for entrance Method having influence on.
nullDeveloper is when initial test original application program,The test case of each entrance Method can be completed,Thus realizing the test to original application program,Generally these test cases will not preserve,Even if these test cases preserve,Without the corresponding relation setting up test case and Method,Therefore,The developer rewriting original program cannot know the test case of entrance Method,Appearance in order to avoid this problem,The entrance Method of original application program and the corresponding relation of test case can be pre-set,When application program to be tested tested by needs,Directly can obtain the change Method of the application program to be tested test case corresponding for entrance Method having influence on according to this corresponding relation,Such that it is able to guarantee when testing application program to be tested,Obtain the repertoire changing the Method entrance Method having influence on of application program to be tested,And then complete judge to change whether Method has the impact surpassed the expectation.
S15: the test case performing to obtain tests application program to be tested.
In the program, owing to pre-setting the corresponding relation of entrance Method and test case, therefore, after the change Method the getting application program to be tested entrance Method having influence on, the test case corresponding for entrance Method that application program to be tested has influence on can be obtained according to this corresponding relation, such that it is able to the repertoire that the entrance Method that the change Method obtaining application program to be tested exactly has influence on realizes, intactly judge to change whether Method has the impact surpassed the expectation, it is ensured that the quality of application program to be tested;Further, whole test process participates in without developer, it is possible to increase testing efficiency.
Concrete, the original application program according to application program to be tested and correspondence thereof in above-mentioned S12 determines the change Method of application program to be tested, specifically includes:
Obtain the original application program that application program to be tested is corresponding;
Application program to be tested and original application program are compared in units of Class;
Obtain application program to be tested relative to the Class that original application program the is changed code included;
Application program to be tested is determined the Method that the code of change is corresponding, obtains the change Method of application program to be tested.
Owing to application program would generally include multiple Class; therefore original application program and application program to be tested can be compared in units of Class; determine the Class that application program to be tested is changed relative to original application program; then the Class of the change code included and Method corresponding to these codes are further determined that, thus obtaining the change Method of application program to be tested.
It is enumerated above a kind of implementation changing Method determining application program to be tested, also has a lot of other implementations, such as, the code of direct comparison original application program and application program to be tested, then determine that the Method that the code of change is corresponding, obtain the change Method of application program to be tested;Or, the Method of direct comparison original application program and application program to be tested, then determine that the Method of change, obtain the change Method of application program to be tested.
Concrete, determination application program to be tested in above-mentioned S13 change the Method entrance Method having influence on, specifically include:
Analyze the call relation between the Method that application program to be tested comprises;
Determine that the Method that changes with application program to be tested affects link for starting point according to the call relation analyzed;
Obtaining each Method affecting link end, what obtain application program to be tested changes the Method entrance Method having influence on.
Application program, in running, generally has call relation between the Method that this application program comprises, a Method can be called by other Method, also can call other Method.Therefore, it can first analyze the call relation between the Method that application program to be tested comprises;Then determining that the Method that changes with application program to be tested affects link for starting point according to the call relation that analyzes, the Method of this end affecting link is not called by any Method, is the entrance Method of application program to be tested;Finally can obtaining each Method affecting link end, what obtain application program to be tested changes the Method entrance Method having influence on.
nullIllustrate with an example below,Assume,Methoda calls Methodb,Methodb calls Methodc、Methodd,Methodc calls Methode、Methodf、Methodg,Methodd calls Methodh、Methodi、Methodj、Methodk,If the change Method of application program to be tested is k,So,Link is affected for Methodk-with what Methodk was starting point > Methodd-> Methodb-> Methoda,This end affecting link is Methoda,Methoda be application program to be tested change the entrance Method that has influence on of Method.
Concrete, in above-mentioned S14 the corresponding relation according to the entrance Method pre-set with test case, what obtain application program to be tested changes the Method test case corresponding for entrance Method having influence on, and specifically includes:
Obtain the corresponding relation of entrance Method and the test case pre-set;
That searches application program to be tested in corresponding relation changes the Method test case corresponding for entrance Method having influence on;
Obtain the change Method of the application program to be tested the found test case corresponding for entrance Method having influence on.
The corresponding relation of the entrance Method pre-set and test case generally comprises multipair entrance Method and test case, after obtaining this corresponding relation, may determine whether to include the change Method of the application program to be tested entrance Method having influence on, if including, what then obtain application program to be tested changes the Method test case corresponding for entrance Method having influence on, then application program to be tested is tested according to this test case, so that it is guaranteed that it is enough in testing application program to be tested, obtain the repertoire changing the Method entrance Method having influence on of application program to be tested, and then complete judge to change whether Method has the impact surpassed the expectation.
According to a kind of method that the embodiment of the present application provides entrance Method setting up original application program in advance and the corresponding relation of test case, the flow process of the method is as in figure 2 it is shown, specifically include following steps:
S21: obtain original application program.
After an application program (being properly termed as original application program) completes, before it is formally reached the standard grade, it is necessary to it is tested, it is ensured that this original application program properly functioning.
S22: analyze the call relation between the Method that original application program comprises, obtain the entrance Method of original program.
Original application program generally comprises multiple Method, it is possible to by analyzing the call relation between these Method, determine entrance Method.
S23: obtain the test case corresponding for entrance Method of original application program.
When original application program is tested by developer, each test case corresponding for entrance Method can be write, it is possible to obtain these test cases.Specifically can be, but not limited to adopt with the following method: when monitoring after developer completes test case corresponding to each entrance Method, directly obtain test case corresponding to each entrance Method;Or, prompting developer actively preserves test case corresponding to each entrance Method, then obtains the test case corresponding for each entrance Method that developer preserves.
S24: associate the entrance Method of original application program and the test case of correspondence thereof, obtain corresponding relation.
Original application program is likely to there is multiple entrance Method, it is possible to associate the test case of each entrance Method and correspondence thereof, thus obtaining this corresponding relation.
In this corresponding relation, the test case of entrance Method and correspondence thereof can adopt the form of list item, the test case of every couple of entrance Method and correspondence thereof is saved in a list item, each list item can preserve particular content or the storage address of test case, when the data volume of test case is less, in this list item, directly preserve the content of test case, when the data volume of test case is bigger, test case can be saved in the memory space of setting, then in this list item, preserve the storage address of test case, correspondingly follow-up in use, can first obtain the storage address of this test case, then the particular content of test case is obtained again.
It is described above the method testing revised application program, based on same inventive concept, the embodiment of the present application also provides for a kind of device testing revised application program, the structure of this device is such as shown in 3 figure, including the first acquiring unit 31, first determine unit 32, second determine unit 33, second acquisition unit 34 and performance element 35, wherein:
Above-mentioned first acquiring unit 31, is used for obtaining revised application program as application program to be tested.
Above-mentioned first determines unit 32, for determining the change Method of application program to be tested according to the original application program of application program to be tested and correspondence thereof, the change Method of application program to be tested is the Method that application program to be tested occurs relative to original application program to change.
Above-mentioned second determines unit 33, and for determining the change Method of the application program to be tested entrance Method having influence on, the Method entrance Method having influence on that changes of application program to be tested is carried out original application program and the starting point of application program to be tested.
Above-mentioned second acquisition unit 34, for the corresponding relation according to the entrance Method pre-set with test case, what obtain application program to be tested changes the Method test case corresponding for entrance Method having influence on.
Above-mentioned performance element 35, the test case being used for performing to obtain is to test application program to be tested.
In the program, owing to pre-setting the corresponding relation of entrance Method and test case, therefore, after the change Method the getting application program to be tested entrance Method having influence on, the test case corresponding for entrance Method that application program to be tested has influence on can be obtained according to this corresponding relation, such that it is able to the repertoire that the entrance Method that the change Method obtaining application program to be tested exactly has influence on realizes, intactly judge to change whether Method has the impact surpassed the expectation, it is ensured that the quality of application program to be tested;Further, whole test process participates in without developer, it is possible to increase testing efficiency.
Concrete, above-mentioned first determines unit 32, specifically for:
Obtain the original application program that application program to be tested is corresponding;
Application program to be tested and original application program are compared in units of class Class;
Obtain application program to be tested relative to the Class that original application program the is changed code included;
Application program to be tested is determined the Method that the code of change is corresponding, obtains the change Method of application program to be tested.
Concrete, above-mentioned second determines unit 33, specifically for:
Analyze the call relation between the Method that application program to be tested comprises;
Determine that the Method that changes with application program to be tested affects link for starting point according to the call relation analyzed;
Obtaining each Method affecting link end, what obtain application program to be tested changes the Method entrance Method having influence on.
Concrete, above-mentioned second acquisition unit 34, specifically for:
Obtain the corresponding relation of entrance Method and the test case pre-set;
That searches application program to be tested in corresponding relation changes the Method test case corresponding for entrance Method having influence on;
Obtain the change Method of the application program to be tested the found test case corresponding for entrance Method having influence on.
The embodiment of the present application also provides for the second and tests the device of revised application program, as shown in Figure 4, the device that its basic structure describes with Fig. 3 is similar, not table is omitted with the element of labeled, the basis of the device shown in Fig. 3 also includes the 3rd acquiring unit 36, analytic unit the 37, the 4th acquiring unit 38 and associative cell 39, wherein:
Above-mentioned 3rd acquiring unit 36, is used for obtaining original application program.
Above-mentioned analytic unit 37, for analyzing the call relation between the Method that original application program comprises, obtains the entrance Method of original program.
Above-mentioned 4th acquiring unit 38, for obtaining the test case corresponding for entrance Method of original application program.
Above-mentioned associative cell 39, for associating the entrance Method of original application program and the test case of correspondence thereof, obtains corresponding relation.
Described above illustrate and describes the preferred embodiment of the application, but as previously mentioned, it is to be understood that the application is not limited to form disclosed herein, it is not to be taken as the eliminating to other embodiments, and can be used for other combinations various, amendment and environment, and in invention contemplated scope described herein, can be modified by the technology of above-mentioned instruction or association area or knowledge.And the change that those skilled in the art carry out and change are without departing from spirit and scope, then all should in the protection domain of the application claims.

Claims (10)

1. the method testing revised application program, it is characterised in that including:
Obtain revised application program as application program to be tested;
Original application program according to described application program to be tested and correspondence thereof determines that the change method Method of described application program to be tested, the change Method of described application program to be tested are the Method that described application program to be tested occurs relative to described original application program to change;
That determines described application program to be tested changes the Method entrance Method having influence on, and the Method entrance Method having influence on that changes of described application program to be tested is carried out described original application program and the starting point of described application program to be tested;
Corresponding relation according to the entrance Method pre-set Yu test case, what obtain described application program to be tested changes the Method test case corresponding for entrance Method having influence on;
The test case performing to obtain tests described application program to be tested.
2. the method for claim 1, it is characterised in that determine the change Method of described application program to be tested according to the original application program of described application program to be tested and correspondence thereof, specifically include:
Obtain the original application program that described application program to be tested is corresponding;
Described application program to be tested and described original application program are compared in units of class Class;
Obtain described application program to be tested relative to the Class that described original application program the is changed code included;
Described application program to be tested is determined the Method that the code of change is corresponding, obtains the change Method of described application program to be tested.
3. the method for claim 1, it is characterised in that determines described application program to be tested changes the Method entrance Method having influence on, and specifically includes:
Analyze the call relation between the Method that described application program to be tested comprises;
Determine that the Method that changes with described application program to be tested affects link for starting point according to the call relation analyzed;
Obtaining each described Method affecting link end, what obtain described application program to be tested changes the Method entrance Method having influence on.
4. the method for claim 1, it is characterised in that the corresponding relation according to the entrance Method pre-set Yu test case, what obtain described application program to be tested changes the Method test case corresponding for entrance Method having influence on, and specifically includes:
Obtain the corresponding relation of entrance Method and the test case pre-set;
That searches described application program to be tested in described corresponding relation changes the Method test case corresponding for entrance Method having influence on;
Obtain the change Method of the application program described to be tested the found test case corresponding for entrance Method having influence on.
5. the method as described in as arbitrary in claim 1-4, it is characterised in that also include:
Obtain described original application program;
Analyze the call relation between the Method that described original application program comprises, obtain the entrance Method of described original program;
Obtain the test case corresponding for entrance Method of described original application program;
Associate the entrance Method of described original application program and the test case of correspondence thereof, obtain described corresponding relation.
6. the device testing revised application program, it is characterised in that including:
First acquiring unit, is used for obtaining revised application program as application program to be tested;
First determines unit, for determining that according to the original application program of described application program to be tested and correspondence thereof the change method Method of described application program to be tested, the change Method of described application program to be tested are the Method that described application program to be tested occurs relative to described original application program to change;
Second determines unit, for determining the change Method of the described application program to be tested entrance Method having influence on, the Method entrance Method having influence on that changes of described application program to be tested is carried out described original application program and the starting point of described application program to be tested;
Second acquisition unit, for the corresponding relation according to the entrance Method pre-set with test case, what obtain described application program to be tested changes the Method test case corresponding for entrance Method having influence on;
Performance element, the test case being used for performing to obtain is to test described application program to be tested.
7. device as claimed in claim 6, it is characterised in that described first determines unit, specifically for:
Obtain the original application program that described application program to be tested is corresponding;
Described application program to be tested and described original application program are compared in units of class Class;
Obtain described application program to be tested relative to the Class that described original application program the is changed code included;
Described application program to be tested is determined the Method that the code of change is corresponding, obtains the change Method of described application program to be tested.
8. device as claimed in claim 6, it is characterised in that described second determines unit, specifically for:
Analyze the call relation between the Method that described application program to be tested comprises;
Determine that the Method that changes with described application program to be tested affects link for starting point according to the call relation analyzed;
Obtaining each described Method affecting link end, what obtain described application program to be tested changes the Method entrance Method having influence on.
9. device as claimed in claim 6, it is characterised in that described second acquisition unit, specifically for:
Obtain the corresponding relation of entrance Method and the test case pre-set;
That searches described application program to be tested in described corresponding relation changes the Method test case corresponding for entrance Method having influence on;
Obtain the change Method of the application program described to be tested the found test case corresponding for entrance Method having influence on.
10. the device as described in as arbitrary in claim 6-9, it is characterised in that also include:
3rd acquiring unit, is used for obtaining described original application program;
Analytic unit, for analyzing the call relation between the Method that described original application program comprises, obtains the entrance Method of described original program;
4th acquiring unit, for obtaining the test case corresponding for entrance Method of described original application program;
Associative cell, for associating the entrance Method of described original application program and the test case of correspondence thereof, obtains described corresponding relation.
CN201410778756.9A 2014-12-15 2014-12-15 Test the method and device of revised application program Active CN105760288B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410778756.9A CN105760288B (en) 2014-12-15 2014-12-15 Test the method and device of revised application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410778756.9A CN105760288B (en) 2014-12-15 2014-12-15 Test the method and device of revised application program

Publications (2)

Publication Number Publication Date
CN105760288A true CN105760288A (en) 2016-07-13
CN105760288B CN105760288B (en) 2019-02-01

Family

ID=56336895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410778756.9A Active CN105760288B (en) 2014-12-15 2014-12-15 Test the method and device of revised application program

Country Status (1)

Country Link
CN (1) CN105760288B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107015909B (en) * 2017-03-31 2020-03-27 青岛海信电器股份有限公司 Test method and device based on code change analysis
CN115658552A (en) * 2022-12-26 2023-01-31 海马云(天津)信息技术有限公司 Test data recommendation method and device, storage medium and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080256517A1 (en) * 2006-10-18 2008-10-16 International Business Machines Corporation Method and System for Automatically Generating Unit Test Cases Which Can Reproduce Runtime Problems
CN201383144Y (en) * 2009-03-25 2010-01-13 北京信息工程学院 Testing device
CN101859276A (en) * 2010-05-14 2010-10-13 东南大学 Regression testing case selection method based on hierarchical slicing
US20110161936A1 (en) * 2009-12-28 2011-06-30 International Business Machines Method and apparatus for regression testing selection for a framework-based application
CN102831060A (en) * 2012-08-24 2012-12-19 东南大学 Modification influence analysis based regression test case updating method of part software
CN102831056A (en) * 2012-07-31 2012-12-19 东南大学 Regression testing sample generating method based on modification impact analysis
CN102880547A (en) * 2012-09-05 2013-01-16 无锡江南计算技术研究所 Source code change influence analyzing and testing method for software units and components with combination of phase
CN102915271A (en) * 2012-10-31 2013-02-06 北京邮电大学 Method for optimizing unit regression test case set based on control flow diagram

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080256517A1 (en) * 2006-10-18 2008-10-16 International Business Machines Corporation Method and System for Automatically Generating Unit Test Cases Which Can Reproduce Runtime Problems
CN201383144Y (en) * 2009-03-25 2010-01-13 北京信息工程学院 Testing device
US20110161936A1 (en) * 2009-12-28 2011-06-30 International Business Machines Method and apparatus for regression testing selection for a framework-based application
CN101859276A (en) * 2010-05-14 2010-10-13 东南大学 Regression testing case selection method based on hierarchical slicing
CN102831056A (en) * 2012-07-31 2012-12-19 东南大学 Regression testing sample generating method based on modification impact analysis
CN102831060A (en) * 2012-08-24 2012-12-19 东南大学 Modification influence analysis based regression test case updating method of part software
CN102880547A (en) * 2012-09-05 2013-01-16 无锡江南计算技术研究所 Source code change influence analyzing and testing method for software units and components with combination of phase
CN102915271A (en) * 2012-10-31 2013-02-06 北京邮电大学 Method for optimizing unit regression test case set based on control flow diagram

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107015909B (en) * 2017-03-31 2020-03-27 青岛海信电器股份有限公司 Test method and device based on code change analysis
CN115658552A (en) * 2022-12-26 2023-01-31 海马云(天津)信息技术有限公司 Test data recommendation method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN105760288B (en) 2019-02-01

Similar Documents

Publication Publication Date Title
US8533691B2 (en) Managing non-common features for program code translation
US9819758B2 (en) Remote debugging into mobile web applications across devices
US9003381B2 (en) Context-specific optimized code
CN106326104B (en) Terminal control testing method and device
US9483384B2 (en) Generation of software test code
CN105446712B (en) Application program defect repairing method and device
US8996921B2 (en) Indicating coverage of Web application testing
CN105468529A (en) Accurate traversal method and apparatus for UI controls of android application
CN105159833A (en) Automatic testing device and method
CN109471768B (en) Service problem monitoring method and device and electronic equipment
US20150040112A1 (en) Enabling Interoperability Between Software Applications By Utilizing Partial Binaries
US8671397B2 (en) Selective data flow analysis of bounded regions of computer software applications
US20170147562A1 (en) Visually differentiating strings for testing
CN108319858B (en) Data dependency graph construction method and device for unsafe function
US8990781B2 (en) Synchronization point visualization for modified program source code
US10565091B2 (en) Method and apparatus for automatic cross-system program debugging
US10296311B2 (en) Finding uninitialized variables outside the local scope
CN103885873A (en) Automated integration testing method
US9639343B2 (en) Method for altering execution of a program, debugger, and computer-readable medium
Park et al. Fragmentation problem in Android
JP7409197B2 (en) Elaboration of repair patterns for static analysis violations in software programs
CN107463485B (en) Method stack-based log acquisition method and device and terminal
CN107038117B (en) Web automatic testing method based on definition-reference between event processing functions
CN112052037A (en) Application software development method, device, equipment and medium
Kamran et al. Android fragmentation classification, causes, problems and solutions

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