Test support apparatus, test support method, and program

JP2024147354APending Publication Date: 2024-10-16FUJI ELECTRIC CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023060308
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-03
Publication Date
2024-10-16

AI Technical Summary

Benefits of technology

【0007】 通信テストを自動化する技術が提供される。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024147354000001_ABST
    Figure 2024147354000001_ABST
Patent Text Reader

Abstract

To provide a technique for automating a communication test.SOLUTION: A test support apparatus includes: an executable file creation unit which creates an executable file of a source code in response to registration of the source code which is subjected to a communication test and a test scenario representing a scenario of the communication test on a repository of a version management system; a first script creation unit which creates a test environment script including an instruction for constructing a test environment for the communication test by a simulator, on the basis of the test scenario and simulator information indicating information on the simulator that simulates a second device which communicates with a first device on which the executable file is installed; and a first transmission unit which transmits the test environment script to a device with the simulator installed thereon.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a test support device, a test support method, and a program. [Background technology]

[0002] A method called Continuous Integration (CI) / Continuous Delivery (CD) is known as one of the program development methods. Programs that realize CI / CD are called CI / CD tools, and in recent years, have been widely used in program development. As one of the conventional techniques related to CI, for example, a technique is known that efficiently performs automatic execution in CI according to attribute information of tickets that manage the contents related to defects, etc. (Patent Document 1). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2021-105866 A Summary of the Invention [Problem to be solved by the invention]

[0004] CI / CD tools can automatically execute builds, tests, deployments, etc., but tests generally involve static analysis or unit testing of individual modules, and communication tests that assume communication with external devices cannot be automated.

[0005] The present disclosure has been made in consideration of the above points, and provides a technique for automating a communication test. [Means for solving the problem]

[0006] A test support device according to one embodiment of the present disclosure includes an executable file creation unit that creates an executable file of the source code when a source code to be a subject of a communication test and a test scenario representing a scenario of the communication test are registered in a repository of a version control system as a trigger of the registration, a first script creation unit that creates a test environment script including instructions for constructing a test environment for the communication test by the simulator based on the test scenario and simulator information indicating information about a simulator that simulates a second device that communicates with a first device in which the executable file is installed, and a first transmission unit that transmits the test environment script to a device equipped with the simulator. Effect of the Invention

[0007] Techniques are provided for automating communications testing. [Brief description of the drawings]

[0008] [Figure 1] FIG. 1 is a diagram for explaining a conventional example of a communication test. [Diagram 2] 1 is a diagram illustrating an example of an overall configuration of a development support system according to an embodiment of the present invention. [Diagram 3] FIG. 2 is a diagram illustrating an example of a functional configuration of a test support program according to the present embodiment. [Figure 4] 13 is a flowchart illustrating an example of a test support process. [Diagram 5] FIG. 1 illustrates an example of a test scenario. [Figure 6] FIG. 13 illustrates an example of a test environment script. [Figure 7] FIG. 13 illustrates an example of a test script. [Figure 8] FIG. 2 illustrates an example of a hardware configuration of a computer. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] Hereinafter, one embodiment of the present invention will be described.

[0010] <Continuous integration / continuous delivery> First, we will explain the outline of continuous integration (CI) and continuous delivery (CD). Note that CI and CD are sometimes collectively referred to as "CI / CD."

[0011] Both CI / CD are program development techniques in which the contents of processes (jobs) such as build, test, and deploy are defined as scripts, and the scripts are automatically executed when triggered by registration (commit) to a version control system that manages the source code. A series of processes achieved by executing one or more jobs is called a "pipeline" or "pipeline processing." In general, CI refers to a technique for automating builds and tests, while CD refers to a technique for automating deployment.

[0012] Programs that achieve CI / CD are called CI tools / CD tools. These tools execute jobs according to the processing content (scripts) and execution order of those processes defined in a pipeline configuration file. For this reason, users need to define the processing content of the jobs they want to automate and the execution order of those processes in the pipeline configuration file.

[0013] <Conventional example of communication testing> As an example, assuming software development for embedded devices, a conventional example of performing a communication test between an embedded device with the software (program) installed and an external measuring device will be described below with reference to Fig. 1. Hereinafter, the embedded device that is the target of the communication test will be referred to as the "target embedded device." Examples of embedded devices include various types of industrial equipment such as freezers, showcases, and vending machines, but these are all merely examples and are not limited to these.

