CN116932033A - Component packaging method and device, electronic equipment and storage medium - Google Patents

Component packaging method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116932033A
CN116932033A CN202310909070.8A CN202310909070A CN116932033A CN 116932033 A CN116932033 A CN 116932033A CN 202310909070 A CN202310909070 A CN 202310909070A CN 116932033 A CN116932033 A CN 116932033A
Authority
CN
China
Prior art keywords
function
component
information
candidate
candidate fusion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310909070.8A
Other languages
Chinese (zh)
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.)
Shenzhen Lexin Software Technology Co Ltd
Original Assignee
Shenzhen Lexin Software Technology 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 Shenzhen Lexin Software Technology Co Ltd filed Critical Shenzhen Lexin Software Technology Co Ltd
Priority to CN202310909070.8A priority Critical patent/CN116932033A/en
Publication of CN116932033A publication Critical patent/CN116932033A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a method and a device for packaging components, electronic equipment and a storage medium. The method comprises the following steps: determining candidate fusion function information according to the function requirement information of the user; determining a target single function component from the candidate single function components according to the candidate fusion function information and the attribute information of the candidate single function components; and packaging the target single function component according to the candidate fusion function information to obtain a candidate fusion function component corresponding to the candidate fusion function information. By adopting the technical scheme of the application, the problem of abnormal compatibility among single functional components with different targets is avoided, and the packed candidate fusion functional components can stably operate in the environment required by users. By adopting the method, the components can be automatically packaged according to the requirements of users, so that the development efficiency is increased, the development period is shortened, and the stability of the packaged components is ensured.

Description

