You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m trying to update or modify the appium configuration for mobile testing.
till now we were passing device details in serenity.properties file and while executing we will enable the specific device for android or iOS .
in order to reduce the manual intervention, I’m right now setting the device run time and need to fetch rest of the capabilities from conf file.
passed hub in serenity.properties along with browser name =chrome
Run config was
-Denvironment=Develop -Dwebdriver.driver=appium -Dappium.platformName=android -Dappium.deviceName=“google pixel 5”
-Dtags=test
I was able to retrieve the capabilities based on device type but something got messed up and now I’m getting capabilities of both iOS and android as output of apply() method of the interface BefireAWebdriverScenario.
How can I set the capabilities in a nested way so that I can set it based on the platform value and need not change manually ???
What did you expect to happen?
Return the capabilities block of android when platform=android
right now it is returning both iOS and android capabilities in response
Serenity BDD version
3.7.1
JDK version
17
Execution environment
Develop , uat
How to reproduce the bug.
Set capabilities in the way provided for appium and execute any mobile test
How can we make it happen?
Add it to the Serenity BDD backlog and wait for a volunteer to pick it up
The text was updated successfully, but these errors were encountered:
What happened?
I’m trying to update or modify the appium configuration for mobile testing.
till now we were passing device details in serenity.properties file and while executing we will enable the specific device for android or iOS .
in order to reduce the manual intervention, I’m right now setting the device run time and need to fetch rest of the capabilities from conf file.
Tried something like this:
environments{
Develop{
Appium {
Capabilities {
PlatformName =“android”
“Kobition:Options”{
Deviceorientation=“landscape”
workApp=“MyApp”
……
}
}
}
Appium {
Capabilities {
PlatformName =“ios”
“Kobition:Options”{
Deviceorientation=“portrait”
Bundleid =“xxxxx”
……
}
}
}
}
}
passed hub in serenity.properties along with browser name =chrome
Run config was
-Denvironment=Develop -Dwebdriver.driver=appium -Dappium.platformName=android -Dappium.deviceName=“google pixel 5”
-Dtags=test
I was able to retrieve the capabilities based on device type but something got messed up and now I’m getting capabilities of both iOS and android as output of apply() method of the interface BefireAWebdriverScenario.
How can I set the capabilities in a nested way so that I can set it based on the platform value and need not change manually ???
What did you expect to happen?
Return the capabilities block of android when platform=android
right now it is returning both iOS and android capabilities in response
Serenity BDD version
3.7.1
JDK version
17
Execution environment
Develop , uat
How to reproduce the bug.
Set capabilities in the way provided for appium and execute any mobile test
How can we make it happen?
Add it to the Serenity BDD backlog and wait for a volunteer to pick it up
The text was updated successfully, but these errors were encountered: