CN109739511A - A kind of method, apparatus, computer equipment and storage medium improving code verification efficiency - Google Patents
A kind of method, apparatus, computer equipment and storage medium improving code verification efficiency Download PDFInfo
- Publication number
- CN109739511A CN109739511A CN201910011686.7A CN201910011686A CN109739511A CN 109739511 A CN109739511 A CN 109739511A CN 201910011686 A CN201910011686 A CN 201910011686A CN 109739511 A CN109739511 A CN 109739511A
- Authority
- CN
- China
- Prior art keywords
- code
- management server
- unit
- verification efficiency
- test
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of method, apparatus, computer equipment and storage medium for improving code verification efficiency, wherein method includes: local upload code to first code management server;Test machine downloads the code in first code management server;Test machine runs automatic test program to test code function;Judge whether code is successfully tested;If so, the code being successfully tested is uploaded to second code management server.Method not only saves human resources, but also realizes unified editor's test and management of more people's codes, substantially increases verification efficiency.
Description
Technical field
The present invention relates to code verification, more specifically a kind of method, apparatus for improving code verification efficiency, computer
Equipment and storage medium.
Background technique
The exploitation of code needs continuous test, modification, submits, and is a process repeatedly, as shown in Figure 1, traditional
Code development process is: after the completion of code compilation, programmer needs to run in the locally downloading test equipment of program, tests
Code function is demonstrate,proved, is submitted in the code administrations server such as SVN after being successfully tested, then by code.The side of this exploitation verifying
Formula not can guarantee the code on library not to be influenced by upload code, the also not verifying of allomeric function of the newest code on library, this
So that there is many hidden danger in the exploitation of code, and need irregular overall code functional test or developer each time on
Biography requires to carry out integrated testability.And test needs manually to carry out, so that code development efficiency substantially reduces.
Summary of the invention
It is an object of the invention to overcome the deficiencies of the prior art and provide a kind of methods for improving code verification efficiency, dress
It sets, computer equipment and storage medium.
To achieve the above object, the invention adopts the following technical scheme: a kind of method for improving code verification efficiency, described
Method the following steps are included:
Local upload code is to first code management server;
Test machine downloads the code in first code management server;
Test machine runs automatic test program to test code function;
Judge whether code is successfully tested;
If so, the code being successfully tested is uploaded to second code management server.
Its further technical solution are as follows: it is described judge the step of whether code is successfully tested after, it is further comprising the steps of:
If it is not, then passing through mail notification local.
Its further technical solution are as follows: the step of code in test machine downloading first code management server it
Afterwards, further comprising the steps of:
Judge whether code compiles success;
If so, running the step of automatic test program is to test code function into the test machine;
If it is not, entering the step by mail notification local.
Its further technical solution are as follows: the test machine was downloaded in the step of code in first code management server,
The first code management server is temporary designator management server.
A kind of device improving code verification efficiency, described device include the first uploading unit, download unit, operation list
Member, the first judging unit and the second uploading unit;
First uploading unit, for local upload code to first code management server;
The download unit, for the code in test machine downloading first code management server;
The running unit, for test machine operation automatic test program to test code function;
First judging unit, for judging whether code is successfully tested;
The code being successfully tested is uploaded to second code management server by second uploading unit.
Its further technical solution are as follows: described device further includes notification unit, and the notification unit is used for logical by mail
Know local.
Its further technical solution are as follows: described device further includes second judgment unit, and the second judgment unit is for sentencing
Whether division of history into periods code compiles success.
A kind of computer equipment, including memory, processor and be stored on the memory and can be in the processing
The computer program run on device is realized when the processor executes the computer program as a kind of above-mentioned raising code is tested
The step of demonstrate,proving the method for efficiency.
A kind of storage medium, the storage medium are stored with computer program, and the computer program includes program instruction,
When described program instruction is executed by processor, so that the processor executes the side such as a kind of above-mentioned raising code verification efficiency
The step of method.
Compared with the prior art, the invention has the advantages that: a kind of method for improving code verification efficiency of the present invention passes through
The code being locally composed is uploaded in first code management server, test machine is downloaded in first code management server
Whole codes to local into compiling, the code for compiling out is then tested by automatized script in a test device;The present age
After code is successfully tested, then successful code is uploaded in second code management server, then entirely automation checking procedure is complete
At.Such method not only saves human resources, but also realizes unified editor's test and management of more people's codes, substantially increases and tests
Demonstrate,prove efficiency.
The above description is only an overview of the technical scheme of the present invention, can in order to better understand technical measure
It is implemented in accordance with the contents of the specification, and in order to make above and other objects of the present invention, feature and advantage brighter
Show understandable, special below to lift preferred embodiment, detailed description are as follows.
Detailed description of the invention
Fig. 1 is the architecture diagram of the prior art;
Fig. 2 is a kind of architecture diagram for the method specific embodiment for improving code verification efficiency of the present invention;
Fig. 3 is a kind of flow chart for the method specific embodiment for improving code verification efficiency of the present invention;
Fig. 4 is a kind of structure chart for the device specific embodiment for improving code verification efficiency of the present invention;
Fig. 5 is a kind of schematic block diagram of computer equipment specific embodiment of the present invention.
Specific embodiment
In order to more fully understand technology contents of the invention, combined with specific embodiments below to technical solution of the present invention into
One step introduction and explanation, but not limited to this.
It should be appreciated that herein, relational terms such as first and second and the like are used merely to an entity/behaviour
Work/object is distinguished with another entity/operation/object, without necessarily requiring or implying these entity/operation/objects
Between there are any actual relationship or orders.
It is also understood that the terms "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion,
So that the process, method, article or the system that include a series of elements not only include those elements, but also including not having
The other element being expressly recited, or further include for this process, method, article or the intrinsic element of system.Do not having
In the case where having more limitations, the element that is limited by sentence "including a ...", it is not excluded that include the element process,
There is also other identical elements in method, article or system.
As shown in Figure 2,3, the present invention provides a kind of method for improving code verification efficiency, this method includes following step
It is rapid:
S10, local upload code to first code management server;
Code in S20, test machine downloading first code management server;
S40, test machine operation automatic test program are to test code function;
S50, judge whether code is successfully tested;
If so, S60, the code being successfully tested then is uploaded to second code management server.
If it is not, S70, then to pass through mail notification local.
In addition, being further comprised the steps of: after step S20
S30, judge whether code compiles success;
If so, entering step S40;
If it is not, entering step S70.
Specifically, Fig. 2 is the architecture diagram of the whole system of code automatic Verification.Local (such as local PC machine) is write
Good code is uploaded to first code management server (i.e. temporary designator management server 1 in Fig. 2), and then test machine uses
The softwares such as Jenkins download the code relevant to engineering in first code management server automatically;Code compilation is carried out, if compiling
It is translated into function and then runs automatic test program, start to test code function;If failure, notifies local, generation by modes such as mails
Code is run in a tester, if running successfully, will be run successful code and is uploaded to second code management server (i.e. Fig. 2
In code administration server 2), if operation failure, notify local by modes such as mails.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Corresponding to a kind of method of raising code verification efficiency described in above-described embodiment, the present invention provides a kind of raisings
The device of code verification efficiency, as shown in Figure 2,4, the present apparatus include the first uploading unit 1, download unit 2, running unit 3, the
One judging unit 4 and the second uploading unit 6;
First uploading unit 1, for local upload code to first code management server;
Download unit 2, for the code in test machine downloading first code management server;
Running unit 3, for test machine operation automatic test program to test code function;
First judging unit 4, for judging whether code is successfully tested;
The code being successfully tested is uploaded to second code management server by the second uploading unit 6.
The device further includes notification unit 7, second judgment unit 5, notification unit 7 be used for it is local by mail notification, the
Two judging units 5 are for judging whether code compiles success.
Specifically, Fig. 2 is the architecture diagram of the whole system of code automatic Verification.Local (such as local PC machine) is write
Good code is uploaded to first code management server (i.e. temporary designator management server 1 in Fig. 2), and then test machine uses
The softwares such as Jenkins download the code relevant to engineering in first code management server automatically;Code compilation is carried out, if compiling
It is translated into function and then runs automatic test program, start to test code function;If failure, notifies local, generation by modes such as mails
Code is run in a tester, if running successfully, will be run successful code and is uploaded to second code management server (i.e. Fig. 2
In code administration server 2), if operation failure, notify local by modes such as mails.
As shown in figure 5, the present invention also provides a kind of computer equipment, including memory, processor and it is stored in
On reservoir and the computer program that can run on a processor, realized when processor executes computer program as above-mentioned one kind mentions
The step of method of high code verification efficiency.
The computer equipment 700 can be terminal or server.The computer equipment 700 includes passing through system bus 710
Processor 720, memory and the network interface 750 of connection, wherein memory may include 730 He of non-volatile memory medium
Built-in storage 740.
The non-volatile memory medium 730 can storage program area 731 and computer program 732.The computer program 732
It is performed, processor 720 may make to execute the method that any one improves code verification efficiency.
The processor 720 supports the operation of entire computer equipment 700 for providing calculating and control ability.
The built-in storage 740 provides environment for the operation of the computer program 732 in non-volatile memory medium 730, should
When computer program 732 is executed by processor 720, processor 720 may make to execute any one and improve code verification efficiency
Method.
The network interface 750 such as sends the task dispatching of distribution for carrying out network communication.Those skilled in the art can manage
It solves, structure shown in Fig. 5, only the block diagram of part-structure relevant to application scheme, is not constituted to the application side
The restriction for the computer equipment 700 that case is applied thereon, specific computer equipment 700 may include more than as shown in the figure
Or less component, perhaps combine certain components or with different component layouts.Wherein, the processor 720 is for transporting
Row program code stored in memory, to perform the steps of
Local upload code is to first code management server;
Test machine downloads the code in first code management server;
Test machine runs automatic test program to test code function;
Judge whether code is successfully tested;
If so, the code being successfully tested is uploaded to second code management server.
Further, further comprising the steps of after judging the step of whether code is successfully tested:
If it is not, then passing through mail notification local.
It further, further include following step after test machine downloads the step of code in first code management server
It is rapid:
Judge whether code compiles success;
If so, running the step of automatic test program is to test code function into test machine;
If it is not, entering through the step of mail notification local.
It should be appreciated that in the embodiment of the present application, processor 720 can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or
Person's processor is also possible to any conventional processor etc..
It will be understood by those skilled in the art that 700 structure of computer equipment shown in Fig. 5 is not constituted and is set to computer
Standby 700 restriction may include perhaps combining certain components or different component cloth than illustrating more or fewer components
It sets.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the embodiment of the present invention
Substantially all or part of the part that contributes to existing technology or the technical solution can be with software product in other words
Form embody, which is stored in a storage medium, including some instructions use so that one
Computer equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute this hair
The all or part of the steps of each embodiment the method in bright.And storage medium above-mentioned include: USB flash disk, it is mobile hard disk, read-only
Memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or
The various media that can store program code such as person's CD.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above-mentioned apparatus
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, system embodiment described above is only schematical, for example, the division of the module or unit,
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be with
In conjunction with or be desirably integrated into another device, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling or direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of device or unit or
Communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
It is above-mentioned that technology contents of the invention are only further illustrated with embodiment, in order to which reader is easier to understand, but not
It represents embodiments of the present invention and is only limitted to this, any technology done according to the present invention extends or recreation, by of the invention
Protection.Protection scope of the present invention is subject to claims.
Claims (9)
1. a kind of method for improving code verification efficiency, which is characterized in that the described method comprises the following steps:
Local upload code is to first code management server;
Test machine downloads the code in first code management server;
Test machine runs automatic test program to test code function;
Judge whether code is successfully tested;
If so, the code being successfully tested is uploaded to second code management server.
2. a kind of method for improving code verification efficiency according to claim 1, which is characterized in that the judgement code is
It is further comprising the steps of after no the step of being successfully tested:
If it is not, then passing through mail notification local.
3. a kind of method for improving code verification efficiency according to claim 2, which is characterized in that the test machine downloading
It is further comprising the steps of after the step of code in first code management server:
Judge whether code compiles success;
If so, running the step of automatic test program is to test code function into the test machine;
If it is not, entering the step by mail notification local.
4. a kind of method for improving code verification efficiency according to claim 1, which is characterized in that the test machine downloading
In the step of code in first code management server, the first code management server is temporary designator management service
Device.
5. a kind of device for improving code verification efficiency, which is characterized in that described device includes the first uploading unit, downloading list
Member, running unit, the first judging unit and the second uploading unit;
First uploading unit, for local upload code to first code management server;
The download unit, for the code in test machine downloading first code management server;
The running unit, for test machine operation automatic test program to test code function;
First judging unit, for judging whether code is successfully tested;
The code being successfully tested is uploaded to second code management server by second uploading unit.
6. a kind of device for improving code verification efficiency according to claim 5, which is characterized in that described device further includes
Notification unit, the notification unit are used for through mail notification local.
7. a kind of device for improving code verification efficiency according to claim 5, which is characterized in that described device further includes
Second judgment unit, the second judgment unit is for judging whether code compiles success.
8. a kind of computer equipment, which is characterized in that including memory, processor and be stored on the memory and can be
The computer program run on the processor, the processor realize such as Claims 1 to 4 when executing the computer program
Any one of described in a kind of raising code verification efficiency method the step of.
9. a kind of storage medium, which is characterized in that the storage medium is stored with computer program, and the computer program includes
Program instruction, when described program instruction is executed by processor, so that the processor executes such as Claims 1 to 4 any one
A kind of the step of method of raising code verification efficiency.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910011686.7A CN109739511A (en) | 2019-01-07 | 2019-01-07 | A kind of method, apparatus, computer equipment and storage medium improving code verification efficiency |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910011686.7A CN109739511A (en) | 2019-01-07 | 2019-01-07 | A kind of method, apparatus, computer equipment and storage medium improving code verification efficiency |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109739511A true CN109739511A (en) | 2019-05-10 |
Family
ID=66363623
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910011686.7A Pending CN109739511A (en) | 2019-01-07 | 2019-01-07 | A kind of method, apparatus, computer equipment and storage medium improving code verification efficiency |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109739511A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110209520A (en) * | 2019-06-05 | 2019-09-06 | 深圳忆联信息系统有限公司 | A kind of method, apparatus, computer equipment and storage medium improving SSD testing efficiency |
CN110673576A (en) * | 2019-09-23 | 2020-01-10 | 广州小鹏汽车科技有限公司 | Automatic test method and device, vehicle and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103336688A (en) * | 2013-06-20 | 2013-10-02 | 中标软件有限公司 | Software integrating method and system oriented to cloud computing software research and development process |
US20140337673A1 (en) * | 2013-05-13 | 2014-11-13 | Hewlett-Packard Development, L.P. | Creating test templates based on steps in existing tests |
CN105549959A (en) * | 2015-12-04 | 2016-05-04 | 小米科技有限责任公司 | Compiling inspection method and device |
CN105893265A (en) * | 2016-06-30 | 2016-08-24 | 苏州科大讯飞教育科技有限公司 | Automatic software project detecting system and method |
CN106293811A (en) * | 2016-07-28 | 2017-01-04 | 北京中电普华信息技术有限公司 | A kind of packing and issuing method and device automatically |
CN107885521A (en) * | 2017-12-11 | 2018-04-06 | 凌云天博光电科技股份有限公司 | Software engineering project automatically generates/update method, apparatus and system |
-
2019
- 2019-01-07 CN CN201910011686.7A patent/CN109739511A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140337673A1 (en) * | 2013-05-13 | 2014-11-13 | Hewlett-Packard Development, L.P. | Creating test templates based on steps in existing tests |
CN103336688A (en) * | 2013-06-20 | 2013-10-02 | 中标软件有限公司 | Software integrating method and system oriented to cloud computing software research and development process |
CN105549959A (en) * | 2015-12-04 | 2016-05-04 | 小米科技有限责任公司 | Compiling inspection method and device |
CN105893265A (en) * | 2016-06-30 | 2016-08-24 | 苏州科大讯飞教育科技有限公司 | Automatic software project detecting system and method |
CN106293811A (en) * | 2016-07-28 | 2017-01-04 | 北京中电普华信息技术有限公司 | A kind of packing and issuing method and device automatically |
CN107885521A (en) * | 2017-12-11 | 2018-04-06 | 凌云天博光电科技股份有限公司 | Software engineering project automatically generates/update method, apparatus and system |
Non-Patent Citations (1)
Title |
---|
程丹丹: "Z公司软件项目进度管理研究", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110209520A (en) * | 2019-06-05 | 2019-09-06 | 深圳忆联信息系统有限公司 | A kind of method, apparatus, computer equipment and storage medium improving SSD testing efficiency |
CN110209520B (en) * | 2019-06-05 | 2022-06-03 | 深圳忆联信息系统有限公司 | Method and device for improving SSD (solid State disk) testing efficiency, computer equipment and storage medium |
CN110673576A (en) * | 2019-09-23 | 2020-01-10 | 广州小鹏汽车科技有限公司 | Automatic test method and device, vehicle and storage medium |
CN110673576B (en) * | 2019-09-23 | 2021-04-13 | 广州小鹏汽车科技有限公司 | Automatic test method and device, vehicle and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106940428B (en) | Chip verification method, device and system | |
CN111428431B (en) | Automatic test and recording method and system supporting EDA software | |
US7434184B2 (en) | Method for detecting flaws in a functional verification plan | |
CN110471834B (en) | Credit card simulation test method under multi-transaction channel and related equipment | |
US20130326486A1 (en) | Keyword based software testing system and method | |
CN106502904A (en) | A kind of UI automated testing methods of intelligent appliance equipment application | |
CN110209520A (en) | A kind of method, apparatus, computer equipment and storage medium improving SSD testing efficiency | |
CN112270149A (en) | Verification platform automation integration method and system, electronic equipment and storage medium | |
CN107861876A (en) | Method of testing, device, computer equipment and readable storage medium storing program for executing | |
CN107766236A (en) | Test assignment automatic management method, apparatus, equipment and storage medium | |
CN109739511A (en) | A kind of method, apparatus, computer equipment and storage medium improving code verification efficiency | |
CN110505119A (en) | A kind of test method, device, system and readable storage medium storing program for executing | |
CN110134598B (en) | Batch processing method, device and system | |
CN115563019A (en) | UVM and C combined verification method and system | |
CN107329889B (en) | Method for automatically testing C compiler | |
CN109460359A (en) | A kind of software version test method and system for embedded device | |
CN116166525A (en) | Method and device for generating test script | |
CN110413531A (en) | Realize IOMT automatic test approach, device, computer equipment and storage medium | |
CN110955605A (en) | Method for verifying single step dynamic execution by CPU | |
CN109902001A (en) | To the detection method and terminal device of uninitialized variable | |
CN116383021A (en) | Software package performance testing method, system, computing device and readable storage medium | |
CN115034165A (en) | Chip simulation verification method, system, equipment and storage medium | |
CN109656804A (en) | Automated testing method, equipment, storage medium and device | |
CN109324970A (en) | SDK running environment detection method, device, computer equipment and storage medium | |
CN117667658A (en) | Test program generating method and test program generating device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for 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: 20190510 |