tc_scenario
Record and replay UI scenarios for 1C:Enterprise test clients. Capture real user actions and replay them to automate testing or reproduce workflows.
Instructions
Record and replay UI scenarios. In the signatures below a trailing * marks a REQUIRED parameter — the group schema itself accepts every parameter as optional. Actions:
record_cancel() Cancel user-actions recording (discard the scenario). (1C 8.3.2+)
record_finish(path=null) Stop recording and return the scenario XML in 'uilog', or write it to
path, resolved against the SERVER working directory and echoed back absolute. If the file cannot be written the answer carries ok=false, the path, the reason AND the scenario in 'uilog' — recording is already stopped, so a second call will not give it back. lost_actions: actions that could not be captured, so the scenario is incomplete for replay. no_effect: calls whose value came back unchanged — a hint to check, not a verdict, and it numbers CALLS, not steps of the XML. observed/not_observed count the calls whose result could and could not be read back; readback/scope say whether reading back was on at all and how wide it reached. An empty no_effect with zero observed means nothing was checked. (1C 8.3.2+)record_pause() Pause user-actions recording: actions performed until tc_scenario(action="record_resume") stay out of the scenario. (1C 8.3.2+)
record_resume() Resume user-actions recording. (1C 8.3.2+)
record_start() Start recording a scenario (uilog) that tc_scenario(action="run_scenario") can replay later. Perform the real, effect-producing actions between start and tc_scenario(action="record_finish"), then read the scenario from finish. (1C 8.3.2+)
run_scenario(uilog=null, path=null) Replay a recorded uilog scenario on the current form. Give the XML in
uilogor apathto a file with it. Steps that could not be replayed are listed inunsupported.totalcounts every step in the scenario;playedcounts the ones actually attempted, REGARDLESS of how they went, so a failed step is still counted. Neither is a count of effects:oksays every attempted step was accepted, and the effect of a step is insteps[].changed, the same contract as when you call the action directly. connection_id selects the client. With several clients, connection_id is required. Use tc_session(action="list_connections").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| uilog | No | ||
| action | Yes | ||
| connection_id | No |