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
熱門國家 | 系統支援 | 版本 | 費用 | APP評分 | 上架日期 | 更新日期 |
---|---|---|---|---|---|---|
未知 | Android Google Play | 1.0 App下載 | 免費 | 1970-01-01 | 2015-02-04 |