Scripting API / utils/type-utils / External
External
Type Aliases
ButtonTestWorkerCreate
ButtonTestWorkerCreate =
ButtonTestWorkerUpdate&CopyableTestWorkerCreate
ChartTestWorkerCreate
ChartTestWorkerCreate =
object&CopyableTestWorkerCreate
Type Declaration
| Name | Type | Description |
|---|---|---|
chartType |
DataEntryChartType |
The chart type to display in this test. |
dataType |
DataRecordType |
The data type to display in this test. |
linkedTests? |
string[] |
The list of test script IDs linked to this test. |
CopyableTestWorkerCreate
CopyableTestWorkerCreate =
TestWorkerCreate&object
Type Declaration
| Name | Type | Description |
|---|---|---|
copyFrom? |
string |
If set, all properties not explicitly set in this object will be copied from the test with this script ID. Note that the existing test's column and row will not be copied (specify where the test should be created with the location property). The existing test with this script ID must be of the same type and in the same sub-inspection (or global tag area) where the new test will be created. If the existing test contains other tests, those tests will be copied and given auto-generated script IDs. Use getProperties() on the new test to retrieve these auto-generated IDs. |
copyFromSubInspection? |
string |
If set, attempts to copy the test from another sub-inspection, instead of the same sub-inspection targeted by this function. The test will be copied from the currently running sub-inspection if the provided script ID matches the ID of the running sub-inspection. |
DataCanvasTestWorkerCreate
DataCanvasTestWorkerCreate =
Omit<DataCanvasTestWorkerUpdate,"items"> &CopyableTestWorkerCreate
DefectListTestWorkerCreate
DefectListTestWorkerCreate =
DefectListTestWorkerUpdate&CopyableTestWorkerCreate
FileTestWorkerCreate
FileTestWorkerCreate =
FileTestWorkerUpdate&CopyableTestWorkerCreate
GroupTestWorkerCreate
GroupTestWorkerCreate =
GroupTestWorkerUpdate&CopyableTestWorkerCreate
InputTestWorkerCreate
InputTestWorkerCreate =
InputTestWorkerUpdate&CopyableTestWorkerCreate
LabelTestWorkerCreate
LabelTestWorkerCreate =
LabelTestWorkerUpdate&Omit<CopyableTestWorkerCreate,"label">
OEETestWorkerCreate
OEETestWorkerCreate =
OEETestWorkerUpdate&CopyableTestWorkerCreate
PassFailTestWorkerCreate
PassFailTestWorkerCreate =
PassFailTestWorkerUpdate&CopyableTestWorkerCreate
RatingTestWorkerCreate
RatingTestWorkerCreate =
RatingTestWorkerUpdate&CopyableTestWorkerCreate
SPCTestWorkerCreate
SPCTestWorkerCreate =
SPCTestWorkerUpdate&CopyableTestWorkerCreate
TaskTestWorkerCreate
TaskTestWorkerCreate =
TaskTestWorkerUpdate&CopyableTestWorkerCreate
TraceabilityTestWorkerCreate
TraceabilityTestWorkerCreate =
TraceabilityTestWorkerUpdate&CopyableTestWorkerCreate&object
Type Declaration
| Name | Type | Description |
|---|---|---|
traceabilityId? |
number |
Set the traceability field for this test. This is required if copyFrom is not specified. |