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 "a1064ffb-6bb3-42ab-b78e-6c7cb98dbf35"
oint rportal GetItem ^
--url "tests.openintegrations.dev" ^
--token "***" ^
--proj "Test" ^
--uuid "a1064ffb-6bb3-42ab-b78e-6c7cb98dbf35"
Result
{
"id": 172409,
"uuid": "a1064ffb-6bb3-42ab-b78e-6c7cb98dbf35",
"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": 149
}
},
"hasChildren": false,
"hasStats": true,
"launchId": 237,
"uniqueId": "auto:293897e9b3e0f4d39b111586ac4a3985",
"testCaseHash": 1545806777,
"patternTemplates": [],
"path": "172409",
"hasNestedSteps": false
}