Skip to main content

Get item structure

Gets the test item parameter structure

Function GetItemStructure(Val Clear = False, Val AsMap = False) Export

ParameterCLI optionTypeRequiredDescription
Clear--emptyBooleanTrue > structure with empty valuse, False > field descriptions at values
AsMap--mapBooleanTrue > returns the filter fields as a map
Returns

Structure Of KeyAndValue - Fields structure

1C:Enterprise/OneScript code example
Result = OPI_ReportPortal.GetItemStructure();
oint rportal GetItemStructure \
--empty true
Result
{
"name": "<element name>",
"startTime": "<start time>",
"type": "<type of element: suite, story, test, scenario, step, before_class, before_groups, before_method, be...",
"launchUuid": "<Launch UUID>",
"description": "<element description>",
"attributes": "<element attributes in the form key1:value1, key2:value2>",
"uuid": "<UUID of the element. Will be generated automatically if not filled>",
"codeRef": "<physical location of tests>",
"parameters": "<parameters for parameterized tests>",
"retry": "<is a rerun>"
}