Forum Discussion

hacka87's avatar
hacka87
Contributor
6 years ago
Solved

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,

2 Replies