CN108287694B - Application program construction method, system, computer device and storage medium - Google Patents

Application program construction method, system, computer device and storage medium Download PDF

Info

Publication number
CN108287694B
CN108287694B CN201710670818.8A CN201710670818A CN108287694B CN 108287694 B CN108287694 B CN 108287694B CN 201710670818 A CN201710670818 A CN 201710670818A CN 108287694 B CN108287694 B CN 108287694B
Authority
CN
China
Prior art keywords
file
application program
construction
code
configuration
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.)
Active
Application number
CN201710670818.8A
Other languages
Chinese (zh)
Other versions
CN108287694A (en
Inventor
彭远杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN201710670818.8A priority Critical patent/CN108287694B/en
Publication of CN108287694A publication Critical patent/CN108287694A/en
Application granted granted Critical
Publication of CN108287694B publication Critical patent/CN108287694B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3624Software debugging by performing operations on the source code, e.g. via a compiler
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3636Software debugging by tracing the execution of the program
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/22Procedural
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Abstract

The application relates to an application program construction method, an application program construction system, a computer device and a storage medium. The method comprises the following steps: receiving a construction request of an application program sent by a terminal, wherein the construction request carries basic information corresponding to the application program, and the basic information comprises configuration parameters; pulling a code file corresponding to the application program according to the basic information; acquiring a configuration file corresponding to the code file, and replacing the configuration file by using the configuration parameters; and compiling by using the code file corresponding to the application program and the replaced configuration file to obtain an installation file corresponding to the application program. By adopting the method, the construction of the application program can be automatically completed without manual operation of developers.

Description

Application program construction method, system, computer device and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and a system for constructing an application program, a computer device, and a storage medium.
Background
The construction of the application program is mostly completed manually by a developer. If a plurality of testers need to test different application programs, the developers need to manually build the application programs for a plurality of times. Thereby bringing more unnecessary work to the developer. Therefore, how to automatically build the application program becomes a technical problem to be solved at present.
Disclosure of Invention
In view of the above, it is desirable to provide an application program building method, system, computer device, and storage medium that can automatically complete application program building without manual operation by a developer.
An application building method, comprising:
receiving a construction request of an application program sent by a terminal, wherein the construction request carries basic information corresponding to the application program; the basic information comprises configuration parameters;
pulling a code file corresponding to the application program according to the basic information;
acquiring a configuration file corresponding to the code file, and replacing the configuration file by using the configuration parameters;
and compiling by using the code file corresponding to the application program and the replaced configuration file to obtain an installation file corresponding to the application program.
In one embodiment, the configuration file corresponding to the code file is obtained, and the configuration file is replaced by using the configuration parameters; comprises the following steps:
generating a command text by using the configuration parameters;
acquiring an operating system name corresponding to the application program;
acquiring a configuration file corresponding to the code file according to the operating system name;
and replacing the configuration file by using the command file.
In one embodiment, the method further comprises:
generating a corresponding construction task by using the construction request;
when a plurality of construction tasks exist, acquiring a plurality of node identifiers in a server cluster;
and distributing the plurality of construction tasks to a plurality of nodes in the server cluster according to the node identification.
In one embodiment, after the step of obtaining the installation file corresponding to the application program by compiling the code file corresponding to the application program and the replaced configuration file, the method further includes:
storing the installation file to obtain a corresponding storage path;
generating a corresponding two-dimensional code by using the storage path;
and returning the two-dimension code to the terminal so that the terminal displays the two-dimension code through a page.
In one embodiment, the method further comprises:
recording a corresponding log file in the construction process of the installation file;
and if the construction fails, acquiring the log file, and positioning the problem by using the log file.
An application building system, the system comprising:
the terminal is used for acquiring basic information required by construction of an application program input through a page; generating a construction request of an application program by using the basic information, and sending the construction request to a server; the basic information comprises configuration parameters;
the server is used for pulling the code file corresponding to the application program according to the basic information; acquiring a configuration file corresponding to the code file, and replacing the configuration file by using the configuration parameters; and compiling by using the code file corresponding to the application program and the replaced configuration file to obtain an installation file corresponding to the application program.
In one embodiment, the terminal is further configured to obtain the installation file, and install the installation file to obtain a corresponding application program; receiving a test instruction corresponding to the application program, wherein the test instruction carries a gesture identifier; and acquiring a gesture test script according to the gesture identification, and testing the application program by using the gesture test script.
In one embodiment, the server includes a server cluster including a plurality of nodes, where the nodes include a master node and a slave node, and the master node is configured to receive the build request and generate a corresponding build task using the build request; when a plurality of construction tasks exist, acquiring node identifications corresponding to a plurality of slave nodes in a server cluster; and distributing a plurality of construction tasks to a plurality of slave nodes in the server cluster according to the node identification, wherein the slave nodes are used for executing the construction tasks to obtain installation files corresponding to the application program.
A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the steps of the above method.
One or more computer-readable non-transitory storage media storing computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the above-described method.
According to the application program construction method, the application program construction system, the computer equipment and the storage medium, when a tester needs the installation file of the application program, the construction request of the application program can be sent to the server through the terminal, so that the server can pull the corresponding code file and the configuration file according to the basic information carried in the construction request, and the configuration file is replaced by using the configuration parameters in the basic information. After compiling the code file and the replaced configuration file, the installation file required by the tester can be obtained. In the whole process, the application program can be automatically constructed only by submitting basic information required by construction of the application program through the terminal by a tester without manual operation of a developer, and unnecessary construction work of the developer is effectively reduced.
Drawings
FIG. 1 is a diagram of an application scenario of a method for application building in one embodiment;
FIG. 2 is a block diagram of the server of FIG. 1;
FIG. 3 is a flow diagram of a method for application building in one embodiment;
FIG. 4 is a diagram illustrating a page displayed in a terminal in one embodiment;
FIG. 5 is a block diagram of an application building system in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The application program construction method provided in the embodiment of the present application can be applied to the application environment shown in fig. 1. The terminal 102 is connected to the server 104 via a network. The tester can input basic information required for building the application program in a page through the terminal 102. The basic information includes: warehouse address, installation file name, code file name, application scenario, configuration parameters, and the like. The terminal 102 generates a construction request of the application program using the basic information, and transmits the construction request to the server 104 via the network. The server 104 pulls the code file needed to build the application program according to the warehouse address and the code file name in the basic information. The code file has a corresponding configuration file, and after the server 104 pulls the code file, the configuration file corresponding to the code file can be acquired, and the command file is generated by using the basic information. The configuration file is replaced by a command file. The server 104 compiles the code file corresponding to the application program and the replaced configuration file to obtain an installation file corresponding to the application program. In the whole process, the construction of the application program can be automatically completed without manual operation of developers.
FIG. 2 is an internal block diagram of a server in one embodiment. The server includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the server is configured to provide computing and control capabilities. The memory of the server comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the server stores an operating system and computer readable instructions. The internal memory of the server provides an environment for the operating system and the execution of computer-readable instructions in the non-volatile storage medium. The network interface of the server is used for communicating with an external terminal through a network connection, for example, receiving a construction request of an application program sent by the terminal. The computer readable instructions, when executed by a processor, implement an application building method. Those skilled in the art will appreciate that the architecture shown in fig. 2 is a block diagram of only a portion of the architecture associated with the subject application, and does not constitute a limitation on the servers to which the subject application applies, as a particular server may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In an embodiment, as shown in fig. 3, an application program constructing method is provided, which is described by taking an example that the method is applied to a server, and specifically includes:
step 302, receiving a construction request of an application program sent by a terminal, where the construction request carries basic information corresponding to the application program, and the basic information includes configuration parameters.
The tester can send a request for constructing the application program to the server through the terminal. The terminal can be a desktop computer, a personal notebook computer, a tablet computer, a smart phone, a personal digital assistant and the like. Specifically, the tester can access the server through the terminal, and the server returns a corresponding page to the terminal. The tester can input basic information required for building the application program in a page through the terminal. The basic information includes: warehouse address, installation file name, code file name, application scenario, configuration parameters, and the like. The code file name may be a branch name of a GIT (distributed version control system with open source) or a code file name with a tag. The tagged code file may be an encapsulated code file. The application scenario may be a business scenario corresponding to an application, such as a bank or an insurance. The configuration information includes various test packages for testing the application and configuration parameters thereof. The Test package includes a UAT (user acceptance Test) Test package, a generation Test package, a security Test package, and the like. The configuration parameters in the test packets include: log, RN (read Native, an open source architecture) debug and test environments, etc.
The application programs can have corresponding operating systems, including Android, IOS and the like. Taking the application program supported by the Android operating system as an example, the basic information input by the tester in the page may be as shown in fig. 4. The code file name can be a GIT branch name, the application scenario can be a bank, the test packet is a UAT test packet, and the configuration parameters are as follows: log opening, RN debugging opening and testing environment.
And step 304, pulling a code file corresponding to the application program according to the basic information.
And step 306, acquiring a configuration file corresponding to the code file, and replacing the configuration file by using the configuration parameters.
And the server pulls the code file required by constructing the application program according to the warehouse address and the code file name in the basic information. And when the code file name is the GIT branch name, the server acquires the corresponding GIT main branch name and a plurality of GIT sub-branch names according to the GIT branch name. The server may pull the primary branch code file based on the repository address and the GIT primary branch name. The server pulls the plurality of sub-branch code files according to the warehouse address and the plurality of GIT sub-branch names. When the code file name is the code file name with the label, the server can pull the required code file with the label according to the warehouse address and the code file name.
The code file has a corresponding configuration file, and after the server pulls the code file, the configuration file corresponding to the code file can be obtained, and the configuration file is replaced by using the basic information.
In one embodiment, the step of obtaining a configuration file corresponding to the code file and replacing the configuration file with the basic information includes: generating a command text by using the configuration parameters; acquiring an operating system name corresponding to an application program; acquiring a configuration file corresponding to the code file according to the name of the operating system; the configuration file is replaced with a command file.
The configuration files corresponding to the code files may be different for different operating systems. For example, in the Android operating system, the configuration files corresponding to the code files include common. In the IOS operating system, the configuration files corresponding to the code files include project.
And the server acquires a configuration file corresponding to the code file according to the application program name. The server generates command text using the configuration parameters. For example, the command text is sed command text. And the server replaces different configuration files corresponding to different operating systems by using the command text. For example, common and built files in the Android operating system are replaced with command texts. Or replacing the configuration files project. pbxproj and info. plist in the IOS operating system with command text.
The command text is generated according to the configuration parameters, and the command file is used for replacing the configuration file corresponding to the code file, so that the application program required by the tester can be built.
And 308, compiling by using the code file corresponding to the application program and the replaced configuration file to obtain an installation file corresponding to the application program.
The application programs correspond to different application programs, and the compiling modes of the code file and the replaced configuration file by the server are different. When the operating system corresponding to the application program is the Android operating system, after the server pulls the code file and replaces the configuration file, the corresponding installation file, such as an apk file, is generated by using the name of the installation file. And acquiring signature information corresponding to the application program, signing the installation file by using the signature information, and taking the signed installation file as the installation file required by the tester. And when the operating system corresponding to the application program is the IOS operating system, the server installs the third-party dependent library after pulling the code file and replacing the configuration file. And packaging the code file and the replaced configuration file by using a third-party dependency library to generate an installation file, such as an app file, corresponding to the name of the installation file. And compressing the installation file to obtain an installation file, such as an ipa file. And taking the installable package file as an installation file required by the tester.
In this embodiment, when a tester needs an installation file of an application program, a building request of the application program may be sent to the server through the terminal, so that the server may pull a corresponding code file and a configuration file according to basic information carried in the building request, and replace the configuration file with configuration parameters in the basic information. After compiling the code file and the replaced configuration file, the installation file required by the tester can be obtained. In the whole process, the application program can be automatically constructed only by submitting basic information required by construction of the application program through the terminal by a tester without manual operation of a developer, and unnecessary construction work of the developer is effectively reduced.
In one embodiment, after the step of compiling by using the code file corresponding to the application program and the replaced configuration file to obtain the installation file corresponding to the application program, the method further includes: storing the installation file to obtain a corresponding storage path; generating a corresponding two-dimensional code by using the storage path; and returning the two-dimensional code to the terminal so that the terminal can display the two-dimensional code through a page.
In this embodiment, after the installation file of the application is constructed, the server stores the installation file in the specified storage path. In order to facilitate the test personnel to download the installation file and test the application program, the server can generate a corresponding two-dimensional code by using the storage path, and return the two-dimensional code to the page of the terminal. The terminal can display the two-dimensional code through the page. When a tester needs to download the installation file, the two-dimensional code in the page can be identified by using the terminal, the storage path is obtained, and the installation file is downloaded from the server according to the storage path. Therefore, the terminal can be installed by using the installation file, and then the application program can be tested. The two-dimensional code is generated by the storage path, so that a tester can conveniently acquire the corresponding installation file by identifying the two-dimensional code through the terminal, and the operation of downloading through the storage path in the traditional mode is omitted. Providing convenience for testing personnel.
In one embodiment, the server receives a construction request of the application program sent by the terminal, and generates a corresponding construction task according to the construction request. The build task may have a corresponding task identification. And after the installation file is constructed, the server records the corresponding relation between the installation file name and the task identifier. The testing personnel can send a construction query request of the installation file to the server through the terminal, the server queries according to the name of the installation file carried in the construction query request, and if the task identifier of the construction task corresponding to the installation file is queried, the installation file is constructed. The server may store installation files for a plurality of applications. And supports a build query for the installation files, thereby enabling efficient hosting of multiple installation files.
In one embodiment, the method further comprises: generating a corresponding construction task by using the construction request; when a plurality of construction tasks exist, acquiring a plurality of node identifiers in a server cluster; and distributing the plurality of construction tasks to a plurality of nodes in the server cluster according to the node identification.
In this embodiment, the server may adopt a server cluster. The server cluster includes a plurality of nodes therein. Each node may be considered an independent server. The nodes include a master node and a plurality of slave nodes. The main node can receive a construction request of the application program sent by the terminal, and generates a corresponding construction task according to the construction request. The master node may receive a construction request simultaneously transmitted by a plurality of terminals. If the master node receives a plurality of construction requests, the master node may generate the plurality of construction requests into corresponding construction tasks, respectively. The master node acquires node identifiers of a plurality of slave nodes, acquires the current task quantity of the slave nodes according to the node identifiers, and distributes a plurality of construction tasks to the plurality of slave nodes according to the condition of the current task quantity.
Specifically, the master node may rank the plurality of slave nodes according to the current task amount. For example, the more the current task amount, the higher the ranking, whereas the less the current task amount, the lower the ranking. And the master node acquires the corresponding slave node identifier according to the sorting condition, for example, acquires the slave node identifier sorted at the last, and allocates the construction task to the slave node. If a plurality of construction tasks are generated within a preset time period, the master node may acquire a plurality of slave nodes according to the sorting condition and distribute the construction tasks to the corresponding plurality of slave nodes.
In order to improve the generation speed and the distribution efficiency of the construction tasks, the main node can also call a plurality of threads, utilize multithreading to concurrently execute the generation of the construction tasks, and utilize multithreading to concurrently execute the distribution of a plurality of construction tasks.
By distributing a plurality of construction tasks to a plurality of nodes, the construction efficiency of the installation files can be effectively improved, and the load balance among the nodes can be effectively realized.
Further, each slave node may also be configured with a current task amount upper limit. When the current task amount of a certain slave node reaches the upper limit, the master node needs to wait for the slave node to finish the construction task and then distribute other construction tasks to the slave node. When a large number of construction tasks are faced, the waiting time can be reduced by means of server cluster expansion and the like.
In one embodiment, the method further comprises: recording a corresponding log file in the construction process of the installation file; and if the construction fails, acquiring a log file, and positioning the problem by using the log file.
In this embodiment, the server records the log file in the process of constructing the installation file. If the situation that the installation file is failed to be constructed occurs, the server can obtain the log file to perform problem location. Specifically, each link in the construction process is recorded in the log file. The server searches for a failed link in the log file. If the failure link indicates that the code file and the replaced configuration file have failed to be constructed during compiling, the problem is positioned in the code file by mistake. And if the failure link indicates that the construction fails due to the pulling failure of the code file, positioning the problem in the network fault. Therefore, the problem causing the construction failure can be accurately positioned through the log file.
In one embodiment, as shown in fig. 5, there is provided an application building system including:
a terminal 502, configured to obtain basic information required for building an application program input through a page; and generating a construction request of the application program by using the basic information, and sending the construction request to the server, wherein the basic information comprises configuration parameters.
The server 504 is used for pulling a code file corresponding to the application program according to the basic information; acquiring a configuration file corresponding to the code file, and replacing the configuration file by using the configuration parameters; and compiling by using the code file corresponding to the application program and the replaced configuration file to obtain an installation file corresponding to the application program.
The tester can input basic information required for building an application program in a page through the terminal 502. The basic information includes: warehouse address, installation file name, code file name, application scenario, configuration parameters, and the like. The terminal 502 generates a construction request of the application program using the basic information.
The server 504 pulls the code files needed to build the application based on the repository address and the code file name in the base information. The code file has a corresponding configuration file, and after the server 504 pulls the code file, the configuration file corresponding to the code file can be acquired, and the configuration file is replaced by using the basic information. Specifically, the server 504 obtains a configuration file corresponding to the code file according to the application name. The server 504 generates command text using the configuration parameters and replaces the configuration file with the command file. Specifically, the server 504 obtains an operating system name corresponding to the application program, obtains a configuration file corresponding to the code file according to the operating system name, and replaces the configuration file with the command file. The server 504 compiles the code file corresponding to the application program and the replaced configuration file to obtain an installation file corresponding to the application program. The command text is generated according to the configuration parameters, and the command file is used for replacing the configuration file corresponding to the code file, so that the application program required by the tester can be built.
In one embodiment, the server 504 is further configured to store the installation file and obtain a corresponding storage path; generating a corresponding two-dimensional code by using the storage path; the two-dimensional code is returned to the terminal 502. The terminal 502 displays the two-dimensional code through a page. When a tester needs to download the installation file, the two-dimensional code in the page can be identified by using the terminal 502, a storage path is obtained, and the installation file is downloaded from the server according to the storage path. So that the terminal 502 can be installed with the installation file and then the application program can be tested. Providing convenience for testing personnel.
In this embodiment, when a tester needs an installation file of an application program, a building request of the application program may be sent to the server through the terminal, so that the server may pull a corresponding code file and a configuration file according to basic information carried in the building request, and replace the configuration file with configuration parameters in the basic information. After compiling the code file and the replaced configuration file, the installation file required by the tester can be obtained. In the whole process, the application program can be automatically constructed only by submitting basic information required by construction of the application program through the terminal by a tester without manual operation of a developer, and unnecessary construction work of the developer is effectively reduced.
In an embodiment, the terminal 502 is further configured to obtain an installation file, install the installation file to obtain a corresponding application program, receive a test instruction corresponding to the application program, where the test instruction carries a gesture identifier, obtain a gesture test script according to the gesture identifier, and test the application program by using the gesture test script.
The gesture identification is used for identifying gestures, and can be composed of characters such as characters and numbers, and can also be other identifications capable of identifying gestures. The terminal 502 may directly obtain the corresponding gesture test script according to the gesture identifier when obtaining the gesture identifier. The terminal 502 may also obtain a corresponding control information sequence according to the gesture identifier when obtaining the gesture identifier, and then generate a gesture test script according to the control information sequence and the gesture test script generation template.
The control information is an identifier of a control through which the marking gesture passes, and the corresponding control can be found according to the control information, and the control information can be an Xpath path of the control, for example. The control information sequence is generated according to an input gesture, a tester can input a gesture to be tested through the touch screen, and the terminal 502 acquires control information and the sequence of the passed controls by acquiring the controls through which the input gesture passes to generate the control information sequence. For example, all control information for an input gesture is grouped into an array.
The gesture test script comprises an action instruction sequence, wherein the action instruction sequence sequentially comprises a test instruction for calling a click event function to operate a starting control of a gesture and a test instruction for calling a sliding event function to operate between adjacent controls of the gesture. In the test instruction, the control can be represented by a control identification, and the control identification can be control information.
After the terminal 502 acquires the gesture test script, the gesture test script is analyzed into an action instruction according to the action instruction sequence of the gesture test script, the action instruction is sent to the application program, and the gesture test is performed, so that the application program executes corresponding operation according to the action instruction, simulates the track of the input gesture, and outputs a corresponding gesture test result.
The corresponding gesture test script can be obtained by utilizing the gesture identification, the gesture test script is utilized to test the application program, and a gesture test result can be output, so that the workload of the application program test is effectively reduced, and the test efficiency is improved.
In one embodiment, the server comprises a server cluster, the server cluster comprises a plurality of nodes, the nodes comprise a master node and slave nodes, and the master node is used for receiving the construction request and generating a corresponding construction task by using the construction request; when a plurality of construction tasks exist, acquiring node identifications corresponding to a plurality of slave nodes in a server cluster; and distributing the plurality of construction tasks to a plurality of slave nodes in the server cluster according to the node identification, wherein the slave nodes are used for executing the construction tasks to obtain the installation files corresponding to the application program.
If the master node receives a plurality of construction requests, the master node may generate the plurality of construction requests into corresponding construction tasks, respectively. The master node acquires node identifiers of a plurality of slave nodes, acquires the current task quantity of the slave nodes according to the node identifiers, and distributes a plurality of construction tasks to the plurality of slave nodes according to the condition of the current task quantity. By distributing a plurality of construction tasks to a plurality of slave nodes, the construction efficiency of the installation files can be effectively improved, and the load balance among a plurality of nodes can be effectively realized.
A computer device comprising a memory and a processor, the memory having stored therein computer-readable instructions that, when executed by the processor, cause the processor to perform the steps of:
receiving a construction request of an application program sent by a terminal, wherein the construction request carries basic information corresponding to the application program, and the basic information comprises configuration parameters;
pulling a code file corresponding to the application program according to the basic information;
acquiring a configuration file corresponding to the code file, and replacing the configuration file by using the configuration parameters;
and compiling by using the code file corresponding to the application program and the replaced configuration file to obtain an installation file corresponding to the application program.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of:
generating a command text by using the configuration parameters;
acquiring an operating system name corresponding to an application program;
acquiring a configuration file corresponding to the code file according to the name of the operating system;
the configuration file is replaced with a command file.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of:
generating a corresponding construction task by using the construction request;
when a plurality of construction tasks exist, acquiring a plurality of node identifiers in a server cluster;
and distributing the plurality of construction tasks to a plurality of nodes in the server cluster according to the node identification.
In one embodiment, after the step of compiling the code file corresponding to the application program and the replaced configuration file to obtain the installation file corresponding to the application program, the processor executes the computer readable instructions to further perform the following steps:
storing the installation file to obtain a corresponding storage path;
generating a corresponding two-dimensional code by using the storage path;
and returning the two-dimensional code to the terminal so that the terminal can display the two-dimensional code through a page.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of:
recording a corresponding log file in the construction process of the installation file;
and if the construction fails, acquiring a log file, and positioning the problem by using the log file.
In one embodiment, one or more computer-readable non-transitory storage media storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of:
receiving a construction request of an application program sent by a terminal, wherein the construction request carries basic information corresponding to the application program, and the basic information comprises configuration parameters;
pulling a code file corresponding to the application program according to the basic information;
acquiring a configuration file corresponding to the code file, and replacing the configuration file by using the configuration parameters;
and compiling by using the code file corresponding to the application program and the replaced configuration file to obtain an installation file corresponding to the application program.
In one embodiment, the computer readable instructions when executed by the processor further perform the steps of:
the step of replacing the configuration file by using the basic information comprises the following steps:
generating a command text by using the configuration parameters;
acquiring an operating system name corresponding to an application program;
acquiring a configuration file corresponding to the code file according to the name of the operating system;
the configuration file is replaced with a command file.
In one embodiment, the computer readable instructions when executed by the processor further perform the steps of:
generating a corresponding construction task by using the construction request;
when a plurality of construction tasks exist, acquiring a plurality of node identifiers in a server cluster;
and distributing the plurality of construction tasks to a plurality of nodes in the server cluster according to the node identification.
In one embodiment, after the step of compiling the code file corresponding to the application and the replaced configuration file to obtain the installation file corresponding to the application, the computer readable instructions, when executed by the processor, further perform the steps of:
storing the installation file to obtain a corresponding storage path;
generating a corresponding two-dimensional code by using the storage path;
and returning the two-dimensional code to the terminal so that the terminal can display the two-dimensional code through a page.
In one embodiment, the computer readable instructions when executed by the processor further perform the steps of:
recording a corresponding log file in the construction process of the installation file;
and if the construction fails, acquiring a log file, and positioning the problem by using the log file.
It will be understood by those of ordinary skill in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware associated with computer readable instructions, which can be stored in a non-volatile computer readable storage medium, and when executed, can include processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. An application building method, comprising:
receiving a construction request of an application program sent by a terminal in a page component, wherein the construction request carries basic information corresponding to the application program; inputting different basic information based on different page components; the basic information comprises a warehouse address, an installation file name, a code file name, an application scene and configuration information; the configuration information comprises a plurality of test packets for testing the application program and configuration parameters thereof;
pulling a code file corresponding to the application program according to the warehouse address and the code file name in the basic information;
acquiring a configuration file corresponding to the code file, generating a command text by using a configuration parameter, acquiring an operating system name corresponding to the application program, and acquiring the configuration file corresponding to the code file according to the operating system name; replacing the configuration file by using the command file; different operating systems, different configuration files corresponding to the code files;
compiling by using the code file corresponding to the application program and the replaced configuration file to obtain an installation file corresponding to the application program; different application programs have different compiling modes for the code file and the replaced configuration file; if the operating system corresponding to the application program is an android system, generating a corresponding installation file by using the name of the installation file, acquiring signature information corresponding to the application program, and signing the installation file by using the signature information to obtain the corresponding installation file; and if the operating system corresponding to the application program is the IOS operating system, packaging the code file and the replaced configuration file by using the installed third-party dependency library to generate an installation file corresponding to the name of the installation file.
2. The method of claim 1, further comprising:
generating a corresponding construction task by using the construction request;
when a plurality of construction tasks exist, acquiring a plurality of node identifiers in a server cluster;
and distributing the plurality of construction tasks to a plurality of nodes in the server cluster according to the node identification.
3. The method according to claim 1, wherein after the step of obtaining the installation file corresponding to the application program by compiling the code file corresponding to the application program and the replaced configuration file, the method further comprises:
storing the installation file to obtain a corresponding storage path;
generating a corresponding two-dimensional code by using the storage path;
and returning the two-dimension code to the terminal so that the terminal displays the two-dimension code through a page.
4. The method of claim 1, further comprising:
recording a corresponding log file in the construction process of the installation file;
and if the construction fails, acquiring the log file, and positioning the problem by using the log file.
5. An application building system, the system comprising:
the terminal is used for acquiring basic information required by construction of an application program input through a page from the page component; inputting different basic information based on different page components; generating a construction request of an application program by using the basic information, and sending the construction request to a server; the basic information comprises a warehouse address, an installation file name, a code file name, an application scene and configuration information; the configuration information comprises a plurality of test packets for testing the application program and configuration parameters thereof;
the server is used for pulling the code file corresponding to the application program according to the warehouse address and the code file name in the basic information; acquiring a configuration file corresponding to the code file, generating a command text by using a configuration parameter, acquiring an operating system name corresponding to the application program, acquiring the configuration file corresponding to the code file according to the operating system name, and replacing the configuration file by using the configuration parameter by using the command file; compiling by using the code file corresponding to the application program and the replaced configuration file to obtain an installation file corresponding to the application program; different application programs have different compiling modes for the code file and the replaced configuration file; if the operating system corresponding to the application program is an android system, generating a corresponding installation file by using the name of the installation file, acquiring signature information corresponding to the application program, and signing the installation file by using the signature information to obtain the corresponding installation file; and if the operating system corresponding to the application program is the IOS operating system, packaging the code file and the replaced configuration file by using the installed third-party dependency library to generate an installation file corresponding to the name of the installation file.
6. The system according to claim 5, wherein the terminal is further configured to obtain the installation file, and install the installation file to obtain a corresponding application program; receiving a test instruction corresponding to the application program, wherein the test instruction carries a gesture identifier; and acquiring a gesture test script according to the gesture identification, and testing the application program by using the gesture test script.
7. The system of claim 5, wherein the server comprises a server cluster comprising a plurality of nodes, the nodes comprising a master node and slave nodes, the master node configured to receive the build request and generate a corresponding build task using the build request; when a plurality of construction tasks exist, acquiring node identifications corresponding to a plurality of slave nodes in a server cluster; and distributing a plurality of construction tasks to a plurality of slave nodes in the server cluster according to the node identification, wherein the slave nodes are used for executing the construction tasks to obtain installation files corresponding to the application program.
8. A computer device comprising a memory and a processor, the memory having stored therein computer-readable instructions that, when executed by the processor, cause the processor to perform the steps of the method of any one of claims 1 to 4.
9. One or more computer-readable non-transitory storage media storing computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the method of any one of claims 1-4.
CN201710670818.8A 2017-08-08 2017-08-08 Application program construction method, system, computer device and storage medium Active CN108287694B (en)

Priority Applications (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

Applications Claiming Priority (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

Publications (2)

Publication Number Publication Date
CN108287694A CN108287694A (en) 2018-07-17
CN108287694B true 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)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189466B (en) * 2018-07-23 2022-04-05 北京城市网邻信息技术有限公司 Vest bag packaging method and device, electronic equipment and storage medium
CN109284107B (en) * 2018-08-03 2022-04-05 北京城市网邻信息技术有限公司 Application program configuration method and device, computer equipment and readable storage medium
CN109725910A (en) * 2018-09-12 2019-05-07 网联清算有限公司 Standardization dissemination method, distributing device and the delivery system of application program
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
CN109656826B (en) * 2018-12-14 2022-01-28 深圳前海微众银行股份有限公司 Application testing method, system, 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
CN110231956B (en) * 2019-06-20 2022-06-14 腾讯科技(深圳)有限公司 Method, system and device for constructing application program version
CN110737426B (en) * 2019-09-06 2022-05-06 未鲲(上海)科技服务有限公司 Program block creating method, program block creating device, computer equipment and storage medium
CN112527386B (en) * 2019-09-18 2022-10-04 华为技术有限公司 Application program issuing method and device
CN113360379B (en) * 2021-06-04 2022-06-10 上海哔哩哔哩科技有限公司 Program test environment creation method and program test environment creation apparatus
CN113094052A (en) * 2021-06-09 2021-07-09 中电金信软件有限公司 Application construction method and device, computer equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8725124B2 (en) * 2012-03-05 2014-05-13 Enterproid Hk Ltd Enhanced deployment of applications
CN102707977A (en) * 2012-05-17 2012-10-03 江苏中科梦兰电子科技有限公司 Increment upgrading method based on Android application software
CN104580480B (en) * 2015-01-15 2018-05-15 上海瀚银信息技术有限公司 A kind of client remote automatically dispose system and method
CN106033335A (en) * 2015-03-11 2016-10-19 腾讯科技(深圳)有限公司 An installation package generating method and device
CN106557366B (en) * 2015-09-28 2020-09-08 阿里巴巴集团控股有限公司 Task distribution method, device and system
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

Also Published As

Publication number Publication date
CN108287694A (en) 2018-07-17
WO2019029160A1 (en) 2019-02-14

Similar Documents

Publication Publication Date Title
CN108287694B (en) Application program construction method, system, computer device and storage medium
CN105164644B (en) Hook frame
US10534701B1 (en) API driven continuous testing systems for testing disparate software
US8166448B2 (en) Rapid development of distributed web service
US9268672B1 (en) Automated test case generation for applications
CN108038051A (en) Dissemination method, device, computer equipment and the storage medium of micro services
US20050114836A1 (en) Block box testing in multi-tier application environments
CN109302522B (en) Test method, test device, computer system, and computer medium
CN107832207A (en) Interface performance test method, apparatus, storage medium and computer equipment
US11385993B2 (en) Dynamic integration of command line utilities
CN108319460B (en) Method and device for generating application program installation package, electronic equipment and storage medium
CN112685312A (en) Test case recommendation method and device for uncovered codes
CN106909498A (en) A kind of java applet injects the method and system of failure
CN114818565A (en) Simulation environment management platform, method, equipment and medium based on python
CN114637511A (en) Code testing system, method, device, electronic equipment and readable storage medium
CN112769706A (en) Componentized routing method and system
CN110674024A (en) Electronic equipment integration test system and method thereof
Choi Automated validation of IoT device control programs through domain-specific model generation
CN111124872A (en) Branch detection method and device based on difference code analysis and storage medium
CN110597564A (en) Installation package construction and service component loading method, device and terminal equipment
Koschel et al. On Testing Microservice Systems
CN109032631B (en) Application program patch package obtaining method and device, computer equipment and storage medium
CN109284222B (en) Software unit, project testing method, device and equipment in data processing system
WO2021077916A1 (en) Method and device for acquiring mirror image file
Sochat The scientific filesystem (scif)

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant