CN103577319A - Source code file detection method, source code file detection device and file release system - Google Patents

Source code file detection method, source code file detection device and file release system Download PDF

Info

Publication number
CN103577319A
CN103577319A CN201210278637.8A CN201210278637A CN103577319A CN 103577319 A CN103577319 A CN 103577319A CN 201210278637 A CN201210278637 A CN 201210278637A CN 103577319 A CN103577319 A CN 103577319A
Authority
CN
China
Prior art keywords
source code
code file
file
difference
difference information
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.)
Pending
Application number
CN201210278637.8A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210278637.8A priority Critical patent/CN103577319A/en
Publication of CN103577319A publication Critical patent/CN103577319A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention discloses a source code file detection method, a source code file detection device and a file release system and belongs to the technical field of a computer. The method comprises the following steps of: acquiring a first source code file; acquiring a second source code file, wherein the second source code file and the first source code file are different development versions of the same software; comparing the first source code file with the second source code file to acquire file difference information; and releasing the file difference information. According to the technical scheme adopted by the embodiment of the invention, a tester can acquire the file difference information of the first source code file and the second source code file and still can find abnormal conditions of release omission, code entrainment and the like, so that the first source code file which is newly developed can be tested in a targeted mode, software testing efficiency can be effectively improved, moreover, accuracy of software testing can be further ensured and necessary guarantee is provided for promoting quality of the source code file.

Description

