Test case generation device, software redesign device, test case generation method, software redesign method, test case generation program, software redesign program, and software design support system.

The system generates accurate test cases by asking questions about subordinate clauses not included in the block, addressing poor quality issues in existing test case generation methods and improving requirements specification clarity.

JP2026185672APending Publication Date: 2026-11-27MITSUBISHI ELECTRIC SOFTWARE CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2025082945
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing methods for generating test cases reuse similar design data, leading to poor quality or inappropriate content in test cases.

Method used

A system that includes a label acquisition unit, question determination unit, and test case acquisition unit, utilizing artificial intelligence to generate highly accurate test cases by asking questions about subordinate clause types not included in the block, and updating requirements specifications based on selected test cases.

Benefits of technology

Enables the generation of highly accurate test cases and concretizes ambiguous requirements, reducing discrepancies in understanding by updating requirements specifications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026185672000001_ABST
    Figure 2026185672000001_ABST
Patent Text Reader

Abstract

The present invention provides an apparatus and method for generating highly accurate test cases. [Solution] In a software design support system, the test case generation device 100 includes: a label acquisition unit that acquires one or more dependent clause labels indicating the dependent clause type of one or more dependent clauses included in each block that constitutes requirement specification data indicating the requirement specifications for the software; a question determination unit that determines one or more question sentences that ask for information on dependent clause types not included in the block, based on the one or more dependent clause labels for each block; a test case acquisition unit that inputs the block and the question sentences determined by the question determination unit corresponding to the block to an artificial intelligence unit 400 and acquires test cases for the software from the artificial intelligence unit 400; and a test case output unit that outputs the test cases acquired by the test case acquisition unit.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to technology for supporting software design. BACKGROUND ART

[0002] Patent Literature 1 discloses a test specification creation device. The test specification creation device creates a template of test specifications for a target system based on design data of a new project and design data of an existing project. BACKGROUND ART DOCUMENTS PATENT LITERATURE

[0003] [Patent Literature 1] Japanese Patent No. 7599565 SUMMARY OF THE INVENTION PROBLEMS TO BE SOLVED BY THE INVENTION

[0004] In the method of Patent Literature 1, test cases (test specifications) of similar design data are reused, and thus the quality of the content of the test cases may be poor or the content of the test cases may not be appropriate.

[0005] An object of the present disclosure is to enable generation of highly accurate test cases. MEANS FOR SOLVING THE PROBLEMS

[0006] The test case generation device of this disclosure includes: a label acquisition unit that acquires one or more dependent clause labels indicating the dependent clause type of one or more dependent clauses included in each block that constitutes requirement specification data indicating the requirement specifications for software; a question determination unit that determines one or more question sentences that ask for information on dependent clause types not included in the block based on one or more dependent clause labels for each block; a test case acquisition unit that inputs the blocks and the question sentences determined by the question determination unit corresponding to the blocks to an artificial intelligence unit and acquires test cases for software from the artificial intelligence unit; and a test case output unit that outputs the test cases acquired by the test case acquisition unit. [Effects of the Invention]

[0007] According to this disclosure, it is possible to generate highly accurate test cases. [Brief explanation of the drawing]

[0008] [Figure 1] Configuration diagram of the software design support system 300 in Embodiment 1. [Figure 2] Configuration diagram of the test case generation device 100 in Embodiment 1. [Figure 3] A figure showing an example of the question format data 191 in Embodiment 1. [Figure 4] Configuration diagram of the software redesign device 200 in Embodiment 1. [Figure 5] Flowchart of the test case generation method in Embodiment 1. [Figure 6] Flowchart of the software redesign method in Embodiment 1. [Modes for carrying out the invention]

[0009] In the embodiments and drawings, the same or corresponding elements are denoted by the same reference numeral. The descriptions of elements denoted by the same reference numeral as the described elements are omitted or simplified as appropriate. The arrows in the figures mainly indicate the flow of data or processing.

[0010] Embodiment 1. The software design support system 300 will be explained based on Figures 1 to 6.

[0011] ***Explanation of the structure*** Based on Figure 1, the configuration of the software design support system 300 will be explained. The software design support system 300 comprises a test case generation device 100, a software redesign device 200, and an artificial intelligence unit 400. The artificial intelligence unit 400 has AI (Artificial Intelligence) capabilities. The artificial intelligence unit 400 comprises a first artificial intelligence unit 401, a second artificial intelligence unit 410, a third artificial intelligence unit 420, and a fourth artificial intelligence unit 430.

[0012] The test case generation device 100 generates and outputs test cases from a requirements specification document that outlines the requirements for the software. The software redesign device 200 updates the requirements specification document based on the test cases generated by the test case generation device 100 and outputs an updated requirements specification document, which is the updated requirements specification document.

[0013] The configuration of the test case generation device 100 will be explained based on Figure 2. The test case generation device 100 is a computer equipped with hardware such as a processor 101, memory 102, auxiliary storage device 103, communication device 104, and input / output interface 105. These hardware components are connected to each other via signal lines.

[0014] The processor 101 is an IC that performs arithmetic operations and controls other hardware. For example, the processor 101 is a CPU. IC is an abbreviation for Integrated Circuit. CPU is an abbreviation for Central Processing Unit.

[0015] The memory 102 is a volatile or non-volatile storage device. The memory 102 is also referred to as a main storage device or main memory. For example, the memory 102 is RAM. Data stored in the memory 102 is saved to the auxiliary storage device 103 as needed. RAM is an abbreviation for Random Access Memory.

[0016] The auxiliary storage device 103 is a non-volatile storage device. For example, the auxiliary storage device 103 is ROM, HDD, flash memory, or a combination thereof. Data stored in the auxiliary storage device 103 is loaded into the memory 102 as needed. ROM is an abbreviation for Read Only Memory. HDD is an abbreviation for Hard Disk Drive.

