Legacy | Stop image injection

  • Command: image.injection

  • Subcommand: stop

  • Supported Platforms: Native (legacy), UFT (legacy), Selenium, Appium

    All commands must be executed using the same framework. Sharing the execution ID between different frameworks is not possible. This means that if you work with a Selenium/Appium driver, you need to call the commands using the Selenium/Appium driver (or, in the case of Reporting commands, through the Reporting SDK that works with the driver) and not as part of a UFT test or another framework.

  • Supported OS: Android, iOS

Description

Stops Perfecto from supplying an image to the application when the application tries to retrieve a camera image. Images are supplied by the device camera after invoking the command.

Used in conjunction with Start Image Injection.

Restriction: Image injection is supported for the front and back cameras of Android devices and the back camera of iOS devices. It is not supported for the front-camera of iOS devices.

Parameters

Name Value Default Description
deviceID*     The device for this command.

* Mandatory parameter

Request & Response

Copy

Request

https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-11-08_12_29_30_1017?operation=command&securityToken=<your_token>&command=image.injection&subcommand=stop&param.deviceId=6BA14A93C1DE5748D3E65C555CCE67FCC9EBD4CA&param.identifier=Victor.RealTimeFilter            
Copy

JSON response

{
    "executionId":"john@perfectomobile.com_controller_16-11-08_12_29_30_1017",
    "reason":"Success",
    "timer.elapsed":"2328",
    "testGridReportUrl":"https://mycloud.reporting-stg.perfectomobile.com?externalId[0]=john@perfectomobile.com_controller_16-11-08_12_29_30_1017",
    "timer.ux":"0",
    "singleTestReportUrl":"https://mycloud.perfectomobile.com/nexperience/singletest/report/?reportRepositoryKey=PRIVATE:controller/161108/controller_16-11-08_12_29_30_1017.xml&ownerId=john@perfectomobile.com&sharingCode=4320eb56-834b-44b8-9ad4-a514f4f5f7d7",
    "description":"Success",
    "timer.system":"2328",
    "reportKey":"PRIVATE:controller/161108/controller_16-11-08_12_29_30_1017.xml",
    "completed":"true",
    "flowEndCode":"SUCCEEDED",
    "timer.device":"0"}