Base class for all DataTrue resource types

Hierarchy (View Summary)

Implements

Constructors

Properties

contextType: string = "account"
jobID?: string
name: string
options: SuiteOptions = ...
childTypes: readonly string[] = ...
resourceType: string = "suite"
resourceTypeRun: string = "Suite"

Methods

  • Parameters

    • index: number

    Returns Promise<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 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 Suite

    new Resource