I have an idea to make my configs more flexible. For example I have 10000 config files with same parameters:
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['C:/Users/Lilia.Sapurina/Desktop/Protractor Tests/Scenarios/ps-grid-column-filter-range_spec.js'],
params: {'url_filter': 'http://wks-15103:8010/ps/ng-components/examples/ps-grid-column-filter-range.html'}
And once I want to change path to specs, html or change selenium address. Can I do this in another file for all my configs?
For example write in my config:
seleniumAddress: '../Variables/seleniumAdress.txt'
Or maybe exist another interesting ways to solve this problem?
With @driver_by help I found nice solution for my problem. Now my files isolated. If I want to change url or path to folder I should change only global config.
And another file:
You can export your common config rules as node.js module:
And use in another file