angularjs e2e - How can I add URL's dynamically to Protractor tests? -
i trying use protractor in conjunction jenkins. in jenkins, need have urls dynamically generated.
so while running protractor tests, example:
describe('angularjs homepage', function() { it('should greet named user', function() { // load angularjs homepage. browser.get('http://www.angularjs.org'); element(by.model('yourname')).sendkeys('testuser'); }); });
in above example want pass variable dynamically in place of "http://www.angularjs.org".
i not find variables can specified in reference config well.
if understand question correctly, looking environmental variable configure base url. in case, since protractor built on webdriver should able set
webdriver.base.url="http://someurl"
hopefully looking for.
Comments
Post a Comment