CN110362294A - Development task executes method, apparatus, electronic equipment and storage medium - Google Patents
Development task executes method, apparatus, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110362294A CN110362294A CN201910448214.8A CN201910448214A CN110362294A CN 110362294 A CN110362294 A CN 110362294A CN 201910448214 A CN201910448214 A CN 201910448214A CN 110362294 A CN110362294 A CN 110362294A
- Authority
- CN
- China
- Prior art keywords
- code
- task
- subtask
- implementing result
- development task
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3604—Software analysis for verifying properties of programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/10—Requirements analysis; Specification techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/44—Encoding
- G06F8/447—Target code generation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Stored Programmes (AREA)
Abstract
The present invention provides a kind of development task and executes method, apparatus, electronic equipment and storage medium.The development task, which executes method, can obtain the task identification of each subtask in development task corresponding with the interface document, and according to each task identification, the code of each subtask is transferred from configuration code library, further execute the every section of code transferred, obtain the implementing result of the development task, automatically it gets code and executes, it can be avoided the time for artificially writing code waste and energy, and it is possible to prevente effectively from writing mistake, test script is generated further according to the interface document received, the implementing result is verified with the test script, to be verified automatically to every section of code, and further realize the automatic execution of development task, realize development process optimization, human cost is not only saved, execution efficiency can also be improved.
Description
Technical field
Method, apparatus, electronic equipment are executed the present invention relates to development technique field more particularly to a kind of development task and are deposited
Storage media.
Background technique
In prior art, in the implementation procedure of a development task, project administrator is needed according to development task
Actual conditions, be primarily based on current manpower, reasonable arrangement developer carries out writing for code, after the completion of written in code,
Project administrator also to continue arrange tester the code write is tested, whole process all by project administrator into
Pedestrian is distribution.
Based on the above situation, since the process of human intervention is more, once project administrator leaves office or has a holiday,
Development task will be unable to go on smoothly down.
Summary of the invention
In view of the foregoing, it is necessary to a kind of development task is provided and executes method, apparatus, electronic equipment and storage medium,
It can be realized development process optimization, not only saved human cost, additionally it is possible to improve execution efficiency.
A kind of development task execution method, which comprises
When receiving interface document, development task corresponding with the interface document is obtained;
Identify at least one subtask in the development task;
It obtains at least one described subtask, the task identification of each subtask;
According to each task identification, the code of each subtask is transferred from configuration code library;
The every section of code transferred is executed, the implementing result of the development task is obtained;
The interface document is parsed, test script is generated;
The implementing result is verified with the test script.
Preferred embodiment according to the present invention transfers each subtask according to each task identification from configuration code library
Code before, the method also includes:
Every prefixed time interval, the historic task data in the prefixed time interval are obtained;
Determine all subtasks from the historic task data, and all codes corresponding with all subtasks;
It is identified for all subtask configuration tasks;
Determine the corresponding relationship of the task identification Yu all codes;
According to the corresponding relationship, the configuration code library is configured.
Preferred embodiment according to the present invention, the method also includes:
When from the first subtask corresponding generation at least one described subtask cannot be deployed into the configuration code library
When code, designated person is prompted to write the first code of first subtask;
For first subtask configuration task mark;
According to the task identification, first subtask and the first code are updated to the configuration code library.
Preferred embodiment according to the present invention, it is described to execute the every section of code transferred, obtain the execution knot of the development task
Fruit includes:
Every section of code is compiled, the corresponding each executable file of every section of code is obtained;
According to the development task, running environment is disposed;
Each executable file is executed under the running environment, obtains the implementing result.
Preferred embodiment according to the present invention, the parsing interface document, generating test script includes:
Input item and output item are obtained from the interface document;
According to the input item and the output item, the test script is generated.
Preferred embodiment according to the present invention, it is described to include: with test script verifying implementing result
The implementing result is compared with the output item;
When the implementing result is consistent with the output item, determine that the implementing result passes through verifying;
When the implementing result and the output item are inconsistent, determine that the implementing result is unverified.
Preferred embodiment according to the present invention, when determining that the implementing result is unverified, the method also includes:
Obtain the execution journal of the development task;
Abnormality code is positioned from the execution journal;
The developer of the abnormality code is obtained from the configuration code library;
Prompt information is sent to the developer.
A kind of development task executive device, described device include:
Acquiring unit, for obtaining development task corresponding with the interface document when receiving interface document;
Recognition unit, for identification at least one subtask in the development task;
The acquiring unit is also used to obtain at least one described subtask, the task identification of each subtask;
Unit is transferred, for transferring the code of each subtask from configuration code library according to each task identification;
Execution unit obtains the implementing result of the development task for executing the every section of code transferred;
Generation unit generates test script for parsing the interface document;
Authentication unit, for verifying the implementing result with the test script.
Preferred embodiment according to the present invention, the acquiring unit are also used to according to each task identification, from configuration code
Before the code for transferring each subtask in library, every prefixed time interval, the historic task in the prefixed time interval is obtained
Data;
Described device further include:
Determination unit, for determining all subtasks from the historic task data, and with all subtasks pair
All codes answered;
Configuration unit, for being identified for all subtask configuration tasks;
The determination unit is also used to determine the corresponding relationship of the task identification Yu all codes;
The configuration unit is also used to configure the configuration code library according to the corresponding relationship.
Preferred embodiment according to the present invention, described device further include:
Prompt unit, for when from the first son at least one described subtask cannot be deployed into the configuration code library
When the corresponding code of task, designated person is prompted to write the first code of first subtask;
The configuration unit is also used to as first subtask configuration task mark;
Updating unit, for according to the task identification, first subtask and the first code to be updated to institute
State configuration code library.
Preferred embodiment according to the present invention, the execution unit execute the every section of code transferred, obtain the development task
Implementing result include:
Every section of code is compiled, the corresponding each executable file of every section of code is obtained;
According to the development task, running environment is disposed;
Each executable file is executed under the running environment, obtains the implementing result.
Preferred embodiment according to the present invention, the generation unit are specifically used for:
Input item and output item are obtained from the interface document;
According to the input item and the output item, the test script is generated.
Preferred embodiment according to the present invention, the authentication unit are specifically used for:
The implementing result is compared with the output item;
When the implementing result is consistent with the output item, determine that the implementing result passes through verifying;
When the implementing result and the output item are inconsistent, determine that the implementing result is unverified.
Preferred embodiment according to the present invention, the acquiring unit are also used to when the determining implementing result is unverified
When, obtain the execution journal of the development task;
Described device further include:
Positioning unit, for positioning abnormality code from the execution journal;
The acquiring unit is also used to obtain the developer of the abnormality code from the configuration code library;
Transmission unit, for sending prompt information to the developer.
A kind of electronic equipment, the electronic equipment include:
Memory stores at least one instruction;And
Processor executes the instruction stored in the memory to realize that the development task executes method.
A kind of computer readable storage medium is stored at least one instruction, institute in the computer readable storage medium
At least one instruction is stated to be executed by the processor in electronic equipment to realize that the development task executes method.
As can be seen from the above technical solutions, the present invention can obtain every in development task corresponding with the interface document
The task identification of a subtask, and according to each task identification, the code of each subtask is transferred from configuration code library, into one
Step executes the every section of code transferred, and obtains the implementing result of the development task, gets code automatically and execute, can be avoided
Time and the energy of code waste are artificially write, and it is possible to prevente effectively from mistake is write, further according to the interface document life received
At test script, the implementing result is verified with the test script, to be verified automatically to every section of code, and further
The automatic execution for realizing development task, has not only saved human cost, additionally it is possible to improve execution efficiency.
Detailed description of the invention
Fig. 1 is the flow chart for the preferred embodiment that development task of the present invention executes method.
Fig. 2 is the functional block diagram of the preferred embodiment of development task executive device of the present invention.
Fig. 3 is that the present invention realizes that development task executes the structural schematic diagram of the electronic equipment of the preferred embodiment of method.
Main element symbol description
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, right in the following with reference to the drawings and specific embodiments
The present invention is described in detail.
As shown in Figure 1, being the flow chart for the preferred embodiment that development task of the present invention executes method.According to different need
It asks, the sequence of step can change in the flow chart, and certain steps can be omitted.
The development task executes method and is applied in one or more electronic equipment, and the electronic equipment is a kind of energy
It is enough according to the instruction for being previously set or store, the equipment of automatic progress numerical value calculating and/or information processing, hardware includes but not
It is limited to microprocessor, specific integrated circuit (Application Specific Integrated Circuit, ASIC), can compiles
Journey gate array (Field-Programmable Gate Array, FPGA), digital processing unit (Digital Signal
Processor, DSP), embedded device etc..
The electronic equipment can be any electronic product that human-computer interaction can be carried out with user, for example, personal meter
Calculation machine, tablet computer, smart phone, personal digital assistant (Personal Digital Assistant, PDA), game machine, friendship
Mutual formula Web TV (Internet Protocol Television, IPTV), intellectual wearable device etc..
The electronic equipment can also include the network equipment and/or user equipment.Wherein, the network equipment includes, but
It is not limited to single network server, the server group of multiple network servers composition or based on cloud computing (Cloud
Computing the cloud being made of a large amount of hosts or network server).
Network locating for the electronic equipment include but is not limited to internet, wide area network, Metropolitan Area Network (MAN), local area network, it is virtual specially
With network (Virtual Private Network, VPN) etc..
S10 obtains development task corresponding with the interface document when receiving interface document.
In prior art, in the implementation procedure of a development task, project administrator is needed according to development task
Actual conditions, be primarily based on current manpower, reasonable arrangement developer carries out writing for code, after the completion of written in code,
Project administrator also to continue arrange tester the code write is tested, whole process all by project administrator into
Pedestrian is distribution.
Based on the above situation, since the process of human intervention is more, once project administrator leaves office or has a holiday,
Development task will be unable to go on smoothly down.
In at least one embodiment of the present invention, the interface document is in project development, and by front and back end, engineer is total to
Front and back end engineer is set to have a unified file to link up, side by writing and safeguarding the interface document with definition
Phase personnel check and safeguard after an action of the bowels.
In at least one embodiment of the present invention, the development task refers to determining according to exploitation demand for task, institute
Stating exploitation demand may include newly increased requirement and existing demand.
S11 identifies at least one subtask in the development task.
In at least one embodiment of the present invention, since a development task corresponds at least one exploitation demand, because
This can obtain at least one subtask by splitting a development task.
Further, the electronic equipment identifies the development task, at least one subtask can be obtained.
Such as: the electronic equipment can be identified according to the title or mark of at least one subtask, this
Invention does not limit.
S12 is obtained at least one described subtask, the task identification of each subtask.
In at least one embodiment of the present invention, the task identification may include, but be not limited to it is following a kind of or
A variety of combinations:
Task names, task identification code (Identity, ID), task encoding etc..
By the task identification, the electronic equipment can uniquely determine a subtask, so as to each subtask
It distinguishes.
S13 transfers the code of each subtask according to each task identification from configuration code library.
In at least one embodiment of the present invention, subtask and code, and son are record in the configuration code library
There are one-to-one relationships with code for task.
In at least one embodiment of the present invention, it according to each task identification, is transferred from configuration code library each
Before the code of subtask, the electronic equipment configures the configuration code library.
Specifically, according to each task identification, the electronic equipment transfers each subtask from configuration code library
Before code, the method also includes:
Every prefixed time interval, the electronic equipment obtains the historic task data in the prefixed time interval, and
Determine all subtasks from the historic task data, and all codes corresponding with all subtasks, further,
The electronic equipment is all subtask configuration task marks, and determines pair of the task identification and all codes
It should be related to, further, the electronic equipment configures the configuration code library according to the corresponding relationship.
Specifically, the prefixed time interval can be configured according to the actual situation, such as: the prefixed time interval
It may include 24 hours etc..
Further, the historic task data include all data in the prefixed time interval.
Specifically, the historic task data include, but are not limited to the combination of following one or more:
The title of all subtasks, the corresponding all codes in all subtasks, all subtasks category
Property data (such as: all subtasks are briefly described).
Certainly, in other embodiments, before all code configurations are entered the configuration code library, the electronics is set
The form error and security element of all codes are detected for may call upon quality testing plug-in unit, the present invention is unlimited
System.
By above embodiment, the electronic equipment can continuous integrating code data, to configure the configuration code
Library, while the data recorded in the configuration code library are regularly updated, to guarantee data in the configuration code library
High availability avoids the normal execution due to the outmoded influence development task of code.
Further, the method also includes:
When from the first subtask corresponding generation at least one described subtask cannot be deployed into the configuration code library
When code, the electronic device prompts designated person writes the first code of first subtask, and further, the electronics is set
Standby to identify for first subtask configuration task, according to the task identification, the electronic equipment is by first subtask
And the first code is updated to the configuration code library.
Specifically, the designated person includes developer etc., and the designated person has the ability for writing code.
It is understood that due to not recording the corresponding code in first subtask in the configuration code library,
Therefore, designated person described in the electronic device prompts is according to first subtask exploitation code, in order to avoid delay the exploitation
The progress of task can effectively improve the timeliness of the development task due to responding in time.
By above embodiment, the electronic equipment can also be timely by unwritten task in the configuration code library
It updates into the configuration code library, so that the data in the configuration code library are more perfect, specific, facilitates follow-up work from institute
It states and is called directly in configuration code library, not only saved the development time of developer, moreover it is possible to effectively avoid due to artificially writing
The mistake that code occurs.
S14 executes the every section of code transferred, obtains the implementing result of the development task.
In at least one embodiment of the present invention, the electronic equipment executes every one by one after being deployed into every section of code
Section code, and after every section of code is finished, finally obtain the implementing result of the development task.
Specifically, the electronic equipment executes the every section of code transferred, and the implementing result for obtaining the development task includes:
The electronic equipment compiles every section of code, obtains the corresponding each executable file of every section of code, further, institute
It states electronic equipment and running environment is disposed according to the development task, and execute each executable file under the running environment,
Obtain the implementing result.
Such as: the electronic equipment is packaged every section of code after being deployed into every section of code first, so that every section of code be compiled
It is translated into executable file, and after obtaining the corresponding each executable file of every section of code, further disposes running environment, so that
Every section of code smoothly executes.
Specifically, the executable file includes, but are not limited to the combination of following one or more kinds of forms:
" .bat " file, " .jar " file etc..
It is understood that the running environment of the development task has determined before development task described in implementing plan
It is good.
Specifically, the running environment includes, but are not limited to the combination of following one or more:
Test environment, production environment, exploitation environment etc..
Further, the running environment can be deployed in respective server by the electronic equipment, and a service
Device can dispose multiple running environment, and the present invention does not limit.
By above embodiment, the electronic equipment can execute the every section of code transferred automatically, and obtain described hold
Row is as a result, for follow-up test.
S15 parses the interface document, generates test script.
In at least one embodiment of the present invention, include the exploitation data of agreement in the interface document, specifically include
Input item, output item etc..
Wherein, the output item can be used as the benchmark of the implementing result.
In at least one embodiment of the present invention, the electronic equipment parses the interface document, generates test script
Include:
The electronic equipment obtains input item and output item from the interface document, and according to the input item and described
Output item generates the test script.
By above embodiment, the electronic equipment can automatically generate the test script, for subsequent test
Task uses, and avoids artificially participating in.
Also, since the test script is immediately generated after obtaining the implementing result, saves and artificially write survey
This time it takes of training and experience, and linked up without tester with developer, reduce communication cost, it can also
Mistake caused by effectively to avoid misunderstanding as tester.
S16 verifies the implementing result with the test script.
In at least one embodiment of the present invention, the electronic equipment is after generating the test script, directly with institute
It states test script and verifies the implementing result, improve response efficiency.
By verifying, whether the electronic equipment can not only test outgoing interface wrong, additionally it is possible to according to the output item
Whether wrong test out every section of code.
Specifically, the electronic equipment includes: with the test script verifying implementing result
The implementing result is compared by the electronic equipment with the output item, when the implementing result with it is described defeated
When item is consistent out, the electronic equipment determines that the implementing result passes through verifying;
When the implementing result and the output item are inconsistent, the electronic equipment determines that the implementing result does not pass through
Verifying.
It is understood that illustrating that the interface is available first when the implementing result is consistent with the output item
, in this way, the electronic equipment could smoothly execute every section of code according to the interface, to verify the correctness of interface calling.
Secondly as the implementing result is consistent with the output item, the implementing result illustrated is correct, that is,
It says, the execution of every section of code is correct.
By above embodiment, the automatic Verification to every section of code is can be completed in the electronic equipment, and user experience is more
It is good.
Preferably, when the electronic equipment determines that the implementing result is unverified, the method also includes:
The electronic equipment obtains the execution journal of the development task, and abnormal generation is positioned from the execution journal
Code, further, the electronic equipment obtains the developer of the abnormality code from the configuration code library, and opens to described
Originator issues prompt information.
Specifically, the prompt information includes, but are not limited to the combination of following one or more:
Prompt the wrong configuration text information of code, the address of the abnormality code, abnormality code in the execution journal
Screenshot etc..
By above embodiment, when code is wrong, the electronic equipment can remind corresponding developer to carry out in time
It improves, to improve response speed.
Certainly, in other embodiments, the electronic equipment can also save the execution journal, and by abnormal correlation
Information is sent to relevant person in charge, the progress of the development task so that the relevant person in charge can follow up in time, and understands
The implementation capacity of each developer.
As can be seen from the above technical solutions, the present invention can obtain every in development task corresponding with the interface document
The task identification of a subtask, and according to each task identification, the code of each subtask is transferred from configuration code library, into one
Step executes the every section of code transferred, and obtains the implementing result of the development task, gets code automatically and execute, can be avoided
Time and the energy of code waste are artificially write, and it is possible to prevente effectively from mistake is write, further according to the interface document life received
At test script, the implementing result is verified with the test script, to be verified automatically to every section of code, and further
The automatic execution for realizing development task, has not only saved human cost, additionally it is possible to improve execution efficiency.
As shown in Fig. 2, being the functional block diagram of the preferred embodiment of development task executive device of the present invention.The exploitation is appointed
Business executive device 11 include acquiring unit 110, recognition unit 111, transfer unit 112, execution unit 113, generation unit 114,
Authentication unit 115, configuration unit 117, prompt unit 118, updating unit 119, positioning unit 120, is sent determination unit 116
Unit 121 and detection unit 122.So-called module/the unit of the present invention refer to one kind can performed by processor 13, and
The series of computation machine program segment of fixed function can be completed, storage is in memory 12.In the present embodiment, about each mould
Block/unit function will be described in detail in subsequent embodiment.
When receiving interface document, acquiring unit 110 obtains development task corresponding with the interface document.
In prior art, in the implementation procedure of a development task, project administrator is needed according to development task
Actual conditions, be primarily based on current manpower, reasonable arrangement developer carries out writing for code, after the completion of written in code,
Project administrator also to continue arrange tester the code write is tested, whole process all by project administrator into
Pedestrian is distribution.
Based on the above situation, since the process of human intervention is more, once project administrator leaves office or has a holiday,
Development task will be unable to go on smoothly down.
In at least one embodiment of the present invention, the interface document is in project development, and by front and back end, engineer is total to
Front and back end engineer is set to have a unified file to link up, side by writing and safeguarding the interface document with definition
Phase personnel check and safeguard after an action of the bowels.
In at least one embodiment of the present invention, the development task refers to determining according to exploitation demand for task, institute
Stating exploitation demand may include newly increased requirement and existing demand.
Recognition unit 111 identifies at least one subtask in the development task.
In at least one embodiment of the present invention, since a development task corresponds at least one exploitation demand, because
This can obtain at least one subtask by splitting a development task.
Further, the recognition unit 111 identifies the development task, at least one subtask can be obtained.
Such as: the recognition unit 111 can be identified according to the title or mark of at least one subtask,
The present invention does not limit.
The acquiring unit 110 obtains at least one described subtask, the task identification of each subtask.
In at least one embodiment of the present invention, the task identification may include, but be not limited to it is following a kind of or
A variety of combinations:
Task names, task identification code (Identity, ID), task encoding etc..
By the task identification, determination unit 116 can uniquely determine a subtask, so as to each subtask into
Row is distinguished.
According to each task identification, the code that unit 112 transfers each subtask from configuration code library is transferred.
In at least one embodiment of the present invention, subtask and code, and son are record in the configuration code library
There are one-to-one relationships with code for task.
In at least one embodiment of the present invention, according to each task identification, unit 112 is transferred from configuration code library
In transfer the code of each subtask before, configuration unit 117 configures the configuration code library.
Specifically, according to each task identification, the unit 112 of transferring transfers each subtask from configuration code library
Code before, the method also includes:
Every prefixed time interval, the acquiring unit 110 obtains the historic task data in the prefixed time interval,
Further, the determination unit 116 determines all subtasks from the historic task data, and with all subtasks
Corresponding all codes, the configuration unit 117 are all subtask configuration task marks, and the determination unit 116 is really
The corresponding relationship of the fixed task identification and all codes, further, the configuration unit 117 is according to the corresponding pass
System, configures the configuration code library.
Specifically, the prefixed time interval can be configured according to the actual situation, such as: the prefixed time interval
It may include 24 hours etc..
Further, the historic task data include all data in the prefixed time interval.
Specifically, the historic task data include, but are not limited to the combination of following one or more:
The title of all subtasks, the corresponding all codes in all subtasks, all subtasks category
Property data (such as: all subtasks are briefly described).
Certainly, in other embodiments, before all code configurations are entered the configuration code library, detection unit
122 can call quality testing plug-in unit to detect the form error and security element of all codes, and the present invention is unlimited
System.
By above embodiment, the configuration unit 117 can continuous integrating code data, to configure the configuration generation
Code library, meanwhile, updating unit 119 regularly updates the data recorded in the configuration code library, to guarantee the configuration
The high availability of data in code library avoids the normal execution due to the outmoded influence development task of code.
Further, the method also includes:
When the unit 112 of transferring in the configuration code library from cannot be deployed into first at least one described subtask
When the corresponding code in subtask, prompt unit 118 prompts designated person to write the first code of first subtask, further
Ground, the configuration unit 117 are first subtask configuration task mark, further, 119 basis of updating unit
First subtask and the first code are updated to the configuration code library by the task identification.
Specifically, the designated person includes developer etc., and the designated person has the ability for writing code.
It is understood that due to not recording the corresponding code in first subtask in the configuration code library,
Therefore, the prompt unit 118 prompts the designated person according to first subtask exploitation code, in order to avoid delay described open
The progress of hair task can effectively improve the timeliness of the development task due to responding in time.
By above embodiment, the updating unit 119 can also be by unwritten task in the configuration code library
It timely updates into the configuration code library, so that the data in the configuration code library are more perfect, specific, facilitates follow-up work
It is called directly from the configuration code library, has not only saved the development time of developer, moreover it is possible to effectively avoided due to artificial
Write the mistake of code appearance.
Execution unit 113 executes the every section of code transferred, and obtains the implementing result of the development task.
In at least one embodiment of the present invention, the execution unit 113 executes one by one after being deployed into every section of code
Every section of code, and after every section of code is finished, finally obtain the implementing result of the development task.
Specifically, the execution unit 113 executes the every section of code transferred, and obtains the implementing result packet of the development task
It includes:
The execution unit 113 compiles every section of code, obtains the corresponding each executable file of every section of code, further
Ground, the execution unit 113 dispose running environment, further, the execution unit 113 exists according to the development task
Each executable file is executed under the running environment, obtains the implementing result.
Such as: the execution unit 113 is packaged every section of code after being deployed into every section of code first, thus by every section of generation
Code is compiled as executable file, and after obtaining the corresponding each executable file of every section of code, further disposes running environment,
So that every section of code smoothly executes.
Specifically, the executable file includes, but are not limited to the combination of following one or more kinds of forms:
" .bat " file, " .jar " file etc..
It is understood that the running environment of the development task has determined before development task described in implementing plan
It is good.
Specifically, the running environment includes, but are not limited to the combination of following one or more:
Test environment, production environment, exploitation environment etc..
Further, the running environment can be deployed in respective server by the execution unit 113, and a clothes
Business device can dispose multiple running environment, and the present invention does not limit.
By above embodiment, the execution unit 113 can execute the every section of code transferred automatically, and obtain described
Implementing result, for follow-up test.
Generation unit 114 parses the interface document, generates test script.
In at least one embodiment of the present invention, include the exploitation data of agreement in the interface document, specifically include
Input item, output item etc..
Wherein, the output item can be used as the benchmark of the implementing result.
In at least one embodiment of the present invention, the generation unit 114 parses the interface document, generates test foot
Originally include:
The generation unit 114 obtains input item and output item from the interface document, and according to the input item and
The output item generates the test script.
By above embodiment, the generation unit 114 can automatically generate the test script, for subsequent survey
Trial is make sure use, avoids artificially participating in.
Also, since the test script is immediately generated after obtaining the implementing result, saves and artificially write survey
This time it takes of training and experience, and linked up without tester with developer, reduce communication cost, it can also
Mistake caused by effectively to avoid misunderstanding as tester.
Authentication unit 115 verifies the implementing result with the test script.
In at least one embodiment of the present invention, after generating the test script, the authentication unit 115 directly with
The test script verifies the implementing result, improves response efficiency.
By verifying, whether the authentication unit 115 can not only test outgoing interface wrong, additionally it is possible to according to the output
Whether item tests out every section of code wrong.
Specifically, the authentication unit 115 includes: with the test script verifying implementing result
The implementing result is compared by the authentication unit 115 with the output item, when the implementing result and institute
State output item it is consistent when, the authentication unit 115 determines that the implementing result passes through verifying;
When the implementing result and the output item are inconsistent, the authentication unit 115 determines the implementing result not
Pass through verifying.
It is understood that illustrating that the interface is available first when the implementing result is consistent with the output item
, in this way, every section of code could smoothly be executed according to the interface, to verify the correctness of interface calling.Secondly as described
Implementing result is consistent with the output item, and the implementing result illustrated is correct, that is to say, that every section of code is held
Row is correct.
By above embodiment, the automatic Verification to every section of code, user experience is can be completed in the authentication unit 115
More preferably.
Preferably, when the authentication unit 115 determines that the implementing result is unverified, the method also includes:
The acquiring unit 110 obtains the execution journal of the development task, and positioning unit 120 is from the execution journal
Abnormality code is positioned, further, the acquiring unit 110 obtains the exploitation of the abnormality code from the configuration code library
Person, further, transmission unit 121 send prompt information to the developer.
Specifically, the prompt information includes, but are not limited to the combination of following one or more:
Prompt the wrong configuration text information of code, the address of the abnormality code, abnormality code in the execution journal
Screenshot etc..
By above embodiment, when code is wrong, corresponding developer can be reminded to improve in time, to improve sound
Answer speed.
Certainly, in other embodiments, the transmission unit 121 can also save the execution journal, and will be abnormal
Relevant information is sent to relevant person in charge, the progress of the development task so that the relevant person in charge can follow up in time, and
Understand the implementation capacity of each developer.
As can be seen from the above technical solutions, the present invention can obtain every in development task corresponding with the interface document
The task identification of a subtask, and according to each task identification, the code of each subtask is transferred from configuration code library, into one
Step executes the every section of code transferred, and obtains the implementing result of the development task, gets code automatically and execute, can be avoided
Time and the energy of code waste are artificially write, and it is possible to prevente effectively from mistake is write, further according to the interface document life received
At test script, the implementing result is verified with the test script, to be verified automatically to every section of code, and further
The automatic execution for realizing development task, has not only saved human cost, additionally it is possible to improve execution efficiency.
As shown in figure 3, being that the present invention realizes that development task executes the structure of electronic equipment of the preferred embodiment of method and shows
It is intended to.
The electronic equipment 1 be it is a kind of can according to the instruction for being previously set or store, automatic progress numerical value calculating and/or
The equipment of information processing, hardware include but is not limited to microprocessor, specific integrated circuit (Application Specific
Integrated Circuit, ASIC), programmable gate array (Field-Programmable Gate Array, FPGA), number
Word processing device (Digital Signal Processor, DSP), embedded device etc..
The electronic equipment 1, which can also be but not limited to any one, to pass through keyboard, mouse, remote controler, touching with user
The modes such as template or voice-operated device carry out the electronic product of human-computer interaction, for example, personal computer, tablet computer, smart phone,
Personal digital assistant (Personal Digital Assistant, PDA), game machine, Interactive Internet TV (Internet
Protocol Television, IPTV), intellectual wearable device etc..
The electronic equipment 1 can also be that the calculating such as desktop PC, notebook, palm PC and cloud server are set
It is standby.
Network locating for the electronic equipment 1 include but is not limited to internet, wide area network, Metropolitan Area Network (MAN), local area network, it is virtual specially
With network (Virtual Private Network, VPN) etc..
In one embodiment of the invention, the electronic equipment 1 includes, but are not limited to memory 12, processor 13,
And it is stored in the computer program that can be run in the memory 12 and on the processor 13, such as development task executes
Program.
It will be understood by those skilled in the art that the schematic diagram is only the example of electronic equipment 1, not structure paired electrons
The restriction of equipment 1 may include perhaps combining certain components or different components, example than illustrating more or fewer components
Such as described electronic equipment 1 can also include input-output equipment, network access equipment, bus.
The processor 13 can be central processing unit (Central Processing Unit, CPU), 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) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng the processor 13 is arithmetic core and the control centre of the electronic equipment 1, entire using various interfaces and connection
The various pieces of electronic equipment 1, and execute the operating system of the electronic equipment 1 and types of applications program, the program of installation
Code etc..
The processor 13 executes the operating system of the electronic equipment 1 and the types of applications program of installation.The place
Reason device 13 executes the application program to realize that above-mentioned each development task executes the step in embodiment of the method, such as Fig. 1 institute
Step S10, S11, S12, S13, S14, S15, the S16 shown.
Alternatively, the processor 13 realizes each module in above-mentioned each Installation practice/mono- when executing the computer program
The function of member, such as: when receiving interface document, obtain development task corresponding with the interface document;It is opened described in identification
At least one subtask in hair task;It obtains at least one described subtask, the task identification of each subtask;According to every
A task identification transfers the code of each subtask from configuration code library;The every section of code transferred is executed, the exploitation is obtained
The implementing result of task;The interface document is parsed, test script is generated;The implementing result is verified with the test script.
Illustratively, the computer program can be divided into one or more module/units, one or more
A module/unit is stored in the memory 12, and is executed by the processor 13, to complete the present invention.It is one
Or multiple module/units can be the series of computation machine program instruction section that can complete specific function, the instruction segment is for retouching
State implementation procedure of the computer program in the electronic equipment 1.It is obtained for example, the computer program can be divided into
Unit 110, recognition unit 111 are taken, unit 112 is transferred, execution unit 113, generation unit 114, authentication unit 115, determines list
Member 116, configuration unit 117, prompt unit 118, updating unit 119, positioning unit 120, transmission unit 121 and detection unit
122。
The memory 12 can be used for storing the computer program and/or module, the processor 13 by operation or
The computer program and/or module being stored in the memory 12 are executed, and calls the data being stored in memory 12,
Realize the various functions of the electronic equipment 1.The memory 12 can mainly include storing program area and storage data area,
In, storing program area can application program needed for storage program area, at least one function (such as sound-playing function, image
Playing function etc.) etc.;Storage data area, which can be stored, uses created data (such as audio data, phone directory according to mobile phone
Deng) etc..In addition, memory 12 may include high-speed random access memory, it can also include nonvolatile memory, such as firmly
Disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital,
SD) block, flash card (Flash Card), at least one disk memory, flush memory device or other volatile solid-states
Part.
The memory 12 can be the external memory and/or internal storage of electronic equipment 1.Further, described
Memory 12 can be the circuit with store function for not having physical form in integrated circuit, such as RAM (Random-Access
Memory, random access memory), FIFO (First In First Out) etc..Alternatively, the memory 12 is also possible to
Memory with physical form, such as memory bar, TF card (Trans-flash Card).
If the integrated module/unit of the electronic equipment 1 is realized in the form of SFU software functional unit and as independent
Product when selling or using, can store in a computer readable storage medium.Based on this understanding, the present invention is real
All or part of the process in existing above-described embodiment method, can also instruct relevant hardware come complete by computer program
At the computer program can be stored in a computer readable storage medium, which is being executed by processor
When, it can be achieved that the step of above-mentioned each embodiment of the method.
Wherein, the computer program includes computer program code, and the computer program code can be source code
Form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium may include: can
Carry any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer of the computer program code
Memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access
Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer-readable medium
The content for including can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice, such as in certain departments
Method administrative area does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
In conjunction with Fig. 1, the memory 12 in the electronic equipment 1 stores multiple instruction to realize that a kind of development task is held
The multiple instruction can be performed to realize in row method, the processor 13: when receiving interface document, acquisition connects with described
The corresponding development task of mouth document;Identify at least one subtask in the development task;At least one described son is obtained to appoint
In business, the task identification of each subtask;According to each task identification, the generation of each subtask is transferred from configuration code library
Code;The every section of code transferred is executed, the implementing result of the development task is obtained;The interface document is parsed, test foot is generated
This;The implementing result is verified with the test script.
Preferred embodiment according to the present invention, the processor 13 execute multiple instruction and include:
Every prefixed time interval, the historic task data in the prefixed time interval are obtained;
Determine all subtasks from the historic task data, and all codes corresponding with all subtasks;
It is identified for all subtask configuration tasks;
Determine the corresponding relationship of the task identification Yu all codes;
According to the corresponding relationship, the configuration code library is configured.
Preferred embodiment according to the present invention, the processor 13 also execute multiple instruction and include:
When from the first subtask corresponding generation at least one described subtask cannot be deployed into the configuration code library
When code, designated person is prompted to write the first code of first subtask;
For first subtask configuration task mark;
According to the task identification, first subtask and the first code are updated to the configuration code library.
Preferred embodiment according to the present invention, the processor 13 also execute multiple instruction and include:
Every section of code is compiled, the corresponding each executable file of every section of code is obtained;
According to the development task, running environment is disposed;
Each executable file is executed under the running environment, obtains the implementing result.
Preferred embodiment according to the present invention, the processor 13 also execute multiple instruction and include:
Input item and output item are obtained from the interface document;
According to the input item and the output item, the test script is generated.
Preferred embodiment according to the present invention, the processor 13 also execute multiple instruction and include:
The implementing result is compared with the output item;
When the implementing result is consistent with the output item, determine that the implementing result passes through verifying;
When the implementing result and the output item are inconsistent, determine that the implementing result is unverified.
Preferred embodiment according to the present invention, the processor 13 also execute multiple instruction and include:
Obtain the execution journal of the development task;
Abnormality code is positioned from the execution journal;
The developer of the abnormality code is obtained from the configuration code library;
Prompt information is sent to the developer.
Specifically, the processor 13 can refer to the concrete methods of realizing of above-metioned instruction related in Fig. 1 corresponding embodiment
The description of step, this will not be repeated here.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module
It divides, only a kind of logical function partition, there may be another division manner in actual implementation.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module
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.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in 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 hardware adds software function module.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie
In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.
Therefore, in all respects, the present embodiments are to be considered as illustrative and not restrictive, this
The range of invention is indicated by the appended claims rather than the foregoing description, it is intended that the equivalent requirements of the claims will be fallen in
All changes in meaning and scope are included in the present invention.Any attached associated diagram label in claim should not be considered as limit
Claim involved in making.
Furthermore, it is to be understood that one word of " comprising " does not exclude other units or steps, odd number is not excluded for plural number.In system claims
The multiple units or device of statement can also be implemented through software or hardware by a unit or device.Second equal words are used
It indicates title, and does not indicate any particular order.
Finally it should be noted that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although reference
Preferred embodiment describes the invention in detail, those skilled in the art should understand that, it can be to of the invention
Technical solution is modified or equivalent replacement, without departing from the spirit and scope of the technical solution of the present invention.
Claims (10)
1. a kind of development task executes method, which is characterized in that the described method includes:
When receiving interface document, development task corresponding with the interface document is obtained;
Identify at least one subtask in the development task;
It obtains at least one described subtask, the task identification of each subtask;
According to each task identification, the code of each subtask is transferred from configuration code library;
The every section of code transferred is executed, the implementing result of the development task is obtained;
The interface document is parsed, test script is generated;
The implementing result is verified with the test script.
2. development task as described in claim 1 executes method, which is characterized in that according to each task identification, from configuration
Before the code for transferring each subtask in code library, the method also includes:
Every prefixed time interval, the historic task data in the prefixed time interval are obtained;
Determine all subtasks from the historic task data, and all codes corresponding with all subtasks;
It is identified for all subtask configuration tasks;
Determine the corresponding relationship of the task identification Yu all codes;
According to the corresponding relationship, the configuration code library is configured.
3. development task as described in claim 1 executes method, which is characterized in that the method also includes:
When from the corresponding code in the first subtask at least one described subtask cannot be deployed into the configuration code library,
Prompt designated person writes the first code of first subtask;
For first subtask configuration task mark;
According to the task identification, first subtask and the first code are updated to the configuration code library.
4. development task as described in claim 1 executes method, which is characterized in that it is described to execute the every section of code transferred, it obtains
Implementing result to the development task includes:
Every section of code is compiled, the corresponding each executable file of every section of code is obtained;
According to the development task, running environment is disposed;
Each executable file is executed under the running environment, obtains the implementing result.
5. development task as described in claim 1 executes method, which is characterized in that the parsing interface document generates
Test script includes:
Input item and output item are obtained from the interface document;
According to the input item and the output item, the test script is generated.
6. development task as claimed in claim 5 executes method, which is characterized in that described described in test script verifying
Implementing result includes:
The implementing result is compared with the output item;
When the implementing result is consistent with the output item, determine that the implementing result passes through verifying;
When the implementing result and the output item are inconsistent, determine that the implementing result is unverified.
7. development task as claimed in claim 6 executes method, which is characterized in that tested when determining that the implementing result does not pass through
When card, the method also includes:
Obtain the execution journal of the development task;
Abnormality code is positioned from the execution journal;
The developer of the abnormality code is obtained from the configuration code library;
Prompt information is sent to the developer.
8. a kind of development task executive device, which is characterized in that described device includes:
Acquiring unit, for obtaining development task corresponding with the interface document when receiving interface document;
Recognition unit, for identification at least one subtask in the development task;
The acquiring unit is also used to obtain at least one described subtask, the task identification of each subtask;
Unit is transferred, for transferring the code of each subtask from configuration code library according to each task identification;
Execution unit obtains the implementing result of the development task for executing the every section of code transferred;
Generation unit generates test script for parsing the interface document;
Authentication unit, for verifying the implementing result with the test script.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Memory stores at least one instruction;And
Processor executes the instruction stored in the memory to realize exploitation as claimed in any of claims 1 to 7 in one of claims
Task executing method.
10. a kind of computer readable storage medium, it is characterised in that: be stored at least one in the computer readable storage medium
A instruction, at least one described instruction are executed by the processor in electronic equipment to realize such as any one of claim 1 to 7
The development task executes method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910448214.8A CN110362294A (en) | 2019-05-27 | 2019-05-27 | Development task executes method, apparatus, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910448214.8A CN110362294A (en) | 2019-05-27 | 2019-05-27 | Development task executes method, apparatus, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110362294A true CN110362294A (en) | 2019-10-22 |
Family
ID=68214916
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910448214.8A Pending CN110362294A (en) | 2019-05-27 | 2019-05-27 | Development task executes method, apparatus, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110362294A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112346775A (en) * | 2020-09-21 | 2021-02-09 | 杭州数智政通科技有限公司 | General index data processing method, electronic device and storage medium |
CN112699044A (en) * | 2021-01-05 | 2021-04-23 | 长沙市到家悠享家政服务有限公司 | Pressure testing method, equipment and storage medium |
-
2019
- 2019-05-27 CN CN201910448214.8A patent/CN110362294A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112346775A (en) * | 2020-09-21 | 2021-02-09 | 杭州数智政通科技有限公司 | General index data processing method, electronic device and storage medium |
CN112346775B (en) * | 2020-09-21 | 2024-02-02 | 杭州数智政通科技有限公司 | Index data general processing method, electronic device and storage medium |
CN112699044A (en) * | 2021-01-05 | 2021-04-23 | 长沙市到家悠享家政服务有限公司 | Pressure testing method, equipment and storage medium |
CN112699044B (en) * | 2021-01-05 | 2023-02-24 | 长沙市到家悠享家政服务有限公司 | Pressure testing method, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108415832B (en) | Interface automation test method, device, equipment and storage medium | |
US11782818B2 (en) | Providing debug information on production containers using debug containers | |
US10642725B2 (en) | Automated test generation for multi-interface enterprise virtualization management environment | |
CN110928772B (en) | Test method and device | |
US10552306B2 (en) | Automated test generation for multi-interface and multi-platform enterprise virtualization management environment | |
US9329979B2 (en) | Derivation of generalized test cases | |
WO2019104891A1 (en) | Method and device for importing and exporting report, storage medium, and terminal | |
CN109828906A (en) | UI automated testing method, device, electronic equipment and storage medium | |
US11010286B1 (en) | Software testing with machine learning models | |
CN115812298A (en) | Block chain management of supply failure | |
CN109408361A (en) | Monkey tests restored method, device, electronic equipment and computer readable storage medium | |
US11055204B2 (en) | Automated software testing using simulated user personas | |
CN110362294A (en) | Development task executes method, apparatus, electronic equipment and storage medium | |
US20220198304A1 (en) | Providing explainable machine learning model results using distributed ledgers | |
US11368554B2 (en) | Systems and methods for regulating service behavior | |
Romero et al. | Integration of DevOps practices on a noise monitor system with CircleCI and Terraform | |
US11182272B2 (en) | Application state monitoring | |
US11481212B2 (en) | Automatic identification of reference data | |
US11442724B2 (en) | Pattern recognition | |
CN110309062A (en) | Case generation method, device, electronic equipment and storage medium | |
CN112433821B (en) | Method and device for building business model, electronic equipment and medium | |
US20230244685A1 (en) | Automatic estimation of computing resources for auto-discovery | |
US11561979B2 (en) | Dynamically detecting and correcting errors in queries | |
US20230093988A1 (en) | Data-driven decision enhancement | |
US20240028408A1 (en) | Reference implementation of cloud computing resources |
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 |