Home Reference Source
import Config from 'pagewalker/lib/utils/config.js'
public class | source

Config

this class have configuratin information.

Static Member Summary

Static Public Members
public static get
public static get

DEFAULT_CONFIG: {"browser": string, "scenarioDir": string, "scenarioFile": *, "ignoreDir": string, "silentMode": *, "exitImmediately": *, "takeScreenshotAuto": *, "fileDownloadDir": string, "screenshotsDir": string, "width": number, "height": number, "mocha": *, "assertion": *, "logger": *, "electron": *, "puppeteer": *}

public static get

config: *

public static

Static Method Summary

Static Public Methods
public static

assign(config: *, key: *, value: *)

public static

create(commandLineArgs: *): *

public static

isExists(object: *, key: *): *

public static

merge(dest: *, source: *)

Method Summary

Public Methods
public

clone(): *

public

isExists(key: *): *

public

merge(source: *)

Private Methods
private

loadConfigFile(filePath: *)

Static Public Members

public static get CONFIG_FILE_PATH: string source

public static get DEFAULT_CONFIG: {"browser": string, "scenarioDir": string, "scenarioFile": *, "ignoreDir": string, "silentMode": *, "exitImmediately": *, "takeScreenshotAuto": *, "fileDownloadDir": string, "screenshotsDir": string, "width": number, "height": number, "mocha": *, "assertion": *, "logger": *, "electron": *, "puppeteer": *} source

public static get config: * source

public static instance: * source

Static Public Methods

public static assign(config: *, key: *, value: *) source

Params:

NameTypeAttributeDescription
config *
key *
value *

public static create(commandLineArgs: *): * source

Params:

NameTypeAttributeDescription
commandLineArgs *

Return:

*

public static isExists(object: *, key: *): * source

Params:

NameTypeAttributeDescription
object *
key *

Return:

*

public static merge(dest: *, source: *) source

Params:

NameTypeAttributeDescription
dest *
source *

Public Methods

public clone(): * source

Return:

*

public isExists(key: *): * source

Params:

NameTypeAttributeDescription
key *

Return:

*

public merge(source: *) source

Params:

NameTypeAttributeDescription
source *

Private Methods

private loadConfigFile(filePath: *) source

Params:

NameTypeAttributeDescription
filePath *