[0017] The communication device 104 is a receiver and a transmitter. For example, the communication device 104 is a communication chip or a NIC. The test case generation apparatus 100 performs communication using the communication device 104. NIC is an abbreviation for Network Interface Card.

[0018] The input / output interface 105 is a port to which an input device and an output device are connected. For example, the input / output interface 105 is a USB terminal, the input device is a keyboard and a mouse, and the output device is a display. Input / output of the test case generation apparatus 100 is performed via the input / output interface 105. USB is an abbreviation for Universal Serial Bus.

[0019] The test case generation apparatus 100 includes a specification analysis unit 110, a label acquisition unit 120, a question determination unit 130, a test case acquisition unit 140, and a test case display unit 150. These elements are implemented by software.

[0020] The specification analysis unit 110 analyzes the requirements specification document, which shows the requirements for the software. The specification analysis unit 110 includes a specification acquisition unit 111, a statement structure acquisition unit 112, and a block division unit 113.

[0021] The specification acquisition unit 111 acquires the requirements specification. The sentence structure acquisition unit 112 inputs the requirements specification acquired by the specification acquisition unit 111 into the first artificial intelligence unit 401 of the artificial intelligence unit 400, thereby acquiring the analysis result of the sentence structure corresponding to the requirements specification.

[0022] The first artificial intelligence unit 401 includes a trained model storage unit 402 and a model control unit 403. The first artificial intelligence unit 401 is a model and its operating environment that is constructed to output the analysis results of the sentence structure corresponding to the requirement specification when a requirement specification acquired by the specification acquisition unit 111 is input. The first artificial intelligence unit 401 acquires the requirement specification from the sentence structure acquisition unit 112 and outputs the analysis results of the sentence structure corresponding to the requirement specification based on the requirement specification and the trained model. The first artificial intelligence unit 401 is, for example, GinZA, an open-source library for Japanese natural language processing.

[0023] When the model control unit 403 obtains a requirements specification, it outputs the results of sentence structure analysis corresponding to the requirements specification based on the input specifications and the trained model. The sentence structure analysis results include the results of sentence boundary analysis and dependency parsing. Sentence boundary analysis determines the boundaries between sentences. Dependency parsing analyzes the modification relationships between morphemes after performing morphological analysis, which divides the text into morphemes.

[0024] The block division unit 113 divides the requirements specification into one or more blocks. For example, based on the results of sentence boundary analysis, the block division unit 113 treats each sentence of the requirements specification as one block.

[0025] The label acquisition unit 120 acquires subordinate clause labels corresponding to the requirement specifications for each block by inputting the requirement specifications for each block determined by the block division unit 113 and the analysis results of the sentence structure corresponding to the requirement specifications acquired by the sentence structure acquisition unit 112 into the second artificial intelligence unit 410 of the artificial intelligence unit 400. A subordinate clause label is a label that indicates the type of subordinate clause. A subordinate clause is a clause that modifies the main clause, which is the part of a sentence that contains the main verb. In Embodiment 1, the types of subordinate clauses include condition, time, location, reason / purpose, and scope.

[0026] The second artificial intelligence unit 410 includes a trained model storage unit 411 and a model control unit 412. The second artificial intelligence unit 410 is a model and its operating environment that is constructed to output corresponding dependent clause labels when block-specific requirements specifications and sentence structure analysis results are input. The second artificial intelligence unit 410 obtains block-specific requirements specifications and sentence structure analysis results from the label acquisition unit 120 and obtains corresponding dependent clause labels based on block-specific requirements specifications, sentence structure analysis results, and the trained model.

[0027] The trained model storage unit 411 stores the trained model. The trained model is, for example, a GAT (Graph Attention Networks) model. The trained model may include model parameters that define the model's behavior, such as constraints, weighting variables, and evaluation functions.

[0028] The model control unit 412 outputs the corresponding dependent clause label based on the requirements specification for each block, the analysis results of the corresponding sentence structure, and the trained model.

[0029] The question determination unit 130 determines a question sentence for each block from the labels obtained by the label acquisition unit 120. Specifically, the question determination unit 130 selects and determines one or more question sentences from the question format data stored in the storage unit 190 that ask for information of a subordinate clause type that is not included in the target block.

[0030] Figure 3 shows the question format data stored in the memory unit 190. The question format data stores the subordinate clause type and the question sentence that asks about the items of the subordinate clause type in association.

[0031] For example, if the target block contains a subordinate clause label of "condition," the question determination unit 130 determines a question sentence associated with a subordinate clause type different from "condition" as the question sentence for the target block. The subordinate clause types different from "condition" are "time," "location," "reason / purpose," and "scope," as shown in Figure 3.

[0032] The test case acquisition unit 140 acquires test cases for the software under development by inputting the block-by-block requirements specification and the question text determined by the question determination unit 130 into the third artificial intelligence unit 420 of the artificial intelligence unit 400.

[0033] The third artificial intelligence unit 420 includes a trained model storage unit 421 and a model control unit 422. The third artificial intelligence unit 420 is a model and its operating environment that is constructed to output corresponding test cases when block-specific requirements and question statements are input. The third artificial intelligence unit 420 obtains block-specific requirements and question statements from the test case acquisition unit 140 and obtains corresponding dependent clause labels based on the block-specific requirements, question statements, and trained model.

[0034] The trained models stored in the trained model memory unit 421 may include, for example, models such as NN (Neural Network), CNN (Convolutional Neural Network), RNN (Recurrent Neural Network), VAE (Variational Autoencoder), GAN (Generative Adversarial Networks), Diffusion models, Transformers, LLM (Large Language Model), VLM (Visual Language Model), BERT (Bidirectional Encoder Representations from Transformers), GPT (Generative Pre-trained Transformer), and CLIP (Contrastive Language Image Pre-training). Note that the above models are not mutually exclusive; for example, LLM, VLM, BERT, and GPT are included in Transformers. Also, for example, Transformers are included in NN. Furthermore, the training algorithm and model may be a combination of multiple types. Models may also include what are called multimodal models, which are trained by combining multiple different types of data.

