Specific embodiment
In order to make those skilled in the art more fully understand disclosure scheme, below in conjunction with the exemplary implementation of the disclosure
Attached drawing in example, is clearly and completely described the technical solution in disclosure exemplary embodiment.
In some processes of the description in the specification and claims of the disclosure and above-mentioned attached drawing, contain according to
Multiple operations that particular order occurs, but it should be clearly understood that these operations can not be what appears in this article suitable according to its
Sequence is executed or is executed parallel, and serial number of operation such as 101,102 etc. is only used for distinguishing each different operation, serial number
It itself does not represent and any executes sequence.In addition, these processes may include more or fewer operations, and these operations can
To execute or execute parallel in order.It should be noted that the description such as " first " herein, " second ", is for distinguishing not
Same message, equipment, module etc., does not represent sequencing, does not also limit " first " and " second " and be different type.
Below in conjunction with the attached drawing in disclosure exemplary embodiment, to the technical solution in disclosure exemplary embodiment
It being clearly and completely described, it is clear that described exemplary embodiment is only disclosure a part of the embodiment, rather than
Whole embodiments.Based on the embodiment in the disclosure, those skilled in the art institute without creative efforts
The every other embodiment obtained belongs to the range of disclosure protection..
Fig. 1 shows the flow chart of the recurrence range determining method according to one embodiment of the disclosure.This method may include
Step S101, S102, S103 and S104.
In step s101, dispose old code to server and carry out operational trials, and record with it is old code dependent
The first information.
In step s 102, deployment fresh code to server and carries out operational trials, and records relevant to fresh code
Second information.
In step s 103, the first information is compared with the second information.
In step S104, based on the inconsistent comparison result of the first information and the second information, search and the second information phase
The business of pass is as recurrence range.
In one embodiment of the present disclosure, the first information is the verification information for being verified to old code, and
Second information is the verification information for being verified to fresh code.That is, the verification information of old code or the verifying letter of fresh code
Breath can be used for the information verified to code itself.Therefore, the verification information of same code should be identical.?
In embodiment of the disclosure, if the verification information of old code and the verification information of fresh code are inconsistent, need to fresh code
Carry out regression test.In this case, it is possible to be searched for according to the verification information of fresh code relevant to the verification information of fresh code
Business is as recurrence range.The mode of range of returning is determined different from artificial in the related technology, and embodiment of the present disclosure can be with
Recurrence range is determined according to relevant second information of the and function of fresh code.
In one embodiment of the present disclosure, the first information include the unique identification of test case, test case description,
And the unique name of the corresponding application of the unique name and old code of the corresponding business of test case corresponding with old code is answered
The IP address of machine and acquisition time with old code dependent data.These information can be used to generate old generation
The verification information of code, or directly constitute a part of the verification information of old code.These information may also be included in that old generation
In the first code row information and the first key point parameter information of code.Moreover, these information may be used to determine whether old code
Return range.
In one embodiment of the present disclosure, the second information include the unique identification of test case, test case description,
And the unique name of the corresponding application of the unique name and fresh code of the corresponding business of test case corresponding with fresh code is answered
The acquisition time of the IP address of machine and data relevant to fresh code.These information can be used to generate new generation
The verification information of code, or directly constitute a part of the verification information of fresh code.These information may also be included in that new generation
In the second code row information and the second key point parameter information of code.Moreover, these information may be used to determine whether fresh code
Return range.
From the above content, it can be seen that there are corresponding relationships between the first information and the second information.However, it will be understood that the
It may not necessarily be completely corresponding between one information and the second information, that is, certain contents in the first information are not deposited in the second information
Corresponding part is not present in certain contents in corresponding part or the second information in the first information.
In one embodiment of the present disclosure, the verification information of old code includes the variation record letter of the class file of old code
Breath, and the verification information of fresh code includes the variation record information of the class file of fresh code, wherein step S104, comprising: base
The inconsistent comparison result of information is recorded in the variation of the class file of the variation record information and fresh code of the class file of old code,
Search is by the business of the class file of fresh code as recurrence range.
In one embodiment of the present disclosure, the variation record information list of class file shows that record has the variation of this class file
Information.When the variation record information of the variation record information of the class file of old code and the class file of fresh code is inconsistent, search
Rope is by the business of the class file of this fresh code as recurrence range.
In one embodiment of the present disclosure, the variation record information of the class file of old code includes the class file of old code
Encrypted identification information, and the class file of fresh code variation record information include fresh code class file encryption identification letter
Breath.In one embodiment of the present disclosure, class file is the file obtained later to source file compiling, can be by machine recognition.
In one embodiment of the present disclosure, the encrypted identification information of the class file of old code includes the class file of old code
MD5 information, and the encrypted identification information of the class file of fresh code includes the MD5 information of the class file of fresh code.MD5 message
Digest algorithm (MD5Message-Digest Algorithm) is a kind of Cryptographic Hash Function being widely used, and be can produce
The hashed value (hash value) of one 128 (16 byte) out, for ensuring that information transmission is complete consistent.The allusion quotation of MD5 algorithm
Type application is to generate informative abstract to one section of text information, to prevent from being tampered.Class file and fresh code to old code
Class file does MD5 verification, can determine whether the two is same file.
It will be understood by those skilled in the art that as needed, the encryption identification letter of class file can be generated in various ways
Breath, and it is not limited to MD5 information.
In one embodiment of the present disclosure, the first information includes the first code row information and the first key point of old code
Parameter information, wherein first code row information includes the signature unique and function parameter type of each function in old code, and
And first key point parameter information include old code in whole parameters parameter name and parameter value;Second information includes fresh code
Second code row information and the second key point parameter information, wherein second code row information include fresh code in each letter
Several signature uniques and function parameter type, and the second key point parameter information includes the parameter of whole parameters in fresh code
Name and parameter value.
In one embodiment of the present disclosure, step S104 includes: the ratio inconsistent based on the first information and the second information
Pair as a result, search by the business of each function and function parameter in fresh code as returning range.
In the above embodiment of the present disclosure, the verification information of code can be and carrying out specific calculation to code itself
It obtains, and the code row information of code and key point parameter information are as obtained from analyzing code.It is either right
The verification information of old code is compared with the verification information of fresh code, or to the first code row information of old code and first
Key point parameter information is compared with the second code row information of fresh code and the second key point parameter information, is provided to really
Fixed old code and fresh code whether there is difference, so using by the business of difference as recurrence range.In order to guarantee back
Return range to cover whole differences, whole business relevant to the second information can be used as and return range.
In one embodiment of the present disclosure, whole business relevant to the second information, the model of regression test be may search for
It encloses including and the relevant test case (for example, automation use-case) of these business and business corresponding with test case.This field
Technical staff is appreciated that in some cases the range of business corresponding with test case is likely larger than and the second information phase
Whole business of pass.In this manner it is possible to than the recurrence range for more comprehensively determining fresh code (or being regression test range).
In one embodiment of the present disclosure, returning range includes the test case needed to be implemented relevant to the second information
With business corresponding with test case.In one embodiment of the present disclosure, it can be determined based on the first information and pass through old code
In function whole business and to by the relevant test case needed to be implemented of whole business of function in old code
With business corresponding with test case, that is, the recurrence range of old code.On this basis, the recurrence in old code can be determined
The recurrence range of the fresh code obtained on scope.It is appreciated that the recurrence range of fresh code can be greater than returning for old code
Return range, more perfect regression test can be carried out in this way.
In disclosure embodiment, by disposing old code to server and carrying out operational trials, and record with it is old
The code dependent first information;Deployment fresh code to server and carries out operational trials, and record relevant to fresh code the
Two information;The first information is compared with the second information;Based on the inconsistent comparison result of the first information and the second information, search
Rope business relevant to the second information can just collect critical data, code revision as range is returned before code revision
Influence point can be analyzed immediately according to new critical data later, recurrence model that is quick, accurate, automatically determining regression test
It encloses, and alleviates the burden of tester.
Fig. 2 shows exemplary according to one for returning the step S104 in range determining method of one embodiment of the disclosure
Flow chart.As shown in Fig. 2, step S104 includes step S201, step S202 and step S203.
In step s 201, the comparison result inconsistent based on the first information and the second information, the second information storage is arrived
Change list.
In step S202, the second information in change list is obtained.
In step S203, business relevant to the second information is searched for as recurrence range.
In one embodiment of the present disclosure, for fresh code, concern is characterized by the variation in code, for example, letter
Several and function parameter information variation, for this reacting condition in the second information of fresh code, the second information is to determine back
Return the basis of range.Therefore, it when the first information and inconsistent the second information, needs to deposit the second information relevant to fresh code
Store up change list.Whenever it needs to be determined that fresh code recurrence range when, directly can obtain fresh code into change list
Second information, also, business relevant to the second information is searched for as recurrence range.
Therefore, it needs to be determined that fresh code recurrence range when, can be according to new critical data after code revision
Analyze influence point immediately, quickly, it is accurate, automatically determine the recurrence range of regression test, and alleviate tester's
Burden.
Fig. 3 shows the structural block diagram of the recurrence ranges determination device according to one embodiment of the disclosure.The device can wrap
Include the first deployment module 301, the second deployment module 302, comparison module 303 and search module 304.
First deployment module 301 is configured as disposing old code to server and carries out operational trials, and record with it is old
The code dependent first information.
Second deployment module 302 is configured as deployment fresh code and to server and carries out operational trials, and record with newly
Code dependent second information.
Comparison module 303 is configured as that the first information is compared with the second information.
Search module 304 is configured as the comparison result inconsistent based on the first information and the second information, search and second
The relevant business of information is as recurrence range.
The foregoing describe the built-in functions and structure that return ranges determination device, in a possible design, the recurrence
The structure of ranges determination device can realize that as shown in Figure 4, which may include to return range and determine equipment
Processor 401 and memory 402.
The memory 402 returns range for storing to support to return in any of the above-described embodiment of ranges determination device execution
Determine the program of method, the processor 401 is configurable for executing the program stored in the memory 402.
The memory 402 is for storing one or more computer instruction, wherein one or more computer refers to
It enables and being executed by the processor 401 to perform the steps of
Old code is disposed to server and carries out operational trials, and is recorded and the old code dependent first information;
Deployment fresh code to the server and carries out operational trials, and records the second letter relevant to the fresh code
Breath;
The first information is compared with second information;
Based on the first information and the inconsistent comparison result of second information, search for related to second information
Business as return range.
In one embodiment of the present disclosure, the first information is the verification information of the old code, and described the
Two information are the verification information of the fresh code.
In one embodiment of the present disclosure, the verification information of the old code includes the change of the class file of the old code
Change record information, and the verification information of the fresh code includes the variation record information of the class file of the fresh code, wherein
It is described based on the first information and the inconsistent comparison result of second information, search for industry relevant to second information
Business is as recurrence range, comprising:
The variation of the class file of the variation record information and fresh code of class file based on the old code, which records, to be believed
Inconsistent comparison result is ceased, search is by the business of the class file of the fresh code as recurrence range.
In one embodiment of the present disclosure, the first information includes the first code row information and of the old code
One key point parameter information, wherein the first code row information includes the signature unique of each function in the old code
With function parameter type, and the first key point parameter information include the old code in whole parameters parameter name and
Parameter value;Second information includes the second code row information and the second key point parameter information of the fresh code, wherein institute
State the signature unique and function parameter type that second code row information includes each function in the fresh code, and described the
Two key point parameter informations include the parameter name and parameter value of whole parameters in the fresh code.
In one embodiment of the present disclosure, described based on the first information and the inconsistent comparison of second information
As a result, search business relevant to second information is as recurrence range, comprising:
Based on the first information and the inconsistent comparison result of second information, search is by the fresh code
The business of each function and function parameter is as recurrence range.
In one embodiment of the present disclosure, the recurrence range includes needs to be implemented relevant to second information
Test case and business corresponding with the test case.
In one embodiment of the present disclosure, the first information includes the unique identification of test case, test case
The unique name of description and the corresponding business of test case, application corresponding with the old code unique name, with it is described old
The IP address of the machine of the corresponding application of code and acquisition time with the old code dependent data;Second letter
Breath include the description of unique identification, test case of test case, business corresponding with test case unique name, with it is described
The unique name of the corresponding application of fresh code, application corresponding with the fresh code machine IP address and with it is described new
The acquisition time of code dependent data.
In one embodiment of the present disclosure, described based on the first information and the inconsistent comparison of second information
As a result, search business relevant to second information is as recurrence range, comprising:
Based on the first information and the inconsistent comparison result of second information, by second information storage to changing
Dynamic list;
Obtain the second information in the change list;
Business relevant to second information is searched for as recurrence range.
The processor 401 is used to execute all or part of the steps in aforementioned approaches method step.
Wherein, it can also include communication interface in the structure of equipment that the recurrence range, which determines, determine for returning range
Equipment and other equipment or communication.
Disclosure exemplary embodiment additionally provides a kind of computer storage medium, determines for storing the recurrence range
Computer software instructions used in device, it includes return involved by range determining method for executing in any of the above-described embodiment
Program.
Fig. 5 is adapted for the computer system for realizing the recurrence range determining method according to one embodiment of the disclosure
Structural schematic diagram.
As shown in figure 5, computer system 500 includes central processing unit (CPU) 501, it can be read-only according to being stored in
Program in memory (ROM) 502 or be loaded into the program in random access storage device (RAM) 503 from storage section 508 and
Execute the various processing in above-mentioned embodiment shown in FIG. 1.In RAM503, be also stored with system 500 operate it is required each
Kind program and data.CPU501, ROM502 and RAM503 are connected with each other by bus 504.Input/output (I/O) interface 505
It is also connected to bus 504.
I/O interface 505 is connected to lower component: the importation 506 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 507 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 508 including hard disk etc.;
And the communications portion 509 of the network interface card including LAN card, modem etc..Communications portion 509 via such as because
The network of spy's net executes communication process.Driver 510 is also connected to I/O interface 505 as needed.Detachable media 511, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 510, in order to read from thereon
Computer program be mounted into storage section 508 as needed.
Particularly, according to embodiment of the present disclosure, it is soft to may be implemented as computer above with reference to Fig. 1 method described
Part program.For example, embodiment of the present disclosure includes a kind of computer program product comprising be tangibly embodied in and its readable
Computer program on medium, the computer program include the program code for executing the data processing method of Fig. 1.At this
In the embodiment of sample, which can be downloaded and installed from network by communications portion 509, and/or from can
Medium 511 is dismantled to be mounted.
Flow chart and block diagram in attached drawing illustrate system, method and computer according to the various embodiments of the disclosure
The architecture, function and operation in the cards of program product.In this regard, each box in course diagram or block diagram can be with
A part of a module, section or code is represented, a part of the module, section or code includes one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants
It is noted that the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, Ke Yiyong
The dedicated hardware based system of defined functions or operations is executed to realize, and/or specialized hardware and meter can be used
The combination of calculation machine instruction is realized.
Being described in unit or module involved in disclosure embodiment can be realized by way of software, can also
It is realized in a manner of through hardware.Described unit or module also can be set in the processor, these units or module
Title do not constitute the restriction to the unit or module itself under certain conditions.
As on the other hand, the disclosure additionally provides a kind of computer readable storage medium, the computer-readable storage medium
Matter can be computer readable storage medium included in device described in above embodiment;It is also possible to individualism,
Without the computer readable storage medium in supplying equipment.Computer-readable recording medium storage has one or more than one journey
Sequence, described program is used to execute by one or more than one processor is described in disclosed method.
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure
Can technical characteristic replaced mutually and the technical solution that is formed.
Storage media be stored with one perhaps more than one program described program used by one or more than one processor
Disclosed method is described in execute.
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure
Can technical characteristic replaced mutually and the technical solution that is formed.