CN115729802A - Deployment test method, system and storage medium of industrial application program - Google Patents

Deployment test method, system and storage medium of industrial application program Download PDF

Info

Publication number
CN115729802A
CN115729802A CN202111007720.7A CN202111007720A CN115729802A CN 115729802 A CN115729802 A CN 115729802A CN 202111007720 A CN202111007720 A CN 202111007720A CN 115729802 A CN115729802 A CN 115729802A
Authority
CN
China
Prior art keywords
code
industrial
application program
file
dependent item
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
CN202111007720.7A
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.)
Siemens AG
Original Assignee
Siemens AG
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 Siemens AG filed Critical Siemens AG
Priority to CN202111007720.7A priority Critical patent/CN115729802A/en
Publication of CN115729802A publication Critical patent/CN115729802A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a deployment test method, a deployment test system and a storage medium of an industrial application program. The method comprises the following steps: constructing a Docker mirror image corresponding to a current industrial application program, wherein the Docker mirror image comprises a code file, a code runtime and a code dependent item; packaging the Docker mirror image into an application program file; providing the application program file for an industrial edge simulator which is simulated into industrial edge equipment to test, and obtaining a test result; the industrial edge simulator comprises an equipment information configuration interface, an industrial communication protocol configuration interface and a data source configuration interface, and is made to simulate corresponding industrial edge equipment by configuring the equipment information configuration interface, the industrial communication protocol configuration interface and the data source configuration interface. The technical scheme in the embodiment of the invention can improve the deployment efficiency of the industrial application program.

Description