[0035] The model control unit 422 outputs test cases for the software based on the requirements specifications, questions, and trained models for each block.

[0036] The test case display unit 150 displays the test cases acquired by the test case acquisition unit 140 on the display.

[0037] The auxiliary storage device 103 stores a test case generation program that enables the computer to function as a specification analysis unit 110, a label acquisition unit 120, a question determination unit 130, a test case acquisition unit 140, and a test case display unit 150. The test case generation program is loaded into memory 102 and executed by the processor 101. The auxiliary storage device 103 also stores the operating system. At least a portion of the OS is loaded into memory 102 and executed by the processor 101. Processor 101 runs the OS while simultaneously executing the test case generation program. OS is an abbreviation for Operating System.

[0038] Various data from the test case generation program (input data, usage data, generated data, output data, etc.) are stored in the storage unit 190. Memory 102 functions as a storage unit 190. However, storage devices such as auxiliary storage device 103, registers in the processor 101, and cache memory in the processor 101 may function as a storage unit 190 instead of memory 102, or together with memory 102.

[0039] The test case generation program can be recorded (stored) in a computer-readable format on a non-volatile recording medium such as an optical disc or flash memory.

[0040] The configuration of the software redesign device 200 will be explained based on Figure 4. The software redesign device 200 is a computer equipped with hardware such as a processor 201, memory 202, auxiliary storage device 203, communication device 204, and input / output interface 205. These hardware components are connected to each other via signal lines.

[0041] Processor 201 is an IC that performs arithmetic operations and controls other hardware. For example, processor 201 is a CPU. Memory 202 is a volatile or non-volatile storage device. Memory 202 is also called main memory. For example, memory 202 is RAM. Data stored in memory 202 is saved to auxiliary storage device 203 as needed. The auxiliary storage device 203 is a non-volatile storage device. The auxiliary storage device 203 is also called storage. For example, the auxiliary storage device 203 may be a ROM, HDD, flash memory, or a combination thereof. Data stored in the auxiliary storage device 203 is loaded into memory 202 as needed. The communication device 204 is a receiver and transmitter. For example, the communication device 204 is a communication chip or NIC. Communication of the software redesign device 200 is performed using the communication device 204. The input / output interface 205 is a port to which input and output devices are connected. For example, the input / output interface 205 is a USB terminal, the input devices are a keyboard and mouse, and the output device is a display. Input and output of the software redesign device 200 are performed using the input / output interface 205.

[0042] The software redesign device 200 includes elements such as a test case selection unit 210, a requirements specification update acquisition unit 220, and a specification display unit 230. These elements are implemented in software.

[0043] The test case selection unit 210 accepts user specifications for test cases generated by the test case generation device 100. More specifically, the test case selection unit 210 accepts user specifications by displaying the test cases generated by the test case generation device 100 on a display so that the user can select them. The test case selection unit 210 acquires the test cases specified by the user as selected test cases.

[0044] The requirements specification update acquisition unit 220 updates the requirements specification by inputting the requirements specification document and the selected test data selected by the test case selection unit 210 into the fourth artificial intelligence unit 430 of the artificial intelligence unit 400. The updated requirements specification acquired by the requirements specification update acquisition unit 220 is called the updated requirements specification document.

[0045] The fourth artificial intelligence unit 430 includes a trained model storage unit 431 and a model control unit 432. The fourth artificial intelligence unit 430 is a model and its operating environment that is constructed to update the requirements specification when the requirements specification and selection test data are input. The fourth artificial intelligence unit 430 obtains the requirements specification and selection test data from the requirements specification update acquisition unit 220 and obtains an updated requirements specification based on the requirements specification, selection test data, and trained model. An example of a trained model stored in the trained model storage unit 431 is the same as an example of a trained model stored in the trained model storage unit 421, so its explanation is omitted.

[0046] The model control unit 432 outputs an updated request specification based on the requirements specification, selected test data, and trained model.

[0047] The specification display unit 230 displays the updated specification document acquired by the updated specification acquisition unit 220 on the display.

[0048] The auxiliary storage device 203 stores software redesign programs that enable the computer to function as a test case selection unit 210, a requirements specification update acquisition unit 220, and a specification display unit 230. The software redesign programs are loaded into memory 202 and executed by the processor 201. The auxiliary storage device 203 also stores the operating system. At least a portion of the OS is loaded into memory 202 and executed by the processor 201. Processor 201 runs the software redesign program while simultaneously running the OS.

[0049] Various data from the software redesign program are stored in the storage unit 290. Memory 202 functions as storage unit 290. However, storage devices such as auxiliary storage device 203, registers in the processor 201, and cache memory in the processor 201 may function as storage unit 290 instead of memory 202, or together with memory 202.

[0050] The software redesign program can be recorded (stored) in a computer-readable format on a non-volatile recording medium such as an optical disc or flash memory.

[0051] ***Explanation of operation*** The operation procedure of the test case generation device 100 corresponds to the test case generation method. Furthermore, the operation procedure of the test case generation device 100 corresponds to the processing procedure of the test case generation program. The operating procedure of the software redesign device 200 corresponds to the software redesign method. Furthermore, the operating procedure of the software redesign device 200 corresponds to the processing procedure of the software redesign program.

[0052] The operating procedures of the software design support system 300 correspond to the software design support method. The software design support method includes a test case generation method and a software redesign method. The operating procedure of the software design support system 300 corresponds to the processing procedure of the software design support program. The software design support program includes a test case generation program and a software redesign program.

[0053] Based on Figure 5, the test case generation method performed by the test case generation device 100 will be explained. Step S111 begins when the specification acquisition unit 111 acquires the requirements specification. In step S111, the sentence structure acquisition unit 112 acquires the results of the sentence structure analysis of the requirements specification from the first artificial intelligence unit 401 of the artificial intelligence unit 400.

