Documentation Index
Fetch the complete documentation index at: https://momentic.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
1. Declare parameters
Add a parameters key to your test file. Parameters become available as
env.<NAME> inside steps.
fileType: momentic/test
name: inputs-test
parameters:
- name: USERNAME
required: true
defaultValue: ""
- name: PASSWORD
required: true
defaultValue: ""
steps:
- id: 625fba87-...
type: PRESET_ACTION
command:
id: c791ef59-...
type: JAVASCRIPT
code: assert(env.USERNAME.length > 0)
2. Create a CSV
The first row is the header (parameter names). Each subsequent row is one run.
USERNAME,PASSWORD
alice@example.com,hunter2
bob@example.com,correcthorse
3. Run it
npx momentic run --input-csv inputs.csv inputs-test.test.yaml
Momentic runs the test once per CSV row, substituting the column values into
env.