Function release method and device, computer equipment, storage medium and program product
Through automated testing and deployment processes, the problems of low functional testing and deployment efficiency in traditional technologies have been solved, and the rapid and accurate deployment of function items is achieved.
Patent Information
- Application Number
- CN202411485420.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2025-01-28
AI Technical Summary
In traditional technology, the efficiency of functional item testing is low, resulting in the efficiency of functional item deployment.
Provide a function release method, including testing the functional units of the target function, generate packaging files and deploy to the operating environment. This method improves the testing and deployment efficiency of functional items through automated testing and deployment processes.
Through automated testing and deployment processes, the efficiency of functional testing and deployment has been significantly improved to ensure the accuracy and rapid deployment of functional items.
Smart Images

Figure CN119376742A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a function publishing method, apparatus, computer equipment, storage medium and program product. Background Art
[0002] The developed functional items refer to the functional components that are developed based on business requirements and can realize specific business functions. The accuracy of the functional items needs to be tested during the development and deployment process.
[0003] In traditional technologies, manual testing of functional items is usually required, which leads to low efficiency in functional item testing, which in turn leads to low efficiency in functional item deployment. Summary of the invention
[0004] Based on this, it is necessary to provide a function release method, apparatus, computer equipment, storage medium and program product to address the above technical problems, which can improve the efficiency of function item testing and thus improve the efficiency of function item deployment.
[0005] In a first aspect, the present application provides a function publishing method, the method comprising:
[0006] In response to a test request for a target functional item, each functional unit corresponding to the target functional item is tested to obtain a test result;
[0007] In the case where the test result is passed, in response to a selection operation on a data element of the target function item, generating a packaging file according to the selected data element; wherein the data element includes at least a data set, a functional unit and a data model;
[0008] In response to a publishing operation on the packaged file, the packaged file is deployed to a running environment.
[0009] In one embodiment, the testing of each functional unit corresponding to the target functional item to obtain a test result includes:
[0010] Determine preset rules for testing the target functional items; wherein the preset rules include unit test rules and integration test rules;
[0011] Testing each functional unit corresponding to the target functional item according to the unit test rules to obtain a unit test result, and testing each functional unit combination according to the integration test rules to obtain an integration test result;
[0012] The unit test result and the integration test result are used as the test result.
[0013] In one embodiment, testing each functional unit corresponding to the target functional item according to the unit testing rule to obtain the unit testing result includes:
[0014] According to the unit test rules, the codes corresponding to the functional units corresponding to the target functional items are tested to see whether they are accurate, and the unit test results are obtained.
[0015] In one embodiment, testing each functional unit combination according to the integration test rules to obtain the integration test results includes:
[0016] According to the integration test rules, test whether the business logic corresponding to each functional unit combination is accurate, whether the interface is displayed normally, and whether the response speed reaches the preset speed threshold to obtain the integration test results.
[0017] In one embodiment, the method further comprises:
[0018] In response to a development request for a function item to be developed, displaying a development interface for the function item to be developed;
[0019] In response to an information input operation on the development interface, obtaining basic function item information of the function item to be developed;
[0020] Display member management operation interface;
[0021] In response to an information entry operation on the member management operation interface, obtaining member management information of the function item to be developed;
[0022] Display the task interface;
[0023] In response to an information input operation on the task interface, acquiring task information of the function item to be developed;
[0024] A target function item is generated based on the basic function item information, member management information and task information.
[0025] In one embodiment, deploying the packaged file to the operating environment includes:
[0026] According to the data set, the functional unit and the data model in the packaged file, an association relationship between the data set and the data model is established, and an execution order of each functional unit is established;
[0027] Based on the association relationship between the data set and the data model and the execution order of the functional units, the target functional item is constructed in the operating environment.
[0028] In a second aspect, the present application further provides a function publishing device, the device comprising:
[0029] A test module, configured to respond to a test request for a target function item, test each functional unit corresponding to the target function item, and obtain a test result;
[0030] A generating module, configured to generate a packaging file according to the selected data elements in response to a selection operation on the data elements of the target function item when the test result is passed; wherein the data elements at least include a data set, a functional unit and a data model;
[0031] The deployment module is used to deploy the packaged file into the running environment in response to the publishing operation on the packaged file.
[0032] In a third aspect, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:
[0033] In response to a test request for a target functional item, each functional unit corresponding to the target functional item is tested to obtain a test result;
[0034] In the case where the test result is passed, in response to a selection operation on a data element of the target function item, generating a packaging file according to the selected data element; wherein the data element includes at least a data set, a functional unit and a data model;
[0035] In response to a publishing operation on the packaged file, the packaged file is deployed to a running environment.
[0036] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0037] In response to a test request for a target functional item, each functional unit corresponding to the target functional item is tested to obtain a test result;
[0038] In the case where the test result is passed, in response to a selection operation on a data element of the target function item, generating a packaging file according to the selected data element; wherein the data element includes at least a data set, a functional unit and a data model;
[0039] In response to a publishing operation on the packaged file, the packaged file is deployed to a running environment.
[0040] In a fifth aspect, the present application further provides a computer program product, the computer program product comprising a computer program, which implements the following steps when executed by a processor:
[0041] In response to a test request for a target functional item, each functional unit corresponding to the target functional item is tested to obtain a test result;
[0042] In the case where the test result is passed, in response to a selection operation on a data element of the target function item, generating a packaging file according to the selected data element; wherein the data element includes at least a data set, a functional unit and a data model;
[0043] In response to a publishing operation on the packaged file, the packaged file is deployed to a running environment.
[0044] The function publishing method, apparatus, computer equipment, storage medium and program product described above, in response to a test request for a target function item, tests each functional unit corresponding to the target function item to obtain a test result; in the case where the test result is passed, in response to a selection operation of a data element of the target function item, generates a package file according to the selected data element; wherein the data element includes at least a data set, a functional unit and a data model; further in response to a publishing operation for the package file, deploys the package file to the operating environment. The above scheme automatically tests the target function item when the target function item is developed; and in the case where the test passes, supports flexible selection of data elements, and automatically completes the deployment of the package file in the operating environment, thereby improving the efficiency of function item testing, and thus improving the efficiency of function item deployment. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A schematic diagram of a flow chart of a function publishing method in an embodiment;
[0046] Figure 2 A schematic diagram of a flow chart for testing each functional unit of a target functional item in an embodiment;
[0047] Figure 3 A schematic diagram of a process for developing a target function item in an embodiment;
[0048] Figure 4 A schematic diagram of a process for deploying a packaged file to a running environment in an embodiment;
[0049] Figure 5 A flowchart of another function publishing method in one embodiment;
[0050] Figure 6 It is a structural block diagram of a function publishing device in an embodiment;
[0051] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0053] The function publishing method provided in the embodiment of the present application can be applied to the target function items of developing, testing and publishing function items. The method can be executed by a server or by a terminal device with a certain computing power. Among them, the server can be implemented as an independent server or a server cluster composed of multiple servers. The terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc.
[0054] In one embodiment, Figure 1 As shown, a function publishing method is provided, which is described by taking the method applied to a server as an example, and includes the following steps:
[0055] S101, in response to a test request for a target function item, testing each functional unit corresponding to the target function item to obtain a test result.
[0056] For example, when the user has developed the target function item based on specific business requirements, a test request for the target function item will be initiated to test whether the target function item meets the requirements. The target function item can be understood as a component or component set that implements a specific business function; a specific business function can be, for example, querying the amount of electricity used in each province, prefecture, or county, or exporting data on abnormal power outages, etc.
[0057] Then, in response to the test request for the target functional item, each functional unit corresponding to the target functional item is automatically tested, for example, to test whether each functional unit operates normally and whether it can achieve the expected function, and obtain the test result.
[0058] S102: When the test result is passed, in response to a selection operation on a data element of a target function item, a packaging file is generated according to the selected data element.
[0059] For example, if the test result is passed, it means that each functional unit can operate normally and can achieve the expected function, and then it means that the target functional item can achieve the expected business function. In this case, the data elements of the target functional item can be automatically determined, wherein the data elements at least include data sets, functional units and data models.
[0060] Among them, the data set can be understood as a data set used for analysis, processing or learning, and the data set can include raw data, preprocessed data or data for specific analysis purposes. In the target functional item, the data set can be the basic data used to train models, test algorithms or perform data analysis. Functional units can include components and analysis units, among which components can be understood as independent, reusable software units used to build various functional items. Components can be algorithms, functional modules, interface elements or any other code fragments or tools that can be used to build functional items; analysis unit blocks can be understood as code or logic blocks used to perform specific analysis tasks, which can include steps such as data preprocessing, feature extraction, model training or prediction, and can specifically be algorithms or processes used to analyze specific aspects of data sets (such as trend analysis, anomaly detection, etc.).
[0061] Furthermore, in response to the selection operation of the data element of the target function item, a package file is generated according to the selected data element. For example, the selected data element can be packaged into a JSON file through a preset Java program.
[0062] S103, in response to the publishing operation on the packaged file, deploying the packaged file to the running environment.
[0063] Furthermore, the user can trigger a publishing operation for the packaged file in the publishing interface, and the server automatically deploys the packaged file to the running environment in response to the publishing operation for the packaged file.
[0064] The above function publishing method, in response to the test request for the target function item, tests each functional unit corresponding to the target function item to obtain the test result; in the case of passing the test result, in response to the selection operation of the data element of the target function item, generates a package file according to the selected data element; wherein the data element at least includes a data set, a functional unit and a data model; further in response to the publishing operation for the package file, deploys the package file to the operating environment. The above scheme, in the case of developing the target function item, automatically tests the target function item; and in the case of passing the test, supports flexible selection of data elements, and automatically completes the deployment of the package file in the operating environment, which improves the efficiency of function item testing, and further improves the efficiency of function item deployment.
[0065] In some optional implementations, see Figure 2 , Figure 2 A flow chart of testing each functional unit corresponding to a target functional item is provided, which specifically includes the following steps:
[0066] S201, determining a preset rule for testing a target function item.
[0067] Exemplarily, test cases and preset rules for testing target functional items can be pre-written, wherein the preset rules include unit test rules and integration test rules; the test cases are used to perform unit tests on each functional unit and integration tests on the combination of each functional unit.
[0068] Optionally, a preset rule for testing the target functional item may be determined based on the identification of each test case and each preset rule, as well as the identification of the target functional item.
[0069] S202, testing each functional unit corresponding to the target functional item according to the unit test rule to obtain the unit test result, and testing each functional unit combination according to the integration test rule to obtain the integration test result.
[0070] Furthermore, each functional unit corresponding to the target functional item can be tested according to the unit test rules to determine whether each functional unit is operating normally and whether each functional unit can achieve the expected unit function, thereby obtaining the unit test results. And each functional unit combination can be tested according to the integration test rules to obtain the integration test results, thereby determining whether the combination of each functional unit can be successfully executed and whether the expected combination function can be achieved.
[0071] S203, taking the unit test results and the integration test results as test results.
[0072] Furthermore, the unit test results and integration test results can be used as test results.
[0073] In the embodiment of the present application, by performing individual tests and integrated tests on each functional unit, the determined test results can be made more comprehensive and reliable, so as to improve the accuracy of the target functional items.
[0074] Furthermore, in the above embodiment, testing each functional unit corresponding to the target functional item according to the unit testing rule can be implemented in the following manner:
[0075] For example, the code corresponding to each functional unit corresponding to the target functional item can be tested according to the unit test rules to determine whether it is accurate, thereby obtaining the unit test results, so as to determine whether each functional unit can operate normally and achieve the expected unit function.
[0076] In the embodiment of the present application, the code corresponding to each functional unit is tested to determine whether each functional unit can operate normally and achieve the expected unit function, so as to determine whether the target functional item meets the requirements.
[0077] Furthermore, in the above embodiment, testing each functional unit combination according to the integrated test rules can be achieved in the following ways:
[0078] For example, the integration test results can be obtained by testing whether the business logic corresponding to each functional unit combination is accurate, whether the interface is displayed normally, and whether the response speed reaches the preset speed threshold according to the integration test rules. In this way, it can be determined whether each functional unit combination can achieve the expected business logic, and whether the page is zoomed to ensure that the webpage can be displayed and function normally at any zoom level that the user may adjust; and whether the response speed meets the expected requirements.
[0079] In an embodiment of the present application, each functional unit combination is tested to determine whether the functional unit combination can implement the expected business logic, whether the interface can be displayed normally, and whether the response speed meets the expected requirements, so as to determine whether the target functional item meets the requirements.
[0080] In some optional implementations, see Figure 3 , Figure 3 A flowchart of developing a target function item is provided, which specifically includes the following steps:
[0081] S301, in response to a development request for a function item to be developed, displaying a development interface for the function item to be developed.
[0082] Exemplarily, when a user wants to develop a function item, a new function to be developed will be first created in the operation interface. Based on this, the server responds to the development request for the function item to be developed and can display the development interface for the function item to be developed to the user.
[0083] S302, in response to the information input operation on the development interface, obtaining basic function item information of the function item to be developed.
[0084] Exemplarily, the basic information items of the function to be developed that need to be entered can be displayed on the development interface of the function item to be developed, for example, the basic information items can include the function item name, construction unit, business domain, function category, development mode, team and function item description, etc. The user can enter the basic information items of the function to be developed on the development interface, and then the server responds to the information entry operation on the development interface to obtain the basic function item information of the function item to be developed.
[0085] S303, displaying the member management operation interface.
[0086] Furthermore, after obtaining the basic function item information of the function item to be developed, the member management operation interface will be displayed to the user; the member management operation interface is used to support the administrator to add team members and assign tasks to members. For example, if the member role is a data developer, the corresponding task of the data developer is responsible for the data development of the function item; if the member role is a visualization developer, the corresponding task of the visualization developer is responsible for interface display development, which is specifically implemented through business intelligence (BI) tools or code.
[0087] S304, in response to the information input operation on the member management operation interface, obtaining member management information of the function item to be developed.
[0088] Exemplarily, a user may input member management information in the member management operation interface, and then the server obtains the member management information of the function item to be developed in response to the information input operation performed on the member management operation interface.
[0089] S305: Display the task interface.
[0090] Furthermore, after obtaining the member management information of the function item to be developed, the task interface is displayed to the user, wherein the task interface can display the tasks and task progress corresponding to each member, and support users to add task completion date, task requirements, task description and other information.
[0091] S306: In response to the information input operation performed on the task interface, task information of the function item to be developed is obtained.
[0092] Then the user can enter task information such as task completion date, task requirements, task description, etc. on the task interface, and then the server responds to the information entry operation on the task interface and obtains the task information of the function item to be developed.
[0093] S307, generating target function items based on basic function item information, member management information and task information.
[0094] Optionally, the server automatically generates target function items based on basic function item information, member management information and task information to facilitate target function item testing.
[0095] In an embodiment of the present application, a development interface, a member management operation interface and a task interface are provided, so that the user can input corresponding information in the above interfaces to automatically generate target function items.
[0096] In some optional implementations, see Figure 4 , Figure 4 A flowchart of deploying a packaged file to a running environment is provided, which specifically includes the following steps:
[0097] S401, establishing an association relationship between the data set and the data model, and establishing an execution order of each functional unit according to the data set, the functional unit and the data model in the packaging file.
[0098] Exemplarily, based on the data sets, functional units and data models in the packaged files, continuous integration and continuous deployment GitLab Continuous Integration / Continuous Deployment, CI / CD tools can be used to establish the association relationship between the data sets and the data models, as well as the execution order of each functional unit.
[0099] S402, constructing a target function item in the running environment based on the association relationship between the data set and the data model and the execution order of each functional unit.
[0100] Furthermore, CI / CD tools can be used to build target functional items in the operating environment based on the association between data sets and data models and the execution order of each functional unit. The operating environment is a user-oriented application environment. In this way, the release process is more efficient through automated tools, and the development state and the operating state can be clearly distinguished to ensure the consistency and security of data when switching between different environments.
[0101] In some optional implementations, see Figure 5 , Figure 5 A flowchart of another function release method is provided, which specifically includes the following steps:
[0102] S501 , in response to a development request for a function item to be developed, displaying a development interface for the function item to be developed.
[0103] S502: In response to an information input operation performed on a development interface, basic function item information of a function item to be developed is obtained.
[0104] S503, displaying the member management operation interface.
[0105] S504, in response to the information input operation on the member management operation interface, obtaining member management information of the function item to be developed.
[0106] S505: Display the task interface.
[0107] S506: In response to the information input operation performed on the task interface, task information of the function item to be developed is obtained.
[0108] S507, generating target function items based on basic function item information, member management information and task information.
[0109] S508: Determine a preset rule for testing the target function item.
[0110] S509, testing whether the codes corresponding to the functional units corresponding to the target functional items are accurate according to the unit testing rules, and obtaining the unit testing results.
[0111] S510, according to the integration test rules, test whether the business logic corresponding to each functional unit combination is accurate, whether the interface is displayed normally, and whether the response speed reaches a preset speed threshold, and obtain the integration test result.
[0112] S511, when both the unit test results and the integration test results are passed, in response to a selection operation on a data element of a target function item, a packaging file is generated according to the selected data element.
[0113] S512, establishing an association relationship between the data set and the data model, and establishing an execution order of each functional unit according to the data set, the functional unit and the data model in the packaged file.
[0114] S513, constructing a target function item in the running environment based on the association relationship between the data set and the data model and the execution order of each functional unit.
[0115] In short, the function publishing method provided in the embodiment of the present application can be summarized into the following steps:
[0116] Step 1: Development state creation and testing:
[0117] Create target functional items in the development environment and implement the required business functions.
[0118] Conduct comprehensive testing on the developed target functional items to ensure that their functions are correct and meet performance and user experience requirements.
[0119] Step 2: Submit for review:
[0120] After development is completed, the functional items are submitted to the review process and await evaluation by the reviewer.
[0121] Auditors check whether the published functional items, content, user interface, response efficiency, etc. meet the established standards.
[0122] Step 3: Review process:
[0123] Reviewers conduct a detailed examination of the submitted content, including but not limited to evaluation of business logic, user interface (UI) design, response speed, etc.
[0124] After confirming that the content of the functional item release meets expectations, the reviewer will give a pass.
[0125] Step 4: Release the running state:
[0126] After review and approval, developers can release the function item to the operating environment.
[0127] During the publishing process, you can select specific data elements such as data sets, components, analysis units, and analysis models.
[0128] The selected data elements are packaged into a JSON file through a Java program and synchronized from the development environment to the runtime environment.
[0129] Step 5: Confirm deployment:
[0130] Auditors confirm the final deployment results in the operating environment.
[0131] After clicking Confirm Deployment, the entire release process is completed and the target functional items of the new version are launched.
[0132] The specific process of S501-S513 can refer to the description of the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0133] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0134] Based on the same inventive concept, the embodiment of the present application also provides a function publishing device for implementing the function publishing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more function publishing device embodiments provided below can refer to the limitations on the function publishing method above, and will not be repeated here.
[0135] In one embodiment, Figure 6 As shown, a function publishing device is provided, comprising:
[0136] The test module 10 is used to test each functional unit corresponding to the target functional item in response to a test request for the target functional item and obtain a test result;
[0137] A generating module 20, configured to generate a packaging file according to the selected data elements in response to a selection operation on the data elements of the target function item when the test result is passed; wherein the data elements at least include a data set, a functional unit and a data model;
[0138] The deployment module 30 is used to deploy the packaged file into the running environment in response to the publishing operation on the packaged file.
[0139] In one embodiment, the test module 10 specifically includes:
[0140] A first determining unit, used to determine a preset rule for testing the target function item; wherein the preset rule includes a unit test rule and an integrated test rule;
[0141] A test unit, used to test each functional unit corresponding to the target functional item according to the unit test rules to obtain a unit test result, and to test each functional unit combination according to the integration test rules to obtain an integration test result;
[0142] The second determining unit is used to use the unit test result and the integration test result as the test result.
[0143] In one embodiment, the testing unit is specifically used for:
[0144] According to the unit test rules, the codes corresponding to the functional units corresponding to the target functional items are tested to see whether they are accurate, and the unit test results are obtained.
[0145] In one embodiment, the testing unit is specifically used for:
[0146] According to the integration test rules, test whether the business logic corresponding to each functional unit combination is accurate, whether the interface is displayed normally, and whether the response speed reaches the preset speed threshold to obtain the integration test results.
[0147] In one embodiment, the device further comprises a development module for:
[0148] In response to a development request for a function item to be developed, a development interface for the function item to be developed is displayed; in response to an information entry operation on the development interface, basic function item information of the function item to be developed is obtained; a member management operation interface is displayed; in response to an information entry operation on the member management operation interface, member management information of the function item to be developed is obtained; a task interface is displayed; in response to an information entry operation on the task interface, task information of the function item to be developed is obtained; and a target function item is generated based on the basic function item information, member management information and task information.
[0149] In one embodiment, the deployment module 30 is specifically used to:
[0150] According to the data set, functional unit and data model in the packaging file, an association relationship between the data set and the data model is established, as well as an execution order of each functional unit; based on the association relationship between the data set and the data model and the execution order of each functional unit, the target functional item is constructed in the operating environment.
[0151] Each module in the above function publishing device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module above.
[0152] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store development data, test data and release data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a function release method is implemented.
[0153] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0154] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0155] In response to a test request for a target functional item, each functional unit corresponding to the target functional item is tested to obtain a test result;
[0156] If the test result is passed, in response to a selection operation on a data element of a target function item, a packaging file is generated according to the selected data element; wherein the data element includes at least a data set, a function unit and a data model;
[0157] In response to a publishing operation on the packaged file, the packaged file is deployed to the running environment.
[0158] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0159] Determine preset rules for testing the target functional items; wherein the preset rules include unit test rules and integration test rules; test each functional unit corresponding to the target functional item according to the unit test rules to obtain unit test results, and test each combination of functional units according to the integration test rules to obtain integration test results; use the unit test results and the integration test results as test results.
[0160] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0161] According to the unit test rules, test whether the codes corresponding to each functional unit corresponding to the target functional item are accurate to obtain the unit test results.
[0162] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0163] According to the integration test rules, test whether the business logic corresponding to each functional unit combination is accurate, whether the interface is displayed normally, and whether the response speed reaches the preset speed threshold to obtain the integration test results.
[0164] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0165] In response to a development request for a function item to be developed, a development interface for the function item to be developed is displayed; in response to an information entry operation on the development interface, basic function item information of the function item to be developed is obtained; a member management operation interface is displayed; in response to an information entry operation on the member management operation interface, member management information of the function item to be developed is obtained; a task interface is displayed; in response to an information entry operation on the task interface, task information of the function item to be developed is obtained; and a target function item is generated based on the basic function item information, member management information and task information.
[0166] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0167] According to the data sets, functional units and data models in the packaging file, the association relationship between the data sets and the data models is established, as well as the execution order of each functional unit; based on the association relationship between the data sets and the data models and the execution order of each functional unit, the target functional items are constructed in the operating environment.
[0168] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0169] In response to a test request for a target functional item, each functional unit corresponding to the target functional item is tested to obtain a test result;
[0170] In the case where the test result is passed, in response to a selection operation of a data element of the target function item, a packaging file is generated according to the selected data element; wherein the data element includes at least a data set, a functional unit and a data model;
[0171] In response to a publishing operation on the packaged file, the packaged file is deployed to the running environment.
[0172] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0173] Determine preset rules for testing the target functional items; wherein the preset rules include unit test rules and integration test rules; test each functional unit corresponding to the target functional item according to the unit test rules to obtain unit test results, and test each combination of functional units according to the integration test rules to obtain integration test results; use the unit test results and the integration test results as test results.
[0174] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0175] According to the unit test rules, test whether the codes corresponding to each functional unit corresponding to the target functional item are accurate to obtain the unit test results.
[0176] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0177] According to the integration test rules, test whether the business logic corresponding to each functional unit combination is accurate, whether the interface is displayed normally, and whether the response speed reaches the preset speed threshold to obtain the integration test results.
[0178] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0179] In response to a development request for a function item to be developed, a development interface for the function item to be developed is displayed; in response to an information entry operation on the development interface, basic function item information of the function item to be developed is obtained; a member management operation interface is displayed; in response to an information entry operation on the member management operation interface, member management information of the function item to be developed is obtained; a task interface is displayed; in response to an information entry operation on the task interface, task information of the function item to be developed is obtained; and a target function item is generated based on the basic function item information, member management information and task information.
[0180] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0181] According to the data sets, functional units and data models in the packaging file, the association relationship between the data sets and the data models is established, as well as the execution order of each functional unit; based on the association relationship between the data sets and the data models and the execution order of each functional unit, the target functional items are constructed in the operating environment.
[0182] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0183] In response to a test request for a target functional item, each functional unit corresponding to the target functional item is tested to obtain a test result;
[0184] In the case where the test result is passed, in response to a selection operation of a data element of the target function item, a packaging file is generated according to the selected data element; wherein the data element includes at least a data set, a functional unit and a data model;
[0185] In response to a publishing operation on the packaged file, the packaged file is deployed to the running environment.
[0186] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0187] Determine preset rules for testing the target functional items; wherein the preset rules include unit test rules and integration test rules; test each functional unit corresponding to the target functional item according to the unit test rules to obtain unit test results, and test each combination of functional units according to the integration test rules to obtain integration test results; use the unit test results and the integration test results as test results.
[0188] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0189] According to the unit test rules, test whether the codes corresponding to each functional unit corresponding to the target functional item are accurate to obtain the unit test results.
[0190] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0191] According to the integration test rules, test whether the business logic corresponding to each functional unit combination is accurate, whether the interface is displayed normally, and whether the response speed reaches the preset speed threshold to obtain the integration test results.
[0192] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0193] In response to a development request for a function item to be developed, a development interface for the function item to be developed is displayed; in response to an information entry operation on the development interface, basic function item information of the function item to be developed is obtained; a member management operation interface is displayed; in response to an information entry operation on the member management operation interface, member management information of the function item to be developed is obtained; a task interface is displayed; in response to an information entry operation on the task interface, task information of the function item to be developed is obtained; and a target function item is generated based on the basic function item information, member management information and task information.
[0194] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0195] According to the data sets, functional units and data models in the packaging file, the association relationship between the data sets and the data models is established, as well as the execution order of each functional unit; based on the association relationship between the data sets and the data models and the execution order of each functional unit, the target functional items are constructed in the operating environment.
[0196] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0197] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0198] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0199] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A function publishing method, characterized in that: The method comprises: In response to a test request for a target functional item, each functional unit corresponding to the target functional item is tested to obtain a test result; In the case where the test result is passed, in response to a selection operation on a data element of the target function item, generating a packaging file according to the selected data element; wherein the data element includes at least a data set, a functional unit and a data model; In response to a publishing operation on the packaged file, the packaged file is deployed to a running environment.
2. The method according to claim 1, characterized in that The testing of each functional unit corresponding to the target functional item to obtain a test result includes: Determine preset rules for testing the target functional items; wherein the preset rules include unit test rules and integration test rules; Testing each functional unit corresponding to the target functional item according to the unit test rules to obtain a unit test result, and testing each functional unit combination according to the integration test rules to obtain an integration test result; The unit test result and the integration test result are used as the test result.
3. The method according to claim 2, characterized in that The step of testing each functional unit corresponding to the target functional item according to the unit testing rules to obtain a unit testing result includes: According to the unit test rules, the codes corresponding to the functional units corresponding to the target functional items are tested to see whether they are accurate, and the unit test results are obtained.
4. The method according to claim 2, characterized in that: The test is performed on each functional unit combination according to the integrated test rules to obtain the integrated test results, including: According to the integration test rules, test whether the business logic corresponding to each functional unit combination is accurate, whether the interface is displayed normally, and whether the response speed reaches the preset speed threshold to obtain the integration test results.
5. The method according to claim 1, characterized in that The method further comprises: In response to a development request for a function item to be developed, displaying a development interface for the function item to be developed; In response to an information input operation on the development interface, obtaining basic function item information of the function item to be developed; Display member management operation interface; In response to an information entry operation on the member management operation interface, obtaining member management information of the function item to be developed; Display the task interface; In response to an information input operation on the task interface, acquiring task information of the function item to be developed; A target function item is generated based on the basic function item information, member management information and task information.
6. The method according to claim 1, characterized in that The step of deploying the packaged file to the operating environment includes: According to the data set, the functional unit and the data model in the packaged file, an association relationship between the data set and the data model is established, and an execution order of each functional unit is established; Based on the association relationship between the data set and the data model and the execution order of the functional units, the target functional item is constructed in the operating environment.
7. A function publishing device, characterized in that: The device comprises: A test module, configured to respond to a test request for a target function item, test each functional unit corresponding to the target function item, and obtain a test result; A generating module, configured to generate a packaging file according to the selected data elements in response to a selection operation on the data elements of the target function item when the test result is passed; wherein the data elements at least include a data set, a functional unit and a data model; The deployment module is used to deploy the packaged file into the running environment in response to the publishing operation on the packaged file.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Functional module creating method and device, equipment, medium and program product
CN121441740A