Class Suite

Base class for all DataTrue resource types

Hierarchy

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>

  • Parameters

    • test: Test
    • index: number = ...

    Returns Promise<void>

  • Run the resource in DataTrue

    Returns

    Promise of the jobID

    Parameters

    • emailUsers: number[] = []

      an array of user IDs to whom the test results should be sent

    • variables: Record<string, string> = {}

      variables to set for the test run

    Returns Promise<string>

  • Convert the resource to an Object

    Returns

    object representation of the resource

    Returns Promise<Record<string, any>>

  • Convert the resource to a JSON string

    Returns

    the resource represented as a JSON string

    Returns Promise<string>

  • Create a resource from a given ID

    Returns

    Promise of the resource

    Parameters

    • id: number

      the ID of the resource

    Returns Promise<Suite>

  • Create a resource from an object

    Returns

    new Resource

    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

Generated using TypeDoc