create_test_case
Creates a new test case in an existing Squish test suite. Supports standard Python tests and BDD tests with optional content and description.
Instructions
Create a new Squish test case within an existing test suite.
Args: suite_path: Absolute path to the test suite directory (must start with 'suite_') test_case_name: Name of the test case (will be prefixed with 'tst_' if not already) test_content: Python code content for the test.py file (optional) is_bdd: Whether to create a BDD test with proper QtCare Squish BDD structure (default: False) test_description: Description for BDD feature file (optional, recommended for BDD tests)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| is_bdd | No | ||
| suite_path | Yes | ||
| test_content | No | ||
| test_case_name | Yes | ||
| test_description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| is_bdd | Yes | Whether this is a BDD test case with .feature file | |
| message | Yes | Summary of what was created | |
| feature_path | No | Path to the .feature file (BDD tests only) | |
| test_py_path | Yes | Absolute path to the created test.py file | |
| files_created | Yes | All file paths that were created | |
| test_case_path | Yes | Absolute path to the created test case directory | |
| suite_conf_path | No | Path to suite.conf that was updated |