Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Jun 17, 2019 15:41

Purpose

Command retrieves an image from the repository. Perfecto system supplies this image to the specified application when application tries to retrieve a camera image.

The application must have been "sensor instrumented" at time of installation on device.

Image injection continues for this application until activating the Stop Image Injection function.

Usage

browser.perfStartImageInjection(repositoryFile,by, app)

Parameters

NameTypePossible ValuesDescription
repositoryFileMultimedia
(Required) The full repository path, including directory and file name, where to locate the image.
Example - 
PRIVATE:dir1/dir2/name.png
Click browse and navigate to the file. Supported image formats: jpeg, jpg, png, bmp.
byString name | identifier
appString
The application name as it is displayed on the device screen or the identifier of the application.

Return Value

None

Exceptions

None

Examples

this.Then(/^I start inject check image to the application RealTimeFilter$/, function () {
    browser.context("NATIVE_APP")
    browser.perfStartImageInjection('PUBLIC:CameraInjectionApps/check.jpg', 'identifier','Victor.RealTimeFilter', )
})