Returns
Returns anActiveRun: a handle on the open Run that also works as a context manager.
Use it in a with block. Every session and evaluation the SDK creates inside the block joins the run,
and leaving the block closes the run. A failure inside the block closes it too, so a run never stays open
after an error.
Outside a with block the handle stays open until you call close() on it, or
runs.close(run_id).
A production session cannot belong to a run, and
sessions.create() treats a session with no
test_case_id as production. So a plain galtea.sessions.create(version_id=...) inside the
block joins no run; pass is_production=False or a test_case_id to join it.ActiveRun reads like the run itself: run.id, run.ordinal, run.custom_id and run.status all
come from the wrapped Run. It adds two methods of its own, close() and
delete(), both taking no arguments.
Example
Parameters
string
required
The ID of the product this run belongs to. A run always names exactly one product.
string
The ID of the version under test. A run that names a version accepts only work naming that version.
Omit it to let the run span several versions of the product.
string
Your own label for the run, for example a build number. It must be unique within the product among
runs that are not deleted. Use it to find the run again with Get Run By Custom ID.