Source code file detection method and device, file distribution system
Technical field
The present invention relates to field of computer technology, particularly a kind of source code file detection method and device, file distribution system.
Background technology
In prior art, software test specifically refers to the test to the source code file of exploitation, specifically can comprise functional test and system testing etc., and software test is in order to guarantee the availability of the source code file of exploitation.
Generally, source code file is generally completed and is submitted to file distribution system by developer, and is issued by file distribution system.For test jobs such as the functional test of source code file and system testings, by tester, completed, particularly, tester can obtain the source code file of file distribution system issue, and source code file is tested accordingly.Wherein file distribution system is not only for realizing the issue of source code file, also for realize the functions such as synchronous and CRC check of source code file before issue.
In realizing process of the present invention, inventor finds that prior art at least exists following problem: in existing software development process, there is different exploitation versions in source code file, the source code file of each redaction has certain change with respect to legacy version before, and after tester obtains the source code file of redaction of file distribution system issue, and can't see it with respect to the changed content of legacy version before, if desired determine changed content, need tester manually the source code file of new and old edition to be contrasted to determine changed content, and changed content is tested, cause Efficiency of Software Testing lower.
Summary of the invention
In order to solve the problem of prior art, the embodiment of the present invention provides a kind of source code file detection method and device, file distribution system.Described technical scheme is as follows:
On the one hand, provide a kind of file test method, having comprised:
Obtain the first source code file;
Obtain the second source code file; The difference exploitation version that described the second source code file and described the first source code file are same software;
Described the first source code file and described the second source code file are contrasted, obtain file difference information;
Announce described file difference information.
Alternatively, in method as above, described in obtain the first source code file, comprising:
From version server, obtain described the first source code file;
Or from development equipment, obtain described the first source code file.
Alternatively, in method as above, described in obtain the second source code file, comprising:
From file distribution system, obtain described the second source code file;
Or from testing apparatus, obtain described the second source code file.
Alternatively, in method as above, described file difference information adopts outstanding mark sign.
Alternatively, in method as above, described file difference information comprises difference details information, and described the first source code file and described the second source code file are contrasted, and obtains file difference information, comprising:
Described the first source code file and described the second source code file are carried out to full text contrast, get difference details information.
Alternatively, in method as above, described file difference information also comprises difference between difference, the size of described the first source code file and the size of described the second source code file between described the first source code file eigenwert and the eigenwert of described the second source code file and at least one in the difference between the type of described the first source code file and the type of the second source code file.
Alternatively, in method as above, announce described file difference information, comprising:
Account to tester sends the mail that carries described file difference information, to announce described file difference information.
On the other hand, provide a kind of file pick-up unit, having comprised:
The first acquisition module, for obtaining the first source code file;
The second acquisition module, for obtaining the second source code file;
Contrast module, for described the first source code file and described the second source code file are contrasted, obtains file difference information; The difference exploitation version that described the second source code file and described the first source code file are same software;
Announce module, for announcing described file difference information.
Alternatively, in device as above, described the first acquisition module, specifically for obtaining described the first source code file from version server; Or from development equipment, obtain described the first source code file.
Alternatively, in device as above, described the second acquisition module, specifically for obtaining described the second source code file from file distribution system; Or from testing apparatus, obtain described the second source code file.
Alternatively, in device as above, described file difference information adopts outstanding mark sign.
Alternatively, in device as above, when described file difference information comprises difference details information, described contrast module, specifically for described the first source code file and described the second source code file are carried out to full text contrast, gets difference details information.
Alternatively, in device as above, described file difference information also comprises difference between difference, the size of described the first source code file and the size of described the second source code file between described the first source code file eigenwert and the eigenwert of described the second source code file and at least one in the difference between the type of described the first source code file and the type of the second source code file.
Alternatively, in device as above, described announcement module, sends the mail that carries described file difference information, to announce described file difference information specifically for the account to tester.
On the one hand, provide a kind of file distribution system again, described file distribution system comprises a kind of file pick-up unit, and this document pick-up unit comprises:
The first acquisition module, for obtaining the first source code file;
The second acquisition module, for obtaining the second source code file;
Contrast module, for described the first source code file and described the second source code file are contrasted, obtains file difference information; The difference exploitation version that described the second source code file and described the first source code file are same software;
Announce module, for announcing described file difference information.
Alternatively, in system as above, described the first acquisition module, specifically for obtaining described the first source code file from version server; Or from development equipment, obtain described the first source code file.
Alternatively, in system as above, described the second acquisition module, specifically for obtaining described the second source code file from file distribution system; Or from testing apparatus, obtain described the second source code file.
Alternatively, in system as above, described file difference information adopts outstanding mark sign.
Alternatively, in system as above, when described file difference information comprises difference details information, described contrast module, specifically for described the first source code file and described the second source code file are carried out to full text contrast, gets difference details information.
Alternatively, in system as above, described file difference information also comprises difference between difference, the size of described the first source code file and the size of described the second source code file between described the first source code file eigenwert and the eigenwert of described the second source code file and at least one in the difference between the type of described the first source code file and the type of the second source code file.
Alternatively, in system as above, described announcement module, sends the mail that carries described file difference information, to announce described file difference information specifically for the account to tester.
The source code file detection method that the embodiment of the present invention provides and device, file distribution system, by obtaining the first source code file; Obtain the second source code file; The difference exploitation version that described the second source code file and described the first source code file are same software; Described the first source code file and described the second source code file are contrasted, obtain file difference information; Announce described file difference information.The technical scheme of the embodiment of the present invention, tester can get the file difference information of the first source code file and the second source code file, still can find Lou to send out, carry secretly the abnormal conditions such as code, thereby can to the first source code file newly developed, test targetedly, can effectively improve Efficiency of Software Testing.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The process flow diagram of the source code file detection method that Fig. 1 provides for the embodiment of the present invention one.
The full text contrast effect figure based on difflib that Fig. 2 provides for the embodiment of the present invention.
The full text contrast effect figure based on SVN that Fig. 3 provides for the embodiment of the present invention.
The difference contrast effect figure of the file difference information that Fig. 4 provides for the embodiment of the present invention.
The process flow diagram of the source code file detection method that Fig. 5 provides for the embodiment of the present invention two.
The schematic diagram of a kind of file difference information list that Fig. 6 provides for the embodiment of the present invention.
The structural representation of the source code file pick-up unit that Fig. 7 provides for the embodiment of the present invention three.
The structural representation of the file distribution system that Fig. 8 provides for the embodiment of the present invention four.
embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment mono-
The process flow diagram of the source code file detection method that Fig. 1 provides for the embodiment of the present invention one.The executive agent of the source code file detection method of the present embodiment can be a source code file pick-up unit, and for example this source code file pick-up unit specifically can be positioned at file distribution system side.As shown in Figure 1, the source code file detection method of the present embodiment, specifically can comprise the steps:
100, obtain the first source code file;
101, obtain the second source code file;
The difference exploitation version that the second source code file in the present embodiment and the first source code file are same software.The source code file that for example the second source code file is legacy version particularly.The first source code file is the source code file of redaction.
For example, in the first source code file of obtaining alternatively, and the second source code file, can also include the routing information of this document.For example can comprise the IP of the first source code file, and the IP of the second source code file.
102, the first source code file and the second source code file are contrasted, obtain file difference information;
103, publication document different information.
In the technique scheme of the present embodiment, be not limited to a kind of difference exploitation version file of source code file to process, can also carry out same processing to a source code file list, in this source code file list, can comprise at least one source code file, for all comprising this kind of the first source code file (being redaction) and the second source code file (being legacy version) that source code file is corresponding in this source code file list of each source code file.Particularly, can to each source code file in source code file list, process accordingly respectively according to technique scheme, like this, can obtain one group of file difference information, this is no longer going to repeat them in detail.
The source code file detection method of the present embodiment, by obtaining the first source code file; Obtain the second source code file; The difference exploitation version that the second source code file and the first source code file are same software; The first source code file and the second source code file are contrasted, obtain file difference information; Publication document different information.The technical scheme of the present embodiment, tester can get the file difference information of the first source code file and the second source code file, still can find Lou to send out, carry secretly the abnormal conditions such as code, thereby can to the first source code file of redaction, test targetedly, can effectively improve Efficiency of Software Testing, and can further guarantee the degree of accuracy of software test, for promoting the quality of source code file, made necessary guarantee.
Alternatively, on the basis of above-mentioned technical scheme embodiment illustrated in fig. 1, step 100 in above-described embodiment " is obtained the first source code file ", specifically can comprise the steps: to obtain described the first source code file from the version server of centralized file edition management system (Subversion, SVN); Or from development equipment, obtain described the first source code file.
Due at software development phase, by a plurality of developers, jointly completed, after everyone completes its corresponding part, all send to corresponding version server, by version server, integrated the first source code file to be released having formed.Therefore in the present embodiment, can from version server, obtain the first source code file.
Or for certain software, may only there is a people to develop, or be developed by many people, after still many people have developed, at the development equipment of a certain individual use, realize integration.Therefore in the present embodiment, can also from development equipment, obtain the first source code file.
In like manner, alternatively, on the basis of above-mentioned technical scheme embodiment illustrated in fig. 1, the step 101 in above-described embodiment " is obtained the second source code file ", specifically can comprise the steps: to obtain the second source code file from file distribution system; Or from testing apparatus, obtain the second source code file.
Particularly, the source code file that the second source code file in the present embodiment is legacy version.In test process, tester carried out test to the source code file of legacy version, and in testing apparatus, also remained with the source code file of legacy version.Therefore in the present embodiment, can from testing apparatus, obtain the source code file of legacy version.Or the former code file that can be obtained exploitation by file distribution system after exploitation completes is issued.Therefore in file distribution system, should also preserve the source code file of the legacy version of having issued.Therefore in the present embodiment, can from file distribution system, obtain the source code file of legacy version.
Further alternatively, on the basis of the technical scheme of above-described embodiment, when file difference information comprises difference details information, step 102 " contrasts the first source code file and the second source code file; obtain file difference information; comprising: described the first source code file and described the second source code file are carried out to full text contrast, get difference details information.
The process that the first source code file and the second source code file are contrasted is specially: for the first source code file of proposing survey from developing engine, the difflib that is python by a diff script realizes contrast in full, the full text contrast effect figure based on difflib that Fig. 2 provides for the embodiment of the present invention; To the first source code file based on SVN issue, can directly provide the full text contrast of SVN mode, the full text contrast effect figure based on SVN that Fig. 3 provides for the embodiment of the present invention.In order more effectively to provide contrast effect figure to tester, the outstanding mark that adopts different colours in contrast effect figure in Fig. 2 and Fig. 3 can also be identified to the changed content of the first source code file and the second source code file, to show more intuitively the content of change, make tester can know more rapidly and accurately changed content.
Further it should be noted that, the file difference information in above-described embodiment also comprises difference between difference, the size of the first source code file and the size of the second source code file between the eigenwert of the first source code file and the eigenwert of the second source code file and at least one in the difference between the type of the first source code file and the type of the second source code file.The eigenwert of the first source code file specifically can refer to the 5th edition Message Digest 5 (Message Digest Algorithm5 of the first source code file particularly; Md5) value, md5 value refers to according to the 5th edition value that Message Digest 5 calculates source code file; The eigenwert of the second source code file refers to accordingly, the md5 value of the second source code file.Wherein the calculating of the md5 value of the first source code file md5 value and the second source code file can, with reference to prior art, not repeat them here in detail.The difference contrast effect figure of the file difference information that for example Fig. 4 provides for the embodiment of the present invention.As shown in Figure 4, file difference information in the present embodiment be take and comprised that file size, file type, file md5 value and difference details information etc. are example, the file type of the first source code file and the second source code file is text, wherein in filename one hurdle, specifically also includes the routing information of the first source code file and the routing information of the second source code file.File size, file type, file md5 value specifically can be obtained and record by development equipment side, and file checkout equipment can be directly acquires when development equipment or version server obtain this first source code file.As shown in Figure 4, can also in the difference contrast effect figure generating, show the button of " checking contrast in full ", this button can be hyperlinked to the full text shown in Fig. 2 or Fig. 3 in civilian contrast effect figure, shows more intuitively contrast effect figure in full.File difference information shown in Fig. 4 can adopt extend markup language (Extensible Markup Language alternatively; XML) form shows, to show intuitively tester.
Further alternatively, on the basis of above-described embodiment, step 103 wherein " publication document different information " specifically can comprise: the account to tester sends the mail that carries file difference information, with publication document different information.The file difference information that certainly, can also adopt other modes to notify tester to get as sent out other modes such as instant messaging in practical application.And then issue this first source code file by file distribution system, tester just can accurately know that the first source code file is with respect to the changed content of the second source code file according to file difference information like this, thereby exactly the first source code file is tested.
It should be noted that, " account to tester sends the mail that carries file difference information; with publication document different information " before, should to the first source code file, issue, and issued successfully (be version upgrade) on tester's machine, reinform tester's file difference information, for tester, can directly obtain changed content.If the first source code file issue unsuccessful reasons such as (cause) as obstructed in network, the system failures, is can publication document different information, can not inform the file difference information of the first source code file of this issue of tester.
By adopting the technical scheme of above-described embodiment, tester can get the file difference information of the first source code file and the second source code file, still can find Lou to send out, carry secretly the abnormal conditions such as code, thereby can to the first source code file of redaction, test targetedly, can effectively improve Efficiency of Software Testing, and can further guarantee the degree of accuracy of software test, for promoting the quality of source code file, made necessary guarantee.
Embodiment bis-
The process flow diagram of the source code file detection method that Fig. 5 provides for the embodiment of the present invention two.The source code file detection method of the present embodiment, on the basis of above-mentioned figure illustrated embodiment, is further introduced technical scheme of the present invention in further detail, and as shown in Figure 5, the source code file detection method of the present embodiment, specifically can comprise the steps:
200, file distribution system is obtained a plurality of the first source code file that will issue from version server or development equipment, and generates the first source code file list;
Alternatively, wherein in the first source code file list, can also comprise that the absolute path information of each source code file and the IP(of source address are as the IP of the IP of version server or development equipment).Or the SVN routing information that can also comprise each source code file in the first source code file list.
201, file distribution system is obtained the second source code file corresponding to each first source code file the first source code file list from testing apparatus; Wherein the second source code file is the legacy version file of the first source code file of correspondence;
It should be noted that, while storing the second source code file corresponding to each the first source code file in file distribution system, file distribution system can be obtained the second source code file corresponding to each first source code file in the first source code file list from self canned data.
202,, for each first source code file in the first source code file list and the second corresponding source code file, file distribution system is carried out full text contrast by the first source code file and the second corresponding source code file, gets difference details information;
Particularly, for a plurality of the first source code file, obtain altogether corresponding a plurality of difference details information.
203, for each first source code file in the first source code file list and the second corresponding source code file, file distribution system is according to each file size, file type, file md5 value and difference details Information generation file difference information; And according to a plurality of file difference Information generation file difference information lists;
Particularly, a plurality of the first source code file, correspondence obtains a plurality of file difference information altogether; By a plurality of file difference Information generation file difference information lists.Be the file difference information that the list of this document different information comprises each the first source code file.And can comprise the difference details information of the first source code file and the second source code file in each file difference information, and at least one in the difference between the difference between the difference between the eigenwert of the first source code file and the eigenwert of the second source code file, the size of the first source code file and the size of the second source code file and the type of the first source code file and the type of the second source code file.
For example wherein each the file difference information in file difference information list can be XML form, and full text contrast effect figure can also be connected in file difference information, when tester need to check in full contrast effect figure, can click and check.The schematic diagram of a kind of file difference information list providing for the embodiment of the present invention as Fig. 6, as shown in Figure 6, the first source code file list of take comprises that 5 the first source code file are example, this document different information list accordingly comprises 5 file difference information.As shown in Figure 6, in filename one hurdle, all recorded in detail the routing information of 5 the first source code file.The new source code file that " newly " in Fig. 6 indicates to issue is the first source code file, and what " old " issued before representing must source code file be the second source code file.In 5 the first source code file shown in Fig. 6 there is file difference information with respect to the second source code file of correspondence in the first two, click is checked, can check the full text contrast effect figure of link, to show more intuitively the change code situation between the first source code file and two versions of the second source code file.In 5 the first source code file shown in Fig. 6 there is not file difference information in rear three the second source code file with respect to correspondence.Be that rear three the first source code file are identical with the second corresponding source code file respectively, do not have change.As shown in Figure 6, when there are differences between the first source code file and corresponding the second source code file, the difference condition between the size of the size that embodies this first source code file in file size one hurdle and this corresponding the second source code file; Difference condition in file md value one hurdle between the special md5 value of the md5 value of this first source code file and corresponding this second source code file.
204, file distribution system is issued a plurality of the first source code file in the first source code file list;
205,, after issuing successfully, file distribution system sends to tester's account the mail that carries file difference information list, to inform each file difference information of tester.
Through the processing of above-described embodiment, tester obtains each first source code file of issue, and can know file difference information; Further according to the different information of the second source code file of this first source code file in file difference information and correspondence, determine that exactly the first source code file is with respect to the changed content of the second source code file, thereby targetedly the first source code file is tested, can effectively improve testing efficiency.
The source code file detection method of the present embodiment, it is example that the source code file pick-up unit of take is set directly in file distribution system, introduces the technical scheme of the embodiment of the present invention.
By adopting the source code file detection method of above-described embodiment, tester can get the file difference information of the second source code file of each first source code file and correspondence, still can find Lou to send out, carry secretly the abnormal conditions such as code, thereby can to the first source code file of redaction, test targetedly, can effectively improve Efficiency of Software Testing, and can further guarantee the degree of accuracy of software test, for promoting the quality of source code file, made necessary guarantee.
Embodiment tri-
The structural representation of the source code file pick-up unit that Fig. 7 provides for the embodiment of the present invention three.As shown in Figure 7, the source code file pick-up unit of the present embodiment, specifically can comprise: the first acquisition module 10, the second acquisition module 11, contrast module 12 and announcement module 13.
Wherein the first acquisition module 10 is for obtaining the first source code file; The second acquisition module 11 is for obtaining the second source code file; The difference exploitation version that the second source code file and the first source code file are same software; Contrast module 12 is connected with the second acquisition module 11 with the first acquisition module 10 respectively, the second source code file that contrast module 12 is obtained for the first source code file that the first acquisition module 10 is obtained and the second acquisition module 11 contrasts, and obtains file difference information; Announce module 13 and be connected with contrast module 12, announce the file difference information that module 13 is obtained for announcing contrast module 12.
The source code file pick-up unit of the present embodiment, by adopting above-mentioned module to realize source code file, to detect realizing of embodiment of the method same as described above identical, can consult in detail the record of above-mentioned related embodiment, at this, at this, do not repeat.
The source code file pick-up unit of the present embodiment, obtains the first source code file by adopting above-mentioned module to realize; Obtain the second source code file; The difference exploitation version that the second source code file and the first source code file are same software; The first source code file and the second source code file are contrasted, obtain file difference information; Publication document different information.The technical scheme of the present embodiment, tester can get the file difference information of the first source code file and the second source code file, still can find Lou to send out, carry secretly the abnormal conditions such as code, thereby can to the first source code file of redaction, test targetedly, can effectively improve Efficiency of Software Testing, and can further guarantee the degree of accuracy of software test, for promoting the quality of source code file, made necessary guarantee.
Alternatively, the first acquisition module 10 in above-mentioned source code file pick-up unit embodiment illustrated in fig. 7 specifically for obtaining the first source code file from version server; Or from development equipment, obtain the first source code file.
Alternatively, the second acquisition module 11 in above-mentioned source code file pick-up unit embodiment illustrated in fig. 7 specifically for obtaining the second source code file from file distribution system; Or from testing apparatus, obtain the second source code file.
Alternatively, the file difference information of above-mentioned source code file pick-up unit embodiment illustrated in fig. 7 adopts outstanding mark sign, to show more intuitively the content of change, makes tester can know more rapidly and accurately changed content.
Alternatively, in above-mentioned source code file pick-up unit embodiment illustrated in fig. 7, work as file difference information and comprise difference details information, the second source code file that contrast module 12 is obtained specifically for the first source code file that the first acquisition module 10 is obtained and the second acquisition module 11 is carried out full text and is contrasted, and gets difference details information.
Further alternatively, file difference information in above-described embodiment also comprises described the first source code file eigenwert, as md5 value and as described in difference between the eigenwert of the second source code file, as at least one in the difference between the difference between the size of md5 value, the first source code file and the size of the second source code file and the type of the first source code file and the type of the second source code file.
Alternatively, in above-mentioned source code file pick-up unit embodiment illustrated in fig. 7, announce module 13 and specifically for account to tester, send the mail that carries the file difference information that contrast module 12 obtains, with publication document different information.
The source code file pick-up unit of above-described embodiment, by adopting above-mentioned module to realize source code file, to detect realizing of embodiment of the method same as described above identical, can consult in detail the record of above-mentioned related embodiment, at this, at this, do not repeat.
By adopting the source code file pick-up unit of above-described embodiment, tester can get the file difference information of the second source code file of each first source code file and correspondence, still can find Lou to send out, carry secretly the abnormal conditions such as code, thereby can to the first source code file of redaction, test targetedly, can effectively improve Efficiency of Software Testing, and can further guarantee the degree of accuracy of software test, for promoting the quality of source code file, made necessary guarantee.
Embodiment tetra-
The structural representation of the file distribution system that Fig. 8 provides for the embodiment of the present invention four.As shown in Figure 8, in the file distribution system 20 of the present embodiment, include file pick-up unit 30.This document pick-up unit 30 specifically can adopt above-mentioned file pick-up unit embodiment illustrated in fig. 3, can, with reference to the record of above-mentioned file pick-up unit embodiment illustrated in fig. 6, not repeat them here in detail.
The file distribution system of the present embodiment, by adopting above-mentioned file pick-up unit, can get for tester the file difference information of the first source code file and the second source code file, still can find Lou to send out, carry secretly the abnormal conditions such as code, thereby can to the first source code file of redaction, test targetedly, can effectively improve Efficiency of Software Testing, and can further guarantee the degree of accuracy of software test, for promoting the quality of source code file, make necessary guarantee.
It should be noted that: the source code file pick-up unit that above-described embodiment provides is when realizing source code file detection, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the inner structure that is about to device is divided into different functional modules, to complete all or part of function described above.In addition, the source code file pick-up unit that above-described embodiment provides and source code file detection method embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (15)

