Finish launch
Ends a previously started test execution session
- Parameters
- Advanced call ?
Function FinishLaunch(Val URL, Val Token, Val Project, Val LaunchUUID, Val FinishStructure) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| URL | --url | String | ✔ | ReportPortal server URL |
| Token | --token | String | ✔ | Access token |
| Project | --proj | String | ✔ | Project ID |
| LaunchUUID | --uuid | String | ✔ | Launch UUID |
| FinishStructure | --params | Structure Of KeyAndValue | ✔ | Completion parameters. See GetLaunchCompletionStructure |
Returns
Map Of KeyAndValue - serialized JSON response from ReportPortal
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
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);
- Bash
- CMD/Bat
# 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'}"
:: 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"
}