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 "c8266461-6880-4e4c-98fe-dab7d33b3dfb" \
--id "a67a631a-6bbe-446d-8ce5-cd105fdb8ed7" \
--time "2026-01-01T10:00:10" \
--text "Some log"
Result
{
"launchUuid": "4338fd75-e913-4b8f-89de-096b8a8d3b2a",
"itemUuid": "f8440a4e-d156-448a-b583-ebc5d8e1c216",
"time": "1767258010",
"message": "Some log",
"level": "info"
}