For my project, all the capabilities are given in serenity properties file. Below is the example:
appium.platformVersion=8.1.0
appium.platformName=Android
appium.deviceName=emulator-5554
appium.automationName=uiautomator2
appium.app=app/path
serenity.timeout = 100000
serenity.step.delay = 200
serenity.verbose.steps = true
serenity.take.screenshots = FOR_FAILURES
serenity.resized.image.width = 800
webdriver.wait.for.timeout = 10000
I would like to know how sauce labs configuration like API_KEY
, USERNAME
, PASSWORD
etc.. will fit in the above properties file or if we can set up the configuration in hooks like @before
method. if there is an example that would be great?
Thanks Vamc
There is an example in Serenity official github repo:
saucelabs.url=http://sauceId:[email protected]:80/wd/hub
saucelabs.access.key=sauceKey
saucelabs.user.id=sauceId