Component packaging method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of software development technologies, and in particular, to a method and apparatus for packaging components, an electronic device, and a storage medium.
Background
With the development of the software industry, the componentization development mode is widely applied, but the component development result lacks certain systematicness, component function is unknown, interface errors and even version updating are often caused, and finally, the constructed final product cannot be normally used, so that the development difficulty of software is increased. Therefore, a method capable of automating the construction of the components and preserving the attribute information of the construction components is urgently needed to improve the development efficiency and reduce the development cost.
Disclosure of Invention
The application provides a component packaging method, a device, electronic equipment and a storage medium, which are used for solving the problems that the construction of a candidate fusion function component is difficult to meet the actual requirement of a user and the constructed candidate fusion function component lacks attribute information.
According to an aspect of the present application, there is provided a component packaging method, the method comprising:
determining candidate fusion function information according to the function requirement information of the user;
determining a target single function component from the candidate single function components according to the candidate fusion function information and the attribute information of the candidate single function components;
and packaging the target single function component according to the candidate fusion function information to obtain a candidate fusion function component corresponding to the candidate fusion function.
According to another aspect of the present application, there is provided a component packaging apparatus comprising:
the fusion function determining module is used for determining candidate fusion function information according to the function requirement information of the user;
the function component determining module is used for determining a target single function component from the candidate single function components according to the candidate fusion function information and the attribute information of the candidate single function components;
and the component packaging module is used for packaging the target single functional component according to the candidate fusion function information to obtain a candidate fusion function component corresponding to the candidate fusion function information.
According to another aspect of the present application, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the component packaging method according to any one of the embodiments of the present application.
According to another aspect of the present application, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute the component packaging method according to any embodiment of the present application.
According to the technical scheme of the embodiment of the application, the candidate fusion function information is determined according to the function requirement information of the user, so that the finally determined candidate fusion function information can meet the real requirement of the user, and the target single function component is determined from the candidate single function components according to the candidate fusion function information and the attribute information of the candidate single function component, so that the determined target single function component can meet the requirement proposed by the user, the problem of abnormal compatibility among different target single function components is avoided, and the target single function components are packaged according to the candidate fusion function information to obtain the candidate fusion function component corresponding to the candidate fusion function information, so that the packaged candidate fusion function component can stably operate in the environment required by the user. By adopting the method, the components can be automatically packaged according to the requirements of users, so that the development efficiency is increased, the development period is shortened, and the stability of the packaged components is ensured.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for packaging components according to a first embodiment of the present application;
FIG. 2 is a flow chart of another method for packaging components according to a second embodiment of the present application;
FIG. 3 is a flow chart of another method for packaging components according to a third embodiment of the present application;
fig. 4 is a schematic structural view of a component packaging apparatus according to a third embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device implementing a component packaging method according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a method for packaging components according to an embodiment of the present application, where the method may be performed by a component packaging device, and the component packaging device may be implemented in hardware and/or software, and the component packaging device may be configured in an electronic device with data processing capability. As shown in fig. 1, the method includes:
s110, determining candidate fusion function information according to the function requirement information of the user.
The function requirement information may be a function required by the user and a running environment of the function required by the user, the function including but not limited to login, logoff, addition of shopping cart, etc., and the running environment includes but is not limited to IOS, android, etc.
The candidate fusion function information may be information of a function determined according to a user requirement, including, but not limited to, a candidate fusion function name, a fusion function implementation process, fusion component environment information, a data interface, and the like.
After the user puts forward the required function requirement information, the implementation process, the operation environment, the interfaces and other information required by the data operation of the required function can be determined according to the function requirement information, so that the candidate fusion function information is obtained according to the information.
And determining candidate fusion function information through the function requirement information of the user, so that the finally determined candidate fusion function information can meet the real requirement of the user.
S120, determining the target single function component from the candidate single function components according to the candidate fusion function information and the attribute information of the candidate single function components.
The candidate single-function components may be all single-function components stored in a database, where a single-function component may be a component that performs a single function, including but not limited to a login box, a login button, a password box, and the like. The attribute information of the candidate single function component may be information such as function attribute information, running environment information, data interface information, and names of the candidate single function components. The target single function component may be a single function component to achieve the user's desired function.
After the candidate fusion function information is obtained, a single function component required by realizing the function required by the user can be determined according to the information contained in the candidate fusion function information, but because the attribute information of different single function components is different, screening is also required according to the attribute information of the candidate single function component, and the target single function component meeting the function required by the user is obtained.
For example, after obtaining the candidate fusion function information a, it may be determined that a single function component having B, C and D functions is required for implementing a, but there are a plurality of single function components capable of providing B, C and D functions, so that single function components b, c, and D for implementing a are also required to be determined according to attribute information of the candidate single function components, where b, c, and D provide or jointly provide B, C and D functions required for implementing a, respectively.
The target single functional component is determined from the candidate single functional components through the candidate fusion functional information and the attribute information of the candidate single functional components, so that the determined target single functional components not only can meet the requirements set by users, but also can avoid the problem of abnormal compatibility among different target single functional components.
Optionally, the candidate fusion function information at least includes: a fusion function implementation process;
in an alternative, the packaging of the target single function component according to the candidate fusion function information may include steps A1-A2:
and A1, determining fusion configuration information corresponding to the fusion function implementation process according to the fusion function implementation process.
The fusion configuration information at least comprises a component packaging sequence.
And A2, packaging the target single-function components according to the component packaging sequence.
The fusion function implementation process may be a packaging process when packaging a single functional component. The fused configuration information may be a component packaging order of the target single function component, function attribute information, operation environment information, data interface information, and the like when the target single function component is packaged. The component packing order may be an order in which the target single component is run when packing the target single component.
After the fusion function implementation process is obtained, the fusion configuration information can be determined according to the fusion function implementation process, so that the information such as the component packaging sequence, the function attribute information, the running environment information, the data interface information and the like of the target single-function component can be obtained. After the component packaging sequence is obtained, the target single function component can be packaged according to the component packaging sequence.
Optionally, the candidate fusion function information further includes: fusing the component environment information; the attribute information of the candidate single function component includes at least function attribute information, running environment information, and data interface information.
The fusion component can be obtained by packaging a single functional component.
In an alternative, determining the target single function component from the candidate single function components according to the candidate fusion function information and the attribute information of the candidate single function components may include steps B1-B3:
and step B1, screening the candidate single functional components to obtain a first single functional component according to the fusion function implementation process and the function attribute information of the candidate single functional components.
And B2, screening the second single-function component from the first single-function component according to a matching result of the fusion component environment information and the operation environment information of the first single-function component.
And B3, screening the target single-function component from the second single-function component according to the matching result of the data interface information of the second single-function component.
The matching result is obtained by matching data interface information between the second single functional components.
The first single function component may be a single function component that can be used to implement candidate fusion function information. The second single function component may be a first single function component capable of operating normally in an environment in which the candidate fusion function information operates.
After the fusion function implementation process is obtained, the first single function component capable of realizing the candidate fusion function information in the function angle is determined through the function attribute information of the candidate single function component.
After the first single function component is obtained, the environment in which the function required by the user is required to operate is determined by using the fused component environment information, and the first single function component is screened by using the determined operating environment, so that the second single function component which can operate in the environment in which the function required by the user is required to operate is determined. After the second single functional component is obtained, in order to ensure that data can normally run in different single functional components, the second single functional component needs to be matched according to data interface information, so that different target single functional components which are finally determined can perform normal data interaction.
S130, packaging the target single function component according to the candidate fusion function information to obtain a candidate fusion function component corresponding to the candidate fusion function information.
The candidate fusion function component may be a function component that satisfies the function desired by the user.
After the candidate fusion function information is obtained, the required target single function component can be determined, so that the determined target single function component is packaged, and the candidate fusion function component meeting the required functions of the user is obtained.
And packaging the target single functional component through the candidate fusion functional information to obtain a candidate fusion functional component corresponding to the candidate fusion functional information, so that the packaged candidate fusion functional component can stably operate in an environment required by a user.
According to the technical scheme of the embodiment of the application, the candidate fusion function is determined according to the function requirement information of the user, so that the finally determined candidate fusion function can meet the real requirement of the user, the target single function component is determined from the candidate single function components according to the candidate fusion function and the attribute information of the candidate single function component, the determined target single function component can meet the requirement of the user, the problem of abnormal compatibility among different target single function components is avoided, the target single function components are packaged according to the candidate fusion function, the candidate fusion function component corresponding to the candidate fusion function is obtained, and the packaged candidate fusion function component can stably operate in the environment required by the user. By adopting the method, the components can be automatically packaged according to the requirements of users, so that the development efficiency is increased, the development period is shortened, and the stability of the packaged components is ensured.
Example two
Fig. 2 is a flowchart of another method for packaging components according to the second embodiment of the present application, where the process after the target single function component is packaged according to the candidate fusion function in the foregoing embodiment to obtain the candidate fusion function component corresponding to the candidate fusion function is further optimized on the basis of the foregoing embodiment, and the present embodiment may be combined with each of the alternatives in one or more embodiments. As shown in fig. 2, the component packaging method of the present embodiment may include the following steps:
s210, determining candidate fusion functions according to function requirement information of the user.
Optionally, before determining the candidate fusion function according to the function requirement information of the user, the method further comprises steps C1-C2:
and step C1, storing a determination process for determining the candidate fusion function component based on the function requirement information.
And step C2, if the determination process of the candidate fusion functional component is abnormal, performing rollback operation according to the stored determination process.
In determining the candidate fusion function by the function requirement information of the user, since the user may wish to re-execute a certain step, it is necessary to store the determination process of determining the candidate fusion function component based on the function requirement information, thereby saving all the processes in the process of determining the candidate fusion function. When the user wishes to re-perform a step in the step, a rollback operation may be performed using the stored information.
S220, determining the target single function component from the candidate single function components according to the candidate fusion function and the attribute information of the candidate single function components.
S230, packaging the target single function component according to the candidate fusion function to obtain a candidate fusion function component corresponding to the candidate fusion function.
S240, performing functional test on the candidate fusion function components according to the candidate fusion function.
The function test may be to test the functions that can be implemented by the candidate fusion function assembly, and determine whether the functions of the candidate fusion function assembly can be normally implemented.
After the candidate fusion function component is obtained, although the target single function component is selected in the packaging process, the problem that the candidate fusion function of the candidate fusion function component is abnormal in the running process can still occur, so that the candidate fusion function component is subjected to function test.
And carrying out functional test on the candidate fusion function components according to the candidate fusion functions, and judging whether the candidate fusion function components generated by packaging can realize the candidate fusion functions required by the user.
In one alternative, the functional testing of candidate fusion function components according to candidate fusion functions may include steps D1-D2:
and D1, performing single function test on the candidate fusion functional components according to the functional attribute information of the target single functional components.
And D2, if the candidate fusion function assembly passes the single function test, carrying out fusion function test on the candidate fusion function assembly according to the candidate fusion function.
When testing the candidate fusion functional components, in order to ensure the accuracy of test results, single function testing needs to be performed on the candidate fusion functional components first, so that the functions of the target single functional components required by the candidate fusion functional components in the packaging process can be determined to be correctly operated.
After the functions of the target single functional components required by packing can be correctly operated, fusion function tests are carried out on the candidate fusion functional components, so that whether the candidate fusion functional components can realize the candidate fusion functions required by users is judged.
And S250, if the candidate fusion function assembly passes the fusion function test, storing attribute information corresponding to the candidate fusion function assembly and the candidate fusion function assembly.
The attribute information of the corresponding candidate fusion function component at least comprises function attribute information, data interface information and fusion component environment information of the candidate fusion function component.
When the candidate fusion function assembly passes the fusion function test, the candidate fusion function assembly is indicated to be capable of realizing the requirement of the user, and at the moment, the attribute information corresponding to the candidate fusion function assembly and the candidate fusion function assembly can be stored in the database, so that the user can obtain the candidate fusion function assembly required by the user and the attribute information corresponding to the candidate fusion function assembly, and the candidate fusion function assembly can be called.
By storing the candidate fusion function components and the attribute information corresponding to the candidate fusion function components, a user can obtain the candidate fusion function components, and according to the attribute information corresponding to the candidate fusion function components, the calling mode, the running environment and other information of the candidate fusion function components are determined, so that the user can use the candidate fusion function components according to own requirements.
According to the technical scheme of the embodiment of the application, the candidate fusion function component is subjected to the function test through the candidate fusion function, so that the problem that the candidate fusion function of the candidate fusion function component is abnormal in the operation process is avoided, the candidate fusion function component can be obtained by a user through storing attribute information corresponding to the candidate fusion function component and the candidate fusion function component, and the calling mode, the operation environment and other information of the candidate fusion function component are determined according to the attribute information corresponding to the candidate fusion function component, so that the user can use the candidate fusion function component according to own requirements.
Example III
Fig. 3 is a complete flow chart of another method for packaging components according to a third embodiment of the present application, which can be combined with each of the alternatives of one or more of the above embodiments. As shown in fig. 3, the component packaging method of the present embodiment may include:
referring to fig. 3, after the user gives the function requirement information, a candidate fusion function corresponding to the function requirement information is determined. And screening target single functional components which can be used for generating the candidate fusion functional components from the stored candidate single functional components according to the candidate fusion functions. And packaging the target single functional component to generate a candidate fusion functional component, packaging the candidate fusion functional component to generate test software, performing functional test, storing the candidate fusion functional component and attribute information of the candidate fusion functional component in a corresponding database if the candidate fusion functional component passes the test, and rescreening the target single functional component and re-executing the steps if the candidate fusion functional component does not pass the functional test.
Example IV
Fig. 4 is a schematic structural diagram of a component packaging device according to a fourth embodiment of the present application. The embodiment can be applied to the situation of automatically packaging the components according to the requirements of users. The component packaging apparatus may be implemented in hardware and/or software, and may be configured in an electronic device having data processing capabilities. As shown in fig. 4, the component packaging apparatus of the present embodiment may include: a fusion function determination module 310, a function component determination module 320, and a component packaging module 330.
Wherein:
a fusion function determining module 310, configured to determine candidate fusion functions according to the function requirement information of the user;
a functional component determining module 320 for determining a target single functional component from the candidate single functional components according to the candidate fusion function and the attribute information of the candidate single functional component
And the component packaging module 330 is configured to package the target single function component according to the candidate fusion function, so as to obtain a candidate fusion function component corresponding to the candidate fusion function.
Based on the above embodiment, optionally, at least the candidate fusion functions in the fusion function determining module 310 include: a fusion function implementation process;
based on the above embodiment, optionally, the functional component determining module 320 includes:
the configuration information determining unit is used for determining fusion configuration information corresponding to the fusion function implementation process according to the fusion function implementation process; the fusion configuration information at least comprises a component packaging sequence;
and the single component packaging unit is used for packaging the target single functional components according to the component packaging sequence.
On the basis of the above embodiment, optionally, the candidate fusion function further includes: fusing the component environment information; the attribute information of the candidate single functional component at least comprises functional attribute information, running environment information and data interface information;
based on the above embodiment, optionally, the functional component determining module 320 includes:
the first component screening unit is used for screening the candidate single functional components to obtain first single functional components according to the fusion function implementation process and the function attribute information of the candidate single functional components;
the second component screening unit is used for screening the second single-function component from the first single-function component according to the matching result of the fusion component environment information and the operation environment information of the first single-function component;
and the target component screening unit is used for screening the target single-function component from the second single-function component according to the matching result of the data interface information of the second single-function component.
On the basis of the above embodiment, optionally, after the component packaging module 330, the apparatus further includes:
and the function test module is used for carrying out function test on the candidate fusion function components according to the candidate fusion function.
On the basis of the above embodiment, optionally, the functional test module includes:
the single function testing unit is used for carrying out single function testing on the candidate fusion functional components according to the functional attribute information of the target single functional component;
and the fusion function test unit is used for carrying out fusion function test on the candidate fusion function components according to the candidate fusion function if the candidate fusion function components pass the single function test.
On the basis of the above embodiment, optionally, after the functional test module, the apparatus further includes:
the fusion component storage module is used for storing the attribute information corresponding to the candidate fusion functional components if the candidate fusion functional components pass the fusion functional test;
the attribute information of the corresponding candidate fusion function component at least comprises function attribute information, data interface information and fusion component environment information of the candidate fusion function component.
Optionally, on the basis of the above embodiment, before the fusion function determining module 310, the apparatus further includes:
a process storage module for storing a determination process of determining the candidate fusion function component based on the function requirement information;
and the rollback operation module is used for performing rollback operation according to the stored determination process if the determination process of the candidate fusion function component is abnormal.
The component packaging device provided by the embodiment of the application can execute the component packaging method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 5 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the applications described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the component packaging method.
In some embodiments, the component packaging method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. One or more of the steps of the component packaging method described above may be performed when the computer program is loaded into RAM 13 and executed by processor 11. Alternatively, in other embodiments, the processor 11 may be configured to perform the component packaging method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present application, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present application are achieved, and the present application is not limited herein.
The above embodiments do not limit the scope of the present application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of the present application.