Deployment test method, system and storage medium of industrial application program
Technical Field
The invention relates to the field of industry, in particular to a deployment testing method and system of an industrial application program and a computer readable storage medium.
Background
Currently, when an application program (App) is developed, some software platforms provide users with some program development tools, and based on the tools, the users can perform deployment, purchase and development of the App.
Patent application CN109614108A discloses an automatic application deployment testing method based on Docker. The method utilizes GitHub, jenkins, docker and automatic release scripts to realize automatic packing, testing and release of the application program. In the method, although the code file can be automatically packaged into the publishing packet, all the dependent items and the code operating environment are manually pre-configured by a user and cannot be automatically changed along with the change of the code file. In addition, the method is designed for general application development. It lacks industrial technical support and therefore cannot test industrial applications.
To this end, those skilled in the art are also working to find deployment scenarios for industrial applications.
Disclosure of Invention
In view of this, in an embodiment of the present invention, on one hand, a deployment testing method for an industrial application program is provided, and on the other hand, a deployment testing system for an industrial application program and a computer-readable storage medium are provided to improve deployment efficiency of an industrial application program.
The deployment test method of the industrial application program provided by the embodiment of the invention comprises the following steps: constructing a Docker mirror image corresponding to a current industrial application program, wherein the Docker mirror image comprises a code file, a code runtime and a code dependent item; packaging the Docker mirror image into an application program file; providing the application program file for an industrial edge simulator which is simulated into industrial edge equipment to test, and obtaining a test result; the industrial edge simulator comprises an equipment information configuration interface, an industrial communication protocol configuration interface and a data source configuration interface, and is made to simulate corresponding industrial edge equipment by configuring the equipment information configuration interface, the industrial communication protocol configuration interface and the data source configuration interface.
In one embodiment, the constructing the Docker image corresponding to the current industrial application comprises: analyzing a code file of a current industrial application program, determining a code dependent item needing to be operated according to a dependent item mark, and determining a target service needing to be configured for the code dependent item according to a service item under the dependent item mark; calling corresponding code dependent item modules from a dependent item library in which various code dependent item modules are stored in advance according to the determined code dependent items, and configuring corresponding target services for the called code dependent item modules according to the determined target services to obtain instantiated code dependent items; and overlapping each instantiated code dependent item, the code runtime and the code file layer by layer in a Docker container to obtain a Docker mirror image corresponding to the current industrial application program.
In one embodiment, the industrial edge simulator has various data source data for testing stored therein in advance; alternatively, the industrial edge simulator can read various data source data collected in advance for testing from an external memory.
The deployment test system of the industrial application program provided in the embodiment of the invention comprises: the system comprises a Docker mirror image construction module, a code execution module and a code dependency item, wherein the Docker mirror image construction module is used for constructing a Docker mirror image corresponding to a current industrial application program, and the Docker mirror image comprises a code file, a code runtime and the code dependency item; the file packaging module is used for packaging the Docker mirror image into an application program file; the industrial edge simulator simulates the corresponding industrial edge equipment by configuring the equipment information configuration interface, the industrial communication protocol configuration interface and the data source configuration interface so as to test the application program file and obtain a corresponding test result.
In one embodiment, the Docker image construction module comprises: the system comprises a dependent item library, a plurality of code dependent item modules and a plurality of application modules, wherein various code dependent item modules are stored in the dependent item library, and each code dependent item module is stored in a form of Docker mirror image; the code analyzer is used for analyzing a code file of the current industrial application program, determining a code dependent item needing to be operated according to a dependent item mark, and determining a target service needing to be configured for the code dependent item according to a service item under the dependent item mark; the application program builder is used for calling corresponding code dependent item modules from a dependent item library which stores various code dependent item modules in advance according to the determined code dependent items, and configuring corresponding target services for the called code dependent item modules according to the determined target services to obtain instantiated code dependent items; and overlapping each instantiated code dependent item, the code runtime and the code file layer by layer in a Docker container to obtain a Docker mirror image corresponding to the current industrial application program.
In one embodiment, the industrial edge simulator has various data source data for testing stored therein in advance; alternatively, the industrial edge simulator can read various data source data collected in advance for testing from an external memory.
In one embodiment, further comprising: the interface module is used for providing a human-computer interaction interface, receiving a code file of a current industrial application program input by a user through the human-computer interaction interface and providing the code file to the code analyzer; and presenting the running state and the test result of the industrial edge simulator to the current application program file through the human-computer interaction interface.
The deployment test system of the industrial application program provided in the embodiment of the invention comprises: at least one memory and at least one processor, wherein: the at least one memory is for storing a computer program; the at least one processor is configured to invoke the computer program stored in the at least one memory to perform the deployment testing method of the industrial application as described in any of the embodiments above.
A computer-readable storage medium having a computer program stored thereon, the computer program being proposed in an embodiment of the present invention; the computer program can be executed by a processor and implements the deployment test method of the industrial application according to any of the above embodiments.
It can be seen from the above solutions that, in the embodiment of the present invention, an industrial edge simulator is provided to simulate various industrial edge devices, so that an APP file can be directly tested to test the availability of an APP, without going through a process of uploading the APP file to an edge management tool and then downloading the APP file from the edge management tool to the industrial edge device, so that a user can determine whether the APP is available according to the test result of the industrial edge simulator, thereby improving the deployment efficiency of an industrial application program. And if the test has a problem, the APP file can be iteratively developed, so that the development period can be shortened.
In addition, a dependency item library for storing each code dependency item is arranged, codes are automatically analyzed, corresponding code dependency items are called from the dependency item library according to the analysis result, the called code dependency items are configured according to the analysis result, and the configured code dependency items, the codes and the running time of the codes are automatically stacked to form a Docker mirror image of the running code file. Thereby greatly simplifying the complexity of industrial application deployment for users.
Drawings
The foregoing and other features and advantages of the invention will become more apparent to those skilled in the art to which the invention relates upon consideration of the following detailed description of a preferred embodiment of the invention with reference to the accompanying drawings, in which:
fig. 1 is an exemplary flowchart of a deployment testing method of an industrial application according to an embodiment of the present invention.
FIG. 2 is a flowchart illustrating a method for testing deployment of an industrial application according to an example of the present invention.
FIG. 3 is a block diagram of an exemplary deployment test system for an industrial application in an embodiment of the invention.
FIG. 4 is an exemplary block diagram of a deployment test system for another industrial application in an embodiment of the invention.
Wherein the reference numbers are as follows:
Figure BDA0003237617600000031
Figure BDA0003237617600000041
Detailed Description
In the embodiment of the present invention, considering that there is a software platform named Industrial Edge (Industrial Edge) at present, based on which a user can deploy a custom application, the software platform generally includes the following four steps: 1) A Docker image is built in the Docker engine. The Docker image contains a code file, a code RunTime (RunTime), and code dependencies. The code runtime refers to a language base, a framework or a platform for code running, and generally refers to what is necessary for runtime, and the code dependency refers to a database, a server or a communication protocol, etc. which is relied on or involved in the code running process. 2) The Docker image is packaged into an App file using a publishing tool, such as an application Publisher (App Publisher), and the App file is exported. 3) The App file is uploaded to an Edge Management Tool (Edge Management Tool). 4) The App file is downloaded from the edge management tool onto the industrial edge device and run.
However, in practical applications, the user may encounter a problem of a long verification period in the above deployment process of the application program. Since the operating environments and the like may be different between the edge device and the development PC, the application program that normally operates on the development PC may not normally operate on the edge device. However, the user cannot authenticate the four deployment steps before they are performed and the application is run on the edge device. If any errors occur in the last step, the user must redo the entire process. For this reason, in the embodiment of the present invention, it is considered to provide an industrial edge simulator for simulating various industrial edge devices so as to test the usability of the application program. Therefore, a user can iteratively develop the application program according to the test result of the industrial edge simulator, and the development period can be shortened.
In addition, it is considered that the user may also encounter a problem that the process of constructing the Docker image is very time-consuming in the above deployment process of the application program. Because the user needs to first pull a Docker image and manually put code, code runtime, and code dependent items into the Docker image. Therefore, in the embodiment of the invention, a dependency item library is considered to be arranged and used for storing each code dependency item, the code is analyzed, the corresponding code dependency item is called according to the analysis result, the called code dependency item is configured, and the configured code dependency item, the code and the running time thereof are overlapped layer by layer to form a Docker mirror image of the running code file.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail by referring to the following examples.
Fig. 1 is an exemplary flowchart of a deployment testing method for an industrial application according to an embodiment of the present invention. As shown in fig. 1, the method may include the steps of:
and S10, constructing a Docker mirror image corresponding to the current industrial application program, wherein the Docker mirror image comprises a code file, a code runtime and a code dependent item.
In this step, a Docker mirror image corresponding to the current industrial application program may be manually constructed according to an existing method. Alternatively, the Docker mirror construction may be performed as follows.
Step S11, analyzing a code file of the current industrial application program, determining a code dependent item (such as a database, a server, or a communication protocol) to be operated according to the dependent item mark, and determining a target service that needs to configure the code dependent item according to a service item under the dependent item mark.
For example, FIG. 2 is an exemplary flow chart of a method for deployment testing of an industrial application in accordance with an example of the present invention. As shown in fig. 2, the code file CF may be provided to a code analyzer 21, and the code analyzer 21 analyzes the code file, and the upper left corner in fig. 2 shows a part of codes in the code file CF, wherein the code dependency item corresponding to the Tag1 (Tag 1) is a MySQL database, and a corresponding connection port (Connect) is set; and indicates that a TABLE1 (TABLE 1) is newly created in the MySQL database, and the TABLE1 comprises item1, item2, item3, \8230; (item 1, item2, item3, \8230;). The dependency item corresponding to the Tag2 (Tag 2) is an MQTT protocol, and a corresponding connection port (ip, t of por)) is set; 8230and 8230.
By analyzing the code file F, it is possible to determine a code dependency D that needs to be run as shown in the lower left corner of fig. 2, that is, the code dependency D includes: mySQL, MQTT, \8230, the target services required to be configured aiming at MySQL are as follows: 1) A connection port (url, port); 2) A TABLE1 is newly created (TABLE 1), and TABLE1 includes entry 1, entry 2, entry 3, \8230; (item 1, item2, item3, \8230;). The target services to be configured for MQTT are: 1) A connection port (ip, port); 823060, 8230and its advantages.
And S12, calling corresponding code dependent item modules from a dependent item library which stores various code dependent item modules in advance according to the determined code dependent items.
In this embodiment, the dependency library 22 may store various code dependencies, for example, various runtime RTs such as Python, various communication protocols CP such as MQTT, various database DBs such as MySQL, various operating systems OS such as Debian, various kernels KN such as Linux kernel, and other code dependencies, which are not limited herein.
As shown in FIG. 2, the code dependencies determined for the left side of FIG. 2 may be invoked by the application builder 23 from the dependency library 22 by corresponding code dependency modules, such as MySQL module, MQTT module, \8230;, for example. In addition, a Linux operating system and kernel are invoked.
And S13, configuring corresponding target services for the called code dependent item module according to the determined target services to obtain instantiated code dependent items.
As shown directly below in FIG. 2, ports (Set DB url and port) may be Set by the application builder 23 for the MySQL database; when judging the existence of the database (If database exist:), a table (create table (item 1, 8230; \8230;) including entries 1, \8230, 8230) is created, otherwise (Else), the database (create db first) is created first, and then a table (create table (item 1, 8230; \8230;) including entries 1, \8230) is created. Setting a port (Set MQTT browser ip. Port) and modifying a configuration file (Modify configuration file) aiming at the MQTT protocol.
And S14, overlapping each instantiated code dependent item, the code runtime and the code file layer by layer in a Docker container to obtain a Docker mirror image corresponding to the current industrial application program.
As shown in FIG. 2, each instantiated code dependency, and code runtime and code file may be overlaid layer by layer in a Docker container by application builder 23
And S20, packaging the Docker mirror image into an application program file.
In this step, the Docker image may be packaged into an application file AF by using an application publisher.
Step S30, the application program file is provided to the industrial edge simulator 24 which is simulated as an industrial edge device to be tested, and a test result Rs is obtained. The industrial edge simulator includes a device information configuration interface 241, an industrial communication protocol configuration interface 242, a data source configuration interface 243, and an application execution module 244. The device information configuration interface 241, the industrial communication protocol configuration interface 242, and the data source configuration interface 243 are configured to enable the industrial edge simulator to simulate a corresponding industrial edge device. In practical application, the test result Rs may be a result indicating that the application program is available, or may be a result of error reporting, and if the result is a result of error reporting, the user may iteratively develop the code file CF of the application program, so as to shorten the development period.
The current runtime operating system, such as IPC 127E, IPC 227E, IPC 427E, IOT 2050, may be configured through the device information configuration interface 241.
The data source used for the current test, such as a data source collected from a Programmable Logic Controller (PLC) or a driver or a sensor or a frequency converter, etc., for an offline test, can be configured through the data source configuration interface 243.
The industrial communication protocol configuration interface 242 may configure a current industrial communication protocol, such as MQTT, RESTful, S7, OPC UA, PROFINET IO, or the like. In a specific implementation, the industrial communication protocol configuration interface 242 may include a data bus configuration interface and a field device connector configuration interface, where the field device connector configuration interface may be used to configure a data acquisition protocol, such as S7, OPC UA, or PROFINET IO, so as to read data of the data source according to the configured protocol, so as to simulate interaction with a field device. The data bus configuration interface can be used for configuring MQTT or RESTful and the like, and is used for distributing the read data of the data source to an application program for use.
The deployment test method of the industrial application program in the embodiment of the present invention is described in detail above, and the deployment test system of the industrial application program in the embodiment of the present invention is described in detail below. The deployment test system of the industrial application program in the embodiment of the present invention may be used to implement the deployment test method of the industrial application program in the embodiment of the present invention, and for details that are not disclosed in detail in the embodiment of the system of the present invention, reference may be made to corresponding descriptions in the embodiment of the method of the present invention, and details are not described here any more.
FIG. 3 is a block diagram of an exemplary deployment test system for an industrial application in an embodiment of the invention. As shown in fig. 3, the system may include: a Docker mirror construction module 31, a file packing module 32, and an industrial edge simulator 24.
The Docker image construction module 31 is configured to construct a Docker image corresponding to a current industrial application, where the Docker image includes a code file, a code runtime, and a code dependent item.
The file packaging module 32 is configured to package the Docker image into an application file;
the industrial edge simulator 24 is used for simulating an industrial edge device to test the application program file and obtain a corresponding test result. The structure of the industrial edge simulator 24 can be as shown in FIG. 4, including a device information configuration interface 241, an industrial communication protocol configuration interface 242, a data source configuration interface 243, and an application file execution module 244. The industrial edge simulator is simulated as a corresponding industrial edge device by configuring the device information configuration interface 241, the industrial communication protocol configuration interface 242, and the data source configuration interface 243.
The device information configuration interface 241 is used to configure the current runtime operating system, such as IPC 127E, IPC 227E, IPC 427E, IOT 2050, and the like.
The industrial communication protocol configuration interface 242 is used for configuring the current industrial communication protocol, such as MQTT, RESTful, S7, OPC UA, PROFINET IO, and the like. In specific implementation, the industrial communication protocol configuration interface 242 may include a data bus configuration interface 2421 and a field device connector configuration interface 2422, where the data bus configuration interface 2421 may be used to configure MQTT or RESTful and other protocols, and the field device connector configuration interface 2422 may be used to configure S7 or OPC UA or PROFINET IO and other protocols.
The data source configuration interface 243 is used to configure the data source used for the current test, such as a Programmable Logic Controller (PLC) or a driver or a sensor.
The program file running module 244 is configured to run the application program file, and output a corresponding running state and a test result.
In other embodiments, the industrial edge simulator 24 may further include a storage module (not shown) for storing various data source data collected in advance for testing; alternatively, the industrial edge simulator 24 may read various data source data collected in advance for testing from an external memory.
In one embodiment, the Docker image construction module 31 may be as shown in fig. 2, including: a dependency library 22, a code analyzer 21 and an application builder 23.
Various code dependent item modules are stored in the dependent item library 22, and each code dependent item module is stored in a form of a Docker mirror image.
The code analyzer 21 is configured to analyze a code file of the current industrial application program, determine a code dependent item that needs to be run according to a dependent item flag therein, and determine a target service that needs to configure the code dependent item according to a service item under the dependent item flag.
The application builder 23 is configured to call a corresponding code dependent item module from a dependent item library in which various code dependent item modules are stored in advance according to the determined code dependent item, and configure a corresponding target service for the called code dependent item module according to the determined target service to obtain an instantiated code dependent item; and overlapping each instantiated code dependent item, the code runtime and the code file layer by layer in a Docker container to obtain a Docker mirror image corresponding to the current industrial application program.
In one embodiment, the deployment test system of the industrial application in the embodiment of the present invention may further include an interface module 33, configured to provide a human-machine interface, receive a code file CF of the current industrial application input by a user through the human-machine interface, and provide the code file to the code analyzer 21; and presenting the running state and the test result of the industrial edge simulator 24 to the current application program file through the human-computer interaction interface.
FIG. 4 is a schematic diagram of a deployment test system for another industrial application in an embodiment of the present application, which can be used to implement the method shown in FIG. 1 or the system shown in FIG. 3. As shown in fig. 4, the system may include: at least one memory 41, at least one processor 42, at least one display 43. In addition, some other components may be included, such as a communications port, etc. These components communicate over a bus 44.
Wherein the at least one memory 41 is adapted to store a computer program. In one embodiment, the computer program can be understood as the various modules of a deployment test system that includes the industrial application shown in FIG. 3. In addition, the at least one memory 41 may also store an operating system and the like. Operating systems include, but are not limited to: an Android operating system, a Symbian operating system, a Windows operating system, a Linux operating system, and the like.
The at least one processor 42 is configured to invoke the computer program stored in the at least one memory 41 to execute the deployment test method of the industrial application described in the embodiments of the present application. The processor 42 may be a CPU, processing unit/module, ASIC, logic module, or programmable gate array, etc. Which can receive and transmit data through the communication port.
In particular, the at least one processor 42 is configured to invoke the computer program stored in the at least one memory 41 to cause the system to perform the operations of the deployment test method for industrial applications of any of the embodiments described above.
At least one display 43 is used to display the human-machine interface.
It should be noted that not all steps and modules in the above flows and structures are necessary, and some steps or modules may be omitted according to actual needs. The execution sequence of the steps is not fixed and can be adjusted according to the needs. The division of each module is only for convenience of describing adopted functional division, and in actual implementation, one module may be divided into multiple modules, and the functions of multiple modules may also be implemented by the same module, and these modules may be located in the same device or in different devices.
It is understood that the hardware modules in the above embodiments may be implemented mechanically or electronically. For example, a hardware module may include a specially designed permanent circuit or logic device (e.g., a special purpose processor such as an FPGA or ASIC) for performing specific operations. A hardware module may also comprise programmable logic devices or circuits (e.g., including a general-purpose processor or other programmable processor) that are temporarily configured by software to perform certain operations. The implementation of the hardware module in a mechanical manner, or in a dedicated permanent circuit, or in a temporarily configured circuit (e.g., configured by software), may be determined based on cost and time considerations.
In addition, a computer-readable storage medium is provided in an embodiment of the present application, and a computer program is stored thereon, where the computer program can be executed by a processor and implement the deployment testing method for the industrial application described in the embodiment of the present application. Specifically, a system or an apparatus equipped with a storage medium on which software program codes that realize the functions of any of the embodiments described above are stored may be provided, and a computer (or a CPU or MPU) of the system or the apparatus is caused to read out and execute the program codes stored in the storage medium. Further, part or all of the actual operations may be performed by an operating system or the like operating on the computer by instructions based on the program code. The functions of any of the above-described embodiments may also be implemented by writing the program code read out from the storage medium to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion unit connected to the computer, and then causing a CPU or the like mounted on the expansion board or the expansion unit to perform part or all of the actual operations based on the instructions of the program code. Embodiments of the storage medium for supplying the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer by a communications network.
It can be seen from the above solutions that, in the embodiment of the present invention, an industrial edge simulator is provided to simulate various industrial edge devices, so that an APP file can be directly tested to test the availability of an APP, without going through a process of uploading the APP file to an edge management tool and then downloading the APP file from the edge management tool to the industrial edge device, so that a user can determine whether the APP is available according to the test result of the industrial edge simulator, thereby simplifying the deployment process of an industrial application program and improving the deployment efficiency. And if the test has a problem, the APP file can be iteratively developed, so that the development period can be shortened.
In addition, a dependent item library for storing each code dependent item is arranged, the codes are automatically analyzed, the corresponding code dependent items are called from the dependent item library according to the analysis result, the called code dependent items are configured according to the analysis result, and the configured code dependent items, the codes and the running time of the codes are automatically stacked to form a Docker mirror image of the running code file. Thereby greatly simplifying the complexity of industrial application deployment for users.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (9)