1. a source code file detection method, is characterized in that, comprising:
Obtain the first source code file;
Obtain the second source code file; The difference exploitation version that described the second source code file and described the first source code file are same software;
Described the first source code file and described the second source code file are contrasted, obtain file difference information;
Announce described file difference information.
2. method according to claim 1, is characterized in that, described in obtain the first source code file, comprising:
From version server, obtain described the first source code file;
Or from development equipment, obtain described the first source code file.
3. method according to claim 1, is characterized in that, described in obtain the second source code file, comprising:
From file distribution system, obtain described the second source code file;
Or from testing apparatus, obtain described the second source code file.
4. method according to claim 1, is characterized in that, described file difference information adopts outstanding mark sign.
5. method according to claim 1, is characterized in that, described file difference information comprises difference details information, and described the first source code file and described the second source code file are contrasted, and obtains file difference information, comprising:
Described the first source code file and described the second source code file are carried out to full text contrast, get difference details information.
6. method according to claim 5, it is characterized in that, described file difference information also comprises difference between difference, the size of described the first source code file and the size of described the second source code file between described the first source code file eigenwert and the eigenwert of described the second source code file and at least one in the difference between the type of described the first source code file and the type of the second source code file.
7. according to the arbitrary described method of claim 1-6, it is characterized in that, announce described file difference information, comprising:
Account to tester sends the mail that carries described file difference information, to announce described file difference information.
8. a source code file pick-up unit, is characterized in that, comprising:
The first acquisition module, for obtaining the first source code file;
The second acquisition module, for obtaining the second source code file; The difference exploitation version that described the second source code file and described the first source code file are same software;
Contrast module, for described the first source code file and described the second source code file are contrasted, obtains file difference information;
Announce module, for announcing described file difference information.
9. device according to claim 8, is characterized in that, described the first acquisition module, specifically for obtaining described the first source code file from version server; Or from development equipment, obtain described the first source code file.
10. device according to claim 8, is characterized in that, described the second acquisition module, specifically for obtaining described the second source code file from file distribution system; Or from testing apparatus, obtain described the second source code file.
11. methods according to claim 8, is characterized in that, described file difference information adopts outstanding mark sign.
12. devices according to claim 8, it is characterized in that, when described file difference information comprises difference details information, described contrast module, specifically for described the first source code file and described the second source code file are carried out to full text contrast, get difference details information.
13. devices according to claim 12, it is characterized in that, described file difference information also comprises difference between difference, the size of described the first source code file and the size of described the second source code file between described the first source code file eigenwert and the eigenwert of described the second source code file and at least one in the difference between the type of described the first source code file and the type of the second source code file.
14. according to Claim 8-13 arbitrary described devices, is characterized in that, described announcement module sends the mail that carries described file difference information, to announce described file difference information specifically for the account to tester.
15. 1 kinds of file distribution systems, is characterized in that, described file distribution system comprises the as above arbitrary described file pick-up unit of claim 8-14.
CN201210278637.8A 2012-08-07 2012-08-07 Source code file detection method, source code file detection device and file release system Pending CN103577319A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210278637.8A CN103577319A (en) 2012-08-07 2012-08-07 Source code file detection method, source code file detection device and file release system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210278637.8A CN103577319A (en) 2012-08-07 2012-08-07 Source code file detection method, source code file detection device and file release system

