How to launch internal application like camera for example on android device using seeTest?

6 replies [Last post]
support
Offline
Joined: 07/20/2011

First of all, you need to know the name of the camera activity (It can vary between manufacturers).
So you need to use adb commands to find it.
Optional is to follow these steps:
- Open command line.
- Find path of where seeTest is installed.
- Type cd bin/adb to go to go to the adb folder.
- Type adb shell to go to shell.
- Type pm list packages -s for all system packages in the device.
- Find the activity of the camera on the list of all system packages.
- Type am start to verify that its the activity of camera.
If OK The command you need to run from seeTest is:
run (adb shell am start )

For example
For device samsung galaxy S3 device (also S3 mini)The name of the activity is com.sec.android.app.camera

The command to use to run adb shell commands is the run command.
See here: http://experitest.com/studio/help2/WebHelp/Run1.htm

So in order to launch the camera on such devices you should use this command:
run (adb shell am start com.sec.android.app.camera)

Note that you won't be able to use object spy with this app. You can use only text or image recognition methods to run the tests.

You can also check this link for all adb commands:
http://developer.android.com/tools/help/adb.html

femi.olonisakin
Offline
Joined: 05/20/2014

what if i need to launch the dial pad on an android, how do i go about doing that?

support
Offline
Joined: 07/20/2011

You can use the image recognition to click on the icons which will lead you to the dial pad or you can use the "Run" command with the right shell command. To understand the command please go to the Android developers website:
http://developer.android.com/reference/android/provider/Settings.html

Or the search results of "Shell commands" on our forum:
http://forum.experitest.com/search/node/shell%20command

venkatasuresh.seelam
Offline
Joined: 05/22/2014

Hi,

I am new to this tool. I tried to record Erabank login screen and it worked fine. But when I tried to launch my mobile app, I am getting error "Failed to launch application:com.gtechg2.mobile.illinois/.PhoneGapAppLauncher". I am not sure what is the problem. Can anyone give me solution?

Regards,
Suresh.

support
Offline
Joined: 07/20/2011

Hi Suresh,
You are welcome to send the data to our support team at support@experitest.com.
Add the data from "Help->Collect Support Data" and send it with the request.

gaddiel.cortez
Offline
Joined: 02/09/2017

I was hoping they will put a night vision camera option on it as well to make it more diverse.

arundoss
Offline
Joined: 02/04/2015

Night vision is just an option or setting that needs to be enabled inside camera which can be easily done using the Non-instrumented mode native recognition.

https://docs.experitest.com/display/public/SA/Non-Instrumented+Native+Re...

If you are not able to achieve it, please send us your elaborate query to Support@experitest.com which screenshots.