Legacy | Open notifications
-
Command: notifications
-
Subcommand: open
-
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
Description
Opens the notifications shade. This is helpful when testing for scenarios that use notifications from internal and external apps. How does your app behave when a weather notification comes in?
Parameters
Name | Value | Default | Description |
---|---|---|---|
deviceID* | The device for this command. |
* Mandatory parameter
Request & Response
Request
https://qatestlab.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-12-07_13_52_33_181?operation=command&securityToken=<your_token>&command=notifications&subcommand=open¶m.deviceId=2ACB96B8
JSON response
{
"reason":"Success",
"timer.elapsed":"219",
"returnValue":"true",
"testGridReportUrl":"https://mycloud.reporting-stg.perfectomobile.com?externalId[0]=john@perfectomobile.com_controller_16-12-07_13_52_33_181",
"description":"Success",
"timer.system":"0",
"completed":"true",
"flowEndCode":"SUCCEEDED",
"executionId":"john@perfectomobile.com_controller_16-12-07_13_52_33_181",
"timer.ux":"219","singleTestReportUrl":"https://mycloud.perfectomobile.com/nexperience/singletest/report/?reportRepositoryKey=PRIVATE:controller/161207/controller_16-12-07_13_52_33_181.xml&ownerId=john@perfectomobile.com&sharingCode=7c4cb08f-72a0-4a4d-8b5f-76b729497dba",
"reportKey":"PRIVATE:controller/161207/controller_16-12-07_13_52_33_181.xml",
"timer.device":"219"}