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 "c8266461-6880-4e4c-98fe-dab7d33b3dfb" \
--params "{'endTime':'01/01/2026 20:00:00','status':'passed','description':'Updated launch description'}"
Result
{
"id": "4338fd75-e913-4b8f-89de-096b8a8d3b2a",
"number": 334,
"link": "http://tests.openintegrations.dev/ui/#test/launches/all/524"
}