Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 853 Bytes

properties.md

File metadata and controls

35 lines (31 loc) · 853 Bytes

Sample fiveby-config.json

{
  "implicitWait": 5000,
  "hubUrl": "http://127.0.0.1:4444/wd/hub",
  "browsers": {
    "chrome": 1
  },
  "environment": "staging",
  "properties": {
    "serviceVersion": {
      "development,staging": "1.0.0",
      "production": "2.0.0",
      "production.dc1": "3.0.0",
      "production.*.az1": "4.0.0"
    }
  }
}

Sample Usage

properties = propertyService.get('default'); //default is the namespace for properties set in fiveby-config.json

// environment = 'staging'  or  environment = 'development'
properties.get('serviceVersion') // 1.0.0

// environment = 'production.dc1'
properties.get('serviceVersion') // 3.0.0

// environment = 'production.dc2'
properties.get('serviceVersion') // 2.0.0

// environment = 'production.dc1.az1'
properties.get('serviceVersion') // 4.0.0