Skip to main content

TestingAgents

Testing Agents

Testing Agents help validate your MuleSoft flows by generating test cases and sample data, ensuring accuracy and functionality before deployment.

1. MUnit Test Generator

Generates MUnit tests for specific MuleSoft flows based on your selected repository or uploaded project.

  • Flow-Aware Testing: Automatically detects flows from the selected repo or upload and generates appropriate MUnit scenarios.
  • Highly Configurable: Specify VM arguments, choose runtime versions, and adjust test case complexity using provided controls.
  • Coverage Ready: Optionally enable test coverage reporting for visibility into flow validation.

Supported Input Modes:

  • With Repository: Connect a Git repo to select flows directly from your project.
  • Upload from Computer: Upload a MuleSoft project folder to access local flow files.

Additional Features:

  • VM Args: Define custom environment variables or JVM flags for test execution.
  • Coverage Toggle: Enable or disable test coverage collection.
  • Scenario Slider: Choose how many test cases to generate (up to 3).
  • Flow Selector: Pick the specific flow you want to test.
  • Runtime Configuration: Choose your Java, Maven, and Mule runtime versions.
  • settings.xml Support: Upload a settings.xml file for Maven config adjustments.
  • Notes (Optional): Add extra guidance or sample expectations to tailor test logic.

This agent helps you automate and accelerate test creation for faster and more confident Mule deployments.

2. Sample Data Generator

Generates realistic input-output samples from a provided DataWeave (DWL) script to help test or demonstrate data transformations.

  • Quick Test Setup: Produces mock data that matches the structure defined by your DataWeave logic.
  • Input Type Aware: Customize the data shape by selecting the appropriate input format (e.g., JSON, XML).
  • Script-Driven Generation: Simply paste your DWL script, and the platform generates corresponding samples.

Supported Input Modes:

  • No Repository: Paste the DWL script directly without any project context.
  • With Repository: Select a DWL file from a connected repository and auto-generate sample data.
  • Upload from Computer: Upload a Mule project folder that includes DWL files.

Additional Features:

  • Input Format Selection: Choose from JSON, XML, CSV, YAML, TEXT, etc., to tailor the output.
  • Notes (Optional): Add special considerations or sample data preferences to guide generation.
  • VM Args: Provide optional runtime parameters if required for execution context.
  • Runtime Configuration: Select Java, Maven, and Mule runtime versions.
  • settings.xml Support: Upload a settings.xml file to influence configuration if applicable.

This agent is especially useful when you want to simulate flow behavior without needing actual backend calls or real input data.