I have an app that relies on a lot of external data that this fetched from the sources and persisted to Realm. I would like to run some functional tests that bypass this need for fetching the data and just create the expected data in the UITest app and manipulate the data on the hosted realm to each tailored test case.
Note the app when not testing the UI is using a local realm instance in the application. When testing the app I switch the realm config to use the hosted so that both the test and the app can utilize the same realm for both test and application.
I seem to be having some trouble making this work consistently. Does anyone have any suggestions, experience or advice as to this being a real world use of this setup.