slecault
7 years agoContributor
iOS app Restart
Is there a way to "restart" of an instrumented iOS app?
I use the following command with Android:
Mobile.Device.Process('com.myapp.abc').Restart;
Is there a way to "restart" of an instrumented iOS app?
I use the following command with Android:
Mobile.Device.Process('com.myapp.abc').Restart;
Did you try it with this? If so, what happened?
Yes, I do have the process... the Restart is not one of its methods...
It does not appear with the autocomplete while the app is running on a connected device. If I force the ".restart" , I get "Undeclared identifier: Restart".
my code under iOS:
Mobile.Device.Process('myApp').Restart;
my code under iOS:
Mobile.Device.Process('myApp').Restart;
----------------------------------------------
The examples at the link I posted all have a different format than you are using
Mobile.Device(mydevice).Process(myapp)
Try that and see if Restart shows up?
I did open a support case for this issue. Support response is: "It's not possible to restart and/or close iOS apps from TestComplete. This is the limitation of the iOS support."
I have opened a "feature request".
Just an FYI, there are some things that TestComplete can't do on iOS not because of the lack of features in TC but because of the limits that iOS has imposed.