ARTICLE AD BOX
I am using the Scandit Data Capture SDK in an Android application to scan product barcodes.
In production, the scanner works with the camera. The implementation also supports scanning from an image using BitmapFrameSource.
if (bitmap != null) { bitmapFrameSource = BitmapFrameSource.of(bitmap) dataCaptureContext.setFrameSource(bitmapFrameSource) bitmapFrameSource.switchToDesiredState(FrameSourceState.ON) } else { camera = Camera.getDefaultCamera(cameraSettings) dataCaptureContext.setFrameSource(camera) }For UI testing, I want to pass a barcode image and let the scanner read the barcode automatically during the test.
My questions are:
Does the Scandit SDK support decoding barcode images during Android instrumentation/UI tests?
Is BitmapFrameSource the recommended approach for this scenario?
Are there any limitations when running this on an emulator during UI tests?
I cannot modify the production implementation and can only write UI tests.
Any guidance would be helpful.
