Get item structure
Gets the test item parameter structure
- Parameters
- Advanced call ?
Function GetItemStructure(Val Clear = False, Val AsMap = False) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Clear | --empty | Boolean | ✖ | True > structure with empty valuse, False > field descriptions at values |
| AsMap | --map | Boolean | ✖ | True > returns the filter fields as a map |
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
Result = OPI_ReportPortal.GetItemStructure();
- Bash
- CMD/Bat
oint rportal GetItemStructure \
--empty true
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>"
}