run_test
Execute a Squish test suite or a single test case using the absolute path and optional context variables, returning test results.
Instructions
Run a Squish test suite or test case.
You need to figure out the test suite and test case absolute paths on your own. You may be asked to either run a full test suite or a single test case within a test suite.
This is a wrapper around the squishrunner command line tool.
IMPORTANT PATH HANDLING AND SQUISH TEST NAMING CONVENTIONS:
All paths are absolute paths, but you should infer missing ones from context.
Test suites are named like
suite_<test_suite_name>- these are folders under the root pathTest cases are named like
tst_<test_name>- these are folders under the test suite pathTest files are under the test case folders and are named like
test.py
Args: test_suite_path: Absolute path to the test suite which you should figure out on your own Example: "/Users/yourname/projects/addressbook/suite_py" context: Dictionary variables of options to pass to Squish Format: {"VAR_NAME": "value"} test_case_name: Name of the test case to run. Example: "tst_general"
Returns: Test run results with squishrunner output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | Yes | ||
| test_case_name | No | ||
| test_suite_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stderr | Yes | Standard error output from squishrunner | |
| stdout | Yes | Standard output from squishrunner |