run_scenario
Executes BDD/Gherkin scenarios against a running 1C TestClient, running live open steps and replaying captured action frames, then returns the ScenarioResult.
Instructions
Run a scenario (from feature_text or scenario_json) through the native Python TestManager against a running
1C /TESTCLIENT at host:port. When feature_text carries several scenarios, the first runs and the rest
register as callees for any run_subscenario («я выполняю сценарий 'X'») step.
OPEN steps (open_main_form / open_list) EXECUTE LIVE with no capture: the form is opened by its e1cib
nav-link via the splice_navigate sequence on the bootstrapped session (config-agnostic, fixture-free — the same
mechanism read_form_descriptor uses). The step passes when the form actually opens (window-resolved), so «Я
открываю основную форму справочника 'Валюты'» drives a real client open + state change. Other ACTION steps
(click/select/input/close/…) re-target a CAPTURED command frame, so to EXECUTE those pass action_capture —
the capture dir holding those command frames; each action step's frame is located by its marker and replayed
GUID-rebound to the live session. action_input_value is the value baked into the capture's input frame (so a
.feature input_text retargets correctly), and action_ordinals ("marker=ordinal,marker=ordinal") pins a
frame when a marker is not unique. Without action_capture only read/assert/data/skip/subscenario/open steps
run; other action steps report unsupported. Returns the ScenarioResult.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | 127.0.0.1 | |
| port | No | ||
| capture_dir | No | tm-v1-ro-batchQ3 | |
| feature_text | No | ||
| scenario_json | No | ||
| action_capture | No | ||
| single_session | No | ||
| action_ordinals | No | ||
| manager_templates | No | /app/src/qa_mcp/_bundled/8.3/templates/manager_frame_templates.json | |
| action_input_value | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||