[0054] The process in step S112 is performed after the completion of the process in step S111. In step S112, the block division unit 113 divides the requirements specification into one or more blocks.

[0055] The processing in step S113 is performed after the processing in step S112 is completed. In step S113, the label acquisition unit 120 acquires one or more dependent clause labels from the second artificial intelligence unit 410 of the artificial intelligence unit 400 for each block divided in step S112.

[0056] The processing in step S114 is performed after the processing in step S113 is completed. In step S114, the question determination unit 130 determines one or more question sentences for each block that ask for information about subordinate clause types that are not included in the subordinate clause labels in the block obtained in step S113.

[0057] The process in step S115 is performed after the completion of the process in step S114. In step S115, the test case acquisition unit 140 inputs the requirements specification and the question text determined in step S114 into the third artificial intelligence unit 420 of the artificial intelligence unit 400 for each block to acquire test cases.

[0058] The process in step S116 is performed after the completion of the process in step S115. In step S116, the test case display unit 150 displays the test cases acquired in step S115 on the display.

[0059] Based on Figure 6, the software redesign method performed by the software redesign device 200 will be explained. Step S121 begins when the test case generation device 100 acquires test cases from the third artificial intelligence unit 420, that is, when step S115 is completed. In step S121, the test case selection unit 210 receives a selection of one or more test cases from the test cases acquired by the test case generation device 100 in step S115, and acquires selected test data.

[0060] The process in step S122 is performed after the completion of the process in step S121. In step S122, the requirements specification update acquisition unit 220 takes the selection test data and requirements specification acquired in step S121 as input and acquires the updated requirements specification from the fourth artificial intelligence unit 430 of the artificial intelligence unit 400.

[0061] The process in step S123 is performed after the completion of the process in step S122. In step S123, the specification display unit 230 displays the update request specification obtained in step S122 on the display.

[0062] The software redesign device 200 is configured to acquire test cases, but it is also acceptable to acquire test case data that represents test cases, rather than the test cases themselves. Alternatively, it may be configured to input selected test case data instead of test cases to the software redesign device 200. In that case, the software redesign device 200 has a selected test case acquisition unit that acquires selected test cases selected by another device from the test cases output by the test case generation device 100.

[0063] ***Features of Embodiment 1*** This section describes the features of the test case generation device 100. The test case generation device 100 takes ambiguous requirements specifications as input and outputs test cases for verification of those requirements specifications. The generated test cases are used as verification points to materialize the customer's (user's) vague requirements.

[0064] ***Effects of Embodiment 1*** Embodiment 1 provides the following effects. The test case generation device 100 can generate test cases by taking a requirements specification document as input, in order to concretize the customer's vague requirements specifications in software design. The software redesign device 200 can create new requirements specifications that embody the customer's requirements and reduce discrepancies in understanding, based on the customer's ambiguous requirements specifications and the test cases adopted by the customer.

[0065] ***Supplement to Embodiment 1*** I would like to add some information regarding the test case generation device 100. The test case generation device 100 is characterized by generating questions derived from subordinate clauses not included in the specification document. A question format is provided to concretize ambiguous requirements, and test cases are generated. Test cases are generated by inputting data into the artificial intelligence unit. By deliberately generating questions derived from subordinate clauses not included in the specification document, questions that would not normally be asked in relation to the specification document are generated. Therefore, it is possible to generate highly useful test cases. Conventional technology uses "similar past requirement specifications" as input. On the other hand, the test case generation device 100 uses ambiguous requirement specifications as input.

[0066] Furthermore, the number of test cases generated by the test case generation device 100 of Embodiment 1 is not limited. Any configuration that generates one or more test cases is acceptable.

[0067] Furthermore, the test case generation device 100 of Embodiment 1 includes a block division unit 113 that divides the requirement specification data into one or more blocks. By including the block division unit 113, the test case generation device 100 has the effect of being able to generate test cases in appropriate block units. Alternatively, the test case generation device 100 may be configured not to perform block division. In Embodiment 1, the block was a single sentence, but this is not limited to that. Blocks may be divided by the number of characters, chapter structure (including chapters and sections), or paragraph units.

[0068] Furthermore, the test case generation device 100 of Embodiment 1 is configured to obtain subordinate clause labels from the results of sentence structure analysis and dependency parsing of the requirements specification. This configuration has the effect of enabling the test case generation device 100 to obtain appropriate subordinate clause labels. Moreover, the types of analysis results obtained by the test case generation device 100 are not limited to this. For example, it may be configured to obtain subordinate clause labels from the results of morphological analysis. By configuring it to obtain subordinate clause labels from the results of morphological analysis without performing dependency parsing, the amount of data processed by the test case generation device 100 can be reduced. Furthermore, it may be configured to perform analysis of the sentence structure of the requirements specification in addition to morphological analysis and dependency parsing.

[0069] Furthermore, the test case generation device 100 of Embodiment 1 further includes a storage unit that stores subordinate clause types and questions associated with those subordinate clause types, and the question determination unit 130 determines a question for a subordinate clause type that is not included in the blocks stored in the storage unit 190. With this configuration, the test case generation device 100 can accurately generate questions that are not normally asked in relation to the specifications, and thus generate highly useful test cases. Alternatively, the test case generation device may be configured to determine the question for a subordinate clause without storing the data in the storage unit, by having the artificial intelligence unit generate a question for a subordinate clause that is not associated with the subordinate type. Alternatively, the test case generation device may be configured to determine the question for a subordinate clause from among several candidate question for a subordinate clause that the question determination unit 130 deems to be more useful. In addition, the number of questions determined by the question determination unit 130 may be one or more, or there may be multiple questions.

