abouttutorialspricingterms
Login

  • Quick start
  • Modelling and data generation (part 1)
  • Modelling and data generation (part 2)
  • Integration with Java
  • Integration with C++
  • Integration with C#
  • Integration with Python
  • Integration with Node.js
  • Examples

Documentation

  • JUnit runner
  • Export templates

Modelling and data generation, part 1

Contents

Prerequisites and syntax
Model editor
Classes and methods
Parameters and choices
Hierarchical choices
Randomized choices
User types
Constraints
Data generation
Data export

Classes and methods

To show how to use ecFeed we will create a model of a bank application that processes customer data and decides whether to grant them a loan. We will start by adding a test class to the model. This is done in the context menu of the root node in the model page or by clicking the Add class button in the Classes viewer in the model details page. Add a test class and change it's name to LoanDecisionTest.

We have to stick to naming rules for Java classes (alphanumeric string, no spaces, starts from letter, no reserved keywords etc.). By convention, Java classes are named using nouns with each letter capitalized. Sticking to this convention will not hurt and will help us avoiding some potential problems in the future. Leave the package name unchanged (com.example.test).

Now, let's add a test method to our class. Our first test method will be used to generate example data of customers that may want to get a loan in our bank. So let's call the test method generateCustomerData.