Creating a Test Case Along with a New App

Before you start unit testing, you must create a test case.

    Procedure
  1. Open the Explorer view.
  2. Navigate to the workspace where you want to create a Flogo app and click the dropdown icon next to that workspace folder.
  3. Click (Create a New Flogo App) to create a new Flogo app.
  4. Add the name of the app in the top-most text bar that pops up and press Enter.

    Note: The app name must not contain any spaces. It must start with a letter or underscore. The app name can contain letters, digits, periods, dashes, and underscores.
  5. Click Create App and Unit Tests.
ResultThe app is created. A flow called New_flow is automatically created. You can now create one or more flows for the app. Two files are created in the workspace - <app name>.flogo and <app name>.flogotest. The <app name>.flogo file is the app's JSON file and the <app name>.flogotest is the app's unit test file.
Note: If you copy a app that has a password property from one workspace to another and then open that app in the editor view, the password type values persist. As a workaround, remove the password type values manually before sharing the app.