Create Shared Step
create_shared_stepCreate a shared step in Allure TestOps to define reusable test actions with optional nested steps and expected results.
Instructions
Create a new reusable Shared Step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the shared step (e.g., "Login as Admin"). | |
| steps | No | Optional list of steps. Each step is a dictionary with: - action (str): The step description (e.g., "Enter username"). - expected (str, optional): The expected result. - attachments (list[dict], optional): List of attachments containing: - content (str): Base64 encoded content. - name (str): Filename. - steps (list[dict], optional): Nested steps (recursive structure). | |
| project_id | No | Optional override for the default Project ID. | |
| output_format | No | Output format: 'json' (default) or 'plain'. |