[0070] Furthermore, the test case generation device 100 of Embodiment 1 includes conditions, time, location, purpose, and range as subordinate clause labels. This configuration has the effect of enabling the test case generation device 100 to generate highly useful test cases. Moreover, the types of subordinate clause labels of the test case generation device 100 are not limited to these. Only some of these may be included, or other types may be included as well.

[0071] Furthermore, while the test case generation device 100 of Embodiment 1 is configured to input a requirements specification to the first artificial intelligence unit 401 and obtain the results of analyzing the sentence structure of the requirements specification, it is also possible that an external device other than the artificial intelligence unit may perform some or all of this processing. Alternatively, the processing performed by the first artificial intelligence unit 401 may be performed within the test case generation device 100.

[0072] Furthermore, in the test case generation device 100 of Embodiment 1, the trained model stored in the second artificial intelligence unit 410 is a GAT model, but the type of trained model may be another GNN (Graph Neural Network) model, or a configuration using another neural network may be used. Also, the test case generation device 100 is configured to input the block-by-block requirement specification and the analysis results of the sentence structure corresponding to the requirement specification to the second artificial intelligence unit 410 and obtain the subordinate clause labels corresponding to the block-by-block requirement specification, but an external device other than the artificial intelligence unit may perform some or all of this processing. Furthermore, the processing performed by the second artificial intelligence unit 410 may be performed within the test case generation device 100.

[0073] Furthermore, while the test case generation device 100 of Embodiment 1 is configured to display the generated test cases on a display using a test case display unit 150, it may also be configured to output test cases by a method other than displaying them on a display. For example, the test case generation device 100 may be configured to store test case data indicating test cases on a recording medium specified by the user.

[0074] Furthermore, in the test case generation device 100 of Embodiment 1, related information may be added to the questions given to the third artificial intelligence unit 420. By providing related information to the third artificial intelligence unit 420, the accuracy of the test cases can be improved. Related information is, for example, background information that indicates the background for which the question is intended. With this configuration, the third artificial intelligence unit 420 generates test cases that are suitable for the purpose of the question. For example, related information such as samples or specific examples may be prepared in advance, and related information may be associated with each question format. For example, background information may be linked to each dependent type and stored in the memory unit. Alternatively, background information may be generated by the artificial intelligence unit.

[0075] Furthermore, while the test case generation device 100 of Embodiment 1 divides the requirements specification into blocks after analyzing its sentence structure, it may also be configured to analyze the sentence structure after dividing it into blocks. The block division process can be performed at any time as long as the configuration allows for obtaining subordinate clause labels for each block.

[0076] Furthermore, the number of questions determined by the question determination unit 130 is not limited; there may be one question or multiple questions. The question determination unit 130 may also be configured to determine a question after selecting one or more subordinate clause types from among those not included in the block. In this case, the question determination unit 130 may randomly select one or more subordinate clause types from among those not included in the block. Alternatively, the memory unit may store subordinate clause types for which question creation is prioritized, and the question determination unit 130 may determine the subordinate clause type based on the priority order stored in the memory unit. The question determination unit 130 may also determine a question based on all subordinate clause types not included in the block. Furthermore, the questions determined by the question determination unit 130 may include questions different from those determined from among the subordinate clause types not included in the block.

[0077] I would like to add some information regarding the software redesign device 200. Software redesign does not refer to redesigning the software itself, but rather to redesigning the requirements specifications (making ambiguous specifications more concrete). The software redesign device 200 can update the requirements specifications using selected test cases chosen from the highly useful test cases generated by the test case generation device 100, thereby enabling the user to perform the requirements specification updates they desire. User interfaces such as checkboxes are used to select appropriate test cases. The generated requirements specification covers not only specific items but all items. The software redesign device 200 may be configured to include a modification acceptance unit that, after displaying the generated requirements specification to the user, accepts modifications to the updated requirements specification document from the user. By having such a configuration, the software redesign device 200 can create a requirements specification document that meets the user's wishes.

[0078] The software redesign device 200 is configured such that the test case selection unit 210 displays the test cases generated by the test case generation device 100 on a display so that the user can select them, thereby accepting user selection. However, it is also acceptable to have a configuration that accepts user selection even if the test cases are not displayed on the display. Furthermore, in Embodiment 1, the test cases generated by the test case generation device 100 are displayed on the display of the test case generation device 100 and the display of the software redesign device 200, respectively, but it is also acceptable to have a configuration where they are displayed on only one of them.

[0079] Furthermore, although the software redesign device 200 is configured such that the specification display unit 230 displays the update request specification acquired by the request specification update acquisition unit 220 on a display, it may also be configured to output the update request specification without displaying it on a display. For example, the software redesign device 200 may be configured to store update request specification data indicating the update request specification on a recording medium specified by the user. Alternatively, the software redesign device 200 may be configured to overwrite the update request specification.

[0080] Alternatively, the user may input the selected test cases into the software redesign device 200 after selecting them.

[0081] We will now provide some additional information about the GAT model, which is a trained model stored in the trained model memory unit 411 of the second artificial intelligence unit 410. The GAT model is inputted with graph data. This graph data represents specification documents, separated into morphemes, as a graph structure. The GAT model assigns either a main clause label or a dependent clause label based on the type of dependent clause to each node in the graph data. The GAT model is generated by training a training specification document file and a training label file as training data. The training label file shows the subordinate clause labels assigned to each morpheme separated by morphological analysis of the training specification document.

[0082] Embodiment 1 is an example of a preferred form and is not intended to limit the technical scope of this disclosure. Embodiment 1 may be implemented in part or in combination with other forms. The procedure described using flowcharts, etc., may be modified as appropriate.