[0014] As shown in Figure 1, (1) when source code is registered in a repository by a developer terminal, (2) this registration triggers an instruction to execute a pipeline to the CI / CD tool. As a result, the CI / CD tool, according to the pipeline configuration file, (3) instructs the build tool to build the source code, (4) instructs the test tool to test (unit test, etc.) the executable file created by this build, and then (5) instructs the deploy tool to deploy the executable file that passed the test. As a result, this executable file is deployed to the distribution server. Note that before the build instruction, the test tool may be instructed to perform static analysis of the source code, etc.

[0015] The person conducting the communication test (hereinafter also referred to as the "test executor") (6) operates the target embedded device to download the executable file from the distribution server. The test executor also (7) operates the simulation device to start a simulator for the measuring device, and sets various parameters for the measuring device (e.g., the connection I / F used for communication with the target embedded device, etc.) to create a test environment. Note that the measuring device refers to a control device (e.g., a programmable controller, etc.) that controls the embedded device. The simulation device is, for example, a PC (personal computer), etc., and can create a test environment that simulates the measuring device using the simulator.

[0016] The tester then (8) operates the target embedded device to perform a communication test with the measurement device (a measurement device simulated by a simulator on the simulation device). After that, the tester (9) operates his / her own terminal to obtain the test results from the target embedded device, and (10) sends the test results by email to the developer terminal. Note that the communication test may be called, for example, a "connection test."

[0017] In this way, in communication tests, measurement equipment is simulated using a simulator installed on a PC, etc., so the test environment must be constructed manually, including starting the simulator and setting test data. In addition, the communication tests themselves must be performed manually by operating the target embedded devices, which is time-consuming and subject to the risk of errors. Furthermore, the test results must be sent manually by email, which is time-consuming.

[0018] Therefore, the following describes a development support system 1 that can automatically perform a communication test after constructing a test environment when deploying source code that is the subject of a communication test, and can also automatically notify the test results. With this development support system 1, the user does not need to manually construct a test environment and perform a communication test, and does not need to manually notify the test results, reducing the workload required for communication tests.

[0019] <Overall configuration example of development support system 1> An example of the overall configuration of the development support system 1 according to this embodiment is shown in Fig. 2. As shown in Fig. 2, the development support system 1 according to this embodiment includes a version control system 10, a CI / CD system 20, a distribution server 30, a developer terminal 40, a target embedded device 50, and a simulation device 60. Here, the version control system 10 and the CI / CD system 20, the version control system 10 and the developer terminal 40, the version control system 10 and the target embedded device 50, the CI / CD system 20 and the distribution server 30, the CI / CD system 20 and the target embedded device 50, the CI / CD system 20 and the simulation device 60, the distribution server 30 and the target embedded device 50, and the target embedded device 50 and the simulation device 60 are connected to each other so as to be able to communicate with each other via a communication network such as an in-house network.

[0020] The version control system 10 is a computer or computer system, such as a general-purpose server, that has a version control program 110 and a repository 120 .

[0021] When the developer terminal 40 registers the source code and the test scenario in the repository 120, the version control program 110 uses this registration as a trigger to transmit a pipeline execution instruction to the CI / CD system 20 for building, testing (unit testing), and deploying the source code, and for performing a communication test. Here, the test scenario refers to a scenario for a communication test between the target embedded device 50 and a measuring device simulated by a simulator on the simulation device 60. The test scenario includes information required for constructing a test environment, such as the type (type of connected device) and the number (number of connected devices) of embedded devices connected to the measuring device, a connection I / F, and the like, and information required for setting and transmitting transmission data transmitted from the target embedded device 50 to the measuring device (the measuring device simulated by the simulator on the simulation device 60).

[0022] The repository 120 is a storage area for managing source codes, test scenarios, and their change histories.

[0023] The CI / CD system 20 is a computer or computer system such as a general-purpose server having a CI / CD tool 210, a build tool 220, a test tool 230, a deployment tool 240, a test support program 250, and a simulator information DB 260.