Publications (1)

Publication Number Publication Date
CN103577319A true CN103577319A (en) 2014-02-12

Family

ID=50049143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210278637.8A Pending CN103577319A (en) 2012-08-07 2012-08-07 Source code file detection method, source code file detection device and file release system

Country Status (1)

Country Link
CN (1) CN103577319A (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104376098A (en) * 2014-11-25 2015-02-25 浪潮电子信息产业股份有限公司 File batch validation method based on python
CN104378409A (en) * 2014-08-29 2015-02-25 武汉钢铁(集团)公司 File synchronization system
CN104765692A (en) * 2015-04-29 2015-07-08 北京嘀嘀无限科技发展有限公司 Method and equipment for automatically testing software
CN104809019A (en) * 2015-05-19 2015-07-29 郑州悉知信息技术有限公司 Web page code publishing method and system
CN105302554A (en) * 2015-10-23 2016-02-03 深圳市创维电器科技有限公司 Android system automatic program construction method and system
CN106557419A (en) * 2015-09-29 2017-04-05 腾讯科技(深圳)有限公司 The method of testing and device of program
CN106815135A (en) * 2015-11-30 2017-06-09 阿里巴巴集团控股有限公司 leak detection method and device
CN106997302A (en) * 2017-03-31 2017-08-01 广东欧珀移动通信有限公司 Firmware upgrade method, device and audio-frequence player device
CN107122294A (en) * 2017-03-17 2017-09-01 惠州Tcl移动通信有限公司 A kind of method, terminal and the device of test parameter file compatibility
CN107453960A (en) * 2017-09-26 2017-12-08 聚好看科技股份有限公司 A kind of methods, devices and systems that test data is handled in service testing
CN107479899A (en) * 2017-08-28 2017-12-15 网易(杭州)网络有限公司 Document handling method and device, storage medium and processor
CN107688541A (en) * 2017-09-15 2018-02-13 广州酷狗计算机科技有限公司 File reviewing method, device, server and computer-readable recording medium
CN109491923A (en) * 2018-12-14 2019-03-19 东软集团股份有限公司 Determination method, apparatus, medium and the electronic equipment of newly-increased abnormality code
CN109902025A (en) * 2019-03-25 2019-06-18 腾讯科技(深圳)有限公司 Test environment Chinese part processing method, device, storage medium and computer equipment
CN110109840A (en) * 2019-05-10 2019-08-09 重庆八戒电子商务有限公司 Code audit method, audit device and the medium compared based on version number
CN111209206A (en) * 2020-01-13 2020-05-29 卡斯柯信号(北京)有限公司 Automatic test method and system for software product
CN111831323A (en) * 2020-05-29 2020-10-27 大数金科网络技术有限公司 Containerized incremental continuous delivery method
CN112181479A (en) * 2020-09-23 2021-01-05 中国建设银行股份有限公司 Method and device for determining difference between code file versions and electronic equipment
CN112632952A (en) * 2020-12-08 2021-04-09 中国建设银行股份有限公司 Method and device for comparing files

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3711863A (en) * 1972-01-21 1973-01-16 Honeywell Inf Systems Source code comparator computer program
CN101382914A (en) * 2008-10-15 2009-03-11 北大方正集团有限公司 Testing method and device for software update file
CN102073640A (en) * 2009-11-19 2011-05-25 阿里巴巴集团控股有限公司 Method, system and server for testing structured query language (SQL) statements

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3711863A (en) * 1972-01-21 1973-01-16 Honeywell Inf Systems Source code comparator computer program
CN101382914A (en) * 2008-10-15 2009-03-11 北大方正集团有限公司 Testing method and device for software update file
CN102073640A (en) * 2009-11-19 2011-05-25 阿里巴巴集团控股有限公司 Method, system and server for testing structured query language (SQL) statements

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378409A (en) * 2014-08-29 2015-02-25 武汉钢铁(集团)公司 File synchronization system
CN104376098B (en) * 2014-11-25 2017-06-30 浪潮电子信息产业股份有限公司 A kind of files in batch method of calibration based on python
CN104376098A (en) * 2014-11-25 2015-02-25 浪潮电子信息产业股份有限公司 File batch validation method based on python
CN104765692A (en) * 2015-04-29 2015-07-08 北京嘀嘀无限科技发展有限公司 Method and equipment for automatically testing software
CN104765692B (en) * 2015-04-29 2018-11-06 北京嘀嘀无限科技发展有限公司 Method and apparatus for automatic test software
CN104809019A (en) * 2015-05-19 2015-07-29 郑州悉知信息技术有限公司 Web page code publishing method and system
CN106557419A (en) * 2015-09-29 2017-04-05 腾讯科技(深圳)有限公司 The method of testing and device of program
CN105302554B (en) * 2015-10-23 2018-11-30 深圳市创维电器科技有限公司 A kind of android system automated procedures construction method and system
CN105302554A (en) * 2015-10-23 2016-02-03 深圳市创维电器科技有限公司 Android system automatic program construction method and system
CN106815135A (en) * 2015-11-30 2017-06-09 阿里巴巴集团控股有限公司 leak detection method and device
CN107122294A (en) * 2017-03-17 2017-09-01 惠州Tcl移动通信有限公司 A kind of method, terminal and the device of test parameter file compatibility
CN106997302A (en) * 2017-03-31 2017-08-01 广东欧珀移动通信有限公司 Firmware upgrade method, device and audio-frequence player device
CN107479899A (en) * 2017-08-28 2017-12-15 网易(杭州)网络有限公司 Document handling method and device, storage medium and processor
CN107688541A (en) * 2017-09-15 2018-02-13 广州酷狗计算机科技有限公司 File reviewing method, device, server and computer-readable recording medium
CN107453960A (en) * 2017-09-26 2017-12-08 聚好看科技股份有限公司 A kind of methods, devices and systems that test data is handled in service testing
CN107453960B (en) * 2017-09-26 2020-08-25 青岛聚看云科技有限公司 Method, device and system for processing test data in service test
CN109491923A (en) * 2018-12-14 2019-03-19 东软集团股份有限公司 Determination method, apparatus, medium and the electronic equipment of newly-increased abnormality code
CN109491923B (en) * 2018-12-14 2021-11-12 东软集团股份有限公司 Method, device, medium and electronic equipment for determining newly added abnormal code
CN109902025A (en) * 2019-03-25 2019-06-18 腾讯科技(深圳)有限公司 Test environment Chinese part processing method, device, storage medium and computer equipment
CN110109840A (en) * 2019-05-10 2019-08-09 重庆八戒电子商务有限公司 Code audit method, audit device and the medium compared based on version number
CN111209206A (en) * 2020-01-13 2020-05-29 卡斯柯信号(北京)有限公司 Automatic test method and system for software product
CN111209206B (en) * 2020-01-13 2024-05-24 卡斯柯信号(北京)有限公司 Automatic test method and system for software products
CN111831323A (en) * 2020-05-29 2020-10-27 大数金科网络技术有限公司 Containerized incremental continuous delivery method
CN112181479A (en) * 2020-09-23 2021-01-05 中国建设银行股份有限公司 Method and device for determining difference between code file versions and electronic equipment
CN112632952A (en) * 2020-12-08 2021-04-09 中国建设银行股份有限公司 Method and device for comparing files

Similar Documents

Publication Publication Date Title
CN103577319A (en) Source code file detection method, source code file detection device and file release system
US10623235B2 (en) Correlating computing network events
EP3616066B1 (en) Human-readable, language-independent stack trace summary generation
US9424221B2 (en) Automated cabling process for a complex environment
CN109522228B (en) Interface automation test data construction method, device, platform and storage medium
CN110765018B (en) Automatic interface testing method and equipment
ITTO980720A1 (en) PROCEDURE FOR INSTALLING AND VERIFYING THE SOFTWARE FOR A CUSTOM MADE COMPUTER SYSTEM.
CN104077217A (en) Method and system for compiling and issuing code file
CN113050953A (en) Method, device and storage medium for generating code based on annotation
CN112241360A (en) Test case generation method, device, equipment and storage medium
US7617462B2 (en) Graphical user interface (GUI) for displaying software component availability as determined by a messaging infrastructure
CN113468049A (en) Test method, device, equipment and medium based on configurable interface
US9779014B2 (en) Resilient mock object creation for unit testing
US20130282908A1 (en) Method and System for Deploying and Modifying a Service-Oriented Architecture Deployment Environment
US7734763B2 (en) Application for testing the availability of software components
WO2023151397A1 (en) Application program deployment method and apparatus, device, and medium
US8949403B1 (en) Infrastructure for maintaining cognizance of available and unavailable software components
CN112667491A (en) Function test method and device of virtual machine
CN114564413B (en) Synchronous equipment testing method and device
CN117235107B (en) Data access processing method and device, electronic equipment and storage medium
Lima et al. Local Observability and Controllability Enforcement in Distributed Testing
JP2009086814A (en) Source code management system
CN118519920A (en) Automatic test method, device, equipment and storage medium
CN118151953A (en) Application deployment method, apparatus, computer device, storage medium and program product
CN117573231A (en) System docking method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140212