Get log structure
Gets the parameter structure for log entry
- Parameters
- Advanced call ?
Function GetLogStructure(Val LaunchID, Val ElementID, Val Time, Val Text = "", Val Level = "info") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| LaunchID | --launch | String | ✔ | Launch ID to which the test item belongs |
| ElementID | --id | String | ✔ | Test item ID |
| Time | --time | Date | ✔ | Log entry date and time |
| Text | --text | String | ✖ | Log text information |
| Level | --level | String | ✖ | Information level: error, warn, info, debug, trace, fatal, unknown |
Returns
Structure Of KeyAndValue - Fields structure
| Parameter | Description |
|---|---|
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
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);
- Bash
- CMD/Bat
oint rportal GetLogStructure \
--launch "05226b08-ff9f-4f35-806b-7e6af60beac0" \
--id "3e0f1291-a2b9-4853-9aaf-a2adf02fcd6a" \
--time "2026-01-01T10:00:10" \
--text "Some log"
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"
}