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 "05226b08-ff9f-4f35-806b-7e6af60beac0" \
--id "3e0f1291-a2b9-4853-9aaf-a2adf02fcd6a" \
--time "2026-01-01T10:00:10" \
--text "Some log"
Result
{
"launchUuid": "05226b08-ff9f-4f35-806b-7e6af60beac0",
"itemUuid": "3e0f1291-a2b9-4853-9aaf-a2adf02fcd6a",
"time": "1767258010",
"message": "Some log",
"level": "info"
}