Skip to main content

Get item

Gets information about a test item by UUID

Function GetItem(Val URL, Val Token, Val Project, Val ItemUUID) Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringReportPortal server URL
Token--tokenStringAccess token
Project--projStringProject ID
ItemUUID--uuidStringTest item UUID
Returns

Map Of KeyAndValue - serialized JSON response from ReportPortal

1C:Enterprise/OneScript code example
URL = "tests.openintegrations.dev";
Token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX25hbWUiOiJzdXBlcmFkbWluIiwic2NvcGVzIjpbInVpIl0sImV4cCI6MTc2MjAwMDI3NiwiaWF0IjoxNzYxOTEzODc2LCJqdGkiOiI0NTI3YTc5OS0wN2...";
ItemUUID = "";
Project = "Test";

Result = OPI_ReportPortal.GetItem(URL, Token, Project, ItemUUID);
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
}