Get launch items
Gets the test items of the selected test session
- Parameters
- Advanced call ?
Function GetLaunchItems(Val URL, Val Token, Val Project, Val LaunchID, Val Page = 1) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| URL | --url | String | ✔ | ReportPortal server URL |
| Token | --token | String | ✔ | Access token |
| Project | --proj | String | ✔ | Project ID |
| LaunchID | --id | Number | ✔ | Launch ID |
| Page | --page | Number | ✖ | List page number |
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";
Result = OPI_ReportPortal.GetLaunchItems(URL, Token, Project, LaunchID);
- Bash
- CMD/Bat
oint rportal GetLaunchItems \
--url "tests.openintegrations.dev" \
--token "***" \
--proj "Test" \
--id 237
oint rportal GetLaunchItems ^
--url "tests.openintegrations.dev" ^
--token "***" ^
--proj "Test" ^
--id 237
Result
{
"content": [],
"page": {
"number": 1,
"size": 30,
"totalElements": 0,
"totalPages": 0
}
}