i have idea make configs more flexible. example have 10000 config files 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 want change path specs, html or change selenium address. can in file configs?
for example write in config:
seleniumaddress: '../variables/seleniumadress.txt' or maybe exist interesting ways solve problem?
you can export common config rules node.js module:
// globalprotractor.conf.js module.exports = { 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 use in file
// protractor.conf.js var globalconf = require('/path/to/globalprotractor.conf.js'); globalconf.specs.push('path/new.spec.js'); exports.config = globalconf;
Comments
Post a Comment