Create launch
Starts a new test execution session
- Parameters
- Advanced call ?
Function CreateLaunch(Val URL, Val Token, Val Project, Val LaunchStructure) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| URL | --url | String | ✔ | ReportPortal server URL |
| Token | --token | String | ✔ | Access token |
| Project | --proj | String | ✔ | Project ID |
| LaunchStructure | --params | Structure Of KeyAndValue | ✔ | Launch parameters. See GetLaunchStructure |
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...";
Project = "Test";
StartDate = Date("20260101100000");
LaunchStructure = New Structure;
LaunchStructure.Insert("name" , "Test");
LaunchStructure.Insert("startTime" , StartDate);
LaunchStructure.Insert("description", "Test launch");
Result = OPI_ReportPortal.CreateLaunch(URL, Token, Project, LaunchStructure);
- Bash
- CMD/Bat
# JSON data can also be passed as a path to a .json file
oint rportal CreateLaunch \
--url "tests.openintegrations.dev" \
--token "***" \
--proj "Test" \
--params "{'name':'Test','startTime':'01/01/2026 10:00:00','description':'Test launch'}"
:: JSON data can also be passed as a path to a .json file
oint rportal CreateLaunch ^
--url "tests.openintegrations.dev" ^
--token "***" ^
--proj "Test" ^
--params "{'name':'Test','startTime':'01/01/2026 10:00:00','description':'Test launch'}"
Result
{
"id": "05226b08-ff9f-4f35-806b-7e6af60beac0",
"number": 150
}