Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Load

Load content from file then assign the value to some variables

- Load:
    title: load json file to object
    file: examples/assets/data.json
    var: rs
- Load:
    title: load csv file to object (a,b,c\nc,d,e)
    file: examples/assets/data.csv
    var: rs
- Load:
    title: load yaml file to object
    file: examples/assets/data.yaml
    var: rs

Hierarchy

  • Tag
    • Load

Index

Constructors

constructor

  • new Load(attrs: any): Load
  • Parameters

    • attrs: any

    Returns Load

Properties

async

async: boolean

Run async

disabled

disabled: boolean

Ignore this, not run

file

file: string

File absolute or relative to load (.json, .yaml, .csv)

ignoreError

ignoreError: boolean

Keep run the next when got error

slient

slient: boolean

Not show log

testIt

testIt: boolean

Only allow run it then ignore others which not set testIt or set it to false

title

title: string

Step title

var

var: string | object

Set data after file loaded

vars

vars: any

Declare global variable