Skip to main content

Finish launch

Ends a previously started test execution session

Function FinishLaunch(Val URL, Val Token, Val Project, Val LaunchUUID, Val FinishStructure) Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringReportPortal server URL
Token--tokenStringAccess token
Project--projStringProject ID
LaunchUUID--uuidStringLaunch UUID
FinishStructure--paramsStructure Of KeyAndValueCompletion parameters. See GetLaunchCompletionStructure
Returns

Map Of KeyAndValue - serialized JSON response from ReportPortal

1C:Enterprise/OneScript code example
URL = "tests.openintegrations.dev";
Token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX25hbWUiOiJzdXBlcmFkbWluIiwic2NvcGVzIjpbInVpIl0sImV4cCI6MTc2MjAwMDI3NiwiaWF0IjoxNzYxOTEzODc2LCJqdGkiOiI0NTI3YTc5OS0wN2...";
LaunchID = "";
Project = "Test";

EndDate = Date("20260101200000");
FinishStructure = OPI_ReportPortal.GetLaunchCompletionStructure(EndDate
, "passed"
, "Updated launch description");

Result = OPI_ReportPortal.FinishLaunch(URL, Token, Project, LaunchID, FinishStructure);
# JSON data can also be passed as a path to a .json file

oint rportal FinishLaunch \
--url "tests.openintegrations.dev" \
--token "***" \
--proj "Test" \
--uuid "05226b08-ff9f-4f35-806b-7e6af60beac0" \
--params "{'endTime':'01/01/2026 20:00:00','status':'passed','description':'Updated launch description'}"
Result
{
"id": "05226b08-ff9f-4f35-806b-7e6af60beac0",
"number": 150,
"link": "http://tests.openintegrations.dev/ui/#test/launches/all/238"
}