1. The deployment test method of the industrial application program is characterized by comprising the following steps:
constructing a Docker mirror image corresponding to a current industrial application program, wherein the Docker mirror image comprises a code file, a code runtime and a code dependent item;
packaging the Docker mirror image into an application program file;
providing the application program file for an industrial edge simulator which is simulated into industrial edge equipment to test, and obtaining a test result; the industrial edge simulator comprises an equipment information configuration interface, an industrial communication protocol configuration interface and a data source configuration interface, and is made to simulate corresponding industrial edge equipment by configuring the equipment information configuration interface, the industrial communication protocol configuration interface and the data source configuration interface.
2. The deployment testing method of industrial applications according to claim 1, wherein the constructing a Docker image corresponding to a current industrial application comprises:
analyzing a code file of a current industrial application program, determining a code dependent item needing to be operated according to a dependent item mark, and determining a target service needing to configure the code dependent item according to a service item under the dependent item mark;
calling corresponding code dependent item modules from a dependent item library in which various code dependent item modules are stored in advance according to the determined code dependent items, and configuring corresponding target services for the called code dependent item modules according to the determined target services to obtain instantiated code dependent items;
and overlapping each instantiated code dependent item, the code runtime and the code file layer by layer in a Docker container to obtain a Docker mirror image corresponding to the current industrial application program.
3. The deployment test method of the industrial application according to claim 1 or 2, wherein the industrial edge simulator stores therein various data source data collected in advance for testing; alternatively, the industrial edge simulator can read various data source data collected in advance for testing from an external memory.
4. A deployment test system for industrial applications, comprising:
the system comprises a Docker mirror image construction module, a code execution module and a code dependency item, wherein the Docker mirror image construction module is used for constructing a Docker mirror image corresponding to a current industrial application program, and the Docker mirror image comprises a code file, a code runtime and the code dependency item;
the file packaging module is used for packaging the Docker mirror image into an application program file;
the industrial edge simulator simulates the corresponding industrial edge equipment by configuring the equipment information configuration interface, the industrial communication protocol configuration interface and the data source configuration interface so as to test the application program file and obtain a corresponding test result.
5. The deployment testing system of industrial applications of claim 4, wherein the Docker image build module comprises:
the system comprises a dependent item library, a plurality of code dependent item modules and a plurality of application modules, wherein various code dependent item modules are stored in the dependent item library, and each code dependent item module is stored in a form of Docker mirror image;
the code analyzer is used for analyzing a code file of the current industrial application program, determining a code dependent item needing to be operated according to a dependent item mark, and determining a target service needing to be configured for the code dependent item according to a service item under the dependent item mark;
the application program builder is used for calling corresponding code dependent item modules from a dependent item library which is pre-stored with various code dependent item modules according to the determined code dependent items, and configuring corresponding target services for the called code dependent item modules according to the determined target services to obtain instantiated code dependent items; and overlapping each instantiated code dependent item, the code runtime and the code file layer by layer in a Docker container to obtain a Docker mirror image corresponding to the current industrial application program.
6. The deployment test system of industrial applications according to claim 4 or 5, characterized in that the industrial edge simulator has stored therein various data source data collected in advance for testing; alternatively, the industrial edge simulator can read various data source data collected in advance for testing from an external memory.
7. The deployment test system of an industrial application according to claim 4 or 5, further comprising: the interface module is used for providing a human-computer interaction interface, receiving a code file of a current industrial application program input by a user through the human-computer interaction interface and providing the code file to the code analyzer; and presenting the running state and the test result of the industrial edge simulator to the current application program file through the human-computer interaction interface.
8. A deployment test system for industrial applications, comprising: at least one memory and at least one processor, wherein:
the at least one memory is for storing a computer program;
the at least one processor is configured to invoke the computer program stored in the at least one memory to perform the deployment testing method of the industrial application of any of claims 1 to 3.
9. A computer-readable storage medium having stored thereon a computer program; characterized in that the computer program is executable by a processor and implements the deployment test method of an industrial application according to any one of claims 1 to 3.
CN202111007720.7A 2021-08-30 2021-08-30 Deployment test method, system and storage medium of industrial application program Pending CN115729802A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111007720.7A CN115729802A (en) 2021-08-30 2021-08-30 Deployment test method, system and storage medium of industrial application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111007720.7A CN115729802A (en) 2021-08-30 2021-08-30 Deployment test method, system and storage medium of industrial application program

