Camera Stub

Camera Stub


A camera stub application for use with android automated testing (such as robotium).

When choosing to use this application as the default camera application, the application will behave just like any other android camera app when returning an object - allowing you to easily include camera testing within your automated testing.

The application will currently return one of 6 images, this is done by saving it at the path of the intent that is passed to the Camera Stub application (just as is done with any other camera app when started). The app will loop through these 6 images iteratively, meaning a different picture will be used next time the application is called.

The application uses no GUI, as none is required - so it will not be noticeable that it is in use by the suite.

It has proved extremely useful to me, for example when using robotium you cannot control external applications (such as the android camera) - so as this application does not require any interaction and still behaves as a camera should, it allows for simple testing of any camera functions within your application.

You shouldn't need to change any implementation of your application to get this to work, as it behaves in the same way as the android camera application.

I have used this in a small testing suite, device it has been run on include:

- Samsung Galaxy Note 2
- Samsung Galaxy Note
- Motorola G
- HTC One
- HTC Desire
- HTC Sensation
- Samsung Galaxy S3
- Samsung Galaxy S4
- Samsung Galaxy S3 Mini
- Samsung Galaxy S4 Mini
- Nexus One
- Nexus 4
- Nexus 5
- Nexus 7 (Gen 1 & 2)
- Sony Xperia
- Motorola zoom
Add to list
Free
83
4.2
User ratings
16
Installs
500+
Concerns
0
File size
254 kb
Screenshots
Screenshot of Camera Stub Screenshot of Camera Stub

About Camera Stub
A camera stub application for use with android automated testing (such as robotium).

When choosing to use this application as the default camera application, the application will behave just like any other android camera app when returning an object - allowing you to easily include camera testing within your automated testing.

The application will currently return one of 6 images, this is done by saving it at the path of the intent that is passed to the Camera Stub application (just as is done with any other camera app when started). The app will loop through these 6 images iteratively, meaning a different picture will be used next time the application is called.

The application uses no GUI, as none is required - so it will not be noticeable that it is in use by the suite.

It has proved extremely useful to me, for example when using robotium you cannot control external applications (such as the android camera) - so as this application does not require any interaction and still behaves as a camera should, it allows for simple testing of any camera functions within your application.

You shouldn't need to change any implementation of your application to get this to work, as it behaves in the same way as the android camera application.

I have used this in a small testing suite, device it has been run on include:

- Samsung Galaxy Note 2
- Samsung Galaxy Note
- Motorola G
- HTC One
- HTC Desire
- HTC Sensation
- Samsung Galaxy S3
- Samsung Galaxy S4
- Samsung Galaxy S3 Mini
- Samsung Galaxy S4 Mini
- Nexus One
- Nexus 4
- Nexus 5
- Nexus 7 (Gen 1 & 2)
- Sony Xperia
- Motorola zoom

Visit Website
User reviews of Camera Stub
Write the first review for this app!
Android Market Comments
A Google User
Mar 15, 2014
good