InputGen is a tool for automatic generation Prototype Inputs to Support Rapid Requirements Validation . The benefits of InputGen are as follows:

  1. Automatic input data generation of system operations. InputGen can automatically refactor the prototype generated by RM2PT to support generating the validated input data of the system operation.

  2. Initial data auto-loading. InputGen contains an interface for loading initial data, which can save the time for the administrator. The initial data can be imported from external YAML file, which can be viewed and modified easily by the user.

  3. Supporting rapid requirements validation. Compared with the original prototype generated from RM2PT, InputGen can automatically refactor the generatedthen prototype from the same requirements model without any templates. Then refactoried prototype can automatically generate the validated input data of the system operation, this will boost the validation process.

The video cast its feature is listed as follows (Youtube):

InputGen Installation


InputGen is an advanced feature of RM2PT. We recommend you to use InputGen in RM2PT. If you don’t have RM2PT, download here.

Online Installation

Open RM2PT, click on Help -> Install New Software


Type in the Work with field, select RM2Doc and click Next.


Offline Installation

If the update site does not work, you can choose to install it offline. Click here to download InputGen. Follow the steps below to install.






InputGen Tutorial


In order to generate the prototype inputs, you need a requirement model, the RM2PT project. For creating or importing a RM2PT project,you can see the tutorial here. We recommend importing RM2PT projects from Git, which is avaliable at CaseStudies. The tutorial is here.

Input of InputGen — Requirements Model


The input to InputGen is a UML requirements model with OCL constraints. The model includes: a conceptual class diagram, a use case diagram, system sequence diagrams, contracts of and system operations.

1) Generate a prototype from the requirement model

After you import a requirements model, first, we use the RM2PT to generate a prototype from the requirements model by right click on cocome.remodel -> RM2PT-> OO Prototype-> ` Generate Desktop Prototype`


2) Run the InputGen tool to refactor the prototype

after you generate a prototype, we use the InputGen to refactor the prototype from the requirements model by right click on cocome.remodel -> RM2PT-dev-> InputGen, and update the project.


3) The third step is to run the refactored prototype

Run the refactored prototype to validate the requirements by right click on COCOMEPrototype -> pom.xml-> run-> maven build . 8runprototype

4) Importing the initial data

Before using the prototype to validate the requirements, we can use the Load File button to automatically load the initial data through the external interface, without manually adding it after modeling the administrator. We provide an external CoCoME yaml file, you can click here to download.


5) You can use the refactored prototype to validate the requirements.

The Output of InputGen

After automatically refactoring and enhancing the generated prototype by the tool InputGen, the enhanced prototype contains two advantages as follows:

For example

In the system operation enterItem, you can choose to click the LoadFromState button to generate input data, if you think that the input data does not meet your requirements, you can also click the input box to choose other candidates. Moreover, you can click the InputReset button to reset all inputs and manually input them by yourself.

The image below shows a part of CoCoME’s automatic input data generation of the system operation enterItem. For more details, please see CaseStudies.