Get item
Gets information about a test item by UUID
- Parameters
- Advanced call ?
Function GetItem(Val URL, Val Token, Val Project, Val ItemUUID) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| URL | --url | String | ✔ | ReportPortal server URL |
| Token | --token | String | ✔ | Access token |
| Project | --proj | String | ✔ | Project ID |
| ItemUUID | --uuid | String | ✔ | Test item UUID |
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...";
ItemUUID = "";
Project = "Test";
Result = OPI_ReportPortal.GetItem(URL, Token, Project, ItemUUID);
- Bash
- CMD/Bat
oint rportal GetItem \
--url "tests.openintegrations.dev" \
--token "***" \
--proj "Test" \
--uuid "507bcbf2-0e06-4273-8ae0-7ad04f070864"
oint rportal GetItem ^
--url "tests.openintegrations.dev" ^
--token "***" ^
--proj "Test" ^
--uuid "507bcbf2-0e06-4273-8ae0-7ad04f070864"
Result
{
"id": 350053,
"uuid": "38d71d32-eeb5-4a8c-b2a8-1b7a7b9a1696",
"name": "Test",
"description": "Test launch",
"parameters": [],
"attributes": [],
"type": "TEST",
"startTime": "2026-01-01T10:00:00Z",
"status": "IN_PROGRESS",
"statistics": {
"executions": {},
"defects": {}
},
"pathNames": {
"launchPathName": {
"name": "Test",
"number": 333
}
},
"hasChildren": false,
"hasStats": true,
"launchId": 523,
"uniqueId": "auto:293897e9b3e0f4d39b111586ac4a3985",
"testCaseHash": 1545806777,
"patternTemplates": [],
"path": "350053",
"hasNestedSteps": false
}