CN108287694A - Application builds method, system, computer equipment and storage medium - Google Patents
Application builds method, system, computer equipment and storage medium Download PDFInfo
- Publication number
- CN108287694A CN108287694A CN201710670818.8A CN201710670818A CN108287694A CN 108287694 A CN108287694 A CN 108287694A CN 201710670818 A CN201710670818 A CN 201710670818A CN 108287694 A CN108287694 A CN 108287694A
- Authority
- CN
- China
- Prior art keywords
- file
- application program
- code
- node
- server
- 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
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
- G06F8/22—Procedural
-
- 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/362—Software debugging
- G06F11/3624—Software debugging by performing operations on the source code, e.g. via a compiler
-
- 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/362—Software debugging
- G06F11/3636—Software debugging by tracing the execution of the program
-
- 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
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Software Systems (AREA)
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
This application involves a kind of application builds method, system, computer equipment and storage mediums.The method includes:The structure request for receiving the application program that terminal is sent, carries the corresponding basic information of application program in structure request, basic information includes configuration parameter;The corresponding code file of application program is pulled according to basic information;The corresponding configuration file of code file is obtained, configuration file is replaced using configuration parameter;It is compiled using the corresponding code file of application program and replaced configuration file, the corresponding installation file of the program that is applied.Application builds can be automatically performed without developer's manual operation using this method.
Description
Technical field
This application involves field of computer technology, are set more particularly to a kind of application builds method, system, computer
Standby and storage medium.
Background technology
The structure of application program relies on developer and manually completes mostly.If there is multiple testers need to different
Application program is tested, then developer is needed repeatedly to carry out manual construction.Thus it is brought to exploit person more unnecessary
Work.Therefore how to build application program automatically becomes a technical problem for needing to solve at present.
Invention content
Based on this, it is necessary to which in view of the above technical problems, providing a kind of be manually operated without developer can be automatic complete
At application builds method, system, computer equipment and the storage medium of application builds.
A kind of application builds method, including:
The structure request for the application program that terminal is sent is received, the corresponding base of application program is carried in the structure request
Plinth information;The basic information includes configuration parameter;
The corresponding code file of application program is pulled according to the basic information;
The corresponding configuration file of the code file is obtained, the configuration file is replaced using the configuration parameter
It changes;
It is compiled using the corresponding code file of application program and replaced configuration file, the program that is applied corresponds to
Installation file.
It is described in one of the embodiments, to obtain the corresponding configuration file of the code file, joined using the configuration
It is several that the configuration file is replaced;The step of include:
Command text is generated using configuration parameter;
Obtain the corresponding OS name of the application program;
The corresponding configuration file of code file is obtained according to the OS name;
The configuration file is replaced using the command file.
The method further includes in one of the embodiments,:
Corresponding structure task is requested to generate using the structure;
When there are multiple structure tasks, multiple node identifications in server cluster are obtained;
The multiple nodes being distributed to multiple structure tasks according to node identification in server cluster.
In one of the embodiments, the corresponding code file of application program and replaced configuration file are utilized described
Be compiled, the step of the program that is applied corresponding installation file after, further include:
The installation file is stored, corresponding store path is obtained;
Corresponding Quick Response Code is generated using the store path;
The Quick Response Code is back to terminal, so that terminal passes through Quick Response Code described in page presentation.
The method further includes in one of the embodiments,:
Corresponding journal file is recorded to the building process of installation file;
If structure failure, obtains the journal file, positioning problems are carried out using the journal file.
A kind of application builds system, the system comprises:
Terminal, for obtaining the basic information needed for the application builds inputted by the page;Believed using the basis
Breath generates the structure request of application program, and structure request is sent to server;The basic information includes configuration parameter;
Server, for pulling the corresponding code file of application program according to the basic information;Obtain the code text
The corresponding configuration file of part is replaced the configuration file using the configuration parameter;Utilize application program corresponding generation
Code file and replaced configuration file are compiled, the corresponding installation file of the program that is applied.
The terminal is additionally operable to obtain the installation file in one of the embodiments, using the installation file into
Row installation, obtains corresponding application program;The corresponding test instruction of the application program is received, is carried in the test instruction
Gesture identifies;It is identified according to the gesture and obtains gesture test script, using the gesture test script to the application program
It is tested.
The server includes server cluster in one of the embodiments, and the server cluster includes multiple sections
Point, the node include host node and from node, and the host node utilizes structure request for receiving the structure request
Generate corresponding structure task;When there are multiple structure tasks, obtain multiple from the corresponding section of node in server cluster
Point identification;Multiple structure tasks are distributed to according to node identification it is multiple from node in server cluster, it is described to be used from node
In the execution structure task, the corresponding installation file of the program that is applied.
A kind of computer equipment, including memory and processor store computer-readable instruction in the memory, institute
Instruction is stated when being executed by the processor so that the step of the processor execution above method.
One or more is stored with the computer-readable non-volatile memory medium of computer-readable instruction, computer-readable
When instruction is executed by one or more processors so that one or more processors execute the step of above method.
Above application program construction method, system, computer equipment and storage medium, when tester needs application program
Installation file when, can be asked by the structure of terminal to server sending application program, it is possible thereby to so that server root
Entrained basic information pulls corresponding code file and configuration file in being asked according to structure, and using in basic information
Configuration parameter is replaced configuration file.After being compiled to code file and replaced configuration file, it can obtain
To the installation file needed for tester.In the whole process, it is only necessary to which tester submits application builds by terminal
It required basic information and is manually operated without developer, you can be automatically performed the structure of application program, effectively reduce out
The unnecessary construction work of hair personnel.
Description of the drawings
Fig. 1 is the application scenario diagram of application builds method in one embodiment;
Fig. 2 is the block diagram of server in Fig. 1;
Fig. 3 is the flow chart of application builds method in one embodiment;
Fig. 4 is the schematic diagram of the page shown in terminal in one embodiment;
Fig. 5 is the block diagram of application builds system in one embodiment.
Specific implementation mode
It is with reference to the accompanying drawings and embodiments, right in order to make the object, technical solution and advantage of the application be more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
Application builds method provided in the embodiment of the present application can be applied to application environment as shown in Figure 1
In.Terminal 102 is attached by network and server 104.Tester can input structure by terminal 102 in the page
Basic information needed for application program.Basic information includes:Warehouse address, installation file title, code file title, applied field
Scape and configuration parameter etc..The structure that terminal 102 generates application program using basic information is asked, and is asked the structure by network
It is sent to server 104.Server 104 according in basic information warehouse address and code file title pull structure answer
With the required code file of program.Code file has corresponding configuration file, after server 104 pulls code file,
The corresponding configuration file of code file can be obtained, and command file is generated using basic information.By command file to matching
File is set to be replaced.Server 104 is compiled using the corresponding code file of application program and replaced configuration file,
The corresponding installation file of the program that is applied.In the whole process, it is not necessarily to developer to be manually operated, you can be automatically performed application
The structure of program.
Fig. 2 is the internal frame diagram of server in one embodiment.The server includes the processing connected by system bus
Device, memory and network interface.Wherein, the processor of the server is for providing calculating and control ability.The server is deposited
Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium of the server be stored with operating system and
And computer-readable instruction.The built-in storage of the server is the operating system and computer-readable in non-volatile memory medium
The operation of instruction provides environment.The network interface of the server is used to communicate by network connection with external terminal, for example, connecing
Receive the structure request etc. for the application program that terminal is sent.To realize a kind of application when the computer-readable instruction is executed by processor
Program construction method.It will be understood by those skilled in the art that structure shown in Figure 2, only relevant with application scheme
The block diagram of part-structure does not constitute the restriction for the server being applied thereon to application scheme, and specific server can
To include either combining certain components than more or fewer components as shown in the figure or being arranged with different components.
In one embodiment, as shown in figure 3, providing a kind of application builds method, it is applied to clothes in this way
It illustrates, specifically includes for business device:
Step 302, the structure request for receiving the application program that terminal is sent, carries application program correspondence in structure request
Basic information, basic information include configuration parameter.
Tester can be asked by the structure of terminal to server sending application program.Terminal can be desktop
Brain, notebook personal computer, tablet computer, smart mobile phone and personal digital assistant etc..Specifically, tester can pass through end
End accesses server, and server returns to the corresponding page to terminal.Tester can input structure by terminal in the page
Basic information needed for application program.Basic information includes:Warehouse address, installation file title, code file title, applied field
Scape and configuration parameter etc..Wherein, code file title can be GIT (a distributed version control system increased income) branch name
Title can also be the code file title with label.Code file with label can be the code file encapsulated.It answers
Can be the corresponding business scenario of application program with scene, for example, bank or insurance etc..Configuration information includes for applying journey
The a variety of test bags and its configuration parameter that sequence is tested.Test bag includes UAT (UserAcceptance Test, user acceptance
Test is surveyed) it tries packet, generate test bag and safety test packet etc..Configuration parameter in test bag includes:Daily record, RN (React
Native, a kind of Open Source Framework) debugging and test environment etc..
Application program can have corresponding operating system, including Android and IOS etc..To build Android operation system
For the application program supported, the basic information that tester inputs in the page can be as shown in Figure 4.Wherein, code text
Part title can be GIT branch names, and application scenarios can be bank, and test bag is UAT test bags, and configuration parameter is:Daily record
It opens, RN debugging is opened and test environment.
Step 304, the corresponding code file of application program is pulled according to basic information.
Step 306, the corresponding configuration file of code file is obtained, configuration file is replaced using configuration parameter.
Server according in basic information warehouse address and code file title pull structure using needed for application program
The code file wanted.When code file name is GIT branch names, server obtains corresponding GIT according to GIT branch names
Main split's title and multiple GIT sub-branches title.Server can pull main split according to warehouse address and GIT main splits title
Code file.Server pulls multiple sub-branch's code files according to warehouse address and multiple GIT sub-branches title.When code text
When the entitled code file title with label of part, needed for server can be pulled according to warehouse address and code file title
The code file with label.
Code file has corresponding configuration file, after server pull to code file, can obtain code file pair
The configuration file answered, and configuration file is replaced using basic information.
The corresponding configuration file of code file is obtained in one of the embodiments, using basic information to configuration file
The step of being replaced include:Command text is generated using configuration parameter;Obtain the corresponding OS name of application program;Root
The corresponding configuration file of code file is obtained according to OS name;Configuration file is replaced using command file.
In face of different operating system, the configuration file corresponding to code file can be different.For example, Android
In operating system, the configuration file corresponding to code file includes common.gradle and build.gradle etc..IOS is operated
In system, the configuration file corresponding to code file includes project.pbxproj and info.plist etc..
Server obtains the corresponding configuration file of code file according to application name.Server by utilizing configures parameter life
At command text.For example, command text is sed command texts.Server by utilizing command text is to corresponding to different operating system
Different configuration files be replaced.For example, using command text to the configuration file in Android operation system
Common.gradle and build.gradle are replaced.Or using command text to the configuration file in IOS operating system
Project.pbxproj and info.plist are replaced.
Since command text is generated according to configuration parameter, by the way that command file configuration corresponding to code file is literary
Part is replaced, and thus, it is possible to construct the application program needed for tester.
Step 308, it is compiled, is applied using the corresponding code file of application program and replaced configuration file
The corresponding installation file of program.
Application program corresponding to application program is different, and server compiles code file and replaced configuration file
The mode translated is also different.When the corresponding operating system of application program is Android operation system, server is pulling code
File and after being replaced to configuration file, generates corresponding installation file, such as .apk files using installation file title.
The corresponding signing messages of application program is obtained, is signed to installation file using signing messages, by the installation file after signature
As the installation file needed for tester.When the corresponding operating system of application program is IOS operating system, server is being drawn
After getting code file and being replaced to configuration file, installation third party relies on library.Library is relied on to generation using third party
Code file and replaced configuration file are packaged, and installation file corresponding with installation file title are generated, such as .app files.
Installation file is compressed, obtain can installation file, such as .ipa files.Using can installation package file as needed for tester
Installation file.
In the present embodiment, when tester needs the installation file of application program, it can be sent out by terminal to server
The structure of application program is sent to ask, it is possible thereby to which so that server pulls accordingly according to basic information entrained in structure request
Code file and configuration file, and configuration file is replaced using the configuration parameter in basic information.To code
After file and replaced configuration file are compiled, the installation file needed for tester can be obtained.In whole process
In, it is only necessary to tester submits the basic information needed for application builds by terminal and is grasped manually without developer
Make, you can be automatically performed the structure of application program, effectively reduce the unnecessary construction work of developer.
In one embodiment, it is compiled using the corresponding code file of application program and replaced configuration file
Translate, the step of the program that is applied corresponding installation file after, further include:Installation file is stored, is obtained corresponding
Store path;Corresponding Quick Response Code is generated using store path;Quick Response Code is back to terminal, so that terminal passes through page exhibition
Show Quick Response Code.
In the present embodiment, after the installation file structure completion of application program, server specifies installation file deposit
Store path.The installation file is downloaded for the ease of tester and application program is tested, and server can utilize
The store path generates corresponding Quick Response Code, and Quick Response Code is back to the page of terminal.Terminal can show two dimension by the page
Code.When tester needs to download installation file, the Quick Response Code in the terminal recognition page can be utilized, store path is obtained,
According to store path the installation file is downloaded from server.It, then can be with so that terminal is installed using installation file
Application program is tested.By the way that store path is generated Quick Response Code, tester is thus facilitated to pass through terminal recognition two dimension
Code can get corresponding installation file, eliminate the operation for needing to download by store path in traditional approach.To survey
Examination personnel provide a convenient.
The structure request for the application program that server receiving terminal is sent in one of the embodiments, structure is asked
Generate corresponding structure task.Structure task can have corresponding task identification.Server structure complete installation file it
Afterwards, the correspondence between installation file name and task identification is recorded.Tester can be sent by terminal to server to be pacified
The structure inquiry request of file is filled, server is inquired according to the installation file name carried in the structure inquiry request, if looking into
Ask the task identification of corresponding structure task, then it represents that the installation file completes structure.Server can be answered multiple
It is stored with the installation file of program.And it supports to inquire the structure of installation file, it is thus achieved that multiple installations text
Effective trustship of part.
In one embodiment, this method further includes:Corresponding structure task is requested to generate using structure;When there are multiple
When structure task, multiple node identifications in server cluster are obtained;Multiple structure tasks are distributed to clothes according to node identification
The multiple nodes being engaged in device cluster.
In the present embodiment, server cluster may be used in server.Server cluster includes multiple nodes.Each node
An independent server can be considered as.Node includes host node and multiple from node.Host node can receive terminal transmission
The structure of application program is asked, and structure is requested to generate corresponding structure task.Host node can receive more station terminals while send out
The structure request sent.If host node receives multiple structure requests, multiple structures can be asked generation pair respectively by host node
The structure task answered.Host node obtains multiple node identifications from node, is obtained from node current task amount according to node identification,
According to from current task amount the case where, multiple structure tasks are distributed to multiple from node.
Specifically, host node can be ranked up to multiple from node according to current task amount.For example, current task amount is got over
More, sequence is more forward, conversely, current task amount is fewer, sequence is more rearward.Host node is obtained according to sequence situation accordingly from section
Point identification distributes structure task to this from node for example, obtain sequence last from node identification.If when default
Between generate multiple structure tasks in section, host node can be obtained according to sequence situation it is multiple from node, by structure task distribution
To corresponding multiple from node.
In order to which the formation speed and distribution efficiency, host node that improve structure task may call upon multiple threads, utilize
Multi-thread concurrent executes the generation of structure task, and the distribution of multiple structure tasks is executed using multi-thread concurrent.
By the way that multiple structure tasks are distributed to multiple nodes, the structure efficiency of installation file is not only can effectively improve,
It can also effectively realize the load balancing between multiple nodes.
Further, each it can also be configured the current task amount upper limit from node.When some is from the current task of node
Amount is when reaching the upper limit, and host node needs to wait for that other structure tasks should be being distributed to being somebody's turn to do from section after node completes structure task
Point.When facing a large amount of structure task, the stand-by period can also be reduced by modes such as server cluster dilatations.
In one embodiment, this method further includes:Corresponding journal file is recorded to the building process of installation file;If
Structure failure, then obtain journal file, and positioning problems are carried out using journal file.
In the present embodiment, server record log file during building installation file.If there is installation file structure
The situation of failure is built, server can obtain journal file and carry out positioning problems.It was built specifically, being had recorded in journal file
Each link in journey.Server searches failure link in journal file.If failure link expression is code file and replace
Configuration file after changing occurs the situation of structure failure when being compiled, then positioning problems are wrong in code file.If losing
It is the situation that code file pulls that failure causes appearance structure to fail to lose link expression, then by positioning problems in network failure.By
The problem of this can be to leading to structure failure by journal file is accurately positioned.
In one embodiment, as shown in figure 5, providing a kind of application builds system, including:
Terminal 502, for obtaining the basic information needed for the application builds inputted by the page;Utilize basic information
Structure request is sent to server by the structure request for generating application program, and basic information includes configuration parameter.
Server 504, for pulling the corresponding code file of application program according to basic information;Code file is obtained to correspond to
Configuration file, using configuration parameter configuration file is replaced;Using the corresponding code file of application program and after replacing
Configuration file be compiled, the corresponding installation file of the program that is applied.
Tester can input the basic information built needed for application program by terminal 502 in the page.Basis letter
Breath includes:Warehouse address, installation file title, code file title, application scenarios and configuration parameter etc..Terminal 502 utilizes base
Plinth information generates the structure request of application program.
Server 504 according in basic information warehouse address and code file title pull structure apply application program institute
The code file needed.Code file has corresponding configuration file, after server 504 pulls code file, can obtain
The corresponding configuration file of code file, and configuration file is replaced using basic information.Specifically, server 504
The corresponding configuration file of code file is obtained according to application name.Server 504 generates command text, profit using configuration parameter
Configuration file is replaced with command file.Specifically, server 504 obtains the corresponding OS name of application program,
The corresponding configuration file of code file is obtained according to OS name, configuration file is replaced using command file.Clothes
Business device 504 is compiled using the corresponding code file of application program and replaced configuration file, and the program that is applied corresponds to
Installation file.Since command text is generated according to configuration parameter, by matching command file is corresponding to code file
It sets file to be replaced, thus, it is possible to construct the application program needed for tester.
Server 504 is additionally operable to store installation file in one of the embodiments, obtains corresponding storage road
Diameter;Corresponding Quick Response Code is generated using store path;Quick Response Code is back to terminal 502.Terminal 502 passes through page presentation two dimension
Code.When tester needs to download installation file, terminal 502 can be utilized to identify the Quick Response Code in the page, obtain storage road
Diameter downloads the installation file according to store path from server.So that terminal 502 is installed using installation file, after
And application program can be tested.It is provided a convenient for tester.
In the present embodiment, when tester needs the installation file of application program, it can be sent out by terminal to server
The structure of application program is sent to ask, it is possible thereby to which so that server pulls accordingly according to basic information entrained in structure request
Code file and configuration file, and configuration file is replaced using the configuration parameter in basic information.To code
After file and replaced configuration file are compiled, the installation file needed for tester can be obtained.In whole process
In, it is only necessary to tester submits the basic information needed for application builds by terminal and is grasped manually without developer
Make, you can be automatically performed the structure of application program, effectively reduce the unnecessary construction work of developer.
In one embodiment, terminal 502 is additionally operable to obtain installation file, is installed, is obtained pair using installation file
The application program answered receives the corresponding test instruction of application program, gesture mark is carried in test instruction, is identified according to gesture
Gesture test script is obtained, application program is tested using gesture test script.
Gesture is identified for identifying gesture, can be by word, the characters such as number composition, can also be other can identify
The mark of gesture.Terminal 502 can directly acquire corresponding gesture according to gesture mark and test foot when getting gesture mark
This.Terminal 502 can also obtain corresponding control information sequence when getting gesture mark according to gesture mark, further according to
Control information sequence and gesture test script generate template generation gesture test script.
The mark for the control that control information is passed through for label gesture, corresponding control can be found according to control information,
Control information may be, for example, the paths Xpath of control.Control information sequence is generated according to input gesture, and tester can be with
Think gesture to be tested by touch screen input, terminal 502 by acquisition input the control that gesture is passed through obtain control information with
And the sequence of the control passed through, generate control information sequence.For example, all control informations for inputting gesture are formed a number
Group.
Gesture test script includes action command sequence, and action command sequence includes the starting control tune to gesture successively
The test instruction operated with click event functions, and slip event function is called successively between the adjacent control of gesture
The test instruction operated.In test instructs, it can be identified with control and indicate control, control mark can be control information.
After terminal 502 gets gesture test script, according to the action command sequence analysis of gesture test script at dynamic
It instructs, action command is sent in application program, carry out gesture test, so that application program executes phase according to action command
The track of the input gesture, and the corresponding gesture test result of output are simulated in the operation answered.
Using gesture mark can obtain corresponding gesture test script, using the gesture test script to application program into
Row test, can export gesture test result, thus effectively reduce the workload of Application testing, improve the effect of test
Rate.
In one embodiment, server includes server cluster, and server cluster includes multiple nodes, and node includes master
Node and from node, host node requests to generate corresponding structure task for receiving structure request using structure;When there are multiple
When structure task, obtain multiple from the corresponding node identification of node in server cluster;According to node identification by multiple structures
Task is distributed to multiple from node in server cluster, and from node for executing structure task, the program that is applied is corresponding
Installation file.
If host node receives multiple structure requests, host node can ask multiple structures to generate corresponding structure respectively
Build task.Host node obtains multiple node identifications from node, is obtained from node current task amount according to node identification, according to from
Multiple structure tasks are distributed to multiple from node by the case where current task amount.It is multiple by being distributed to multiple structure tasks
From node, the structure efficiency of installation file is not only can effectively improve, can also effectively realize that the load between multiple nodes is equal
Weighing apparatus.
A kind of computer equipment, including memory and processor store computer-readable instruction in memory, instruct quilt
When processor executes so that processor executes following steps:
The structure request for receiving the application program that terminal is sent carries the corresponding basis letter of application program in structure request
Breath, basic information include configuration parameter;
The corresponding code file of application program is pulled according to basic information;
The corresponding configuration file of code file is obtained, configuration file is replaced using configuration parameter;
It is compiled using the corresponding code file of application program and replaced configuration file, the program that is applied corresponds to
Installation file.
In one embodiment, following steps are also executed when processor executes computer-readable instruction:
Command text is generated using configuration parameter;
Obtain the corresponding OS name of application program;
The corresponding configuration file of code file is obtained according to OS name;
Configuration file is replaced using command file.
In one embodiment, following steps are also executed when processor executes computer-readable instruction:
Corresponding structure task is requested to generate using structure;
When there are multiple structure tasks, multiple node identifications in server cluster are obtained;
The multiple nodes being distributed to multiple structure tasks according to node identification in server cluster.
In one embodiment, it is compiled using the corresponding code file of application program and replaced configuration file
Translate, the step of the program that is applied corresponding installation file after, also executed when processor executes computer-readable instruction following
Step:
Installation file is stored, corresponding store path is obtained;
Corresponding Quick Response Code is generated using store path;
Quick Response Code is back to terminal, so that terminal passes through page presentation Quick Response Code.
In one embodiment, following steps are also executed when processor executes computer-readable instruction:
Corresponding journal file is recorded to the building process of installation file;
If structure failure, obtains journal file, positioning problems are carried out using journal file.
In one embodiment, it provides one or more and is stored with the computer-readable non-volatile of computer-readable instruction
Property storage medium, when computer-readable instruction is executed by one or more processors so that one or more processors execute with
Lower step:
The structure request for receiving the application program that terminal is sent carries the corresponding basis letter of application program in structure request
Breath, basic information include configuration parameter;
The corresponding code file of application program is pulled according to basic information;
The corresponding configuration file of code file is obtained, configuration file is replaced using configuration parameter;
It is compiled using the corresponding code file of application program and replaced configuration file, the program that is applied corresponds to
Installation file.
In one embodiment, following steps are also executed when computer-readable instruction is executed by processor:
The step of being replaced to configuration file using basic information include:
Command text is generated using configuration parameter;
Obtain the corresponding OS name of application program;
The corresponding configuration file of code file is obtained according to OS name;
Configuration file is replaced using command file.
In one embodiment, following steps are also executed when computer-readable instruction is executed by processor:
Corresponding structure task is requested to generate using structure;
When there are multiple structure tasks, multiple node identifications in server cluster are obtained;
The multiple nodes being distributed to multiple structure tasks according to node identification in server cluster.
In one embodiment, it is compiled using the corresponding code file of application program and replaced configuration file
Translate, the step of the program that is applied corresponding installation file after, also executed when computer-readable instruction is executed by processor with
Lower step:
Installation file is stored, corresponding store path is obtained;
Corresponding Quick Response Code is generated using store path;
Quick Response Code is back to terminal, so that terminal passes through page presentation Quick Response Code.
In one embodiment, following steps are also executed when computer-readable instruction is executed by processor:
Corresponding journal file is recorded to the building process of installation file;
If structure failure, obtains journal file, positioning problems are carried out using journal file.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer-readable instruction, it is non-volatile that the computer-readable instruction can be stored in one
Property computer read/write memory medium in, the computer-readable instruction is when being executed, it may include as above-mentioned each method embodiment
Flow.Wherein, the storage medium can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM)
Deng.
Each technical characteristic of embodiment described above can be combined arbitrarily, to keep description succinct, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, it is all considered to be the range of this specification record.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, under the premise of not departing from the application design, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the protection domain of the application patent should be determined by the appended claims.
Claims (10)
1. a kind of application builds method, including:
The structure request for the application program that terminal is sent is received, the corresponding basis letter of application program is carried in the structure request
Breath;The basic information includes configuration parameter;
The corresponding code file of application program is pulled according to the basic information;
The corresponding configuration file of the code file is obtained, the configuration file is replaced using the configuration parameter;
It is compiled using the corresponding code file of application program and replaced configuration file, the corresponding peace of the program that is applied
Fill file.
2. according to the method described in claim 1, it is characterized in that, described obtain the corresponding configuration file of the code file,
The step of being replaced to the configuration file using the basic information include:
Command text is generated using configuration parameter;
Obtain the corresponding OS name of the application program;
The corresponding configuration file of code file is obtained according to the OS name;
The configuration file is replaced using the command file.
3. according to the method described in claim 1, it is characterized in that, the method further includes:
Corresponding structure task is requested to generate using the structure;
When there are multiple structure tasks, multiple node identifications in server cluster are obtained;
The multiple nodes being distributed to multiple structure tasks according to node identification in server cluster.
4. according to the method described in claim 1, it is characterized in that, in the corresponding code file of the utilization application program and replacing
After the step of configuration file after changing is compiled, the program that is applied corresponding installation file, further include:
The installation file is stored, corresponding store path is obtained;
Corresponding Quick Response Code is generated using the store path;
The Quick Response Code is back to terminal, so that terminal passes through Quick Response Code described in page presentation.
5. according to the method described in claim 1, it is characterized in that, the method further includes:
Corresponding journal file is recorded to the building process of installation file;
If structure failure, obtains the journal file, positioning problems are carried out using the journal file.
6. a kind of application builds system, which is characterized in that the system comprises:
Terminal, for obtaining the basic information needed for the application builds inputted by the page;It is given birth to using the basic information
It is asked at the structure of application program, structure request is sent to server;The basic information includes configuration parameter;
Server, for pulling the corresponding code file of application program according to the basic information;Obtain the code file pair
The configuration file answered is replaced the configuration file using the configuration parameter;Utilize the corresponding code text of application program
Part and replaced configuration file are compiled, the corresponding installation file of the program that is applied.
7. system according to claim 6, which is characterized in that the terminal is additionally operable to obtain the installation file, utilizes
The installation file is installed, and corresponding application program is obtained;Receive the corresponding test instruction of the application program, the survey
Gesture mark is carried in examination instruction;It is identified according to the gesture and obtains gesture test script, utilize the gesture test script
The application program is tested.
8. system according to claim 6, which is characterized in that the server includes server cluster, the server
Cluster includes multiple nodes, and the node includes host node and from node, and the host node is sharp for receiving the structure request
Corresponding structure task is requested to generate with the structure;When there are multiple structure tasks, obtain multiple in server cluster
From the corresponding node identification of node;Multiple structure tasks are distributed to according to node identification multiple from section in server cluster
Point, it is described to be used to execute the structure task, the corresponding installation file of the program that is applied from node.
9. a kind of computer equipment, including memory and processor, computer-readable instruction is stored in the memory, it is described
When instruction is executed by the processor so that the processor perform claim requires the step of any one of 1-5 the methods.
10. one or more is stored with the computer-readable non-volatile memory medium of computer-readable instruction, computer-readable
When instruction is executed by one or more processors so that one or more processors perform claim requires any one of 1-5 institutes
The step of stating method.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710670818.8A CN108287694B (en) | 2017-08-08 | 2017-08-08 | Application program construction method, system, computer device and storage medium |
PCT/CN2018/078318 WO2019029160A1 (en) | 2017-08-08 | 2018-03-07 | Application construction method and system, computer device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710670818.8A CN108287694B (en) | 2017-08-08 | 2017-08-08 | Application program construction method, system, computer device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108287694A true CN108287694A (en) | 2018-07-17 |
CN108287694B CN108287694B (en) | 2021-01-19 |
Family
ID=62831383
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710670818.8A Active CN108287694B (en) | 2017-08-08 | 2017-08-08 | Application program construction method, system, computer device and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108287694B (en) |
WO (1) | WO2019029160A1 (en) |
Cited By (26)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189466A (en) * | 2018-07-23 | 2019-01-11 | 北京城市网邻信息技术有限公司 | A kind of vest packet packaging method, device, electronic equipment and storage medium |
CN109284107A (en) * | 2018-08-03 | 2019-01-29 | 北京城市网邻信息技术有限公司 | Application program configuration method, device, computer equipment and readable storage medium storing program for executing |
CN109324806A (en) * | 2018-09-26 | 2019-02-12 | 浙江万朋教育科技股份有限公司 | A kind of client installation package management method |
CN109408142A (en) * | 2018-10-12 | 2019-03-01 | 南瑞集团有限公司 | The method that H5 page high-performance is safely loaded with is realized based on jsbundle |
CN109460252A (en) * | 2018-09-25 | 2019-03-12 | 中国平安人寿保险股份有限公司 | Configuration file processing method, device and computer equipment based on git |
CN109558191A (en) * | 2018-10-31 | 2019-04-02 | 深圳壹账通智能科技有限公司 | A kind of method, apparatus, storage medium and computer equipment configuring the page |
CN109634734A (en) * | 2018-12-14 | 2019-04-16 | 深圳市鼎晟开元科技有限公司 | Automatic compiling dissemination method, device and computer readable storage medium |
CN109656826A (en) * | 2018-12-14 | 2019-04-19 | 深圳前海微众银行股份有限公司 | Application testing method, system, equipment and computer readable storage medium |
CN109683950A (en) * | 2018-12-17 | 2019-04-26 | Oppo广东移动通信有限公司 | Application program packaging method, device, storage medium and terminal |
CN109725910A (en) * | 2018-09-12 | 2019-05-07 | 网联清算有限公司 | Standardization dissemination method, distributing device and the delivery system of application program |
CN109739523A (en) * | 2019-01-03 | 2019-05-10 | Oppo广东移动通信有限公司 | Application program packaging method, device, storage medium and terminal |
CN110231956A (en) * | 2019-06-20 | 2019-09-13 | 腾讯科技(深圳)有限公司 | The method, system and device of application version building |
CN110427216A (en) * | 2019-08-05 | 2019-11-08 | 网联清算有限公司 | The management method of construction application, calculates equipment and medium at device |
CN110737426A (en) * | 2019-09-06 | 2020-01-31 | 上海陆家嘴国际金融资产交易市场股份有限公司 | Program block creating method, program block creating device, computer equipment and storage medium |
CN110806935A (en) * | 2018-08-06 | 2020-02-18 | 阿里巴巴集团控股有限公司 | Application program construction method, device and system |
CN110895471A (en) * | 2018-09-12 | 2020-03-20 | 北京京东尚科信息技术有限公司 | Installation package generation method, device, medium and electronic equipment |
CN110968333A (en) * | 2018-09-30 | 2020-04-07 | 北京国双科技有限公司 | Configuration information replacement method and device, machine-readable storage medium and processor |
CN111639027A (en) * | 2020-05-25 | 2020-09-08 | 北京百度网讯科技有限公司 | Test method and device and electronic equipment |
CN111949314A (en) * | 2020-08-20 | 2020-11-17 | 苏州朗动网络科技有限公司 | Method and device for generating application installation package, server and storage medium |
CN112286574A (en) * | 2020-11-27 | 2021-01-29 | 远光软件股份有限公司 | Method and device for counting application program versions, terminal equipment and storage medium |
CN112527386A (en) * | 2019-09-18 | 2021-03-19 | 华为技术有限公司 | Application program issuing method and device |
CN112783533A (en) * | 2021-02-03 | 2021-05-11 | 北京达佳互联信息技术有限公司 | Version information updating method, version information updating device, terminal and storage medium |
CN113094052A (en) * | 2021-06-09 | 2021-07-09 | 中电金信软件有限公司 | Application construction method and device, computer equipment and storage medium |
CN113360379A (en) * | 2021-06-04 | 2021-09-07 | 上海哔哩哔哩科技有限公司 | Program testing method and program testing device |
CN113722014A (en) * | 2021-09-10 | 2021-11-30 | 拉卡拉支付股份有限公司 | Application program configuration method, device, equipment, storage medium and program product |
CN115421781A (en) * | 2022-11-04 | 2022-12-02 | 易方信息科技股份有限公司 | Shell script-based IOS (input/output) end project automatic packaging method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130231093A1 (en) * | 2012-03-05 | 2013-09-05 | Enterproid Hk Ltd | Enhanced deployment of applications |
CN104580480A (en) * | 2015-01-15 | 2015-04-29 | 上海瀚银信息技术有限公司 | Remote automatic deployment system and method for client end |
CN106557366A (en) * | 2015-09-28 | 2017-04-05 | 阿里巴巴集团控股有限公司 | Task distribution method, apparatus and system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102707977A (en) * | 2012-05-17 | 2012-10-03 | 江苏中科梦兰电子科技有限公司 | Increment upgrading method based on Android application software |
CN106033335A (en) * | 2015-03-11 | 2016-10-19 | 腾讯科技(深圳)有限公司 | An installation package generating method and device |
CN105607941A (en) * | 2015-11-25 | 2016-05-25 | 上海斐讯数据通信技术有限公司 | Apparatus and method for compiling configuration in android project |
CN106933609B (en) * | 2015-12-29 | 2021-01-15 | 北京五八信息技术有限公司 | Android application program installation package generation method and device |
-
2017
- 2017-08-08 CN CN201710670818.8A patent/CN108287694B/en active Active
-
2018
- 2018-03-07 WO PCT/CN2018/078318 patent/WO2019029160A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130231093A1 (en) * | 2012-03-05 | 2013-09-05 | Enterproid Hk Ltd | Enhanced deployment of applications |
CN104580480A (en) * | 2015-01-15 | 2015-04-29 | 上海瀚银信息技术有限公司 | Remote automatic deployment system and method for client end |
CN106557366A (en) * | 2015-09-28 | 2017-04-05 | 阿里巴巴集团控股有限公司 | Task distribution method, apparatus and system |
Cited By (35)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189466A (en) * | 2018-07-23 | 2019-01-11 | 北京城市网邻信息技术有限公司 | A kind of vest packet packaging method, device, electronic equipment and storage medium |
CN109284107A (en) * | 2018-08-03 | 2019-01-29 | 北京城市网邻信息技术有限公司 | Application program configuration method, device, computer equipment and readable storage medium storing program for executing |
CN109284107B (en) * | 2018-08-03 | 2022-04-05 | 北京城市网邻信息技术有限公司 | Application program configuration method and device, computer equipment and readable storage medium |
CN110806935B (en) * | 2018-08-06 | 2023-04-07 | 阿里巴巴集团控股有限公司 | Application program construction method, device and system |
CN110806935A (en) * | 2018-08-06 | 2020-02-18 | 阿里巴巴集团控股有限公司 | Application program construction method, device and system |
CN110895471A (en) * | 2018-09-12 | 2020-03-20 | 北京京东尚科信息技术有限公司 | Installation package generation method, device, medium and electronic equipment |
CN109725910A (en) * | 2018-09-12 | 2019-05-07 | 网联清算有限公司 | Standardization dissemination method, distributing device and the delivery system of application program |
CN109460252A (en) * | 2018-09-25 | 2019-03-12 | 中国平安人寿保险股份有限公司 | Configuration file processing method, device and computer equipment based on git |
CN109460252B (en) * | 2018-09-25 | 2023-10-20 | 中国平安人寿保险股份有限公司 | Configuration file processing method and device based on git and computer equipment |
CN109324806A (en) * | 2018-09-26 | 2019-02-12 | 浙江万朋教育科技股份有限公司 | A kind of client installation package management method |
CN110968333B (en) * | 2018-09-30 | 2023-10-20 | 北京国双科技有限公司 | Configuration information replacement method and device, machine-readable storage medium and processor |
CN110968333A (en) * | 2018-09-30 | 2020-04-07 | 北京国双科技有限公司 | Configuration information replacement method and device, machine-readable storage medium and processor |
CN109408142A (en) * | 2018-10-12 | 2019-03-01 | 南瑞集团有限公司 | The method that H5 page high-performance is safely loaded with is realized based on jsbundle |
CN109558191A (en) * | 2018-10-31 | 2019-04-02 | 深圳壹账通智能科技有限公司 | A kind of method, apparatus, storage medium and computer equipment configuring the page |
CN109656826B (en) * | 2018-12-14 | 2022-01-28 | 深圳前海微众银行股份有限公司 | Application testing method, system, device and computer readable storage medium |
CN109656826A (en) * | 2018-12-14 | 2019-04-19 | 深圳前海微众银行股份有限公司 | Application testing method, system, equipment and computer readable storage medium |
CN109634734A (en) * | 2018-12-14 | 2019-04-16 | 深圳市鼎晟开元科技有限公司 | Automatic compiling dissemination method, device and computer readable storage medium |
CN109683950A (en) * | 2018-12-17 | 2019-04-26 | Oppo广东移动通信有限公司 | Application program packaging method, device, storage medium and terminal |
CN109739523B (en) * | 2019-01-03 | 2022-06-14 | Oppo广东移动通信有限公司 | Application program packaging method and device, storage medium and terminal |
CN109739523A (en) * | 2019-01-03 | 2019-05-10 | Oppo广东移动通信有限公司 | Application program packaging method, device, storage medium and terminal |
CN110231956B (en) * | 2019-06-20 | 2022-06-14 | 腾讯科技(深圳)有限公司 | Method, system and device for constructing application program version |
CN110231956A (en) * | 2019-06-20 | 2019-09-13 | 腾讯科技(深圳)有限公司 | The method, system and device of application version building |
CN110427216A (en) * | 2019-08-05 | 2019-11-08 | 网联清算有限公司 | The management method of construction application, calculates equipment and medium at device |
CN110737426A (en) * | 2019-09-06 | 2020-01-31 | 上海陆家嘴国际金融资产交易市场股份有限公司 | Program block creating method, program block creating device, computer equipment and storage medium |
CN112527386A (en) * | 2019-09-18 | 2021-03-19 | 华为技术有限公司 | Application program issuing method and device |
CN112527386B (en) * | 2019-09-18 | 2022-10-04 | 华为技术有限公司 | Application program issuing method and device |
CN111639027A (en) * | 2020-05-25 | 2020-09-08 | 北京百度网讯科技有限公司 | Test method and device and electronic equipment |
CN111949314A (en) * | 2020-08-20 | 2020-11-17 | 苏州朗动网络科技有限公司 | Method and device for generating application installation package, server and storage medium |
CN112286574A (en) * | 2020-11-27 | 2021-01-29 | 远光软件股份有限公司 | Method and device for counting application program versions, terminal equipment and storage medium |
CN112783533A (en) * | 2021-02-03 | 2021-05-11 | 北京达佳互联信息技术有限公司 | Version information updating method, version information updating device, terminal and storage medium |
CN113360379A (en) * | 2021-06-04 | 2021-09-07 | 上海哔哩哔哩科技有限公司 | Program testing method and program testing device |
CN113094052A (en) * | 2021-06-09 | 2021-07-09 | 中电金信软件有限公司 | Application construction method and device, computer equipment and storage medium |
CN113722014A (en) * | 2021-09-10 | 2021-11-30 | 拉卡拉支付股份有限公司 | Application program configuration method, device, equipment, storage medium and program product |
CN113722014B (en) * | 2021-09-10 | 2024-04-26 | 拉卡拉支付股份有限公司 | Application program configuration method, device, equipment, storage medium and program product |
CN115421781A (en) * | 2022-11-04 | 2022-12-02 | 易方信息科技股份有限公司 | Shell script-based IOS (input/output) end project automatic packaging method |
Also Published As
Publication number | Publication date |
---|---|
CN108287694B (en) | 2021-01-19 |
WO2019029160A1 (en) | 2019-02-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108287694A (en) | Application builds method, system, computer equipment and storage medium | |
US11113475B2 (en) | Chatbot generator platform | |
CN104423983B (en) | For developing, testing and the method and apparatus of application deployment | |
CN108959059B (en) | Test method and test platform | |
US20170109271A1 (en) | User interface testing abstraction | |
CN107832207A (en) | Interface performance test method, apparatus, storage medium and computer equipment | |
US20190303115A1 (en) | Automated source code sample adaptation | |
CN112104709A (en) | Intelligent contract processing method, device, medium and electronic equipment | |
CN112148580B (en) | Test method and device and electronic equipment | |
US11061739B2 (en) | Dynamic infrastructure management and processing | |
CN113505082B (en) | Application program testing method and device | |
CN107506190A (en) | XML file amending method and device based on Spring frameworks | |
CN107066377A (en) | Page elements acquisition methods and terminal device based on android system | |
US20160103759A1 (en) | User interface testing abstraction | |
CN108959087A (en) | test method and device | |
CN107526679A (en) | Automated test frame, the automated testing method based on thereon, storage medium and computer equipment | |
US11650834B1 (en) | Leveraging digital footprints in software development life cycle | |
Colombo et al. | Verifying web applications: from business level specifications to automated model-based testing | |
CN112435072A (en) | Model creating method and device, electronic equipment and storage medium | |
CN113448678A (en) | Application information generation method, deployment method, device, system and storage medium | |
CN112667219A (en) | Code generation method and device, equipment and computer readable storage medium | |
US11442105B2 (en) | Disaggregated distributed measurement analysis system using dynamic application builder | |
CN111506305A (en) | Tool kit generation method and device, computer equipment and readable storage medium | |
CN110837467A (en) | Software testing method, device and system | |
US20220365758A1 (en) | Tool for Introspection in Object-Oriented Source Code |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 518000 Room 201, building A, 1 front Bay Road, Shenzhen Qianhai cooperation zone, Shenzhen, Guangdong Applicant after: Shenzhen one ledger Intelligent Technology Co., Ltd. Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.) Applicant before: Shenzhen one ledger Intelligent Technology Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |