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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -