2

In addition to Michael's answer, if you have a continuous integration or continuous deployment environment, you can configure your environment to set different values in the test config file to match the target run-time environment. This approach is similar to the environmental variable approach, but is operating-system neutral, managed by the build/...


2

Use environmental variables, e.g. $> $> environment='UAT' $> You will need to export them to make them available in other processes, e.g. $> export environment='UAT' You can then refer to it with $environment in shell scripts, ENV["environment"] in ruby, etc. You can use this approach to let you set environment name login credentials ...


1

directConnet=true bypasses SeleniumServer and execute against Chrome driver and Firefox driver. If you are using other than chrome or firefox browser, you will get an error. Refer this: http://www.protractortest.org/#/server-setup#connecting-directly-to-browser-drivers


1

Maybe try browser.getProcessedConfig instead of getCapabilities, because I cant find that in the Protractor API documentation. Get the processed configuration object that is currently being run. This will contain the specs and capabilities properties of the current runner instance. https://www.protractortest.org/#/api?view=ProtractorBrowser....


1

You can use an external file such as a properties file to store environment variables. Your automation framework can read from the file to determine which base URLs and authentication tokens you require for that specific environment. Your property file can have things like: ENV=STAGING USER=TOM TOKEN=sf234dalkjasrsfdds832 DB=MY_DB You can change this ...


1

You need to provide more details, or come up with more specific questions over time. We don't even know what type of product do you have. In the meanwhile I can add some points from experience, some of it is from AWS but the general ideas are the same. Cloud Services are like Lego blocks for adult engineers, you can achieve things in many way by connecting ...


Only top voted, non community-wiki answers of a minimum length are eligible