[0024] When the CI / CD tool 210 receives a pipeline execution instruction from the version control system 10, it executes the pipeline. Here, the CI / CD tool 210 includes a build instruction unit 211, a test instruction unit 212, a deploy instruction unit 213, and a pipeline setting file 214. When the CI / CD tool 210 receives a pipeline execution instruction, the build instruction unit 211 issues a build instruction for the target source code in accordance with the instruction and the pipeline setting file 214, and the test instruction unit 212 issues a test instruction for the source code or an executable file of the source code, and then the deploy instruction unit 213 issues a deploy instruction for the executable file. In addition, the CI / CD tool 210 transmits a test scenario and information indicating a deployment destination of the executable file (hereinafter also referred to as "deployment destination information") to the test support program 250.

[0025] The build tool 220 builds the source code to create an executable file in accordance with the build instructions.

[0026] Test tool 230 tests source code or executable files (eg, static analysis for source code, unit testing for executable files, etc.) in response to test instructions.

[0027] The deployment tool 240 deploys the executable file to the distribution server 30 in response to the deployment instruction.

[0028] As the CI / CD tool 210, any known CI / CD tool can be used, for example, GitLab, etc. As the build tool 220, any known build tool can be used, for example, Maven, Ant, Gradle, etc. As the test tool, any known test tool can be used, for example, Jtest, etc. As the deployment tool 240, any known deployment tool can be used, for example, an SSH (Secure Shell) tool that can use the scp command, etc.

[0029] When the test support program 250 receives a test scenario and deployment destination information from the CI / CD tool 210, the test support program 250 creates a test environment script based on the test scenario and the simulator information stored in the simulator information DB 260. The test support program 250 also creates a test script based on the test scenario and the deployment destination information. The test support program 250 then stores (preserves) the test environment script and the test script in the repository 120 and transmits them to the target embedded device 50 and the simulation device 60, respectively. Here, the test environment script is a script (program) for constructing a test environment (simulator that simulates a measuring device) on the simulation device 60. The test script is a script (program) for acquiring (downloading) and installing an executable file of a source code to be subjected to a communication test from the distribution server 30, setting transmission data for the target embedded device 50, and causing the target embedded device 50 to transmit the transmission data. Details of the test support program 250 will be described later.

[0030] The simulator information DB 260 stores simulator information for constructing a test environment. The simulator information is information for identifying a simulator and its parameters from, for example, a "connection device type" and a "connection I / F" included in a test scenario. The simulator information includes, for example, for each connection device type, the name of a simulator that simulates a measuring device capable of controlling an embedded device of the connection device type, and a file path of an executable file for starting the simulator. The simulator information also includes, for example, for each measurement device and connection I / F, parameters (for example, COM number, eth number, baud rate, communication frame information, etc.) that need to be set in the simulator to simulate communication by the measurement device through the connection I / F.

[0031] The distribution server 30 is a computer or computer system, such as a general-purpose server, on which executable files of source code to be subjected to communication tests are deployed.

[0032] The developer terminal 40 is a terminal (for example, a PC, a smartphone, a tablet terminal, etc.) used by a person (a developer) who develops source codes and test scenarios.

[0033] The target embedded device 50 is an embedded device in which an executable file of the source code to be subjected to the communication test is installed. The target embedded device 50 executes the test script transmitted from the CI / CD system 20, acquires the executable file from the distribution server 30, installs it, sets transmission data, and transmits the transmission data to a measuring device (a measuring device simulated by a simulator on the simulation device 60).

[0034] The simulation device 60 is a computer or computer system such as a PC equipped with a simulator capable of simulating a measuring device. The simulation device 60 executes a test environment script transmitted from the CI / CD system 20, starts the simulator, sets parameters, and so on, to construct a test environment.

[0035] The overall configuration of the development support system 1 shown in FIG. 2 is an example, and the overall configuration of the development support system 1 is not limited to this. For example, two or more of the version control system 10, the CI / CD system 20, and the distribution server 30 may be integrated. In this case, for example, all or a part of the system may be realized by a virtual machine (VM). Furthermore, in the example shown in FIG. 2, only one target embedded device 50 and one simulation device 60 are shown, but there may be multiple of each.

[0036] <Example of functional configuration of test support program 250> As shown in FIG. 3, the test support program 250 according to this embodiment can realize a script creation unit 251, a script transmission unit 252, and a script storage unit 253 by processing executed by a processor such as a CPU (Central Processing Unit).

[0037] The script creation unit 251 creates a test environment script based on the test scenario received from the CI / CD tool 210 and the simulator information stored in the simulator information DB 260. In addition, the script creation unit 251 creates a test script based on the test scenario and deployment destination information received from the CI / CD tool 210.

[0038] The script transmission unit 252 transmits the test environment script created by the script creation unit 251 to the simulation device 60. In addition, the script transmission unit 252 transmits the test script created by the script creation unit 251 to the target embedded device 50.

[0039] The script storage unit 253 stores (preserves) the test environment scripts and the test scripts created by the script creation unit 251 in the repository 120.

[0040] <Test support processing> Hereinafter, a test support for automatically executing a communication test of the target embedded device 50 in response to the registration of the source code will be described with reference to FIG.

[0041] The developer terminal 40 registers the source code to be subjected to the communication test and the test scenario of the communication test in the repository 120 (step S101). This registration triggers a pipeline execution instruction to be sent from the version control program 110 to the CI / CD tool 210.

[0042] When the CI / CD tool 210 receives the pipeline execution instruction, it executes the pipeline to build and test (static analysis, unit testing, etc.) the source code, and deploys the executable file of the source code to the distribution server 30 (step S102). At this time, the CI / CD tool 210 also obtains a test scenario from the repository 120, and transmits this test scenario and deployment destination information of the executable file (for example, the folder path of the folder in which the executable file is stored on the distribution server 30, etc.) to the test support program 250.

[0043] The test support program 250 creates a test environment script and a test script as follows (step S103). Here, as an example, a case where a test scenario and a test environment script are created from a test scenario 1000 shown in FIG. 5 will be described below. The test scenario 1000 shown in FIG. 5 includes test environment information 1100 and transmission data information 1200. The test environment information 1100 is information necessary for constructing a test environment, and in the example shown in FIG. 5, it includes first test environment information 1110 and second test environment information 1120. The first test environment information 1110 includes connection device type information 1111 indicating that the connection device type is a "Company A's refrigerator", connection number information 1112 indicating that the number of connected target embedded devices 50 of this connection device type is "2", and connection I / F information 1113 indicating that "RS-485" is used as the connection I / F. Similarly, the second test environment information 1120 includes connection device type information 1121 indicating that the connection device type is a "showcase manufactured by company B", connection number information 1122 indicating that the number of connected target embedded devices 50 of this connection device type is "3", and connection I / F information 1123 indicating that "RS-485" is used as the connection I / F. Furthermore, the transmission data information 1200 includes first refrigerator transmission data information 1201 and second refrigerator transmission data information 1202 as transmission data information to be set for each of the two refrigerators of the connection device type "refrigerator manufactured by company A". Similarly, the transmission data information 1200 includes first showcase transmission data information 1203, second showcase transmission data information 1204, and third showcase transmission data information 1205 as transmission data information to be set for each of the three showcases of the connection device type "showcase manufactured by company B".

[0044] It should be noted that the test scenario 1000 shown in FIG. 5 is merely an example, and the present invention is not limited to this.

[0045] ·Create a test environment script The script creation unit 251 creates a test environment script based on the test environment information 1100 included in the test scenario 1000 shown in Fig. 5 and the simulator information stored in the simulator information DB 260. For example, the script creation unit 251 creates a test environment script 2000 shown in Fig. 6 based on the test environment information 1100 and the simulator information stored in the simulator information DB 260. The test environment script 2000 shown in Fig. 6 is data in a bat file format, and includes a first test environment construction command 2100 and a second test environment construction command 2200.

[0046] The first test environment construction command 2100 includes a company A refrigerator simulator start command 2101, a connection I / F setting command 2102, and a connection number setting command 2103. The company A refrigerator simulator start command 2101 is a command for starting a simulator that simulates a measuring device capable of controlling a company A refrigerator. The company A refrigerator simulator start command 2101 is created, for example, based on the connection device type information 1111 and a file path of a simulator that simulates a measuring device that can control an embedded device of the connection device type indicated by the connection device type information 1111. The connection I / F setting command 2102 is a command for setting a connection I / F of a measuring device to be simulated by the simulator. The connection I / F setting command 2102 is created, for example, based on the connection I / F information 1113 and information such as a COM number, an eth number, a baud rate, and a communication frame that are parameters that need to be set in the simulator to simulate communication through the connection I / F indicated by the connection I / F information 1113. The connection number setting command 2103 is a command for setting the number of measurement devices to be connected that are to be simulated by the simulator. The connection number setting command 2103 is generated based on the connection number information 1112, for example.