[0083] The software design support system 300 may be implemented by one or more devices that implement the functions of the test case generation device 100 and the software redesign device 200. Each element of the test case generation device 100 and the software redesign device 200 may be implemented using software, hardware, firmware, or a combination thereof. Furthermore, the trained model used by the third artificial intelligence unit 420 and the trained model used by the fourth artificial intelligence unit 430 of the artificial intelligence unit 400 may be the same language model. Also, the artificial intelligence unit 400 may consist of a single device that implements the functions of the first artificial intelligence unit 401 through the fourth artificial intelligence unit 430. Additionally, the test case generation device 100 or the software redesign device 200 may be configured to have a configuration similar to some or all of the processing performed by the artificial intelligence unit 400. The word "part" in each element of the test case generation device 100 and the software redesign device 200 may be read as "process," "step," "circuit," or "circuitry."

[0084] The trained model and other information used by the artificial intelligence unit may be prepared in advance, or they may be acquired via the network as needed. Furthermore, the trained model storage unit may consist of multiple databases connected via the network.

[0085] Furthermore, in the description of the embodiment, it was stated that the input to the test case generation device 100 is a specification document and the display of the update request specification document is a software redesign device 200, but these do not have to be in document format. Any requirement specification data indicating the requirements specification to be developed will suffice.

[0086] The various aspects of this disclosure are described below as appendices. (Note 1) A label acquisition unit acquires one or more dependent clause labels indicating the dependent clause type of one or more dependent clauses included in each block that constitutes the requirements specification data showing the requirements specifications for the software, For each of the aforementioned blocks, a question determination unit determines one or more question sentences that ask for information about a subordinate clause type not included in the block, based on the one or more subordinate clause labels. A test case acquisition unit inputs the aforementioned block and the question sentence determined by the question determination unit corresponding to the aforementioned block into the artificial intelligence unit, and acquires test cases for the software from the artificial intelligence unit. A test case output unit that outputs the test cases acquired by the test case acquisition unit, A test case generation device equipped with the following features. (Note 2) A block division unit that divides the requirements specification data into blocks by analyzing the sentence structure of the requirements specification data. A test case generation device as described in Appendix 1, further comprising the features described in Appendix 1. (Note 3) The block division unit divides the requirements specification data into blocks based on one of the following: the boundaries of sentences, the number of characters, the chapter structure, or the paragraphs contained in the requirements specification data. The test case generation device described in Appendix 2. (Note 4) The label acquisition unit acquires the subordinate clause labels from the results of the sentence structure analysis of the requirements specification data. A test case generation device as described in any one of the items from Appendix 1 to Appendix 3. (Note 5) The label acquisition unit acquires the dependent clause labels from the results of morphological analysis of the requirements specification data. The test case generation device described in Appendix 4. (Note 6) A storage unit that stores the subordinate clause type and the question associated with the subordinate clause type. Furthermore, The question determination unit determines the question statement by obtaining the question statement associated with the dependent clause type that is not included in the block stored in the storage unit, based on the one or more dependent clause labels. A test case generation device as described in any one of the items from Appendix 1 to Appendix 5. (Note 7) The subordinate clause label acquired by the label acquisition unit includes any of the following: condition, time, location, purpose, or range. A test case generation device as described in any one of the items from Appendix 1 to Appendix 6. (Note 8) The test case acquisition unit inputs the block, the question, and background information indicating the background for which the question is intended into the artificial intelligence unit, and acquires test cases for the software from the artificial intelligence unit. A test case generation device as described in any one of the items from Appendix 1 to Appendix 7. (Note 9) A test case generation device comprising: a label acquisition unit that acquires one or more dependent clause labels indicating the dependent clause type of one or more dependent clauses included in each block comprising requirement specification data indicating the requirements specifications for software; a question determination unit that determines one or more question sentences that ask for information on dependent clause types not included in the block based on the one or more dependent clause labels for each block; a test case acquisition unit that inputs the block and the question sentences determined by the question determination unit corresponding to the block to an artificial intelligence unit and acquires test cases for the software from the artificial intelligence unit; and a test case output unit that outputs the test cases acquired by the test case acquisition unit, acquires selected test case data indicating one or more test cases selected from the test cases generated by the test case generation device, A requirements specification update acquisition unit inputs the requirements specification data and the selected test case data into the artificial intelligence unit and acquires updated requirements specification data, which is the updated requirements specification data from the artificial intelligence unit. A specification output unit that outputs the updated request specification data acquired by the request specification update acquisition unit, A software redesign device equipped with the following features. (Note 10) A test case selection unit acquires the test cases output by the test case output unit and displays them to the user, and accepts the selection of one or more test cases from among the test cases. Furthermore, The selected test case acquisition unit acquires the test cases specified by the user in the test case selection unit as selected test case data. The software redesign device described in Appendix 9. (Note 11) A modification reception unit acquires the update request specification data output by the specification output unit and displays it to the user, and accepts the user's modification of the update request specification data. A software redesign device as described in Appendix 9 or Appendix 10, further comprising the following: (Note 12) The label acquisition unit acquires one or more dependent clause labels for each block that constitutes the requirements specification data indicating the requirements specifications for the software, indicating the dependent clause type of one or more dependent clauses included in the block. The question determination unit determines, for each block, one or more question sentences that ask for information of a subordinate clause type not included in the block, based on the one or more subordinate clause labels. The test case acquisition unit inputs the block and the question sentence determined by the question determination unit corresponding to the block into the artificial intelligence unit, and acquires a test case for the software from the artificial intelligence unit. The specification output unit outputs the test cases acquired by the test case acquisition unit. A test case generation method comprising the following features. (Note 13) Steps to acquire selected test case data indicating one or more test cases selected from the test cases generated by a test case generation device comprising: a selected test case acquisition unit; a label acquisition unit that acquires one or more dependent clause labels indicating the dependent clause type of one or more dependent clauses included in each block that constitutes requirement specification data indicating the requirement specifications for the software; a question determination unit that determines one or more question sentences that ask for information on dependent clause types not included in the block based on the one or more dependent clause labels for each block; a test case acquisition unit that inputs the block and the question sentences determined by the question determination unit corresponding to the block to an artificial intelligence unit and acquires test cases for the software from the artificial intelligence unit; and a test case output unit that outputs the test cases acquired by the test case acquisition unit; The requirements specification update acquisition unit inputs the requirements specification data and the selected test case data to the artificial intelligence unit, and acquires updated requirements specification data, which is the updated requirements specification data, from the artificial intelligence unit. The specification output unit outputs the updated request specification data acquired by the request specification update acquisition unit, A software redesign method that includes the following features. (Note 14) The label acquisition unit acquires one or more dependent clause labels for each block that constitutes the requirements specification data indicating the requirements specifications for the software, indicating the dependent clause type of one or more dependent clauses included in the block. The question determination unit determines, for each block, one or more question sentences that ask for information of a subordinate clause type not included in the block, based on the one or more subordinate clause labels. The test case acquisition unit inputs the block and the question sentence determined by the question determination unit corresponding to the block into the artificial intelligence unit, and acquires a test case for the software from the artificial intelligence unit. The test case output unit outputs the test cases acquired by the test case acquisition unit. A test case generation program that causes a computer to execute the following. (Note 15) Steps to acquire selected test case data indicating one or more test cases selected from the test cases generated by a test case generation device comprising: a selected test case acquisition unit; a label acquisition unit that acquires one or more dependent clause labels indicating the dependent clause type of one or more dependent clauses included in each block that constitutes requirement specification data indicating the requirement specifications for the software; a question determination unit that determines one or more question sentences that ask for information on dependent clause types not included in the block based on the one or more dependent clause labels for each block; a test case acquisition unit that inputs the block and the question sentences determined by the question determination unit corresponding to the block to an artificial intelligence unit and acquires test cases for the software from the artificial intelligence unit; and a test case output unit that outputs the test cases acquired by the test case acquisition unit; The requirements specification update acquisition unit inputs the requirements specification data and the selected test case data to the artificial intelligence unit, and acquires updated requirements specification data, which is the updated requirements specification data, from the artificial intelligence unit. The specification output unit outputs the updated request specification data acquired by the request specification update acquisition unit, A software redesign program that includes the following features. (Note 16) A label acquisition unit acquires one or more dependent clause labels indicating the dependent clause type of one or more dependent clauses included in each block that constitutes the requirements specification data showing the requirements specifications for the software, For each of the aforementioned blocks, a question determination unit determines one or more question sentences that ask for information about a subordinate clause type not included in the block, based on the one or more subordinate clause labels. A test case acquisition unit inputs the aforementioned block and the question sentence determined by the question determination unit corresponding to the aforementioned block into the artificial intelligence unit, and acquires test cases for the software from the artificial intelligence unit. A selected test case acquisition unit acquires selected test case data that indicates one or more test cases selected from the aforementioned test cases, A requirements specification update acquisition unit inputs the requirements specification data and the selected test case data into the artificial intelligence unit and acquires updated requirements specification data, which is the updated requirements specification data from the artificial intelligence unit. A specification output unit that outputs the updated request specification data acquired by the request specification update acquisition unit, A software design support system equipped with the following features. [Explanation of Symbols]