Claims (10)

1. A method of packaging components, comprising:
determining candidate fusion function information according to the function requirement information of the user;
determining a target single function component from the candidate single function components according to the candidate fusion function information and the attribute information of the candidate single function components;
packaging the target single function component according to the candidate fusion function information to obtain a candidate fusion function component corresponding to the candidate fusion function information;
the function requirement information at least comprises function information and operation environment information of components required by a user.
2. The method according to claim 1, wherein the candidate fusion function information at least includes: a fusion function implementation process;
packaging the target single function component according to the candidate fusion function information, including:
determining fusion configuration information corresponding to the fusion function implementation process according to the fusion function implementation process; the fusion configuration information at least comprises a component packaging sequence;
and packaging the target single-function components according to the component packaging sequence.
3. The method according to claim 2, wherein the candidate fusion function information further includes: fusing the component environment information; the attribute information of the candidate single functional component at least comprises functional attribute information, running environment information and data interface information;
determining a target single function component from the candidate single function components according to the candidate fusion function information and the attribute information of the candidate single function components, wherein the method comprises the following steps:
screening the candidate single function components to obtain a first single function component according to the fusion function implementation process and the function attribute information of the candidate single function components;
screening a second single function component from the first single function component according to the matching result of the fusion component environment information and the operation environment information of the first single function component;
screening the second single functional component to obtain a target single functional component according to a matching result of the data interface information of the second single functional component;
and the matching result is obtained by matching the data interface information between the second single functional components.
4. The method of claim 1, wherein after obtaining the candidate fusion function component corresponding to the candidate fusion function information, the method further comprises:
and carrying out functional test on the candidate fusion function component according to the candidate fusion function information.
5. The method of claim 4, wherein performing a functional test on the candidate fusion function component based on the candidate fusion function information comprises:
according to the function attribute information of the target single-function component, single-function testing is carried out on the candidate fusion function component;
and if the candidate fusion function component passes the single function test, carrying out fusion function test on the candidate fusion function component according to the candidate fusion function information.
6. The method of claim 4 or 5, wherein after said functionally testing said candidate fusion function component according to said candidate fusion function information, said method further comprises:
if the candidate fusion function component passes the fusion function test, storing attribute information corresponding to the candidate fusion function component and the candidate fusion function component;
the attribute information corresponding to the candidate fusion function component at least comprises function attribute information, data interface information and fusion component environment information of the candidate fusion function component.
7. The method of claim 1, wherein prior to said determining candidate fusion function information based on the function requirement information of the user, the method further comprises:
storing a determination process of determining the candidate fusion function component based on the function requirement information;
and if the determination process of the candidate fusion functional component is abnormal, performing rollback operation according to the stored determination process.
8. A component packaging apparatus, comprising:
the fusion function determining module is used for determining candidate fusion function information according to the function requirement information of the user;
the function component determining module is used for determining a target single function component from the candidate single function components according to the candidate fusion function information and the attribute information of the candidate single function components;
the component packaging module is used for packaging the target single functional component according to the candidate fusion function information to obtain a candidate fusion function component corresponding to the candidate fusion function information;
the function requirement information at least comprises function information and operation environment information of components required by a user.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the component packaging method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the component packaging method of any one of claims 1-7 when executed.
CN202310909070.8A 2023-07-21 2023-07-21 Component packaging method and device, electronic equipment and storage medium Pending CN116932033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310909070.8A CN116932033A (en) 2023-07-21 2023-07-21 Component packaging method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310909070.8A CN116932033A (en) 2023-07-21 2023-07-21 Component packaging method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116932033A true CN116932033A (en) 2023-10-24

