CN110096424A - Processing method, device, electronic equipment and the storage medium of test - Google Patents
Processing method, device, electronic equipment and the storage medium of test Download PDFInfo
- Publication number
- CN110096424A CN110096424A CN201910396921.7A CN201910396921A CN110096424A CN 110096424 A CN110096424 A CN 110096424A CN 201910396921 A CN201910396921 A CN 201910396921A CN 110096424 A CN110096424 A CN 110096424A
- Authority
- CN
- China
- Prior art keywords
- task
- script executor
- target script
- operating system
- type
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3409—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
-
- 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/3668—Software testing
- G06F11/3672—Test management
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The disclosure provides processing method, device, electronic equipment and the storage medium of a kind of test, this method comprises: obtaining the corresponding continuous integrating script of destination item, the continuous integrating script includes at least one mission bit stream, the mission bit stream includes task type mark and the task type identifies corresponding task definition, the script executor of every kind of corresponding a type of operating system of task type mark;It is identified according to the task type, the target script executor under corresponding operating system is called to execute the task definition.Allow calls the target script executor under corresponding operating system to execute task definition when test according to task type mark, the automatic test under windows system and macos system environments to project may be implemented, project is effectively ensured in windows system and macos system environments and issues online performance.
Description
Technical field
This disclosure relates to the field of test technology more particularly to a kind of processing method of test, device, electronic equipment and storage
Medium.
Background technique
In the project development process of software, the project of exploitation is tested to verify the stability of software, correctness
Etc. performances it is particularly important.And front end exploitation is the indispensable part of project development.In the exploitation of front end, it will usually use end pair
End test meets expection come the interaction for guaranteeing project UI and function.
In the prior art, project development is carried out usually using gitlab platform, end-to-end test can pass through gitlab
Runner starts.
But the machine for building gitlab runner is usually Linux system environment, such end-to-end test is merely able to
Performance of the guarantee project under Linux system environment.When project need when windows or macos system environments is online, then not
It can guarantee its online performance.
Summary of the invention
The disclosure provides processing method, device, electronic equipment and the storage medium of a kind of test, to solve the prior art only
The defects of can guarantee performance of the project under Linux system environment.
Disclosure first aspect provides a kind of processing method of test, comprising:
The corresponding continuous integrating script of destination item is obtained, the continuous integrating script includes at least one mission bit stream,
The mission bit stream includes task type mark and the task type identifies corresponding task definition, every kind of task type mark
The script executor of corresponding a type of operating system;
It is identified according to the task type, the target script executor under corresponding operating system is called to execute the task
Content.
Disclosure the second aspect provides a kind of processing unit of test, comprising:
Module is obtained, for obtaining the corresponding continuous integrating script of destination item, the continuous integrating script includes at least
A kind of mission bit stream, the mission bit stream include that task type mark and the task type identify corresponding task definition, often
The script executor of the corresponding a type of operating system of kind task type mark;
Calling module calls the target script execution under corresponding operating system for identifying according to the task type
Device executes the task definition.
A kind of electronic equipment is provided in terms of disclosure third, comprising: at least one processor and memory;
The memory stores computer program;At least one described processor executes the computer of the memory storage
Program, the method to realize first aspect offer.
The 4th aspect of the disclosure provides a kind of computer readable storage medium, stores in the computer readable storage medium
There is computer program, the computer program is performed the method for realizing that first aspect provides.
Processing method, device, electronic equipment and the storage medium for the test that the disclosure provides, pass through continuous integrating script packet
At least one mission bit stream is included, every kind of task corresponds to the script executor of a type of operating system, so that can be with when test
It calls the target script executor under corresponding operating system to execute task definition according to task type mark, realizes
To the automatic test of project under windows system and macos system environments, be effectively ensured project in windows system and
Macos system environments issues online performance.
Detailed description of the invention
In order to illustrate more clearly of the embodiment of the present disclosure or technical solution in the prior art, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this public affairs
The some embodiments opened for those of ordinary skill in the art without any creative labor, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the flow diagram of the processing method for the test that one embodiment of the disclosure provides;
Fig. 2 is the flow diagram of the processing method for the test that another embodiment of the disclosure provides;
Fig. 3 is the structural schematic diagram of the processing unit for the test that one embodiment of the disclosure provides;
Fig. 4 is the structural schematic diagram for the electronic equipment that one embodiment of the disclosure provides;
Fig. 5 is the exemplary structure schematic diagram for the electronic equipment that one embodiment of the disclosure provides.
Through the above attached drawings, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail.These attached drawings
It is not intended to limit the scope of this disclosure concept by any means with verbal description, but is by referring to specific embodiments
Those skilled in the art illustrate the concept of the disclosure.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present disclosure clearer, below in conjunction with the embodiment of the present disclosure
In attached drawing, the technical solution in the embodiment of the present disclosure is clearly and completely described, it is clear that described embodiment is
Disclosure a part of the embodiment, instead of all the embodiments.Based on the embodiment in the disclosure, those of ordinary skill in the art
Every other embodiment obtained without creative efforts belongs to the range of disclosure protection.
Noun involved in the disclosure is explained first:
Gitlab: one privately owned code administration platform is the open source projects for being used for warehouse management system, uses
Git is erected carry out web services on this basis as code management tools.
Continuous integrating: Continuous Integration is a kind of practice of software, i.e., team's exploitation member is frequent
Their work is integrated, usual each member is at least integrated primary daily, and also meaning that may occur repeatedly to integrate daily.
Collection Chengdu is verified by the building (including compiling, publication, automatic test) of automation every time, so that discovery is integrated as soon as possible
Mistake.This process can greatly reduce integrated problem, allow team that can develop the software of cohesion faster.
Gitlab-ci: also referred to as gitlab ci is the continuous integration system that a set of cooperation gitlab is used, can be set
In server.
Gitlab-runner: being properly termed as script executor, also referred to as gitlab runner, be cooperation gitlab-ci into
Enforcement, it is responsible for executing the script of the continuous integrating on gitlab.Generally, each of gitlab engineering (also referred to as item
Mesh) the Integrated Simulation script (i.e. continuous integrating script) for belonging to this engineering can be all defined, for automatically completing one
A little Integrated Simulation work.When the storage code of this engineering changes, such as someone push code, gitlab will will
This changes notice gitlab-ci.At this moment gitlab-ci can find out gitlab-runner associated with this engineering, and lead to
Know the continuous integrating script that these gitlab-runner have predefined code update to local and execution.On condition that these
Gitlab-runner will be registered in gitlab-ci, and gitlab-ci is enable to find corresponding gitlab-runner.
End-to-end test: UI automatic test, the operation behavior of automatic imitation user be can be understood as.
Linux: one using UNIX as the open source operating system of kernel.Linux, macos and windows are the three big of mainstream
Computer operating system.Wherein, windows refers to that microsoft operation system, macos refer to Apple Macintosh operating system.
The processing method for the test that the embodiment of the present disclosure provides is removed suitable for the project developed under Linux system environment
It is carried out outside automatic test under Linux system environment, it is also necessary to be tested under windows and macos system environments
Scene.For windows system, coding can be set, environmental language support, setting local user's permission etc. are provided, built certainly
Dynamicization tests environment, and different systems is directed in continuous integrating script, and individual task is arranged, for windows system,
Script command add call prefix, and use cross-platform order etc., allow same exploration project under not homologous ray into
Row automatic test, to guarantee that project issues online performance in windows system and macos system environments.
In addition, term " first ", " second " etc. are used for description purposes only, it is not understood to indicate or imply relatively important
Property or implicitly indicate the quantity of indicated technical characteristic.In the description of following embodiment, the meaning of " plurality " is two
More than a, unless otherwise specifically defined.
These specific embodiments can be combined with each other below, may be at certain for the same or similar concept or process
It is repeated no more in a little embodiments.Below in conjunction with attached drawing, the embodiment of the present invention is described.
One embodiment of the disclosure provides a kind of processing method of test, for realizing in windows and macos system environments
Under automatic test.The executing subject of the embodiment of the present disclosure is the processing unit of test, which can be set in server
In.
As shown in Figure 1, be the flow diagram of the processing method for the test that the embodiment of the present disclosure provides, this method comprises:
Step 101, the corresponding continuous integrating script of destination item is obtained, continuous integrating script includes at least one task letter
Breath, mission bit stream include that task type mark and task type identify corresponding task definition.
Wherein, the gitlab runner of every kind of corresponding a type of operating system of task type mark, operating system
Type includes windows system, macos system and Linux system.
Specifically, at least one mission bit stream is arranged in continuous integrating script, each mission bit stream respectively corresponds different
Operating system can be Linux system and windows system for example, can be windows system, be also possible to linux system
System and macos system, can also be windows system and macos system, can also be Linux system, windows system and
The task of macos system environments three types.Destination item is current project to be tested.Task type mark can be for
The specified mark that must be executed by which type of gitlab runner of the task, such as in .gitlab-ci.yml file,
Three tasks can be configured.Task linux-ci is specified and is configured with the linux machine of gitlab runner and can execute.Task
Windows-ci is specified and is configured with the windows machine of gitlab runner and can execute, and macos is similarly.It is corresponding, often
Kind gitlab runner has a corresponding label, such as linux-tag, windows-tag, mac-tag.Task definition
It is then that corresponding gitlab runner wants execution script.The gitlab for calling corresponding types can be identified according to task type
Runner executes task definition, is tested.
Wherein, for windows system, script command will add call prefix, and the operation order for front end will make
With cross-platform order.Cross-platform order can be third party offer can be with cross-platform applicable order.
Optionally, in order to guarantee availability of the gitlab runner under windows system environments, it is first right to need
Windows system environments is configured:
1, coding is configured first.
It can be and UTF-8 coding is set as by the visualization interface of windows system, environmental language support is provided.Than
Such as it is configured by process arranged below: region=> management=> change system realm setting=> using the UTF-8 offer whole world
Language is supported.
It can also be when installing gitlab runner, or before installation, it is corresponding by being sent to windows system
Encoding setting is realized in encoding setting order.
2, local user right is configured.
Can be through search local security policy=> local policy=> user right distribution=> as service login=
> addition user or group.Current local user, such as ee.sz.webdriver are added in user group.
It can also be when installing gitlab runner, or before installation, it is corresponding by being sent to windows system
User authority setting is realized in priority assignation order.
After the environment for having set windows system, i.e., mountable gitlab runner.
After gitlab runner is installed, it is current user that the user belonging to it and password, which is arranged, so that it is gathered around
There are the installation content and permission of local account.
Step 102, it is identified according to task type, the target gitlab runner under corresponding operating system is called to execute
Task definition.
Specifically, can include according to continuous integrating script after getting the corresponding continuous integrating script of destination item
Mission bit stream in task type mark, call in the target gitlab runner execution task under corresponding operating system
Hold, to complete the test to destination item, and obtains test result.
Gitlab runner can be the default test case according to the destination item and the fortune to the destination item code
Row obtains test result, and concrete operations are the prior art, and details are not described herein.
The processing method for the test that the embodiment of the present disclosure provides includes at least one task letter by continuous integrating script
Breath, every kind of task correspond to the gitlab runner of a type of operating system, allow when testing according to task type mark
Know and the target gitlab runner under corresponding operating system called to execute task definition, realize in windows system and
To the automatic test of project under macos system environments, project is effectively ensured and is sent out in windows system and macos system environments
The online performance of cloth.
Another embodiment of the disclosure does further supplementary explanation to method provided by the above embodiment.
As shown in Fig. 2, being the flow diagram of the processing method for the test that the embodiment of the present disclosure provides.
As a kind of enforceable mode, on the basis of the above embodiments, optionally, before step 101, this method
Further include:
Step 2011, it is identified according to task type, obtains the condition depended packet of target gitlab runner, condition depended
Packet includes the corresponding parameter of environmental variance of target gitlab runner.
Step 2012, condition depended packet is sent to target gitlab runner, so that target gitlab runner root
According to the environmental variance of condition depended packet configuration target gitlab runner.
Wherein, condition depended packet refers to the environmental parameter that gitlab runner installation and operation is relied on.For example project is deposited
Store up address.
It before gitlab runner execution task, can be identified by the processing unit tested according to task type, obtain mesh
The condition depended packet for marking gitlab runner, is sent to target gitlab runner, to configure target gitlab runner's
Environmental variance.Condition depended packet can be the processing unit or other positions for presetting and being stored in test.It specifically can root
It is arranged according to actual demand, the embodiment of the present disclosure is without limitation.
It is different since each operating system has the document directory structure of oneself, when can be at three for a project
When execution is with a test code under system environments, for the ease of configuration, the embodiment of the present disclosure will rely on these uniquenesses of environment
Parameter pull out come, indicated with variable, configure this variable in the gitlab runner of every machine.For example, logical
The configuration file for crossing modification gitlab runner, can be in the variable of the storage address of wherein add items, for example cries
PROJECT_WEB, this variable have recorded its unique position on each machine.Pacify by gitlab runner
When being attached to different system environments, the storage address of the project on corresponding machine is configured for the variable.Wrapped in condition depended packet
The project storage address under the system environments that it is installed is included, the variable is assigned and is configured with gitlab runner at this
Project storage address under system environments.In this way, can directly be come using this variable PROJECT_WEB in the project of front end
Search item location.It, can be with arbitrary disposition user name, as long as configuring in the subsequent machine for increasing new race end-to-end test
Correct item address is provided in environment.
It is to be appreciated that can also include the parameter that a lot of other pairs of system environments have dependence in condition depended packet,
Can be indicated in the configuration file of gitlab with different environmental variance, be not limited to project store path this.It is logical
It crosses and sets, effectively increase allocative efficiency of the gitlab in different system environments.
By detaching the public variable under multiple platform environments, the cross-system of the automatic test based on gitlab is improved
The flexibility of platform test and expansibility.For example, when system is windows system, due to windows system, it will usually
There is a concept of account, for example the path of desktop of Li Hua may be C: Users Lihua Desktop, the desktop path of Zhang San
May be C: Users Zhangsan Desktop, it is also different, for the test under multiple system environments, by detaching public affairs
Covariate can permit these different characteristics, Zhang San can be allowed determine he want in be received within where.
As another enforceable mode, on the basis of the above embodiments, optionally, before step 101, the party
Method can also include:
Step 2021, it is identified according to task type, with obtaining the storage of the condition depended packet of target gitlab runner
Location, condition depended packet include the corresponding parameter of environmental variance of target gitlab runner.
Step 2022, the storage address of condition depended packet is sent to target gitlab runner, so that target gitlab
Runner obtains condition depended packet, and configure target gitlab according to condition depended packet according to the storage address of condition depended packet
The environmental variance of runner.
Specifically, the storage address of condition depended packet is sent to target gitlab by the processing unit for being also possible to test
Runner, so that storage address of the target gitlab runner according to condition depended packet, obtains condition depended packet, and according to ring
Border relies on the environmental variance of packet configuration target gitlab runner.
Target gitlab runner according to condition depended packet configure target gitlab runner environmental variance it is specific
Operation is consistent with above embodiment, and details are not described herein.
Optionally, the corresponding design parameter of the environmental variance of gitlab runner is also possible to by gitlab runner
When installation is configured on the host of corresponding system, configured manually.
As another enforceable mode, on the basis of the above embodiments, optionally, before step 101, the party
Method can also include:
Step 2031, the registration request of target gitlab runner is received, registration request includes target gitlab
The type of the operating system of runner.
Step 2032, the identification information of target gitlab runner is generated, and feeds back to target gitlab runner.
Step 2033, the identification information of target gitlab runner and the type of operating system are recorded.
Specifically, after mounting, requiring to infuse to gitlab ci server registers for each gitlab runner
Volume, subsequent gitlab ci could call gitlab runner to execute test code as needed.
Gitlab runner (such as target gitlab runner) can send registration to gitlab ci server and ask
It asks, registration request may include the type of the operating system where target gitlab runner, certainly can also include target
Other relevant informations of gitlab runner after server receives the registration request of gitlab runner transmission, generate mesh
The identification information of gitlab runner is marked, and feeds back to target gitlab runner, records the mark of target gitlab runner
Know the type of information and operating system.
Here the identification information of the target gitlab runner generated may include the type of target gitlab runner
Label, such as linux-tag, windows-tag, mac-tag can also include the token of target gitlab runner, with
Gitlab runner can be communicated by this token with gitlab ci afterwards.The mode for generating token is existing skill
Art repeats again herein.Generating type label can be the type according to the operating system where target gitlab runner, obtain
The corresponding label of the type is taken to return to target gitlab runner.
As another enforceable mode, on the basis of the above embodiments, optionally, mission bit stream further includes task
Preset trigger condition;
It is identified according to task type, the target gitlab runner under corresponding operating system is called to execute task definition,
Include:
For each task, whether judgement currently meets the preset trigger condition of task;
It when meeting the preset trigger condition of task, is identified according to task type, calls the mesh under corresponding operating system
It marks gitlab runner and executes the corresponding task of task type mark;
When the preset trigger condition for the task that is unsatisfactory for, then task is skipped.
Optionally, when the preset trigger condition of the task of windows system is that destination item is issued;
When the preset trigger condition of the task of macos system is that destination item is issued.
Specifically, can be in the corresponding task of each system of setting, the trigger condition that task is arranged carrys out the touching of control task
Hair.For example three tasks are separately configured in continuous integrating script, a task is Linux system task, and a task is
Windows system task, a task are macos system tasks, latter two task only has specific branch, specific machine
(machine of gitlab runner is configured under windows system and macos system) could execute, and will not automatic trigger.
In this case, when exploitation when developer is flat, stability is only verified with first task, the test of basic function is
Through fully sufficient.When the version of project will be issued, because version must be in (windows system branch, specific branch
With macos system branch) publication, the correctness in windows system and macos system task must be verified before publication.At this moment
Wait that the two tasks can be assigned to the machine of specific windows system and the machine of macos system goes to execute.Above-mentioned machine
Device can be host or server.
Online number can be restrained by front end.The project of deployment end-to-end test can have the online mechanism of version, pass through
Version is sent out to control online number, as long as carrying out the end-to-end test verifying of windows system and macos system in this way before sending out version
, reduce the resource consumption of machine.
It optionally, can be by the way that soft link be arranged for Linux system and macos system in the installation of project of front end
Mode (ln-s) (such as desktop) under the directory link of project dependent file to a global particular category.But
There is no the order of ln in windows system, and the corresponding of windows system replaces order mklink in new task creation
When coming in, the particular category of entire link can be disposed by gitlab runner.In order to solve this problem, Ke Yi
First soft chain removes this soft chain then after script execution finishes at first.It avoids by the gitlab of windows
Runner is accidentally deleted, it is possible to reduce the repetition of dependent file is installed.
It should be noted that each enforceable mode can individually be implemented in the embodiment of the present disclosure, can also not conflict
In the case where in any combination combine implement the embodiment of the present disclosure without limitation.
The processing method for the test that the embodiment of the present disclosure provides includes at least one task letter by continuous integrating script
Breath, every kind of task correspond to the gitlab runner of a type of operating system, allow when testing according to task type mark
Know and the target gitlab runner under corresponding operating system called to execute task definition, realize in windows system and
To the automatic test of project under macos system environments, project is effectively ensured and is sent out in windows system and macos system environments
The online performance of cloth.And it by detaching the public variable under multiple platform environments, improves the automation based on gitlab and surveys
The flexibility of the cross-system platform test of examination and expansibility.Online number is restrained by front end.Dispose the item of end-to-end test
Mesh can have the online mechanism of version, control online number by hair version, if in this way before send out version progress windows system with
The end-to-end test of macos system is verified, and the resource consumption of machine is reduced.
Disclosure another embodiment provides a kind of processing unit of test, the method for executing above-described embodiment.The survey
The processing unit of examination can be set in the server, specifically can be in the server where gitlab ci is arranged in.
As shown in figure 3, being the structural schematic diagram of the processing unit for the test that the embodiment of the present disclosure provides.The processing of the test
Device 30 includes obtaining module 31 and calling module 32.
Wherein, module is obtained, for obtaining the corresponding continuous integrating script of destination item, continuous integrating script includes at least
A kind of mission bit stream, mission bit stream include that task type mark and task type identify corresponding task definition, every kind of task class
The gitlab runner of the corresponding a type of operating system of type mark;Calling module is adjusted for being identified according to task type
Task definition is executed with the target gitlab runner under corresponding operating system.
About the device in the embodiment of the present disclosure, wherein modules execute the concrete mode of operation in the related party
It is described in detail in the embodiment of method, no detailed explanation will be given here.
It include at least one task by continuous integrating script according to the processing unit for the test that the embodiment of the present disclosure provides
Information, every kind of task correspond to the gitlab runner of a type of operating system, allow when testing according to task type
Mark calls the target gitlab runner under corresponding operating system to execute task definition, realize in windows system and
To the automatic test of project under macos system environments, project is effectively ensured and is sent out in windows system and macos system environments
The online performance of cloth.
The another embodiment of the disclosure does further supplementary explanation to device provided by the above embodiment, to execute above-mentioned implementation
The method that example provides.
As a kind of enforceable mode, on the basis of the above embodiments, optionally, module is obtained, basis is also used to
Task type mark, obtains the condition depended packet of target gitlab runner, condition depended packet includes target gitlab
The corresponding parameter of the environmental variance of runner;Calling module is also used to condition depended packet being sent to target gitlab
Runner, so that target gitlab runner configures the environmental variance of target gitlab runner according to condition depended packet.
As another enforceable mode, on the basis of the above embodiments, optionally, module is obtained, root is also used to
It is identified according to task type, obtains the storage address of the condition depended packet of target gitlab runner, condition depended packet includes target
The corresponding parameter of the environmental variance of gitlab runner;Calling module is also used to for the storage address of condition depended packet being sent to
Target gitlab runner, so that storage address of the target gitlab runner according to condition depended packet, obtains condition depended
Packet, and according to the environmental variance of condition depended packet configuration target gitlab runner.
As another enforceable mode, on the basis of the above embodiments, optionally, module is obtained, is also used to connect
The registration request of target gitlab runner is received, registration request includes the type of the operating system of target gitlab runner;
Module is obtained, is also used to generate the identification information of target gitlab runner, and feed back to target gitlab runner;It calls
Module is also used to record the identification information of target gitlab runner and the type of operating system.
As another enforceable mode, on the basis of the above embodiments, optionally, mission bit stream further includes task
Preset trigger condition, calling module is specifically used for:
For each task, whether judgement currently meets the preset trigger condition of task;
It when meeting the preset trigger condition of task, is identified according to task type, calls the mesh under corresponding operating system
It marks gitlab runner and executes the corresponding task of task type mark;
When the preset trigger condition for the task that is unsatisfactory for, then task is skipped.
Optionally, when the preset trigger condition of the task of windows system is that destination item is issued;
When the preset trigger condition of the task of macos system is that destination item is issued.
As another enforceable mode, on the basis of the above embodiments, optionally, the type of operating system includes
Windows system, macos system and Linux system.
About the device in the embodiment of the present disclosure, wherein modules execute the concrete mode of operation in the related party
It is described in detail in the embodiment of method, no detailed explanation will be given here.
It should be noted that each enforceable mode can individually be implemented in the embodiment of the present disclosure, can also not conflict
In the case where in any combination combine implement the disclosure without limitation.
It include at least one task letter by continuous integrating script according to the processing unit of the test of the embodiment of the present disclosure
Breath, every kind of task correspond to the gitlab runner of a type of operating system, allow when testing according to task type mark
Know and the target gitlab runner under corresponding operating system called to execute task definition, realize in windows system and
To the automatic test of project under macos system environments, project is effectively ensured and is sent out in windows system and macos system environments
The online performance of cloth.And it by detaching the public variable under multiple platform environments, improves the automation based on gitlab and surveys
The flexibility of the cross-system platform test of examination and expansibility.Online number is restrained by front end.Dispose the item of end-to-end test
Mesh can have the online mechanism of version, control online number by hair version, if in this way before send out version progress windows system with
The end-to-end test of macos system is verified, and the resource consumption of machine is reduced.
Disclosure another embodiment provides a kind of electronic equipment, for executing method provided by the above embodiment.The electronics
Equipment can be server, such as gitlab ci server.
As shown in figure 4, the structural schematic diagram of the electronic equipment provided for the embodiment of the present disclosure.The electronic equipment 50 includes:
At least one processor 51 and memory 52;
Memory stores computer program;At least one processor executes the computer program of memory storage, to realize
Method provided by the above embodiment.
It include at least one mission bit stream by continuous integrating script according to the electronic equipment of the embodiment of the present disclosure, every kind
Task corresponds to the gitlab runner of a type of operating system, to be identified when test according to task type and call
Target gitlab runner under corresponding operating system executes task definition, realizes in windows system and macos system
To the automatic test of project under environment, project is effectively ensured and issues online property in windows system and macos system environments
Energy.And by detaching the public variable under multiple platform environments, improve the cross-system of the automatic test based on gitlab
The flexibility of platform test and expansibility.Online number is restrained by front end.The project of deployment end-to-end test can have version
This online mechanism, controls online number by hair version, as long as carrying out windows system and macos system in this way before sending out version
End-to-end test verifying, reduce the resource consumption of machine.
The embodiment of property as an example, optionally, as shown in figure 5, the electronic equipment provided for the embodiment of the present disclosure
Exemplary structure schematic diagram.The electronic equipment 800 may include processing unit (such as central processing unit, graphics processor etc.)
801, random access can be loaded into according to the program being stored in read-only memory (ROM) 802 or from storage device 808
Program in memory (RAM) 803 and execute various movements appropriate and processing.In RAM 803, it is also stored with electronic equipment
Various programs and data needed for 800 operations.Processing unit 801, ROM 802 and RAM 803 pass through the phase each other of bus 804
Even.Input/output (I/O) interface 805 is also connected to bus 804.
In general, following device can connect to I/O interface 805: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph
As the input unit 806 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration
The output device 807 of dynamic device etc.;Storage device 808 including such as tape, hard disk etc.;And communication device 809.Communication device
809, which can permit electronic equipment 800, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 5 shows tool
There is the electronic equipment 800 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with
Alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communication device 809, or from storage device 808
It is mounted, or is mounted from ROM 802.When the computer program is executed by processing unit 801, the embodiment of the present disclosure is executed
Method in the above-mentioned function that limits.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this
In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated,
In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to
Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit
Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for
By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned
Any appropriate combination.
The another embodiment of the disclosure provides a kind of computer readable storage medium, stores in the computer readable storage medium
There is computer program, computer program is performed the method for realizing that any of the above-described embodiment provides.
It include at least one task by continuous integrating script according to the computer readable storage medium of the embodiment of the present disclosure
Information, every kind of task correspond to the gitlab runner of a type of operating system, allow when testing according to task type
Mark calls the target gitlab runner under corresponding operating system to execute task definition, realize in windows system and
To the automatic test of project under macos system environments, project is effectively ensured and is sent out in windows system and macos system environments
The online performance of cloth.And it by detaching the public variable under multiple platform environments, improves the automation based on gitlab and surveys
The flexibility of the cross-system platform test of examination and expansibility.Online number is restrained by front end.Dispose the item of end-to-end test
Mesh can have the online mechanism of version, control online number by hair version, if in this way before send out version progress windows system with
The end-to-end test of macos system is verified, and the resource consumption of machine is reduced.
In several embodiments provided by the disclosure, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit
Letter 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.Some or all of unit therein can be selected to realize embodiment of the present disclosure scheme according to the actual needs
Purpose.
It, can also be in addition, each functional unit in each embodiment of the disclosure 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 SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the disclosure
The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various
It can store the medium of program code.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each functional module
Division progress for example, in practical application, can according to need and above-mentioned function distribution is complete by different functional modules
At the internal structure of device being divided into different functional modules, to complete all or part of the functions described above.On
The specific work process for stating the device of description, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Finally, it should be noted that the above various embodiments is only to illustrate the technical solution of the disclosure, rather than its limitations;To the greatest extent
Pipe is described in detail the disclosure referring to foregoing embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, each embodiment technology of the disclosure that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (10)
1. a kind of processing method of test characterized by comprising
The corresponding continuous integrating script of destination item is obtained, the continuous integrating script includes at least one mission bit stream, described
Mission bit stream includes task type mark and the task type identifies corresponding task definition, and every kind of task type mark corresponds to
The script executor of a type of operating system;
It is identified according to the task type, the target script executor under corresponding operating system is called to execute in the task
Hold.
2. calling corresponding behaviour the method according to claim 1, wherein identifying according to the task type
Before making the target script executor execution task definition under system, the method also includes:
It is identified according to the task type, obtains the condition depended packet of the target script executor, the condition depended packet
Include the corresponding parameter of environmental variance of the target script executor;
The condition depended packet is sent to the target script executor, so that the target script executor is according to the ring
Border relies on the environmental variance that packet configures the target script executor.
3. calling corresponding behaviour the method according to claim 1, wherein identifying according to the task type
Before making the target script executor execution task definition under system, the method also includes:
It is identified according to the task type, obtains the storage address of the condition depended packet of the target script executor, the ring
Border relies on the corresponding parameter of environmental variance that packet includes the target script executor;
The storage address of the condition depended packet is sent to the target script executor, so that the target script executor
According to the storage address of the condition depended packet, the condition depended packet is obtained, and according to condition depended packet configuration
The environmental variance of target script executor.
4. calling corresponding behaviour the method according to claim 1, wherein identifying according to the task type
Before making the target script executor execution task definition under system, the method also includes:
The registration request of the target script executor is received, the registration request includes the operation of the target script executor
The type of system;
The identification information of the target script executor is generated, and feeds back to the target script executor;
Record the identification information of the target script executor and the type of operating system.
5. the method according to claim 1, wherein the mission bit stream further includes the default triggering item of task
Part;
It is described to be identified according to the task type, call the target script executor under corresponding operating system to execute the task
Content, comprising:
For each task, whether judgement currently meets the preset trigger condition of the task;
When meeting the preset trigger condition of the task, is identified, called under corresponding operating system according to the task type
Target script executor execute the task type and identify corresponding task;
When being unsatisfactory for the preset trigger condition of the task, then the task is skipped.
6. according to the method described in claim 5, it is characterized in that, the preset trigger condition of the task of microsoft operation system is institute
When stating destination item publication;
When the preset trigger condition of the task of Apple Macintosh operating system is that the destination item is issued.
7. method according to claim 1-6, which is characterized in that the type of the operating system includes Microsoft behaviour
Make system, Apple Macintosh operating system and Linux system.
8. a kind of processing unit of test characterized by comprising
Module is obtained, for obtaining the corresponding continuous integrating script of destination item, the continuous integrating script includes at least one
Mission bit stream, the mission bit stream includes task type mark and the task type identifies corresponding task definition, and every kind is appointed
The script executor of the corresponding a type of operating system of service type mark;
Calling module calls the target script executor under corresponding operating system to hold for being identified according to the task type
The row task definition.
9. a kind of electronic equipment characterized by comprising at least one processor and memory;
The memory stores computer program;At least one described processor executes the computer journey of the memory storage
Sequence, to realize method of any of claims 1-7.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer journey in the computer readable storage medium
Sequence, the computer program, which is performed, realizes method of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910396921.7A CN110096424B (en) | 2019-05-14 | 2019-05-14 | Test processing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910396921.7A CN110096424B (en) | 2019-05-14 | 2019-05-14 | Test processing method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110096424A true CN110096424A (en) | 2019-08-06 |
CN110096424B CN110096424B (en) | 2023-08-22 |
Family
ID=67447907
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910396921.7A Active CN110096424B (en) | 2019-05-14 | 2019-05-14 | Test processing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110096424B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111144839A (en) * | 2019-12-17 | 2020-05-12 | 深圳市优必选科技股份有限公司 | Project construction method, continuous integration system and terminal equipment |
CN111488136A (en) * | 2020-04-07 | 2020-08-04 | 携程旅游网络技术(上海)有限公司 | Continuous integration and continuous delivery method, system, device and storage medium |
CN111782186A (en) * | 2020-07-03 | 2020-10-16 | 携程旅游网络技术(上海)有限公司 | Workflow management method, system, device and storage medium |
CN111913884A (en) * | 2020-07-30 | 2020-11-10 | 百度在线网络技术(北京)有限公司 | Distributed test method, device, equipment, system and readable storage medium |
CN112115056A (en) * | 2020-09-23 | 2020-12-22 | 北京达佳互联信息技术有限公司 | Project deployment method and device, server and storage medium |
CN112181816A (en) * | 2020-09-22 | 2021-01-05 | 建信金融科技有限责任公司 | Interface testing method and device based on scene, computer equipment and medium |
CN113515707A (en) * | 2020-09-21 | 2021-10-19 | 腾讯科技(深圳)有限公司 | Data processing method, intelligent device, intelligent equipment and storage medium |
CN113872811A (en) * | 2021-09-29 | 2021-12-31 | 中国建设银行股份有限公司 | Operation change method, wide area network control system, electronic device, and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103577907A (en) * | 2012-07-24 | 2014-02-12 | 阿里巴巴集团控股有限公司 | Continuous integration testing method and system |
CN104298588A (en) * | 2013-07-16 | 2015-01-21 | 阿里巴巴集团控股有限公司 | Continuous integration implementation method and device |
US20170091075A1 (en) * | 2015-09-30 | 2017-03-30 | Red Hat Inc. | Distributed system test automation framework |
CN108733553A (en) * | 2017-04-18 | 2018-11-02 | 北京嘀嘀无限科技发展有限公司 | Configuration method, the device and system of test device based on docker |
CN109408382A (en) * | 2018-10-11 | 2019-03-01 | 网宿科技股份有限公司 | A kind of continuous integrating method and continuous integration system |
-
2019
- 2019-05-14 CN CN201910396921.7A patent/CN110096424B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103577907A (en) * | 2012-07-24 | 2014-02-12 | 阿里巴巴集团控股有限公司 | Continuous integration testing method and system |
CN104298588A (en) * | 2013-07-16 | 2015-01-21 | 阿里巴巴集团控股有限公司 | Continuous integration implementation method and device |
US20170091075A1 (en) * | 2015-09-30 | 2017-03-30 | Red Hat Inc. | Distributed system test automation framework |
CN108733553A (en) * | 2017-04-18 | 2018-11-02 | 北京嘀嘀无限科技发展有限公司 | Configuration method, the device and system of test device based on docker |
CN109408382A (en) * | 2018-10-11 | 2019-03-01 | 网宿科技股份有限公司 | A kind of continuous integrating method and continuous integration system |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111144839A (en) * | 2019-12-17 | 2020-05-12 | 深圳市优必选科技股份有限公司 | Project construction method, continuous integration system and terminal equipment |
CN111488136A (en) * | 2020-04-07 | 2020-08-04 | 携程旅游网络技术(上海)有限公司 | Continuous integration and continuous delivery method, system, device and storage medium |
CN111782186A (en) * | 2020-07-03 | 2020-10-16 | 携程旅游网络技术(上海)有限公司 | Workflow management method, system, device and storage medium |
CN111913884A (en) * | 2020-07-30 | 2020-11-10 | 百度在线网络技术(北京)有限公司 | Distributed test method, device, equipment, system and readable storage medium |
CN113515707A (en) * | 2020-09-21 | 2021-10-19 | 腾讯科技(深圳)有限公司 | Data processing method, intelligent device, intelligent equipment and storage medium |
CN113515707B (en) * | 2020-09-21 | 2024-02-09 | 腾讯科技(深圳)有限公司 | Data processing method, intelligent device, intelligent equipment and storage medium |
CN112181816A (en) * | 2020-09-22 | 2021-01-05 | 建信金融科技有限责任公司 | Interface testing method and device based on scene, computer equipment and medium |
CN112181816B (en) * | 2020-09-22 | 2023-06-02 | 建信金融科技有限责任公司 | Scene-based interface testing method and device, computer equipment and medium |
CN112115056A (en) * | 2020-09-23 | 2020-12-22 | 北京达佳互联信息技术有限公司 | Project deployment method and device, server and storage medium |
CN112115056B (en) * | 2020-09-23 | 2024-06-04 | 北京达佳互联信息技术有限公司 | Project deployment method and device, server and storage medium |
CN113872811A (en) * | 2021-09-29 | 2021-12-31 | 中国建设银行股份有限公司 | Operation change method, wide area network control system, electronic device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110096424B (en) | 2023-08-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110096424A (en) | Processing method, device, electronic equipment and the storage medium of test | |
JP7481421B2 (en) | Binding of backend service endpoints to API functions in an API registry | |
CN110546606B (en) | Tenant upgrade analysis system and method | |
CN105593835B (en) | Multiple second level clouds are managed by main cloud service manager | |
US11593074B2 (en) | System, method, and apparatus for data-centric networked application development services | |
CN109582441A (en) | For providing system, the method and apparatus of container service | |
US8504989B2 (en) | Service definition document for providing blended services utilizing multiple service endpoints | |
CN110310034A (en) | A kind of service orchestration applied to SaaS, business flow processing method and apparatus | |
CN109542445A (en) | A kind of method and apparatus that Android plug-in unit melts hair | |
US11237822B2 (en) | Intelligent discovery and application of API changes for application migration | |
CN110178357A (en) | Cellular service based on cloud in the accessible cloud of remote equipment | |
US20120233588A1 (en) | Blended service creation, test, and deployment environment for multiple service endpoints | |
CN102981915B (en) | A kind of inter-application communication method and device | |
CN108897612A (en) | Route the method and apparatus jumped | |
CN109976914A (en) | Method and apparatus for controlling resource access | |
CN103034546B (en) | The method and device of inter-application communication in iOS system | |
CN109981322A (en) | The method and apparatus of cloud resource management based on label | |
CN112015654A (en) | Method and apparatus for testing | |
CN110750243A (en) | Project code development method and system | |
CN109783197A (en) | Dispatching method and device for program runtime environment | |
KR20150132155A (en) | Diagnostics storage within a multi-tenant data center | |
WO2013134813A1 (en) | A method and system of application development for multiple device client platforms | |
CN109254778A (en) | Method and apparatus for deployment information streaming system | |
CN109144843A (en) | The method and apparatus for testing environment deployment | |
CN110442349A (en) | Method and apparatus for servicing dilatation |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |