Skip to main content

Get launch completion structure

Gets the parameter structure for completing a test session

Function GetLaunchCompletionStructure(Val Time, Val Status = "", Val Description = "", Val Attributes = "") Export

ParameterCLI optionTypeRequiredDescription
Time--endDateLaunch end date and time
Status--statusStringCompletion status: passed, failed, stopped, skipped, interrupted, cancelled
Description--descrStringLaunch description. Overwrites the one specified during creation
Attributes--attrStringLaunch attributes. Overwrites the one specified during creation
Returns

Structure Of KeyAndValue - Fields structure

1C:Enterprise/OneScript code example
Time = Date("20260101100000");
Status = "passed";
Description = "Some test";
Attributes = "key1:value1, key2:value2";

Result = OPI_ReportPortal.GetLaunchCompletionStructure(Time, Status, Description, Attributes);
oint rportal GetLaunchCompletionStructure \
--end "2026-01-01T20:00:00" \
--status "passed" \
--descr "Updated launch description"
Result
{
"endTime": "2026-01-01T10:00:00",
"status": "passed",
"description": "Some test",
"attributes": "key1:value1, key2:value2"
}