Problem Summary:
We want a way to test iphone app using persistent certificates at all times but need a way to reset the app fully without wiping the whole simulator folder
Background:
We currently have an app where certificates(IOS profile added to Setting > Profiles) are required to connect to our test environments.
There is also a 2 different start points for our app.
1 - Registration - Enter username/password etc then you will be asked to create a PIN for easy access in future
2 - If you have already registered and open up the app then you will be asked to enter your PIN skipping registration screens
We currently run a couple of hundred scenarios on android requiring users with different credentials (username/passwords) to register and perform actions on different screens
We are now trying to rerun the same scenarios across IOS but have a problem:
The 2 different server options for IOS do not allow us to keep the certificates and reset the application to the initial registration start point.
Full Reset option on:
This will delete the entire simulator folder including the certificates which will mean connection to our environment is not allowed.
The reset will restart the app to the Registration screen which is what we wanted.
The certificates/profiles are actually deleted when session is initialised.
No Reset option on:
This will not delete the certificates
If the user has completed registration then the app will be reset to the PIN screen and not the Registration screen which we wanted
Neither reset option on:
This will delete the entire simulator folder including the certificates which will mean connection to our environment is not allowed.
The reset will restart the app to the Registration screen which is what we wanted.
We are also unable to use the driver removeApp or installApp methods as we have to run on a simulator as the simulator needs to pick up the network connection from
an Ethernet connection on Mac.
This all works on Android as the certs are not uninstalled after a full reset
Any help would be much appreciated