[0047] Similarly, the second test environment construction command 2200 includes a B company showcase simulator start command 2201, a connection I / F setting command 2202, and a connection number setting command 2203. The B company showcase simulator start command 2201 is a command for starting a simulator that simulates a measuring device capable of controlling a B company showcase. The B company showcase simulator start command 2201 is created, for example, based on the connection device type information 1121 and a file path of a simulator that simulates a measuring device capable of controlling an embedded device of the connection device type indicated by the connection device type information 1121. The connection I / F setting command 2202 is a command for setting the connection I / F of the measuring device simulated by the simulator. The connection I / F setting command 2202 is created, for example, based on the connection I / F information 1123 and parameters such as the COM number, eth number, baud rate, and communication frame information that need to be set in the simulator to simulate communication via the connection I / F indicated by the connection I / F information 1123.

[0048] 6 assumes that the response data sent by the measuring device when it receives transmission data from the target embedded device 50 is default response data set in the simulator. However, this is not limited to this, and the test environment script may include, for example, a setting command for setting response data sent back by the measuring device simulated by the simulator according to a value included in the transmission data from the target embedded device 50.

[0049] · Creating test scripts The script creation unit 251 creates a test script 3000 shown in Fig. 7 based on the transmission data information 1200 and the deployment destination information included in the test scenario 1000 shown in Fig. 5. The test script 3000 shown in Fig. 7 is data in a yml file format, and includes an executable file acquisition command 3101, an executable file installation command 3102, a transmission data setting / transmission command 3200, and a test result storage command 3301.

[0050] The executable file acquisition command 3101 is a command for acquiring (downloading) an executable file of the source code to be subjected to the communication test from the distribution server 30. The executable file acquisition command 3101 is generated based on, for example, the deployment destination information. The executable file installation command 3102 is a command for installing the executable file acquired by the executable file acquisition command 3101 into the target embedded device 50.

[0051] The transmission data setting and sending command 3200 includes a command for setting the transmission data in the target embedded device 50 and a command for sending the transmission data to the measuring device. The transmission data setting and sending command 3200 is created, for example, based on the transmission data information 1200. In the example shown in Fig. 7, the transmission data setting commands 3211, 3213, 3221, 3223, and 3225 and the transmission data sending commands 3212, 3214, 3222, 3224, and 3226 are included in the transmission data setting and sending command 3200. Note that in this example, the transmission data setting command 3211 and the transmission data sending command 3212 are created based on the first refrigerator transmission data information 1201. Similarly, the transmission data setting command 3213 and the transmission data transmission command 3214 are created based on the second refrigerator transmission data information 1202, the transmission data setting command 3221 and the transmission data transmission command 3222 are created based on the first showcase transmission data information 1203, the transmission data setting command 3223 and the transmission data transmission command 3224 are created based on the second showcase transmission data information 1204, and the transmission data setting command 3225 and the transmission data transmission command 3226 are created based on the third showcase transmission data information 1205.

[0052] The test result save command 3301 is a command for registering (storing) the results of the communication test in the repository 120 .

[0053] Note that while the test script 3000 shown in FIG. 7 includes all the transmission data setting commands and transmission data sending commands, it may include, for example, only the transmission data setting commands and transmission data sending commands required for the target embedded device 50 to which this test script 3000 is sent.

