Skip to main content

Get log structure

Gets the parameter structure for log entry

Function GetLogStructure(Val LaunchID, Val ElementID, Val Time, Val Text = "", Val Level = "info") Export

ParameterCLI optionTypeRequiredDescription
LaunchID--launchStringLaunch ID to which the test item belongs
ElementID--idStringTest item ID
Time--timeDateLog entry date and time
Text--textStringLog text information
Level--levelStringInformation level: error, warn, info, debug, trace, fatal, unknown
Returns

Structure Of KeyAndValue - Fields structure

1C:Enterprise/OneScript code example
URL = "tests.openintegrations.dev";
Token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX25hbWUiOiJzdXBlcmFkbWluIiwic2NvcGVzIjpbInVpIl0sImV4cCI6MTc2MjAwMDI3NiwiaWF0IjoxNzYxOTEzODc2LCJqdGkiOiI0NTI3YTc5OS0wN2...";
LaunchID = "";
ElementID = "";
Project = "Test";
Time = Date("20260101100010");
Text = "Some log";

Result = OPI_ReportPortal.GetLogStructure(LaunchID, ElementID, Time, Text);
oint rportal GetLogStructure \
--launch "1b36bda4-c9ba-4fb0-9f6a-5402ddfe5aa6" \
--id "860767c7-9007-4dd9-97fb-f7f9b5722792" \
--time "2026-01-01T10:00:10" \
--text "Some log"
Result
{
"launchUuid": "66d62519-c31d-4d79-8a50-b94cfc54f597",
"itemUuid": "ad82e5b3-56dc-4176-a462-a434b55caeec",
"time": "1767258010",
"message": "Some log",
"level": "info"
}