[0087] 100 Test case generation device, 101 Processor, 102 Memory, 103 Auxiliary storage device, 104 Communication device, 105 Input / Output interface, 110 Specification analysis unit, 111 Specification acquisition unit, 112 Sentence structure acquisition unit, 113 Block division unit, 120 Label acquisition unit, 130 Question determination unit, 140 Test case acquisition unit, 150 Test case display unit, 190 Storage unit, 191 Question format data, 200 Software redesign device, 201 Processor, 202 Memory, 203 Auxiliary storage device, 204 Communication device, 205 Input / Output interface, 210 Test case selection unit, 220 Requirements specification update acquisition unit, 230 Specification display unit, 290 Storage unit, 300 Software design support system, 400 Artificial intelligence unit, 401 First artificial intelligence unit, 402 Trained model storage unit, 403 Model control unit, 410 Second artificial intelligence unit, 411 trained model memory unit, 412 model control unit, 420 third artificial intelligence unit, 421 trained model memory unit, 422 model control unit, 430 fourth artificial intelligence unit, 431 trained model memory unit, 432 model control unit.

Claims

1. A label acquisition unit acquires one or more dependent clause labels indicating the dependent clause type of one or more dependent clauses included in each block that constitutes the requirements specification data showing the requirements specifications for the software, For each block, a question determination unit determines one or more question sentences that ask for information about a subordinate clause type not included in the block, based on the one or more subordinate clause labels. A test case acquisition unit inputs the aforementioned block and the question sentence determined by the question determination unit corresponding to the aforementioned block into the artificial intelligence unit, and acquires test cases for the software from the artificial intelligence unit. A test case output unit that outputs the test cases acquired by the test case acquisition unit, A test case generation device equipped with the following features.

2. A block division unit that divides the requirements specification data into blocks by analyzing the sentence structure of the requirements specification data. The test case generation apparatus according to claim 1, further comprising:

3. The block division unit divides the requirements specification data into blocks based on one of the following: the boundaries of sentences, the number of characters, the chapter structure, or the paragraphs contained in the requirements specification data. The test case generation apparatus according to claim 2.

4. The label acquisition unit acquires the subordinate clause labels from the results of the sentence structure analysis of the requirements specification data. The test case generation apparatus according to claim 1.

5. The label acquisition unit acquires the dependent clause labels from the results of morphological analysis of the requirements specification data. The test case generation apparatus according to claim 4.

6. A storage unit that stores the subordinate clause type and the question associated with the subordinate clause type. Furthermore, The question determination unit determines the question statement by obtaining the question statement associated with the dependent clause type that is not included in the block stored in the storage unit, based on the one or more dependent clause labels. The test case generation apparatus according to claim 1.

7. The subordinate clause label acquired by the label acquisition unit includes any of the following: condition, time, location, purpose, or range. The test case generation apparatus according to claim 1.