[0054] For example, there are a target embedded device 50 operating as a refrigerator 1 manufactured by company A (hereinafter, target embedded device 50-1), a target embedded device 50 operating as a refrigerator 2 manufactured by company A (hereinafter, target embedded device 50-2), a target embedded device 50 operating as a showcase 1 manufactured by company B (hereinafter, target embedded device 50-3), a target embedded device 50 operating as a showcase 2 manufactured by company B (hereinafter, target embedded device 50-4), and a target embedded device 50 operating as a showcase 3 manufactured by company B (hereinafter, target embedded device 50-5). In this case, the transmission data setting / transmission command 3200 of the test script transmitted to the target embedded device 50-1 may include only the transmission data setting command 3211 and the transmission data transmission command 3212. Similarly, the transmission data setting and sending command 3200 of the test script to be sent to the target embedded device 50-2 may include only the transmission data setting command 3213 and the transmission data sending command 3214. Similarly, the transmission data setting and sending command 3200 of the test script to be sent to the target embedded device 50-3 may include only the transmission data setting command 3221 and the transmission data sending command 3222. Similarly, the transmission data setting and sending command 3200 of the test script to be sent to the target embedded device 50-4 may include only the transmission data setting command 3223 and the transmission data sending command 3224. Similarly, the transmission data setting and sending command 3200 of the test script to be sent to the target embedded device 50-5 may include only the transmission data setting command 3225 and the transmission data sending command 3226.

[0055] Returning to the description of Fig. 4, the script transmission unit 252 transmits the test environment script created in the above step S103 to the simulation device 60, and the test script to the target embedded device 50 (step S104).

[0056] Moreover, the script storage unit 253 stores (preserves) the test environment script and the test script created in the above step S103 in the repository 120 (step S105).

[0057] Then, when the simulation device 60 receives the test environment script, it executes the test environment script, and when the target embedded device 50 receives the test script, it executes the test script (step S106). As a result, a simulator is started on the simulation device 60, and a test environment simulating a desired measuring device is constructed. Also, the target embedded device 50 can transmit transmission data to the measuring device and perform a communication test. However, at this time, the target embedded device 50 executes a transmission data setting command and a transmission data transmission command corresponding to itself. For example, when the target embedded device 50 is "A company manufactured refrigerator 1", the target embedded device 50 executes a transmission data setting command 3211 and a transmission data transmission command 3212 out of the transmission data setting command and the transmission data transmission command included in the transmission data setting / transmission command 3200 of the test script 3000 shown in FIG. 7.

[0058] In the communication test, response data to the transmitted data is obtained as the test results. These test results are registered in the repository 120 by executing the test script, so the developer can be informed by a notification from the version control system 10 that the test results have been registered in the repository 120. At this time, any method can be used for notifying the developer terminal 40 of the test results from the version control system 10, but for example, the notification can be by email.

[0059] <Hardware configuration example> The version control system 10, the CI / CD system 20, and the distribution server 30 included in the development support system 1 according to this embodiment can be realized, for example, by the hardware configuration of a computer 500 shown in Fig. 8. The computer 500 shown in Fig. 8 has an input device 501, a display device 502, an external I / F 503, a communication I / F 504, a RAM (Random Access Memory) 505, a ROM (Read Only Memory) 506, an auxiliary storage device 507, and a processor 508. Each of these hardware components is connected to each other via a bus 509 so as to be able to communicate with each other.

[0060] The input device 501 is, for example, a keyboard, a mouse, a touch panel, a physical button, etc. The display device 502 is, for example, a display, a display panel, etc. Note that the computer 500 does not necessarily have to have at least one of the input device 501 and the display device 502, for example.

[0061] The external I / F 503 is an interface with an external device such as a recording medium 503a. Examples of the recording medium 503a include a CD (Compact Disc), a DVD (Digital Versatile Disk), an SD memory card (Secure Digital memory card), and a USB (Universal Serial Bus) memory card.

[0062] The communication I / F 504 is an interface for connecting the computer 500 to a communication network. The RAM 505 is a volatile semiconductor memory (storage device) that temporarily stores programs and data. The ROM 506 is a non-volatile semiconductor memory (storage device) that can store programs and data even when the power is turned off. The auxiliary storage device 507 is a non-volatile storage device such as a hard disk drive (HDD), a solid state drive (SSD), or a flash memory. The processor 508 is an arithmetic device such as a CPU.

[0063] 8 is merely an example, and the hardware configuration of the computer 500 is not limited thereto. For example, the computer 500 may have multiple auxiliary storage devices 507 and multiple processors 508, may not have some of the hardware shown in the figure, or may have various hardware other than the hardware shown in the figure.

