Skip to main content

Finish item

Ends a previously created test item

Function FinishItem(Val URL, Val Token, Val Project, Val ItemUUID, Val FinishStructure) Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringReportPortal server URL
Token--tokenStringAccess token
Project--projStringProject ID
ItemUUID--uuidStringTest item UUID
FinishStructure--paramsStructure Of KeyAndValueCompletion parameters. See GetItemCompletionStructure
Returns

Map Of KeyAndValue - serialized JSON response from ReportPortal

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

EndDate = Date("20260101200000");

FinishStructure = New Structure;
FinishStructure.Insert("endTime", EndDate);
FinishStructure.Insert("status" , "passed");

Result = OPI_ReportPortal.FinishItem(URL, Token, Project, ElementID, FinishStructure);
# JSON data can also be passed as a path to a .json file

oint rportal FinishItem \
--url "tests.openintegrations.dev" \
--token "***" \
--proj "Test" \
--uuid "3e0f1291-a2b9-4853-9aaf-a2adf02fcd6a" \
--params "{'endTime':'01/01/2026 20:00:00','status':'passed'}"
Result
{
"message": "TestItem with ID = '3e0f1291-a2b9-4853-9aaf-a2adf02fcd6a' successfully finished."
}