8. The test case acquisition unit inputs the block, the question, and background information indicating the background for which the question is intended into the artificial intelligence unit, and acquires test cases for the software from the artificial intelligence unit. The test case generation apparatus according to claim 1.

9. A test case generation device comprising: a label acquisition unit that acquires one or more dependent clause labels indicating the dependent clause type of one or more dependent clauses included in each block that constitutes requirement specification data indicating the requirements specification for software; a question determination unit that determines one or more question sentences that ask for information on dependent clause types not included in the block based on the one or more dependent clause labels for each block; a test case acquisition unit that inputs the block and the question sentences determined by the question determination unit corresponding to the block to an artificial intelligence unit and acquires test cases for the software from the artificial intelligence unit; and a test case output unit that outputs the test cases acquired by the test case acquisition unit, select test case acquisition unit that acquires one or more test cases selected from the test cases generated by the test case generation device, A requirements specification update acquisition unit inputs the requirements specification data and the selected test case data into the artificial intelligence unit and acquires updated requirements specification data, which is the updated requirements specification data from the artificial intelligence unit. A specification output unit that outputs the updated request specification data acquired by the request specification update acquisition unit, A software redesign device equipped with the following features.

10. A test case selection unit acquires the test cases output by the test case output unit and displays them to the user, and accepts the selection of one or more test cases from among the test cases. Furthermore, The selected test case acquisition unit acquires the test cases specified by the user in the test case selection unit as selected test case data. The software redesign apparatus according to claim 9.

11. A modification reception unit acquires the update request specification data output by the specification output unit and displays it to the user, and accepts the user's modification of the update request specification data. The software redesign apparatus according to claim 9, further comprising:

12. The label acquisition unit acquires one or more dependent clause labels for each block that constitutes the requirements specification data indicating the requirements specifications for the software, indicating the dependent clause type of one or more dependent clauses included in the block. The question determination unit determines, for each block, one or more question sentences that ask for information of a subordinate clause type not included in the block, based on the one or more subordinate clause labels. The test case acquisition unit inputs the block and the question sentence determined by the question determination unit corresponding to the block into the artificial intelligence unit, and acquires a test case for the software from the artificial intelligence unit. The specification output unit outputs the test cases acquired by the test case acquisition unit. A test case generation method comprising the following features.

13. Steps to acquire selected test case data, which indicates one or more test cases selected from the test cases generated by a test case generation device comprising: a selected test case acquisition unit; a label acquisition unit that acquires one or more dependent clause labels indicating the dependent clause type of one or more dependent clauses included in each block that constitutes requirement specification data indicating the requirement specifications for the software; a question determination unit that determines one or more question sentences that ask for information on dependent clause types not included in the block based on the one or more dependent clause labels for each block; a test case acquisition unit that inputs the block and the question sentences determined by the question determination unit corresponding to the block to an artificial intelligence unit and acquires test cases for the software from the artificial intelligence unit; and a test case output unit that outputs the test cases acquired by the test case acquisition unit; The requirements specification update acquisition unit inputs the requirements specification data and the selected test case data to the artificial intelligence unit, and acquires updated requirements specification data, which is the updated requirements specification data, from the artificial intelligence unit. The specification output unit outputs the updated request specification data acquired by the request specification update acquisition unit, A software redesign method that includes the following features.

14. The label acquisition unit acquires one or more dependent clause labels for each block that constitutes the requirements specification data indicating the requirements specifications for the software, indicating the dependent clause type of one or more dependent clauses included in the block. The question determination unit determines, for each block, one or more question sentences that ask for information of a subordinate clause type not included in the block, based on the one or more subordinate clause labels. The test case acquisition unit inputs the block and the question sentence determined by the question determination unit corresponding to the block into the artificial intelligence unit, and acquires a test case for the software from the artificial intelligence unit. The test case output unit outputs the test cases acquired by the test case acquisition unit. A test case generation program that causes a computer to execute the following.

15. Steps to acquire selected test case data, which indicates one or more test cases selected from the test cases generated by a test case generation device comprising: a selected test case acquisition unit; a label acquisition unit that acquires one or more dependent clause labels indicating the dependent clause type of one or more dependent clauses included in each block that constitutes requirement specification data indicating the requirement specifications for the software; a question determination unit that determines one or more question sentences that ask for information on dependent clause types not included in the block based on the one or more dependent clause labels for each block; a test case acquisition unit that inputs the block and the question sentences determined by the question determination unit corresponding to the block to an artificial intelligence unit and acquires test cases for the software from the artificial intelligence unit; and a test case output unit that outputs the test cases acquired by the test case acquisition unit; The requirements specification update acquisition unit inputs the requirements specification data and the selected test case data to the artificial intelligence unit, and acquires updated requirements specification data, which is the updated requirements specification data, from the artificial intelligence unit. The specification output unit outputs the updated request specification data acquired by the request specification update acquisition unit, A software redesign program that includes the following features.

16. A label acquisition unit acquires one or more dependent clause labels indicating the dependent clause type of one or more dependent clauses included in each block that constitutes the requirements specification data showing the requirements specifications for the software, For each block, a question determination unit determines one or more question sentences that ask for information about a subordinate clause type not included in the block, based on the one or more subordinate clause labels. A test case acquisition unit inputs the aforementioned block and the question sentence determined by the question determination unit corresponding to the aforementioned block into the artificial intelligence unit, and acquires test cases for the software from the artificial intelligence unit. A selected test case acquisition unit acquires selected test case data that indicates one or more test cases selected from the aforementioned test cases, A requirements specification update acquisition unit inputs the requirements specification data and the selected test case data into the artificial intelligence unit and acquires updated requirements specification data, which is the updated requirements specification data from the artificial intelligence unit. A specification output unit that outputs the updated request specification data acquired by the request specification update acquisition unit, A software design support system equipped with the following features.

Citation Information

Patent Citations

  • Test specification creation equipment

    JP7599565B2