[0064] <Modification> In the above embodiment, both the test environment script and the test script are created, but only one of them may be created. For example, if only the test environment script is created, the communication test itself needs to be performed manually, but the work required for constructing the test environment can be reduced. Similarly, for example, if only the test script is created, the test environment itself needs to be constructed manually, but the work required for the communication test can be reduced and mistakes during testing can be prevented.

[0065] <Summary> As described above, in the development support system 1 according to the present embodiment, when a source code to be subjected to a communication test and a test scenario for the communication test are registered in the repository 120, in addition to building, testing (static analysis, unit testing), and deploying the source code, a communication test according to the test scenario can be automatically executed. Therefore, the user does not need to manually construct a test environment for the communication test or execute an actual communication test, and the workload required for the communication test can be reduced. Furthermore, since the test results of the communication test are also registered in the repository 120, the user can easily check the test results, and since email notifications of the test results, which were previously required, are no longer necessary, the workload required for notifying the test results can be reduced.

[0066] In the above embodiment, as an example, we have assumed a case where an embedded device performs a communication test with a measuring device. However, this is just one example, and the present invention is equally applicable to a case where any device other than an embedded device performs a communication test with an external device.

[0067] The present invention is not limited to the above-described embodiments specifically disclosed, and various modifications, changes, combinations with known technologies, etc. are possible without departing from the scope of the claims. [Explanation of symbols]

[0068] 1. Development Support System 10 Version Control Systems 20 CI / CD Systems 30 Distribution Server 40 Developer Terminal 50 Target embedded devices 60 Simulation Device 110 Version Control Programs 120 repositories 210 CI / CD Tools 211 Build Instructions 212 Test Instructions 213 Deploy Instructions 214 Pipeline Configuration File 220 Build Tools 230 Test Tools 240 Deployment Tools 250 Test Support Program 251 Script Creation Department 252 Script transmission section 253 Script Storage 260 Simulator Information DB 500 Computers 501 Input Device 502 Display device 503 External I / F 503a Recording media 504 Communication I / F 505 RAM 506 ROM 507 Auxiliary storage 508 Processor 509 Bus

Claims

1. an executable file creation unit that creates an executable file of a source code to be subjected to a communication test when the source code and a test scenario representing a scenario of the communication test are registered in a repository of a version control system as a trigger of the registration; a first script creation unit that creates a test environment script including an instruction for constructing a test environment for the communication test by the simulator based on the test scenario and simulator information indicating information related to a simulator that simulates a second device that communicates with a first device in which the executable file is installed; a first transmission unit that transmits the test environment script to a device in which the simulator is installed; A test support device having the above configuration.

2. a second script creation unit that creates a test script including an instruction for the first device to transmit transmission data to the second device and perform the communication test based on the test scenario; and a second transmission unit that transmits the test script to the first device; 2. The test support device according to claim 1, further comprising:

3. 3. The test support device according to claim 2, wherein the test script includes an instruction for registering a test result of the communication test in the repository.

4. 4. A test support device according to claim 1, wherein the test environment script includes an instruction to start a simulator that simulates a second device capable of controlling the first device, an instruction to set a connection I / F with the first device, and an instruction to set the number of connections of the connection I / F.

5. 5. The test support device according to claim 4, wherein the first device is an embedded device, and the second device is a control device that controls the first device.

6. an executable file creation step of creating an executable file of a source code to be subjected to a communication test when the source code and a test scenario representing a scenario of the communication test are registered in a repository of a version control system as a trigger of the registration; a first script creation step of creating a test environment script including an instruction for constructing a test environment for the communication test by using a simulator, based on the test scenario and simulator information indicating information related to a simulator that simulates a second device that communicates with a first device in which the executable file is installed; a first transmission step of transmitting the test environment script to a device having the simulator installed therein; A computer-assisted test method is performed.

7. an executable file creation step of creating an executable file of a source code to be subjected to a communication test when the source code and a test scenario representing a scenario of the communication test are registered in a repository of a version control system as a trigger of the registration; a first script creation step of creating a test environment script including an instruction for constructing a test environment for the communication test by using a simulator, based on the test scenario and simulator information indicating information related to a simulator that simulates a second device that communicates with a first device in which the executable file is installed; a first transmission step of transmitting the test environment script to a device having the simulator installed therein; A program that causes a computer to execute the following.

Citation Information

Patent Citations

  • Program development support system and program development support method

    JP2021105866A