# Script Generation & Editing

#### Generated Script

At the end of every successful Fathom run, a test script is automatically created. The script reflects all actions taken during the execution and is immediately accessible in the editor.

The generated script includes:

1. The sequence of UI actions executed during the run
2. Conditional IF blocks detected from the intent
3. Validation commands (if defined during the run)
4. Navigation steps required to complete the scenario

#### Editing the Script

Once a script is generated, it can be reviewed and modified in the editor. Users can:

1. Review the full sequence of generated steps
2. Modify or optimize individual commands
3. Add additional validations or steps as needed

#### Saving and Reusing

Edited scripts can be saved and added to test plans for reuse in future executions. This enables teams to move from intent → execution → reusable automation in a single workflow.

Saved Fathom-generated scripts behave the same as any other test case in Drizz and can be used for regression testing or repeated runs.