Family

ID=88376922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310909070.8A Pending CN116932033A (en) 2023-07-21 2023-07-21 Component packaging method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116932033A (en)

Similar Documents

Publication Publication Date Title
CN115598505A (en) Chip detection method, device, equipment and storage medium
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN114417780A (en) State synchronization method and device, electronic equipment and storage medium
CN116467161A (en) Application testing method and device, electronic equipment and storage medium
CN116932033A (en) Component packaging method and device, electronic equipment and storage medium
CN116629810B (en) Operation recommendation method, device, equipment and medium based on building office system
CN113836291B (en) Data processing method, device, equipment and storage medium
CN116991737A (en) Software testing method, system, electronic equipment and storage medium
CN115374010A (en) Function testing method, device, equipment and storage medium
CN117806702A (en) Target software acquisition method and device, electronic equipment and storage medium
CN116991825A (en) Database flashback method, device, equipment and storage medium
CN114996157A (en) Method, device, equipment and storage medium for identifying risk of changing code
CN118193389A (en) Test case generation method, device, equipment, storage medium and product
CN117609064A (en) Unit test method and device, electronic equipment and storage medium
CN116188107A (en) Test order generation method, device, equipment and storage medium
CN117829755A (en) Data processing method, device, equipment and storage medium
CN117951031A (en) Graphic interface automatic test method, graphic interface automatic test device, electronic equipment and medium
CN117609086A (en) Method and device for determining test content, electronic equipment and storage medium
CN117061564A (en) Verification method, device, equipment and medium for vehicle signal transmission state
CN117435503A (en) Test tool generation method, test device, test equipment and test medium
CN117520195A (en) Method, apparatus, device, storage medium and program product for testing interface
CN117609065A (en) Code submitting method and device based on version control tool and electronic equipment
CN117171214A (en) Database information comparison method and device, electronic equipment and storage medium
CN115061664A (en) Object conversion method and device, electronic equipment and storage medium
CN115983222A (en) EasyExcel-based file data reading method, device, equipment and 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