How to start an android application without having to install it everytime
Hello !
I am testing an android application on different mobile devices.
At the moment I use the ImageRepository which contains different screens for different mobile devices.
In order to make my tests independent from ImageRepository, do you know a method for starting the android application, but without installing the package everytime?
For instance if I use teh Run method with Launch property set to true, everytime the application is installed.
I am interested if it is possible to use something like this:
Mobile.Device().ShellExecute("am start -n com.package.name");
The Test Complete Log.Message(this command above) displays the help, and if I run it, the TestComplete Log displays Shell command was run.
I used this syntax and nothing happens.
I took a look here : https://stackoverflow.com/questions/6613889/how-to-start-an-android-application-from-the-command-line
Can you please make the solution more obvious?
Best Regards,
Hi,
> Mobile.Device().ShellExecute("am start -n com.package.name");
This approach works. Though note, that (as it is mentioned in the Stackoverflow article that you referenced) not only the package name must be provided as a parameter for the 'am' command, but also the name of the main activity after the slash.
This is also described in the TestComplete help: https://support.smartbear.com/testcomplete/docs/reference/test-objects/controls/mobile/android/device/shellexecute.html