Search code examples
appiumsaucelabsserenity-bddcucumber-serenitythucydides

Is there any example for sauce labs configuration with serenity/appium to run the scripts against mobile native app ?


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


Solution

  • 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