Publications (1)

Publication Number Publication Date
CN115729802A true CN115729802A (en) 2023-03-03

Family

ID=85291126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111007720.7A Pending CN115729802A (en) 2021-08-30 2021-08-30 Deployment test method, system and storage medium of industrial application program

Country Status (1)

Country Link
CN (1) CN115729802A (en)

Similar Documents

Publication Publication Date Title
CN111858370B (en) Method, device and computer readable medium for implementing DevOps
CN107704238B (en) Method and device for packaging items
CN103336688A (en) Software integrating method and system oriented to cloud computing software research and development process
WO2009102104A1 (en) Method and apparatus for generating virtual software platform based on component model and validating software platform architecture using the platform
CN111859834B (en) UVM-based verification platform development method, system, terminal and storage medium
CN107368339B (en) Container entrance program operation method, system, device and storage medium
CN110955409B (en) Method and device for creating resources on cloud platform
US8661414B2 (en) Method and system for testing an order management system
CN117170803A (en) Method for generating signal-creation operating system pipeline, electronic equipment and storage medium
CN114546819A (en) Code processing method and device, electronic equipment and readable medium
CN115658069A (en) Project packaging and online compiling method for release platform
CN111752820A (en) Pressure testing method of gPC interface, computer equipment and storage medium
CN113485882A (en) Chip verification method and device and computer readable storage medium
CN116303099B (en) Cross-platform rapid deployment method, device, medium and equipment for automatic test environment
CN112631915A (en) Method, system, device and medium for PCIE device software simulation
CN115729802A (en) Deployment test method, system and storage medium of industrial application program
CN116643761A (en) Customized mirror image manufacturing and deploying method, device, terminal and medium
CN115840617A (en) Debugging method, system and related device
CN114297088A (en) Method, device, equipment and medium for testing front end vue frame assembly
CN113626307A (en) Data verification method and device based on K8S container platform
CN112306843A (en) Test method, test device and storage medium
CN112003738B (en) Device, method, terminal and storage medium for adapting cloudify framework of virtualization system
US9183331B1 (en) Formalizing IP driver interface
US11454945B2 (en) Method and device for calling program module in PLC ladder programming environment
CN117873650A (en) Real-time running environment generation system, method, computer device and storage medium

Legal Events

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