Shared steps and parameters
- Shared steps (Cases → “Shared steps”): steps repeated in many cases, such as “Sign in as an administrator”. They go into a case as a block (“+ Shared step…” in the steps editor); the block cannot be edited inside the case, only moved or removed. Changing a shared step rewrites every case with it as new versions (with the author of the change), so the history shows when their steps changed. When a shared step is deleted, its steps stay in the cases as ordinary ones.
- Parameters of a case are a table: parameter names and rows of values.
{{name}}in the title, preconditions and steps is replaced with the value; in a run the case becomes several iterations, one per row, each with its own result, marked “1/3”, “2/3”… in the run’s list. A JUnit report about such a case sets the result of all its iterations. Updating an iteration to a new case version takes its row from the new data. - In case files (
tsmc pull/push) a shared step is a lineN. @shared Name, parameters are a## Datasection with a table (tsmc pullwrites the Russian## Данные; both are read); see Cases as code.
API: /api/projects/:project/shared-steps, /api/shared-steps/:id (PATCH answers how many cases were
updated); a case has a dataset: { columns, rows } field, a step shared: { id, name, part }, a result in a
run iteration, iterations, params.