Base class for all DataTrue resource types

Hierarchy (View Summary)

Implements

Constructors

Properties

contextType: string = "suite"
jobID?: string
name: string
options: TestOptions = ...
testType: TestTypes = TestTypes.SIMULATION
childTypes: readonly string[] = ...
resourceType: string = "test"
resourceTypeRun: string = "TestScenario"

Methods

  • Parameters

    • index: number

    Returns void

  • Run the resource in DataTrue

    Parameters

    • emailUsers: number[] = []
    • variables: Record<string, string> = {}

      variables to set for the test run

    Returns Promise<string>

    Promise of the jobID

  • Convert the resource to an Object

    Returns Promise<Record<string, any>>

    object representation of the resource

  • Create a resource from a given ID

    Parameters

    • id: number

      the ID of the resource

    Returns Promise<Test>

    Promise of the resource

  • Create a resource from an object

    Parameters

    • obj: Record<string, any>

      object to create resource from

    • copy: boolean = false

      whether to create a copy of the resource or not (removes resource IDs)

    Returns Test

    new Resource