We are using protractor to test our front end angular app that we are building.
Currently we are using browser.get()
to specify our environement we wish to test again(localhost:9000, staging, UAT) however I am wanting to parameterize this so that when we run our tests using grunt test:e2e
we can specify a parameter to change the browser.get()
to a specified environment.
Something like being able to call grunt test:e2e NODE_ENV=uat
to test against specified environment.
Anyone have any insight to how to do this?
baseUrl:
into the params field of the grunt file, however can i have a task runner that specifies thebaseUrl
to use? Even being able to callbrowser.params.baseUrl
in my specs, this wont help with being able to run tests specific to my environment. – Noonan