We have lots of functionality that sits behind feature toggles or A/B Test configurations. All of these toggles can be changed from the app via a dedicated debug screen, but the underlaying settings are stored in Android’s SharedPreferences. So currently as part of the test scenario, we navigate to this debug screen and change those settings manually. This is taking time, running time, but as well as development time.
Since all of the settings are stored in the SharedPreferences, we could cut on time by programmatically configuring the SharedPreferences of interest before the test starts.
There’s an old thread from 2016 asking exactly the same question: Can appium interact with SharedPreference
Is there any progress on that? Is there a workaround one can use to manipulate the SharedPreferences from Appium?
Hope to hear soon from you guys
Thank you