CN116450534A - Method, device, equipment and medium for generating mobile terminal application program - Google Patents

Method, device, equipment and medium for generating mobile terminal application program Download PDF

Info

Publication number
CN116450534A
CN116450534A CN202310722983.9A CN202310722983A CN116450534A CN 116450534 A CN116450534 A CN 116450534A CN 202310722983 A CN202310722983 A CN 202310722983A CN 116450534 A CN116450534 A CN 116450534A
Authority
CN
China
Prior art keywords
application program
data
generating
configuration
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310722983.9A
Other languages
Chinese (zh)
Other versions
CN116450534B (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.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech Co Ltd
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 CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202310722983.9A priority Critical patent/CN116450534B/en
Publication of CN116450534A publication Critical patent/CN116450534A/en
Application granted granted Critical
Publication of CN116450534B publication Critical patent/CN116450534B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/368Test management for test version control, e.g. updating test cases to a new software version
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/3692Test management for test results analysis
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The application provides a method, a device, equipment and a medium for generating a mobile terminal application program, and relates to the technical field of computers, wherein the method comprises the following steps: scheduling a preset configuration template indicated by a user instruction; generating a first application program and a second application program based on configuration attributes indicated by a preset configuration template, wherein the first application program and the second application program are configured with the same key data, the key data are used for representing service logic and service characteristics of the application program, the first application program and the second application program are configured with different custom data, and the custom data are used for representing the running environment and program functions of the application program; and performing associated storage on a first application program and a second application program, wherein the first application program is used for performing program testing, and the second application program is used for being applied to the mobile terminal. The paired construction and storage of the test version application program and the production version application program are realized, and the consistency of key data of the two versions is ensured.

Description

Method, device, equipment and medium for generating mobile terminal application program
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for generating a mobile terminal application of a mobile terminal application.
Background
And compared with a server, after the APP test version is successfully constructed, the configuration file in the APP test version cannot be replaced by a deployment script, so that the conversion promotion of the APP from the test version to the production version cannot be realized.
In the prior art, after the test version of the APP passes the test, the code and the configuration file are packaged again to construct the production version of the APP.
However, in the prior art, in the process of reconstructing the APP production version, codes, dependent components and the like which are not tested and verified are easily introduced, so that the APP production version and the test version are not completely consistent, production problems are caused, and defects of the APP escape.
Disclosure of Invention
The application provides a generation method, a device, equipment and a medium of a mobile terminal application program, which are used for solving the problems that in the process of reconstructing an APP production version, codes, dependent components and the like which are not tested and verified are easily introduced, so that the APP production version and a test version are not completely consistent, production problems are caused, and defects of the APP escape.
In a first aspect, the present application provides a method for generating a mobile terminal application, where the method includes:
Responding to a user instruction, and scheduling a preset configuration template indicated by the user instruction; the user instruction is used for indicating to call the preset configuration template, the user instruction is also used for indicating to generate a first application program and a second application program, the preset configuration template is used for indicating configuration attributes, and the configuration attributes represent the generation mode of the first application program and the generation mode of the second application program;
generating a first application program and a second application program based on the configuration attribute indicated by the preset configuration template; the first application program and the second application program are configured with the same key data, the key data are used for representing service logic and service characteristics of the application program, the first application program and the second application program are configured with different custom data, and the custom data are used for representing the running environment and program functions of the application program;
performing associated storage on the first application program and the second application program; the first application program is used for performing program testing, and the second application program is used for being applied to the mobile terminal.
In an optional implementation manner, the configuration attributes of the preset configuration template include a key configuration attribute and a custom configuration attribute, wherein the key configuration attribute includes a code source attribute item, a code branch attribute item, a submission serial number attribute item and a base line-dependent attribute item, and the custom configuration attribute includes an environment attribute item and a function attribute item.
In an alternative embodiment, generating the first application program and the second application program based on the configuration attribute indicated by the preset configuration template includes:
performing key data configuration on the first application program and the second application program based on key configuration attributes in the preset configuration template, and generating a first middleware corresponding to the first application program and a second middleware corresponding to the second application program;
configuring test data for the first middleware according to the self-defined configuration attribute in the preset configuration template, generating the first application program, and configuring production data for the second middleware according to the self-defined configuration attribute in the preset configuration template, and generating the second application program; wherein the test data is used for characterizing the test environment and the test function, and the production data is used for characterizing the production environment and the production function.
In an optional implementation manner, based on the key configuration attribute in the preset configuration template, performing key data configuration on the first application program and the second application program, and generating a first middleware corresponding to the first application program and a second middleware corresponding to the second application program, which includes:
Based on the key configuration attribute in the preset configuration template, the same data between the first application program and the second application program is determined to be key data; wherein the key data includes self-developed code, dependent code, and dependent components;
and carrying out key data configuration on the first application program and the second application program according to the key data, and generating a first middleware corresponding to the first application program and a second middleware corresponding to the second application program.
In an optional implementation manner, according to the configuration attribute customized in the preset configuration template, configuring test data for the first middleware, and generating the first application program includes:
responding to a first operation instruction of a user, and determining test environment data and test function data corresponding to the first middleware based on a self-defined configuration attribute in a preset configuration template corresponding to the first application program; the first operation instruction of the user is used for indicating the running environment and the program function of the first application program;
configuring test data of the first middleware according to the test environment data and the test function data, and generating the first application program;
Configuring production data for the second middleware according to the self-defined configuration attribute in the preset configuration template, and generating the second application program comprises the following steps:
responding to a second operation instruction of a user, and determining production environment data and production function data corresponding to the second middleware based on the self-defined configuration attribute in a preset configuration template corresponding to the second application program; the second operation instruction of the user is used for indicating the running environment and the program function of the second application program;
and configuring production data of the first middleware according to the production environment data and the production function data, and generating the second application program.
In an alternative embodiment, the method further comprises:
program testing is carried out on the first application program, and a testing result of the first application program is determined;
if the test result is determined to represent that the first application program passes the test, acquiring the second application program associated with the first application program, and determining that the second application program is an application program to be put into production;
and if the test result is determined to indicate that the first application program fails the test, deleting the second application program associated with the first application program.
In an alternative embodiment, after scheduling the preset configuration template indicated by the user instruction, the method further includes:
creating a first thread and a second thread based on the preset configuration template; wherein the first thread and the second thread are parallel threads;
generating a first application program and a second application program based on the configuration attribute indicated by the preset configuration template, including: running the first thread, and generating the first application program based on the configuration attribute indicated by the preset configuration template; and running the second thread, and generating the second application program based on the configuration attribute indicated by the preset configuration template.
In a second aspect, the present application provides a device for generating a mobile end application, where the device includes:
the scheduling unit is used for responding to the user instruction and scheduling a preset configuration template indicated by the user instruction; the user instruction is used for indicating to call the preset configuration template, the user instruction is also used for indicating to generate a first application program and a second application program, the preset configuration template is used for indicating configuration attributes, and the configuration attributes represent the generation mode of the first application program and the generation mode of the second application program;
The first processing unit is used for generating a first application program and a second application program based on the configuration attribute indicated by the preset configuration template; the first application program and the second application program are configured with the same key data, the key data are used for representing service logic and service characteristics of the application program, the first application program and the second application program are configured with different custom data, and the custom data are used for representing the running environment and program functions of the application program;
the storage unit is used for carrying out association storage on the first application program and the second application program; the first application program is used for performing program testing, and the second application program is used for being applied to the mobile terminal.
In a third aspect, the present application provides an electronic device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to read the computer program stored in the memory, and execute the method for generating the mobile terminal application program according to the first aspect according to the computer program in the memory.
In a fourth aspect, the present application provides a computer-readable storage medium, where computer-executable instructions are stored, and when executed by a processor, implement a method for generating a mobile-end application according to the first aspect.
The method, the device, the equipment and the medium for generating the mobile terminal application program provided by the application program comprise the following steps: responding to the user instruction, and scheduling a preset configuration template indicated by the user instruction; generating a first application program and a second application program based on configuration attributes indicated by a preset configuration template; the first application program and the second application program are configured with the same key data, the key data are used for representing service logic and service characteristics of the application program, the first application program and the second application program are configured with different custom data, and the custom data are used for representing the running environment and the program functions of the application program; and performing associated storage on a first application program and a second application program, wherein the first application program is used for performing program testing, and the second application program is used for being applied to the mobile terminal. The method realizes the paired construction and storage of the test version application program and the production version application program, ensures the consistency of the test version application program and the production version application program on key business logic and business characteristics through the consistency of key data, and can meet different requirements of the application program in test and production through the custom configuration of the program running environment and the program functions.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a flowchart of a method for generating a mobile terminal application according to an embodiment of the present application;
fig. 2 is a flowchart of another method for generating a mobile terminal application according to an embodiment of the present application;
fig. 3 is a flowchart of another method for generating a mobile terminal application according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a generating device of a mobile terminal application according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present application.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
In order to ensure the consistency of the test and production of the server application program, the server application program generally replaces configuration files in the test version, such as environment information, function switch states and the like, through scripts after the test version is tested, so that the production version is promoted to the test version, and the consistency between the two versions of the application program is ensured. APP is an application installed in a front-end mobile device, and compared with a back-end and server application, the configuration file in the APP test version cannot be replaced by a deployment script, because the mobile end operating system, such as the Android operating system (Android), the apple system (iOS), the hong-mo operating system, etc., can check the integrity of the APP installation package so as not to be attacked by a man-in-the-middle.
In one example, after the test version of the APP passes, a production profile is selected based on the original code branch, and the production version of the APP is built again. However, this process inevitably generates a time difference of construction, and the intermediate variables are risks of introducing inconsistent testing and production, so that the APP version put in production is not completely consistent with the tested version, and untested codes or configurations may cause APP functional defects, security defects and the like. For example, before the APP production version is built, if a clear command is executed, the packaging cache is cleared, when the three-way dependency package is pulled again, if no corresponding version of the local cache is detected, an external dependency source is connected for downloading, if the dependency package is updated within the time difference, a new version of the dependency package is directly applied to the APP production version for direct production under the condition that the new version of the dependency package is not tested, production problems are caused, and defects of the APP escape are caused.
Therefore, the present application proposes a method for generating a mobile terminal application program, so as to solve the above technical problems.
The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for generating a mobile terminal application program according to an embodiment of the present application, as shown in fig. 1, where the method includes:
101. responding to the user instruction, and scheduling a preset configuration template indicated by the user instruction; the user instruction is used for indicating to call a preset configuration template, the user instruction is also used for indicating to generate a first application program and a second application program, the preset configuration template is used for indicating configuration attributes, and the configuration attributes represent a generation mode of the first application program and a generation mode of the second application program.
For example, the execution body of the embodiment may be an electronic device, a mobile terminal or a cloud server, or a terminal device, or other apparatus or device that may execute the embodiment, which is not limited. The embodiment is described with an execution body as an electronic device.
When a user needs to construct a mobile terminal application program, a user instruction is sent to instruct to generate a test version and a production version of the same mobile terminal application program, namely a first application program and a second application program, and instruct the electronic equipment to call a preset configuration template, wherein the preset configuration template is used for indicating configuration attributes of the application program, and the configuration attributes represent a generation mode of the first application program and a generation mode of the second application program.
102. Generating a first application program and a second application program based on configuration attributes indicated by a preset configuration template; the first application program and the second application program are configured with the same key data, the key data are used for representing service logic and service characteristics of the application program, the first application program and the second application program are configured with different custom data, and the custom data are used for representing the running environment and the program functions of the application program.
The electronic device obtains corresponding data, such as codes, dependent components and the like, based on the configuration attribute of the application program indicated by the called preset configuration template, constructs and generates a first application program and a second application program, configures the same key data for the first application program and the second application program in order to ensure consistency of the first application program and the second application program in service logic and service characteristics, and the key data are used for representing the service logic and the service characteristics of the application program; meanwhile, different custom data are configured for the first application program and the second application program in order to distinguish the test environment test function and the production release environment and the production function, wherein the custom data are used for representing the running environment and the program function of the application program.
103. Performing associated storage on the first application program and the second application program; the first application program is used for performing program testing, and the second application program is used for being applied to the mobile terminal.
For example, after the first application program and the second application program are generated, the electronic device stores the first application program and the second application program in association, for example, marks the same or paired identification of the first application program and the second application program, and stores the two in a preset database. The first application program is used for program testing, and the second application program is used for being applied to the mobile terminal.
In summary, the method for generating the mobile terminal application program provided in the embodiment includes the following steps: responding to the user instruction, and scheduling a preset configuration template indicated by the user instruction; generating a first application program and a second application program based on configuration attributes indicated by a preset configuration template; the first application program and the second application program are configured with the same key data, the key data are used for representing service logic and service characteristics of the application program, the first application program and the second application program are configured with different custom data, and the custom data are used for representing the running environment and the program functions of the application program; and performing associated storage on a first application program and a second application program, wherein the first application program is used for performing program testing, and the second application program is used for being applied to the mobile terminal. The method realizes the paired construction and storage of the test version application program and the production version application program, ensures the consistency of the test version application program and the production version application program on key business logic and business characteristics through the consistency of key data, and can meet different requirements of the application program in test and production through the custom configuration of the program running environment and the program functions.
Fig. 2 is a flowchart of another method for generating a mobile terminal application program according to an embodiment of the present application, as shown in fig. 2, where the method includes:
201. responding to the user instruction, and scheduling a preset configuration template indicated by the user instruction; the user instruction is used for indicating to call a preset configuration template, the user instruction is also used for indicating to generate a first application program and a second application program, the preset configuration template is used for indicating configuration attributes, the configuration attributes characterize the generation mode of the first application program and the generation mode of the second application program, the configuration attributes of the preset configuration template comprise key configuration attributes and custom configuration attributes, the key configuration attributes comprise code source attribute items, code branch attribute items, submitting sequence number attribute items and dependent baseline attribute items, and the custom configuration attributes comprise environment attribute items and function attribute items.
When a user needs to construct a mobile terminal application program, a user instruction is sent to instruct to generate a test version and a production version of the same mobile terminal application program, namely a first application program and a second application program, and instruct an electronic device to call a preset configuration template, wherein the preset configuration template is used for indicating configuration attributes of the application program, the configuration attributes characterize a generation mode of the first application program and a generation mode of the second application program, the configuration attributes of the preset configuration template comprise key configuration attributes and custom configuration attributes, the key configuration attributes comprise a code source attribute item, a code branch attribute item, a submitting sequence number attribute item and a base line-dependent attribute item, and the custom configuration attributes comprise an environment attribute item and a function attribute item.
In one example, the code source attribute item, the code branch attribute item, and the commit sequence number attribute item are used to indicate code sources, affiliated code branches, and commit sequences of developers to which the codes are configured for the first application and the second application; the dependency baseline property item is used to indicate third party components, third party profiles, third party application frameworks, etc. on which the first application and the second application depend.
202. And carrying out key data configuration on the first application program and the second application program based on key configuration attributes in a preset configuration template, and generating a first middleware corresponding to the first application program and a second middleware corresponding to the second application program.
In one example, step 202 includes the steps of:
determining the same data between the first application program and the second application program as key data based on key configuration attributes in a preset configuration template; wherein the critical data includes self-developed code, dependent code, and dependent components.
And carrying out key data configuration on the first application program and the second application program according to the key data, and generating a first middleware corresponding to the first application program and a second middleware corresponding to the second application program.
The same data between the first application program and the second application program is determined to be key data, such as self-development codes stored in a code bin, dependence codes of an introduced third party, dependence components and the like, and the key data configuration is performed on the first application program and the second application program according to the key data, so that a first middleware corresponding to the first application program and a second middleware corresponding to the second application program are generated.
In one example, the process can be implemented through two simultaneous construction tasks, namely, a task-scheduling preset configuration template is constructed, identical data between a first application program and a second application program is determined based on key configuration attributes in the preset configuration template, the identical data are key data, and then the key data configuration is carried out on the first application program according to the key data, so that a first middleware corresponding to the first application program is generated; and constructing a preset configuration template which is the same as the task II scheduling, determining the same data between the first application program and the second application program based on the key configuration attribute in the preset configuration template, using the same data as key data, configuring the key data of the second application program according to the key data, and generating a second middleware corresponding to the second application program.
In one example, the process may also be implemented by a building task, that is, the building task performs key data configuration on the first application program and the second application program based on key configuration attributes in the preset configuration template, so as to generate a first middleware corresponding to the first application program and a second middleware corresponding to the second application program.
203. Configuring test data for the first middleware according to the self-defined configuration attribute in the preset configuration template to generate a first application program, and configuring production data for the second middleware according to the self-defined configuration attribute in the preset configuration template to generate a second application program; wherein, the test data is used for representing test environment and test function, and the production data is used for representing production environment and production function.
In one example, step 203 includes the steps of:
responding to a first operation instruction of a user, and determining test environment data and test function data corresponding to a first middleware based on a self-defined configuration attribute in a preset configuration template corresponding to a first application program; the first operation instruction of the user is used for indicating the running environment and the program function of the first application program.
And configuring the test data of the first middleware according to the test environment data and the test function data, and generating a first application program.
Responding to a second operation instruction of a user, and determining production environment data and production function data corresponding to a second middleware based on a self-defined configuration attribute in a preset configuration template corresponding to a second application program; wherein the second operation instruction is used for indicating the running environment and the program function of the second application program.
And configuring the production data of the first middleware according to the production environment data and the production function data, and generating a second application program.
For example, in order to distinguish between the running environments and the program functions respectively corresponding to the two versions, different custom data are configured for the first application program and the second application program, wherein the custom data are used for characterizing the running environments and the program functions of the application programs.
In one example, the process may be implemented by two simultaneous construction tasks, that is, the construction task one responds to a first operation instruction of a user, determines custom data corresponding to a first middleware, that is, test environment data and test function data, based on custom configuration attributes in a preset configuration template corresponding to the first application program, and configures the test data for the first middleware according to the test environment data and the test function data, so as to generate the first application program; and the second construction task responds to a second operation instruction of the user, determines the custom data corresponding to the first middleware, namely the test environment data and the test function data, based on the custom configuration attribute in the preset configuration template corresponding to the second application program, and configures the test data of the second middleware according to the test environment data and the test function data to generate the second application program.
In one example, the process may be implemented by a building task, that is, the building task responds to a first operation instruction of a user, determines custom data corresponding to a first middleware, that is, test environment data and test function data, based on custom configuration attributes in a preset configuration template corresponding to the first application program, and configures the test data for the first middleware according to the test environment data and the test function data, so as to generate the first application program; and simultaneously, responding to a second operation instruction of a user, determining custom data corresponding to the first middleware, namely test environment data and test function data, based on custom configuration attributes in a preset configuration template corresponding to the second application program, and configuring the test data of the second middleware according to the test environment data and the test function data to generate the second application program.
204. Performing associated storage on the first application program and the second application program; the first application program is used for performing program testing, and the second application program is used for being applied to the mobile terminal.
Illustratively, this step is referred to step 103, and will not be described in detail.
In summary, according to the method for generating the mobile terminal application program provided by the embodiment, consistent key data of the first application program and the second application program is determined based on the preset key configuration attribute in the preset configuration template; based on the user-defined configuration attribute and the user operation instruction in the preset configuration template, different program running environments and program functions between the first application program and the second application program are determined, the paired construction and storage of the test version application program and the production version application program are realized, the consistency of the test version application program and the production version application program in key business logic and business characteristics is ensured through the consistency of key data, and different requirements of the application program in test and production can be met through the user-defined configuration of the program running environments and the program functions.
Fig. 3 is a flowchart of another method for generating a mobile terminal application according to an embodiment of the present application, as shown in fig. 3, where the method includes:
301. responding to the user instruction, and scheduling a preset configuration template indicated by the user instruction; the user instruction is used for indicating to call a preset configuration template, the user instruction is also used for indicating to generate a first application program and a second application program, the preset configuration template is used for indicating configuration attributes, and the configuration attributes represent a generation mode of the first application program and a generation mode of the second application program.
Illustratively, this step is referred to step 101, and will not be described in detail.
302. Creating a first thread and a second thread based on a preset configuration template; wherein the first thread and the second thread are parallel threads.
Illustratively, two first threads and second threads running simultaneously are created based on a preset configuration template, i.e., the first thread and the second thread are parallel threads, the first thread Cheng Duiying is a building task of a first application, and the second thread corresponds to a building task of a second application.
303. Running a first thread, and generating a first application program based on configuration attributes indicated by a preset configuration template; running a second thread, and generating a second application program based on the configuration attribute indicated by the preset configuration template; the first application program and the second application program are configured with the same key data, the key data are used for representing service logic and service characteristics of the application program, the first application program and the second application program are configured with different custom data, and the custom data are used for representing the running environment and the program functions of the application program.
Illustratively, running a first thread, and generating a first application program based on configuration attributes indicated by a preset configuration template; and running a second thread, and generating a second application program based on the configuration attribute indicated by the preset configuration template. In order to ensure consistency of the first application program and the second application program in service logic and service characteristics, the same key data is configured for the first application program and the second application program, and the key data is used for representing the service logic and the service characteristics of the application program; meanwhile, different custom data are configured for the first application program and the second application program in order to distinguish the test environment test function and the production release environment and the production function, wherein the custom data are used for representing the running environment and the program function of the application program.
304. Performing associated storage on the first application program and the second application program; the first application program is used for performing program testing, and the second application program is used for being applied to the mobile terminal.
Illustratively, this step is referred to step 103, and will not be described in detail.
In summary, in this embodiment, the test version and the production version of the application program are constructed in pairs at the same time by two parallel threads, so that the associated application is facilitated.
One or more embodiments provided herein may further include:
program testing is carried out on the first application program, and a testing result of the first application program is determined; if the test result is determined to represent that the first application program passes the test, acquiring a second application program associated with the first application program, and determining that the second application program is an application program to be commissioned; and if the test result indicates that the first application program fails the test, deleting the second application program associated with the first application program.
The method includes the steps that program testing is conducted on a first application program, such as security testing, logic testing and functional testing, testing results of the first application program are determined, if the testing results are determined to indicate that the first application program passes testing, a second application program associated with the first application program is obtained, the second application program is updated, and the second application program is determined to be an application program to be put into production; if the test result indicates that the first application program fails the test, deleting the second application program associated with the first application program, so that the associated application of the test version and the production version of the application program is realized.
Fig. 4 is a schematic structural diagram of a generating device of a mobile terminal application according to an embodiment of the present application, as shown in fig. 4, where the device includes:
a scheduling unit 41 for scheduling a preset configuration template indicated by a user instruction in response to the user instruction; the user instruction is used for indicating to call a preset configuration template, the user instruction is also used for indicating to generate a first application program and a second application program, the preset configuration template is used for indicating configuration attributes, and the configuration attributes represent a generation mode of the first application program and a generation mode of the second application program.
A first processing unit 42, configured to generate a first application program and a second application program based on the configuration attribute indicated by the preset configuration template; the first application program and the second application program are configured with the same key data, the key data are used for representing service logic and service characteristics of the application program, the first application program and the second application program are configured with different custom data, and the custom data are used for representing the running environment and the program functions of the application program.
A storage unit 43, configured to store the first application program and the second application program in association; the first application program is used for performing program testing, and the second application program is used for being applied to the mobile terminal.
In one example, the configuration attributes of the preset configuration template include a key configuration attribute and a custom configuration attribute, the key configuration attribute includes a code source attribute item, a code branch attribute item, a submit sequence number attribute item and a dependent baseline attribute item, and the custom configuration attribute includes an environment attribute item and a function attribute item.
In one example, the first processing unit 42 includes:
the first processing subunit is used for carrying out key data configuration on the first application program and the second application program based on key configuration attributes in a preset configuration template, and generating a first middleware corresponding to the first application program and a second middleware corresponding to the second application program.
The second processing subunit is used for configuring test data for the first middleware according to the self-defined configuration attribute in the preset configuration template to generate a first application program, and configuring production data for the second middleware according to the self-defined configuration attribute in the preset configuration template to generate a second application program; wherein, the test data is used for representing test environment and test function, and the production data is used for representing production environment and production function.
In one example, the first processing subunit includes:
The first determining module is used for determining the same data between the first application program and the second application program as key data based on key configuration attributes in a preset configuration template; wherein the critical data includes self-developed code, dependent code, and dependent components.
The first configuration module is used for carrying out key data configuration on the first application program and the second application program according to the key data, and generating a first middleware corresponding to the first application program and a second middleware corresponding to the second application program.
In one example, the second processing subunit includes:
the second determining module is used for responding to a first operation instruction of a user, and determining test environment data and test function data corresponding to the first middleware based on the self-defined configuration attribute in the preset configuration template corresponding to the first application program; the first operation instruction of the user is used for indicating the running environment and the program function of the first application program.
The second configuration module is used for configuring the test data of the first middleware according to the test environment data and the test function data, and generating a first application program.
The second processing subunit further comprises:
the third determining module is used for responding to a second operation instruction of the user and determining production environment data and production function data corresponding to the second middleware based on the self-defined configuration attribute in the preset configuration template corresponding to the second application program; wherein the second operation instruction is used for indicating the running environment and the program function of the second application program.
And the third configuration module is used for configuring the production data of the first middleware according to the production environment data and the production function data and generating a second application program.
In one example, the apparatus further comprises:
the testing unit is used for performing program testing on the first application program and determining a testing result of the first application program.
And the second processing unit is used for acquiring a second application program associated with the first application program if the test result is determined to represent that the first application program passes the test, and determining the second application program as the application program to be put into production.
And the third processing unit is used for deleting the second application program associated with the first application program if the test result is determined to indicate that the first application program fails the test.
In one example, after the scheduling unit 41, the apparatus further comprises:
the fourth processing unit is used for creating a first thread and a second thread based on a preset configuration template; wherein the first thread and the second thread are parallel threads.
The first processing unit 41 is specifically configured to: running a first thread, and generating a first application program based on configuration attributes indicated by a preset configuration template; and running a second thread, and generating a second application program based on the configuration attribute indicated by the preset configuration template.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where, as shown in fig. 5, the electronic device includes: a memory 51, and a processor 52.
A memory 51 for storing a computer program.
The processor 52 is configured to read the computer program stored in the memory and execute the method of any of the above embodiments according to the computer program stored in the memory.
Fig. 6 is a block diagram of an electronic device, which may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc., according to an embodiment of the present application.
The apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the apparatus 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen between the device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 800 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
Input/output interface 812 provides an interface between processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the apparatus 800. For example, the sensor assembly 814 may detect an on/off state of the device 800, a relative positioning of the assemblies, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in position of the device 800 or one of the assemblies of the device 800, the presence or absence of user contact with the device 800, an orientation or acceleration/deceleration of the device 800, and a change in temperature of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the apparatus 800 and other devices, either in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of apparatus 800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Embodiments of the present application also provide a non-transitory computer-readable storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform the method provided by the above embodiments.
The embodiment of the application also provides a computer program product, which comprises: a computer program stored in a readable storage medium, from which at least one processor of an electronic device can read, the at least one processor executing the computer program causing the electronic device to perform the solution provided by any one of the embodiments described above.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A method for generating a mobile terminal application program, the method comprising:
responding to a user instruction, and scheduling a preset configuration template indicated by the user instruction; the user instruction is used for indicating to call the preset configuration template, the user instruction is also used for indicating to generate a first application program and a second application program, the preset configuration template is used for indicating configuration attributes, and the configuration attributes represent the generation mode of the first application program and the generation mode of the second application program;
generating a first application program and a second application program based on the configuration attribute indicated by the preset configuration template; the first application program and the second application program are configured with the same key data, the key data are used for representing service logic and service characteristics of the application program, the first application program and the second application program are configured with different custom data, and the custom data are used for representing the running environment and program functions of the application program;
Performing associated storage on the first application program and the second application program; the first application program is a test version of the mobile terminal application program, and the second application program is a production version of the mobile terminal application program.
2. The method of claim 1, wherein the configuration attributes of the preset configuration template include key configuration attributes and custom configuration attributes, the key configuration attributes include a code source attribute item, a code branch attribute item, a commit sequence number attribute item, and a base line dependent attribute item, and the custom configuration attributes include an environment attribute item and a function attribute item.
3. The method of claim 2, wherein generating the first application and the second application based on the configuration attributes indicated by the preset configuration template comprises:
performing key data configuration on the first application program and the second application program based on key configuration attributes in the preset configuration template, and generating a first middleware corresponding to the first application program and a second middleware corresponding to the second application program;
configuring test data for the first middleware according to the self-defined configuration attribute in the preset configuration template, generating the first application program, and configuring production data for the second middleware according to the self-defined configuration attribute in the preset configuration template, and generating the second application program; wherein the test data is used for characterizing the test environment and the test function, and the production data is used for characterizing the production environment and the production function.
4. The method of claim 3, wherein configuring the first application program and the second application program for key data based on key configuration attributes in the preset configuration template, and generating a first middleware corresponding to the first application program and a second middleware corresponding to the second application program, comprises:
based on the key configuration attribute in the preset configuration template, the same data between the first application program and the second application program is determined to be key data; wherein the key data includes self-developed code, dependent code, and dependent components;
and carrying out key data configuration on the first application program and the second application program according to the key data, and generating a first middleware corresponding to the first application program and a second middleware corresponding to the second application program.
5. The method of claim 3, wherein configuring test data for the first middleware according to the custom configuration attributes in the preset configuration template, generating the first application program comprises:
responding to a first operation instruction of a user, and determining test environment data and test function data corresponding to the first middleware based on a self-defined configuration attribute in a preset configuration template corresponding to the first application program; the first operation instruction of the user is used for indicating the running environment and the program function of the first application program;
Configuring test data of the first middleware according to the test environment data and the test function data, and generating the first application program;
configuring production data for the second middleware according to the self-defined configuration attribute in the preset configuration template, and generating the second application program comprises the following steps:
responding to a second operation instruction of a user, and determining production environment data and production function data corresponding to the second middleware based on the self-defined configuration attribute in a preset configuration template corresponding to the second application program; the second operation instruction of the user is used for indicating the running environment and the program function of the second application program;
and configuring production data of the first middleware according to the production environment data and the production function data, and generating the second application program.
6. The method according to claim 1, wherein the method further comprises:
program testing is carried out on the first application program, and a testing result of the first application program is determined;
if the test result is determined to represent that the first application program passes the test, acquiring the second application program associated with the first application program, and determining that the second application program is an application program to be put into production;
And if the test result is determined to indicate that the first application program fails the test, deleting the second application program associated with the first application program.
7. The method of any of claims 1-6, wherein after scheduling the preset configuration template indicated by the user instruction, the method further comprises:
creating a first thread and a second thread based on the preset configuration template; wherein the first thread and the second thread are parallel threads;
generating a first application program and a second application program based on the configuration attribute indicated by the preset configuration template, including: running the first thread, and generating the first application program based on the configuration attribute indicated by the preset configuration template; and running the second thread, and generating the second application program based on the configuration attribute indicated by the preset configuration template.
8. A device for generating a mobile terminal application program, the device comprising:
the scheduling unit is used for responding to the user instruction and scheduling a preset configuration template indicated by the user instruction; the user instruction is used for indicating to call the preset configuration template, the user instruction is also used for indicating to generate a first application program and a second application program, the preset configuration template is used for indicating configuration attributes, and the configuration attributes represent the generation mode of the first application program and the generation mode of the second application program;
The first processing unit is used for generating a first application program and a second application program based on the configuration attribute indicated by the preset configuration template; the first application program and the second application program are configured with the same key data, the key data are used for representing service logic and service characteristics of the application program, the first application program and the second application program are configured with different custom data, and the custom data are used for representing the running environment and program functions of the application program;
the storage unit is used for carrying out association storage on the first application program and the second application program; the first application program is a test version of the mobile terminal application program, and the second application program is a production version of the mobile terminal application program.
9. An electronic device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to read the computer program stored in the memory, and execute the method for generating the mobile terminal application program according to any one of claims 1 to 7 according to the computer program in the memory.
10. A computer readable storage medium, wherein computer executable instructions are stored in the computer readable storage medium, and when the processor executes the computer executable instructions, the method for generating a mobile end application program according to any one of claims 1-7 is implemented.
CN202310722983.9A 2023-06-19 2023-06-19 Method, device, equipment and medium for generating mobile terminal application program Active CN116450534B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310722983.9A CN116450534B (en) 2023-06-19 2023-06-19 Method, device, equipment and medium for generating mobile terminal application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310722983.9A CN116450534B (en) 2023-06-19 2023-06-19 Method, device, equipment and medium for generating mobile terminal application program

Publications (2)

Publication Number Publication Date
CN116450534A true CN116450534A (en) 2023-07-18
CN116450534B CN116450534B (en) 2023-08-22

Family

ID=87122406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310722983.9A Active CN116450534B (en) 2023-06-19 2023-06-19 Method, device, equipment and medium for generating mobile terminal application program

Country Status (1)

Country Link
CN (1) CN116450534B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020040469A1 (en) * 2000-06-03 2002-04-04 International Business Machines Corporation System and method for the configuration of software products
US20070168962A1 (en) * 2005-11-15 2007-07-19 Oracle International Corporation Configurable software application system
US20140359261A1 (en) * 2013-05-31 2014-12-04 Vordel Limited Environmentalization technique for promotion of application programming interface (api) server in lifecycle succession of deployments
US9003406B1 (en) * 2012-06-29 2015-04-07 Emc Corporation Environment-driven application deployment in a virtual infrastructure
US20150378703A1 (en) * 2014-06-26 2015-12-31 Vmware, Inc. Application blueprints based on service templates to deploy applications in different cloud environments
CN106933609A (en) * 2015-12-29 2017-07-07 北京五八信息技术有限公司 The generation method and device of Android application program installation kits
US20200387387A1 (en) * 2019-06-10 2020-12-10 Hitachi, Ltd. System for building, managing, deploying and executing reusable analytical solution modules for industry applications
CN114064058A (en) * 2021-11-17 2022-02-18 上海浦东发展银行股份有限公司 Program automatic publishing method and device, electronic equipment and storage medium
CN114327600A (en) * 2021-12-30 2022-04-12 上海灿谷投资管理咨询服务有限公司 All-environment integrated CICD application deployment platform
CN114579142A (en) * 2022-03-04 2022-06-03 中国建设银行股份有限公司 Dual-mode big data version deployment method, device and equipment supporting steady state and sensitive state
US20230060053A1 (en) * 2021-08-20 2023-02-23 Beijing Baidu Netcom Science Technology Co., Ltd. Method and apparatus of deploying a cluster, and storage medium
CN115857961A (en) * 2022-12-27 2023-03-28 中国电信股份有限公司 Multi-platform project unified deployment method and device
US20230177426A1 (en) * 2021-12-03 2023-06-08 International Business Machines Corporation Discovering and using application deployment dependencies to augment governance and compliance policy

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020040469A1 (en) * 2000-06-03 2002-04-04 International Business Machines Corporation System and method for the configuration of software products
US20070168962A1 (en) * 2005-11-15 2007-07-19 Oracle International Corporation Configurable software application system
US9003406B1 (en) * 2012-06-29 2015-04-07 Emc Corporation Environment-driven application deployment in a virtual infrastructure
US20140359261A1 (en) * 2013-05-31 2014-12-04 Vordel Limited Environmentalization technique for promotion of application programming interface (api) server in lifecycle succession of deployments
US20150378703A1 (en) * 2014-06-26 2015-12-31 Vmware, Inc. Application blueprints based on service templates to deploy applications in different cloud environments
CN106933609A (en) * 2015-12-29 2017-07-07 北京五八信息技术有限公司 The generation method and device of Android application program installation kits
US20200387387A1 (en) * 2019-06-10 2020-12-10 Hitachi, Ltd. System for building, managing, deploying and executing reusable analytical solution modules for industry applications
US20230060053A1 (en) * 2021-08-20 2023-02-23 Beijing Baidu Netcom Science Technology Co., Ltd. Method and apparatus of deploying a cluster, and storage medium
CN114064058A (en) * 2021-11-17 2022-02-18 上海浦东发展银行股份有限公司 Program automatic publishing method and device, electronic equipment and storage medium
US20230177426A1 (en) * 2021-12-03 2023-06-08 International Business Machines Corporation Discovering and using application deployment dependencies to augment governance and compliance policy
CN114327600A (en) * 2021-12-30 2022-04-12 上海灿谷投资管理咨询服务有限公司 All-environment integrated CICD application deployment platform
CN114579142A (en) * 2022-03-04 2022-06-03 中国建设银行股份有限公司 Dual-mode big data version deployment method, device and equipment supporting steady state and sensitive state
CN115857961A (en) * 2022-12-27 2023-03-28 中国电信股份有限公司 Multi-platform project unified deployment method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张仁津;: "应用系统集成方法探究", 贵州师范大学学报(自然科学版), no. 01 *

Also Published As

Publication number Publication date
CN116450534B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
CN111221559A (en) Application updating method and device, storage medium, terminal and server
CN107463372B (en) Data-driven page updating method and device
CN111767058A (en) Program compiling method and device, electronic equipment and storage medium
CN109684112B (en) Program file operation method, device, terminal and storage medium
CN109344051B (en) Data processing method and device, electronic equipment and storage medium
CN114741292A (en) Test script management method and device, electronic equipment and storage medium
CN113377370A (en) File processing method and device, electronic equipment and storage medium
CN106790683B (en) Network data display method and device based on mobile terminal
CN116450534B (en) Method, device, equipment and medium for generating mobile terminal application program
CN113778687B (en) Memory allocation information processing method and device, electronic equipment and storage medium
CN106354595B (en) Mobile terminal, hardware component state detection method and device
CN111338961B (en) Application debugging method and device, electronic equipment and storage medium
CN111290944B (en) Script generation method, script generation device and storage medium
CN110874143B (en) Sensor data acquisition method, intelligent terminal, storage medium and electronic equipment
CN109933357B (en) Application program upgrading method and device
CN108549570B (en) User interface updating method and device
CN108427568B (en) User interface updating method and device
CN112631695A (en) Data verification method and device, electronic equipment and storage medium
CN111597106A (en) Point burying management method and device
CN113407879A (en) Data reporting method, device and readable medium
CN111459494A (en) Code processing method and device
CN111767063A (en) Resource updating method, device and equipment for application program
CN111596949B (en) Method and device for developing application program
CN111124553B (en) Program execution method, device, terminal and storage medium
CN110851370B (en) Program testing method and device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant