Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sauce lab integration with Serenity : Getting error when trying to run mobile automation scripts on sauce labs. #3046

Open
sashokqa8 opened this issue Feb 7, 2023 · 5 comments

Comments

@sashokqa8
Copy link

sashokqa8 commented Feb 7, 2023

Scenario : I am trying to run mobile automation scripts on sauce labs with below configuration.
Below is my Serenity.conf file

sauce {
active = true
username = ""
key = ""
}

webdriver {
driver = remote
remote.url = "https://:@ondemand.us-west-1.saucelabs.com:443/wd/hub"
wait.for.timeout = 20000
capabilities {
platformName = "android"
appium.automationName = "uiautomator2"
appium.deviceName = "Android GoogleAPI Emulator"
appium.platformVersion = "12.0"
appium.app = "storage:filename=xxxxx.apk"
appium.appActivity = "xxx"
appium.appPackage = "xxxxxx"
"sauce:options" {
build = "appium-build-TQE9W"
name = "telusConnectTest"
recordVideo = true
recordLogs = false
}
}
}

issue : getting below error

Caused by: java.lang.ClassCastException: class org.openqa.selenium.MutableCapabilities cannot be cast to class java.util.Map (org.openqa.selenium.MutableCapabilities is in unnamed module of loader 'app'; java.util.Map is in module java.base of loader 'bootstrap') at net.serenitybdd.plugins.saucelabs.BeforeASauceLabsScenario.apply(BeforeASauceLabsScenario.java:30)

plz help me.

@wakaleo
Copy link
Member

wakaleo commented Feb 8, 2023

This should be fixed in the next release

@sashokqa8
Copy link
Author

@wakaleo just checking when would be the next release ?

@wakaleo
Copy link
Member

wakaleo commented Feb 8, 2023

When it's ready.

@drawat71
Copy link

drawat71 commented Feb 8, 2023

I am having the same issue, do we have any ETA for the fix ? @wakaleo

@wakaleo
Copy link
Member

wakaleo commented Feb 10, 2023

@drawat71 see previous response. If you would like to speed things up, you can check out the latest code and build a snapshot version, and try it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants