diff --git a/CHANGELOG.md b/CHANGELOG.md index dcbac6cbf..695af0f1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,106 @@ +# [1.5.0-dev.14](https://github.com/rdkcentral/firebolt-certification-suite/compare/v1.5.0-dev.13...v1.5.0-dev.14) (2024-12-18) + + +### Features + +* LP sat changes ([#295](https://github.com/rdkcentral/firebolt-certification-suite/issues/295)) ([73e5c4b](https://github.com/rdkcentral/firebolt-certification-suite/commit/73e5c4b137effc7fa78f1e90bc944ccf224b3343)) + +# [1.5.0-dev.13](https://github.com/rdkcentral/firebolt-certification-suite/compare/v1.5.0-dev.12...v1.5.0-dev.13) (2024-12-16) + + +### Features + +* XSB SecureSotrage cleanup ([#286](https://github.com/rdkcentral/firebolt-certification-suite/issues/286)) ([c2244df](https://github.com/rdkcentral/firebolt-certification-suite/commit/c2244dfb19bf90ae0a2383ea0c4c10cb86af59fc)) + +# [1.5.0-dev.12](https://github.com/rdkcentral/firebolt-certification-suite/compare/v1.5.0-dev.11...v1.5.0-dev.12) (2024-12-16) + + +### Features + +* XSB SecondScreen cleanup ([#290](https://github.com/rdkcentral/firebolt-certification-suite/issues/290)) ([eced08d](https://github.com/rdkcentral/firebolt-certification-suite/commit/eced08db6fda498f1c0af443f965c732aea27e1f)) + +# [1.5.0-dev.11](https://github.com/rdkcentral/firebolt-certification-suite/compare/v1.5.0-dev.10...v1.5.0-dev.11) (2024-12-16) + + +### Features + +* Performance log enhancement ([#275](https://github.com/rdkcentral/firebolt-certification-suite/issues/275)) ([c806aeb](https://github.com/rdkcentral/firebolt-certification-suite/commit/c806aeb6c544de777a4fb339c0129f848fb56cbd)) + +# [1.5.0-dev.10](https://github.com/rdkcentral/firebolt-certification-suite/compare/v1.5.0-dev.9...v1.5.0-dev.10) (2024-12-16) + + +### Features + +* remove obsolete json data ([#277](https://github.com/rdkcentral/firebolt-certification-suite/issues/277)) ([8d7e51d](https://github.com/rdkcentral/firebolt-certification-suite/commit/8d7e51df8d63d998ab881f60fb53581705a11304)) + +# [1.5.0-dev.9](https://github.com/rdkcentral/firebolt-certification-suite/compare/v1.5.0-dev.8...v1.5.0-dev.9) (2024-12-13) + + +### Features + +* XSB metrics cleanup ([#292](https://github.com/rdkcentral/firebolt-certification-suite/issues/292)) ([194dbf7](https://github.com/rdkcentral/firebolt-certification-suite/commit/194dbf747b6284ca9337e0399b930198e035a429)) +* XSB metrics_rpconly cleanup ([#293](https://github.com/rdkcentral/firebolt-certification-suite/issues/293)) ([7cd21ab](https://github.com/rdkcentral/firebolt-certification-suite/commit/7cd21abce806069d1daa716cc541832af7c62aa1)) +* XSB UserInterest cleanup ([#291](https://github.com/rdkcentral/firebolt-certification-suite/issues/291)) ([566952c](https://github.com/rdkcentral/firebolt-certification-suite/commit/566952cbd9a2683d1831df52398e8348c7fdef3d)) + +# [1.5.0-dev.8](https://github.com/rdkcentral/firebolt-certification-suite/compare/v1.5.0-dev.7...v1.5.0-dev.8) (2024-12-12) + + +### Features + +* UserGants, LifecycleBackground cleanup + sev tags ([#276](https://github.com/rdkcentral/firebolt-certification-suite/issues/276)) ([7014175](https://github.com/rdkcentral/firebolt-certification-suite/commit/7014175315738474e8113eda20b7e7efd1cec2e4)) + +# [1.5.0-dev.7](https://github.com/rdkcentral/firebolt-certification-suite/compare/v1.5.0-dev.6...v1.5.0-dev.7) (2024-12-10) + + +### Features + +* Update App Exit Handling ([#266](https://github.com/rdkcentral/firebolt-certification-suite/issues/266)) ([d4a96b7](https://github.com/rdkcentral/firebolt-certification-suite/commit/d4a96b709179688943de3968b4da19026af7060b)) + +# [1.5.0-dev.6](https://github.com/rdkcentral/firebolt-certification-suite/compare/v1.5.0-dev.5...v1.5.0-dev.6) (2024-12-09) + + +### Bug Fixes + +* Trimming the new line in logs ([#285](https://github.com/rdkcentral/firebolt-certification-suite/issues/285)) ([36f7b2f](https://github.com/rdkcentral/firebolt-certification-suite/commit/36f7b2f9fe2950c5d7da0c51a8ee8d70385843b4)) + +# [1.5.0-dev.5](https://github.com/rdkcentral/firebolt-certification-suite/compare/v1.5.0-dev.4...v1.5.0-dev.5) (2024-12-06) + + +### Bug Fixes + +* entos intent support in fcs to get values from cli ([#281](https://github.com/rdkcentral/firebolt-certification-suite/issues/281)) ([834ca87](https://github.com/rdkcentral/firebolt-certification-suite/commit/834ca87f9a6e9180b1b1378218594bb66acd0bc1)) + +# [1.5.0-dev.4](https://github.com/rdkcentral/firebolt-certification-suite/compare/v1.5.0-dev.3...v1.5.0-dev.4) (2024-12-03) + + +### Bug Fixes + +* Added support in FCS for the external events ([#262](https://github.com/rdkcentral/firebolt-certification-suite/issues/262)) ([aab804d](https://github.com/rdkcentral/firebolt-certification-suite/commit/aab804d25a756ffff60e3cb47b20bbf8f500d33a)) + +# [1.5.0-dev.3](https://github.com/rdkcentral/firebolt-certification-suite/compare/v1.5.0-dev.2...v1.5.0-dev.3) (2024-12-03) + + +### Features + +* Add validation to ensure that the app launched is in foreground ([#264](https://github.com/rdkcentral/firebolt-certification-suite/issues/264)) ([0132a0f](https://github.com/rdkcentral/firebolt-certification-suite/commit/0132a0ffcdbd77d31c8b4c085144e65bca96b7b1)) + +# [1.5.0-dev.2](https://github.com/rdkcentral/firebolt-certification-suite/compare/v1.5.0-dev.1...v1.5.0-dev.2) (2024-12-03) + + +### Features + +* Enhancement of dynamic glue codes ([#263](https://github.com/rdkcentral/firebolt-certification-suite/issues/263)) ([59df9da](https://github.com/rdkcentral/firebolt-certification-suite/commit/59df9da4bf1ac6ae08d9e2ab56b301e67562c796)) + +# [1.5.0-dev.1](https://github.com/rdkcentral/firebolt-certification-suite/compare/v1.4.0...v1.5.0-dev.1) (2024-12-02) + + +### Features + +* Capabilities Cleanup + SevTags ([#267](https://github.com/rdkcentral/firebolt-certification-suite/issues/267)) ([6f3cc05](https://github.com/rdkcentral/firebolt-certification-suite/commit/6f3cc05f62356eefd106b3a0387b8d92b96cd684)) +* XSB keyboard module cleanup ([#272](https://github.com/rdkcentral/firebolt-certification-suite/issues/272)) ([04fcf22](https://github.com/rdkcentral/firebolt-certification-suite/commit/04fcf22b354efa35180de265d0936a319311db0e)) +* XSB Parameters module update ([#274](https://github.com/rdkcentral/firebolt-certification-suite/issues/274)) ([bc0187b](https://github.com/rdkcentral/firebolt-certification-suite/commit/bc0187bcc619efe04ff36264df8701657a14c62b)) +* XSB profile module cleanup ([#273](https://github.com/rdkcentral/firebolt-certification-suite/issues/273)) ([6dcabaa](https://github.com/rdkcentral/firebolt-certification-suite/commit/6dcabaa42f4bf94a2093b3ed449be8d70ed3dc99)) + # [1.4.0](https://github.com/rdkcentral/firebolt-certification-suite/compare/v1.3.0...v1.4.0) (2024-11-27) diff --git a/Docs/Request_Overrides.md b/Docs/Request_Overrides.md index 5405ab899..efbd49646 100644 --- a/Docs/Request_Overrides.md +++ b/Docs/Request_Overrides.md @@ -255,4 +255,46 @@ Example: {status: "fail"} ] } +``` + +## getAppState: + +### Request override +- The `getAppState` request override sends message to the platform to retrieve the status of all apps. This function should be added in config module `requestModules/fcs.js` file. + +#### Request format for getAppState request override function: + +```javascript +{ + method: 'fcs.getAppState', + params: { + appId: <'appid'> + } +} +``` + +**Example:** + +```javascript +{ + method: 'fcs.getAppState', + params: { + appId:'foo' + } +} +``` +### Response override + +- The `getAppState` returns the state of the app (e.g., foreground, background, etc.) based on the appId. This function should be added in config module `responseModules/fcs.js` file. + +#### Return response format of getAppState response override function: + +```javascript + 'fireboltState' +``` + +**Example:** Response override function returning the fireboltState of the app based on the appId. + +```javascript + 'FOREGROUND' ``` \ No newline at end of file diff --git a/cypress.config.js b/cypress.config.js index 058978bed..e05c42b39 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -85,11 +85,13 @@ const env = { 'lifeCycleApi', 'UserInterestProvider', ], + regexEventValidation: '/(\\.on)\\S*/', fcaAppList: ['default3rdPartyAppId'], variableObjectsPrefixLists: ['DYNAMIC_FB_CALL_VARIABLES'], pubSubPublishSuffix: '_FCS', pubSubSubscribeSuffix: '_FCA', pendingFeatures: [], + dynamicDeviceDetailsModules: ['Device'], }; module.exports = { diff --git a/cypress/TestCases/FireboltCertification/Accessibility.feature b/cypress/TestCases/FireboltCertification/Accessibility.feature index f7f3d6ed6..38a5a4f7b 100644 --- a/cypress/TestCases/FireboltCertification/Accessibility.feature +++ b/cypress/TestCases/FireboltCertification/Accessibility.feature @@ -7,10 +7,10 @@ Feature: Accessibility @sdk @transport @Sev0 Scenario Outline: Accessibility.closedCaptionsSettings - Validating API and Event Responses for - Given we test the 'ACCESSIBILITY_CLOSEDCAPTIONS_SETTINGS' getters and setters '' to '' + Given the environment has been set up for 'Accessibility closedCaptionsSettings' tests And '3rd party app' registers for the 'Firebolt' event And '3rd party app' invokes the 'Firebolt' get API - When 1st party app invokes the 'Firebolt' API to set value + When 1st party app invokes the 'Firebolt' API to set '' to '' Then 'Firebolt' platform responds to '1st party app' set API When '3rd party app' invokes the 'Firebolt' get API Then 'Firebolt' platform responds to '3rd party app' get API @@ -23,10 +23,10 @@ Feature: Accessibility @sdk @transport @Sev1 Scenario Outline: Accessibility.closedCaptionsSettings - Validating API and Event Responses for change to - Given we test the 'ACCESSIBILITY_CLOSEDCAPTIONS_SETTINGS' getters and setters '' to '' + Given the environment has been set up for 'Accessibility closedCaptionsSettings' tests And '3rd party app' registers for the 'Firebolt' event And '3rd party app' invokes the 'Firebolt' get API - When 1st party app invokes the 'Firebolt' API to set value + When 1st party app invokes the 'Firebolt' API to set '' to '' Then 'Firebolt' platform responds to '1st party app' set API When '3rd party app' invokes the 'Firebolt' get API Then 'Firebolt' platform responds to '3rd party app' get API @@ -67,10 +67,10 @@ Feature: Accessibility @sdk @transport @Sev2 Scenario Outline: Accessibility.onClosedCaptionsSettingsChanged - Validating API and Event Responses for change to null - Given we test the 'ACCESSIBILITY_CLOSEDCAPTIONS_SETTINGS_SET_TO_NULL' getters and setters '' to 'null' + Given the environment has been set up for 'Accessibility closedCaptions Settings set to null' tests When '3rd party app' registers for the 'Firebolt' event And '3rd party app' invokes the 'Firebolt' get API - And 1st party app invokes the 'Firebolt' API to set value + When 1st party app invokes the 'Firebolt' API to set '' to 'null' Then 'Firebolt' platform responds to '1st party app' set API When '3rd party app' invokes the 'Firebolt' get API Then 'Firebolt' platform responds to '3rd party app' get API @@ -93,10 +93,10 @@ Feature: Accessibility @sdk @transport @Sev0 Scenario Outline: Accessibility.voiceGuidanceSettings - Validating API and Event Responses for - Given we test the 'ACCESSIBILITY_VOICEGUIDANCE_SETTINGS' getters and setters '' to '' + Given the environment has been set up for 'Accessibility voiceguidancesettings' tests And '3rd party app' registers for the 'Firebolt' event And '3rd party app' invokes the 'Firebolt' get API - When 1st party app invokes the 'Firebolt' API to set value + When 1st party app invokes the 'Firebolt' API to set '' to '' Then 'Firebolt' platform responds to '1st party app' set API When '3rd party app' invokes the 'Firebolt' get API Then 'Firebolt' platform responds to '3rd party app' get API @@ -109,10 +109,10 @@ Feature: Accessibility @sdk @transport @Sev1 Scenario Outline: Accessibility.voiceGuidanceSettings - Validating API and Event Responses for change to - Given we test the 'ACCESSIBILITY_VOICEGUIDANCE_SETTINGS' getters and setters '' to '' + Given the environment has been set up for 'Accessibility voiceguidancesettings' tests And '3rd party app' registers for the 'Firebolt' event And '3rd party app' invokes the 'Firebolt' get API - When 1st party app invokes the 'Firebolt' API to set value + When 1st party app invokes the 'Firebolt' API to set '' to '' Then 'Firebolt' platform responds to '1st party app' set API When '3rd party app' invokes the 'Firebolt' get API Then 'Firebolt' platform responds to '3rd party app' get API @@ -126,10 +126,10 @@ Feature: Accessibility @sdk @transport @Sev1 Scenario Outline: Accessibility.audioDescriptionSettings - Validating API and Event Responses for - Given we test the 'AUDIODESCRIPTIONS_SETTINGS' getters and setters '' to '' + Given the environment has been set up for 'Accessibility audioDescriptionSettings' tests And '3rd party app' registers for the 'Firebolt' event And '3rd party app' invokes the 'Firebolt' get API - When 1st party app invokes the 'Firebolt' API to set value + When 1st party app invokes the 'Firebolt' API to set '' to '' Then 'Firebolt' platform responds to '1st party app' set API When '3rd party app' invokes the 'Firebolt' get API Then 'Firebolt' platform responds to '3rd party app' get API @@ -142,9 +142,9 @@ Feature: Accessibility @sdk @transport @Sev0 Scenario Outline: Accessibility.closedCaptions - Validating API and Event Responses for - Given we test the 'ACCESSIBILITY_CLOSEDCAPTIONS' getters and setters '' to '' + Given the environment has been set up for 'Accessibility closedcaptions' tests And '3rd party app' registers for the 'Firebolt' event - When 1st party app invokes the 'Firebolt' API to set value + When 1st party app invokes the 'Firebolt' API to set '' to '' Then 'Firebolt' platform responds to '1st party app' set API When '3rd party app' invokes the 'Firebolt' get API Then 'Firebolt' platform responds to '3rd party app' get API @@ -157,9 +157,9 @@ Feature: Accessibility @sdk @transport @Sev1 Scenario Outline: Accessibility.closedCaptions - Validating API and Event Responses for change to - Given we test the 'ACCESSIBILITY_CLOSEDCAPTIONS' getters and setters '' to '' + Given the environment has been set up for 'Accessibility closedcaptions' tests And '3rd party app' registers for the 'Firebolt' event - When 1st party app invokes the 'Firebolt' API to set value + When 1st party app invokes the 'Firebolt' API to set '' to '' Then 'Firebolt' platform responds to '1st party app' set API When '3rd party app' invokes the 'Firebolt' get API Then 'Firebolt' platform responds to '3rd party app' get API @@ -196,10 +196,10 @@ Feature: Accessibility @sdk @transport @Sev0 Scenario Outline: Accessibility.voiceGuidance - Validating API and Event Responses for - Given we test the 'ACCESSIBILITY_VOICEGUIDANCE' getters and setters '' to '' + Given the environment has been set up for 'Accessibility voiceguidance' tests And '3rd party app' registers for the 'Firebolt' event And '3rd party app' invokes the 'Firebolt' get API - When 1st party app invokes the 'Firebolt' API to set value + When 1st party app invokes the 'Firebolt' API to set '' to '' Then 'Firebolt' platform responds to '1st party app' set API When '3rd party app' invokes the 'Firebolt' get API Then 'Firebolt' platform responds to '3rd party app' get API @@ -212,10 +212,10 @@ Feature: Accessibility @sdk @transport @Sev1 Scenario Outline: Accessibility.voiceGuidance - Validating API and Event Responses for change to - Given we test the 'ACCESSIBILITY_VOICEGUIDANCE' getters and setters '' to '' + Given the environment has been set up for 'Accessibility voiceguidance' tests And '3rd party app' registers for the 'Firebolt' event And '3rd party app' invokes the 'Firebolt' get API - When 1st party app invokes the 'Firebolt' API to set value + When 1st party app invokes the 'Firebolt' API to set '' to '' Then 'Firebolt' platform responds to '1st party app' set API When '3rd party app' invokes the 'Firebolt' get API Then 'Firebolt' platform responds to '3rd party app' get API diff --git a/cypress/TestCases/FireboltCertification/Advertising.feature b/cypress/TestCases/FireboltCertification/Advertising.feature index d1bf52c49..dc0712527 100644 --- a/cypress/TestCases/FireboltCertification/Advertising.feature +++ b/cypress/TestCases/FireboltCertification/Advertising.feature @@ -22,10 +22,10 @@ Feature: Advertising @sdk @transport @Sev1 Scenario Outline: Advertising.policy - Validating API and Event responses when set to - Given we test the 'ADVERTISING_SKIPRESTRICTION' getters and setters '' to '' + Given the environment has been set up for 'Advertising skiprestriction' tests And '3rd party app' registers for the 'Firebolt' event And '3rd party app' invokes the 'Firebolt' get API - When 1st party app invokes the 'Firebolt' API to set value + When 1st party app invokes the 'Firebolt' API to set '' to '' Then 'Firebolt' platform responds to '1st party app' set API When '3rd party app' invokes the 'Firebolt' get API Then 'Firebolt' platform responds to '3rd party app' get API @@ -40,7 +40,7 @@ Feature: Advertising @sdk @transport @Sev2 Scenario: Advertising.deviceAttributes - Validating API Method response content - Given we test the 'ADVERTISING_DEVICEATTRIBUTES' getters and setters + Given the environment has been set up for 'Advertising deviceattributes' tests When '3rd party app' invokes the 'Firebolt' get API Then 'Firebolt' platform responds to '3rd party app' get API diff --git a/cypress/TestCases/FireboltCertification/Capabilities.feature b/cypress/TestCases/FireboltCertification/Capabilities.feature index d40fb0907..b23ed8057 100644 --- a/cypress/TestCases/FireboltCertification/Capabilities.feature +++ b/cypress/TestCases/FireboltCertification/Capabilities.feature @@ -5,66 +5,66 @@ Feature: Capabilities Given the environment has been set up for 'Capabilities' tests And 3rd party 'certification' app is launched - @sdk @transport - Scenario: Capabilities.info - Positive Scenario: Validate passing all the capabilities list + @sdk @transport @Sev0 + Scenario: Capabilities.info - Validate API Method Response Content When '3rd party app' invokes the 'Firebolt' API to 'get capability info' Then 'Firebolt' platform responds with 'expected value for info api' - @sdk @transport - Scenario Outline: Capabilities.available - Positive Scenario: + @sdk @transport @Sev2 + Scenario Outline: Capabilities.available - Validate API Method Response for When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with '' Examples: - | Scenario | API_Key | Validation_key | - | Validate keyboard capability available in 3rd party app | check availability of keyboard capability | expected value for keyboard capability availability | - | Validate acknowledgechallenge capability available in 3rd party app | check availability of acknowledgechallenge capability | true for acknowledgechallenge capability availability | - | Validate pinchallenge capability available in 3rd party app | check availability of pinchallenge capability | expected value for pinchallenge capability availability | + | Scenario | API_Key | Validation_key | + | keyboard capability in 3rd party app | check availability of keyboard capability | expected value for keyboard capability availability | + | acknowledgechallenge capability in 3rd party app | check availability of acknowledgechallenge capability | true for acknowledgechallenge capability availability | + | pinchallenge capability in 3rd party app | check availability of pinchallenge capability | expected value for pinchallenge capability availability | - @sdk @transport - Scenario Outline: Capabilities.available - Positive Scenario: + @sdk @transport @Sev2 + Scenario Outline: Capabilities.available - Validate API Method Response for When 1st party app invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds to '1st party app' with '' Examples: - | Scenario | API_Key | Validation_key | - | Validate keyboard capability available in platform | check availability of keyboard capability | expected value for keyboard capability availability | - | Validate acknowledgechallenge capability available in platform | check availability of acknowledgechallenge capability | true for acknowledgechallenge capability availability | - | Validate pinchallenge capability available in platform | check availability of pinchallenge capability | expected value for pinchallenge capability availability | + | Scenario | API_Key | Validation_key | + | keyboard capability in platform | check availability of keyboard capability | expected value for keyboard capability availability | + | acknowledgechallenge capability in platform | check availability of acknowledgechallenge capability | true for acknowledgechallenge capability availability | + | pinchallenge capability in platform | check availability of pinchallenge capability | expected value for pinchallenge capability availability | - @sdk @transport - Scenario Outline: Capabilities.granted - Positive Scenario: + @sdk @transport @Sev2 + Scenario Outline: Capabilities.granted - Validate API Method Response with When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with 'true for granted capability with passed role' Examples: - | Scenario | API_Key | - | Validate with grants | check if passed capability is granted | - | Validate with options role as use | check if capability is granted with role as use | - | Validate with options role as manage | check if capability is granted with role as manage | - | Validate with options role as provide | check if capability is granted with role as provide | + | Scenario | API_Key | + | grants | check if passed capability is granted | + | options role as use | check if capability is granted with role as use | + | options role as manage | check if capability is granted with role as manage | + | options role as provide | check if capability is granted with role as provide | - @sdk @transport - Scenario Outline: Capabilities api - Positive Scenario: + @sdk @transport @Sev2 + Scenario Outline: Capabilities api - Validating API and Event responses for When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with 'expected value for info api' When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with 'expected value for supported api' Examples: - | Scenario | Info_API_Key | Supported_API_Key | - | Validate userGrant pinChallenge | get info of usergrant pinchallenge capability | check if usergrant pinchallenge capability is supported | - | Validate device distributor | get info of device distributor capability | check if device distributor capability is supported | - | Validate wifi networkStatus | get info of wifi networkstatus capability | check if wifi networkstatus capability is supported | - | Validate localization time-zone | get info of localization timezone capability | check if localization timezone capability is supported | - | Validate privacy settings | get info of privacy settings capability | check if privacy settings capability is supported | - | Validate protocolWifi | get info of wifi protocol capability | check if wifi protocol capability is supported | - | Validate acknowledgeChallenge userGrant | get info of usergrant acknowledgechallenge capability | check if usergrant acknowledgechallenge capability is supported | - | Validate grants state | get info of grants state capability | check if for grants state capability is supported | - | Validate localization time-zone without role | get info of localization timezone capability | check if localization timezone capability is supported | + | Scenario | Info_API_Key | Supported_API_Key | + | userGrant pinChallenge | get info of usergrant pinchallenge capability | check if usergrant pinchallenge capability is supported | + | device distributor | get info of device distributor capability | check if device distributor capability is supported | + | wifi networkStatus | get info of wifi networkstatus capability | check if wifi networkstatus capability is supported | + | localization time-zone | get info of localization timezone capability | check if localization timezone capability is supported | + | privacy settings | get info of privacy settings capability | check if privacy settings capability is supported | + | protocolWifi | get info of wifi protocol capability | check if wifi protocol capability is supported | + | acknowledgeChallenge userGrant | get info of usergrant acknowledgechallenge capability | check if usergrant acknowledgechallenge capability is supported | + | grants state | get info of grants state capability | check if for grants state capability is supported | + | localization time-zone without role | get info of localization timezone capability | check if localization timezone capability is supported | - @sdk @transport - Scenario Outline: Capabilities api - Positive Scenario: + @sdk @transport @Sev2 + Scenario Outline: Capabilities api - Validating API and event responses for When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with 'expected value for info api' When '3rd party app' invokes the 'Firebolt' API to '' @@ -73,116 +73,116 @@ Feature: Capabilities Then 'Firebolt' platform responds with 'expected value for supported api' Examples: - | Scenario | Info_API_Key | Supported_API_Key | Permitted_API_Key | - | Validate lifecycle ready | get info of lifecycle ready capability | check if lifecycle ready capability is supported | check if lifecycle ready capability is permitted | - | Validate lifecycle state | get info of lifecycle state capability | check if lifecycle state capability is supported | check if lifecycle state capability is permitted | - | Validate lifecycle launch | get info of lifecycle launch capability | check if lifecycle launch capability is supported | check if lifecycle launch capability is permitted | - | Validate advertising identifier | get info of advertising identifier capability | check if advertising identifier capability is supported | check if advertising identifier capability is permitted | - | Validate account id | get info of account id capability | check if account id capability is supported | check if account id capability is permitted | - | Validate account uid | get info of account uid capability | check if account uid capability is supported | check if account uid capability is permitted | - | Validate discovery signInStatus | get info of discovery signinstatus capability | check if discovery signinstatus capability is supported | check if discovery signinstatus capability is permitted | - | Validate discovery watchNext | get info of discovery watchnext capability | check if discovery watchnext capability is supported | check if discovery watchnext capability is permitted | - | Validate discovery watched | get info of discovery watched capability | check if discovery watched capability is supported | check if discovery watched capability is permitted | - | Validate discovery entityInfo | get info of discovery entityinfo capability | check if discovery entityinfo capability is supported | check if discovery entityinfo capability is permitted | - | Validate discovery navigateTo | get info of discovery navigateto capability | check if discovery navigateto capability is supported | check if discovery navigateto capability is permitted | - | Validate discovery policy | get info of discovery policy capability | check if discovery policy capability is supported | check if discovery policy capability is permitted | - | Validate discovery purchasedContent | get info of discovery purchasedcontent capability | check if discovery purchasedcontent capability is supported | check if discovery purchasedcontent capability is permitted | - | Validate keyboard input | get info of keyboard input capability | check if keyboard input capability is supported | check if keyboard input capability is permitted | - | Validate localization location | get info of localization location capability | check if localization location capability is supported | check if localization location capability is permitted | - | Validate protocolDial | get info of protocoldial capability | check if protocoldial capability is supported | check if protocoldial capability is permitted | - | Validate authentication token device | get info of authentication token device capability | check if authentication token device capability is supported | check if authentication token device capability is permitted | - | Validate authentication token platform | get info of authentication token platform capability | check if authentication token platform capability is supported | check if authentication token platform capability is permitted | - | Validate authentication token root | get info of authentication token root capability | check if authentication token root capability is supported | check if authentication token root capability is permitted | - | Validate approveContent | get info of approvecontent capability | check if approvecontent capability is supported | check if approvecontent capability is permitted | - | Validate profile approvePurchase | get info of profile approvepurchase capability | check if profile approvepurchase capability is supported | check if profile approvepurchase capability is permitted | - | Validate profile flags | get info of profile flags capability | check if profile flags capability is supported | check if profile flags capability is permitted | - | Validate device id | get info of device id capability | check if device id capability is supported | check if device id capability is permitted | - | Validate device info | get info of device info capability | check if device info capability is supported | check if device info capability is permitted | - | Validate device make | get info of device make capability | check if device make capability is supported | check if device make capability is permitted | - | Validate device model | get info of device model capability | check if device model capability is supported | check if device model capability is permitted | - | Validate device sku | get info of device sku capability | check if device sku capability is supported | check if device sku capability is permitted | - | Validate device uid | get info of device uid capability | check if device uid capability is supported | check if device uid capability is permitted | - | Validate metrics general | get info of metrics general capability | check if metrics general capability is supported | check if metrics general capability is permitted | - | Validate metrics media | get info of metrics media capability | check if metrics media capability is supported | check if metrics media capability is permitted | - | Validate privacy advertising | get info of privacy advertising capability | check if privacy advertising capability is supported | check if privacy advertising capability is permitted | - | Validate advertising configuration | get info of advertising configuration capability | check if advertising configuration capability is supported | check if advertising configuration capability is permitted | - | Validate localization locality | get info of localization locality capability | check if localization locality capability is supported | check if localization locality capability is permitted | - | Validate localization postalCode | get info of localization postalCode capability | check if localization postalCode capability is supported | check if localization postalCode capability is permitted | - | Validate localization countryCode | get info of localization countryCode capability | check if localization countryCode capability is supported | check if localization countryCode capability is permitted | - | Validate localization language | get info of localization language capability | check if localization language capability is supported | check if localization language capability is permitted | - | Validate localization locale | get info of localization locale capability | check if localization locale capability is supported | check if localization locale capability is permitted | - | Validate accessibility closedCaptions | get info of accessibility closedCaptions capability | check if accessibility closedCaptions capability is supported | check if accessibility closedCaptions capability is permitted | - | Validate accessibility voiceGuidance | get info of accessibility voiceGuidance capability | check if accessibility voiceGuidance capability is supported | check if accessibility voiceGuidance capability is permitted | - | Validate device name | get info of device name capability | check if device name capability is supported | check if device name capability is permitted | - | Validate authentication token session | get info of authentication token session capability | check if authentication token session capability is supported | check if authentication token session capability is permitted | - | Validate secure storage | get info of secure storage capability | check if secure storage capability is supported | check if secure storage capability is permitted | - | Validate capability info | get info of capability info capability | check if capability info capability is supported | check if capability info capability is permitted | - | Validate discovery contentAccess | get info of discovery contentaccess capability | check if discovery contentaccess capability is supported | check if discovery contentaccess capability is permitted | + | Scenario | Info_API_Key | Supported_API_Key | Permitted_API_Key | + | lifecycle ready | get info of lifecycle ready capability | check if lifecycle ready capability is supported | check if lifecycle ready capability is permitted | + | lifecycle state | get info of lifecycle state capability | check if lifecycle state capability is supported | check if lifecycle state capability is permitted | + | lifecycle launch | get info of lifecycle launch capability | check if lifecycle launch capability is supported | check if lifecycle launch capability is permitted | + | advertising identifier | get info of advertising identifier capability | check if advertising identifier capability is supported | check if advertising identifier capability is permitted | + | account id | get info of account id capability | check if account id capability is supported | check if account id capability is permitted | + | account uid | get info of account uid capability | check if account uid capability is supported | check if account uid capability is permitted | + | discovery signInStatus | get info of discovery signinstatus capability | check if discovery signinstatus capability is supported | check if discovery signinstatus capability is permitted | + | discovery watchNext | get info of discovery watchnext capability | check if discovery watchnext capability is supported | check if discovery watchnext capability is permitted | + | discovery watched | get info of discovery watched capability | check if discovery watched capability is supported | check if discovery watched capability is permitted | + | discovery entityInfo | get info of discovery entityinfo capability | check if discovery entityinfo capability is supported | check if discovery entityinfo capability is permitted | + | discovery navigateTo | get info of discovery navigateto capability | check if discovery navigateto capability is supported | check if discovery navigateto capability is permitted | + | discovery policy | get info of discovery policy capability | check if discovery policy capability is supported | check if discovery policy capability is permitted | + | discovery purchasedContent | get info of discovery purchasedcontent capability | check if discovery purchasedcontent capability is supported | check if discovery purchasedcontent capability is permitted | + | keyboard input | get info of keyboard input capability | check if keyboard input capability is supported | check if keyboard input capability is permitted | + | localization location | get info of localization location capability | check if localization location capability is supported | check if localization location capability is permitted | + | protocolDial | get info of protocoldial capability | check if protocoldial capability is supported | check if protocoldial capability is permitted | + | authentication token device | get info of authentication token device capability | check if authentication token device capability is supported | check if authentication token device capability is permitted | + | authentication token platform | get info of authentication token platform capability | check if authentication token platform capability is supported | check if authentication token platform capability is permitted | + | authentication token root | get info of authentication token root capability | check if authentication token root capability is supported | check if authentication token root capability is permitted | + | approveContent | get info of approvecontent capability | check if approvecontent capability is supported | check if approvecontent capability is permitted | + | profile approvePurchase | get info of profile approvepurchase capability | check if profile approvepurchase capability is supported | check if profile approvepurchase capability is permitted | + | profile flags | get info of profile flags capability | check if profile flags capability is supported | check if profile flags capability is permitted | + | device id | get info of device id capability | check if device id capability is supported | check if device id capability is permitted | + | device info | get info of device info capability | check if device info capability is supported | check if device info capability is permitted | + | device make | get info of device make capability | check if device make capability is supported | check if device make capability is permitted | + | device model | get info of device model capability | check if device model capability is supported | check if device model capability is permitted | + | device sku | get info of device sku capability | check if device sku capability is supported | check if device sku capability is permitted | + | device uid | get info of device uid capability | check if device uid capability is supported | check if device uid capability is permitted | + | metrics general | get info of metrics general capability | check if metrics general capability is supported | check if metrics general capability is permitted | + | metrics media | get info of metrics media capability | check if metrics media capability is supported | check if metrics media capability is permitted | + | privacy advertising | get info of privacy advertising capability | check if privacy advertising capability is supported | check if privacy advertising capability is permitted | + | advertising configuration | get info of advertising configuration capability | check if advertising configuration capability is supported | check if advertising configuration capability is permitted | + | localization locality | get info of localization locality capability | check if localization locality capability is supported | check if localization locality capability is permitted | + | localization postalCode | get info of localization postalCode capability | check if localization postalCode capability is supported | check if localization postalCode capability is permitted | + | localization countryCode | get info of localization countryCode capability | check if localization countryCode capability is supported | check if localization countryCode capability is permitted | + | localization language | get info of localization language capability | check if localization language capability is supported | check if localization language capability is permitted | + | localization locale | get info of localization locale capability | check if localization locale capability is supported | check if localization locale capability is permitted | + | accessibility closedCaptions | get info of accessibility closedCaptions capability | check if accessibility closedCaptions capability is supported | check if accessibility closedCaptions capability is permitted | + | accessibility voiceGuidance | get info of accessibility voiceGuidance capability | check if accessibility voiceGuidance capability is supported | check if accessibility voiceGuidance capability is permitted | + | device name | get info of device name capability | check if device name capability is supported | check if device name capability is permitted | + | authentication token session | get info of authentication token session capability | check if authentication token session capability is supported | check if authentication token session capability is permitted | + | secure storage | get info of secure storage capability | check if secure storage capability is supported | check if secure storage capability is permitted | + | capability info | get info of capability info capability | check if capability info capability is supported | check if capability info capability is permitted | + | discovery contentAccess | get info of discovery contentaccess capability | check if discovery contentaccess capability is supported | check if discovery contentaccess capability is permitted | - @sdk @transport - Scenario: Capabilities.permitted - Negative Scenario: lifecycle ready capability and expecting error + @sdk @transport @Sev1 + Scenario: Capabilities.permitted - Validating API Error Handling When '3rd party app' invokes the 'Firebolt' API to 'check if lifecycle ready capability is permitted' Then 'Firebolt' platform responds with 'expected value for permitted api' When '3rd party app' invokes the 'Firebolt' API to 'check if lifecycle ready capability expecting error' Then 'Firebolt' platform responds with 'custom error for lifecycle ready capability' - @sdk @transport - Scenario Outline: Capabilities.permitted - Positive Scenario: + @sdk @transport @Sev2 + Scenario Outline: Capabilities.permitted - Validating API and Event responses for When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with 'expected value for permitted api' When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with '' Examples: - | Scenario | Permitted_API_Key | API_Key | Validation_Key | - | Validate lifecycle state capability | check if lifecycle state capability is permitted with role use | fetch lifecycle state | expected lifecycle state as foreground | - | Validate account id capability | check if account id capability is permitted with role use | fetch account id | account id | - | Validate account uid capability | check if account uid capability is permitted with role use | fetch account uid | account uid | + | Scenario | Permitted_API_Key | API_Key | Validation_Key | + | lifecycle state capability | check if lifecycle state capability is permitted with role use | fetch lifecycle state | expected lifecycle state as foreground | + | account id capability | check if account id capability is permitted with role use | fetch account id | account id | + | account uid capability | check if account uid capability is permitted with role use | fetch account uid | account uid | - @sdk @transport - Scenario Outline: Capabilities.permitted - Positive Scenario: + @sdk @transport @Sev1 + Scenario Outline: Capabilities.permitted - Validating API and Event responses for When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with 'expected value for permitted api' When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with '' Examples: - | Scenario | Permitted_API_Key | Discovery_API_Key | Discovery_Validation_Key | - | Validate discovery entitlements capability | check if discovery entitlements capability is permitted with role use | notify entitlements | true for entitlements in discovery | - | Validate discovery watchNext capability | check if discovery watchnext capability is permitted with role use | suggest watchnext tile with entityid | true for watchnext tile in discovery | - | Validate discovery watched capability | check if discovery watched capability is permitted with role use | notify watched content with only entityid | true for watched content in discovery | + | Scenario | Permitted_API_Key | Discovery_API_Key | Discovery_Validation_Key | + | discovery entitlements capability | check if discovery entitlements capability is permitted with role use | notify entitlements | true for entitlements in discovery | + | discovery watchNext capability | check if discovery watchnext capability is permitted with role use | suggest watchnext tile with entityid | true for watchnext tile in discovery | + | discovery watched capability | check if discovery watched capability is permitted with role use | notify watched content with only entityid | true for watched content in discovery | - @sdk @transport - Scenario Outline: Capabilities. - Negative Scenario: and expecting error + @sdk @transport @Sev2 + Scenario Outline: Capabilities. - Validating API Error handling given When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with '' Examples: - | Method | Scenario | Error_Key | Error_Validation_Key | - | info | Validate Invalid capabilities category | get info of capabilities with invalid category | invalid params for capabilities info | - | info | Validate Empty param | get info of capabilities with empty param | invalid params for capabilities info | - | info | Validate without capabilities | get info of capabilities with empty capabilities | custom error for capabilities info | - | permitted | Validate Wifi with invalid role | get permitted capabilities with invalid role | invalid params for capabilities permitted | - | permitted | Validate invalid capability | get permitted capabilities with invalid capability | invalid params for capabilities permitted | - | available | Validate Invalid capabilities category | check availability of capabilities with invalid capability | invalid params for capabilities available | - | available | Validate Empty param | check availability of capabilities with empty param | invalid params for capabilities available | - | supported | Validate empty params | get supported capabilities with empty param | invalid params for capabilities supported | - | supported | Validate multiple capability | get supported capabilities multiple capability | invalid params for capabilities supported | - | supported | Validate invalid capability | get supported capabilities invalid capability | invalid params for capabilities supported | - | granted | Validate without capability | get granted capabilities without capability | invalid params for capabilities granted | - | granted | Validate capability as random string | get granted capabilities with random string capability | invalid params for capabilities granted | - | granted | Validate capability as null | get granted capabilities with null capability | invalid params for capabilities granted | - | granted | Validate capability as number | get granted capabilities with number capability | invalid params for capabilities granted | - | granted | Validate capability as boolean | get granted capabilities with boolean capability | invalid params for capabilities granted | - | granted | Validate capability as array | get granted capabilities with array capability | invalid params for capabilities granted | - | granted | Validate options as string | get granted capabilities with string options | invalid params for capabilities granted | - | granted | Validate options as number | get granted capabilities with number options | invalid params for capabilities granted | - | granted | Validate options as boolean | get granted capabilities with boolean options | invalid params for capabilities granted | - | granted | Validate options as array | get granted capabilities with array options | invalid params for capabilities granted | - | granted | Validate options with null role | get granted capabilities with invalid options null role | invalid params for capabilities granted | - | granted | Validate options with number role | get granted capabilities with invalid options number role | invalid params for capabilities granted | - | granted | Validate options with boolean role | get granted capabilities with invalid options boolean role | invalid params for capabilities granted | - | granted | Validate options with array role | get granted capabilities with invalid options array role | invalid params for capabilities granted | + | Method | Scenario | Error_Key | Error_Validation_Key | + | info | invalid capabilities category | get info of capabilities with invalid category | invalid params for capabilities info | + | info | empty param | get info of capabilities with empty param | invalid params for capabilities info | + | info | no capabilities | get info of capabilities with empty capabilities | custom error for capabilities info | + | permitted | Wifi with invalid role | get permitted capabilities with invalid role | invalid params for capabilities permitted | + | permitted | invalid capabilities | get permitted capabilities with invalid capability | invalid params for capabilities permitted | + | available | Invalid capabilities category | check availability of capabilities with invalid capability | invalid params for capabilities available | + | available | empty param | check availability of capabilities with empty param | invalid params for capabilities available | + | supported | empty params | get supported capabilities with empty param | invalid params for capabilities supported | + | supported | multiple capabilities | get supported capabilities multiple capability | invalid params for capabilities supported | + | supported | invalid capabilities | get supported capabilities invalid capability | invalid params for capabilities supported | + | granted | without capabilities | get granted capabilities without capability | invalid params for capabilities granted | + | granted | capability as random string | get granted capabilities with random string capability | invalid params for capabilities granted | + | granted | capability as null | get granted capabilities with null capability | invalid params for capabilities granted | + | granted | capability as number | get granted capabilities with number capability | invalid params for capabilities granted | + | granted | capability as boolean | get granted capabilities with boolean capability | invalid params for capabilities granted | + | granted | capability as array | get granted capabilities with array capability | invalid params for capabilities granted | + | granted | options as string | get granted capabilities with string options | invalid params for capabilities granted | + | granted | options as number | get granted capabilities with number options | invalid params for capabilities granted | + | granted | options as boolean | get granted capabilities with boolean options | invalid params for capabilities granted | + | granted | options as array | get granted capabilities with array options | invalid params for capabilities granted | + | granted | options with null role | get granted capabilities with invalid options null role | invalid params for capabilities granted | + | granted | options with number role | get granted capabilities with invalid options number role | invalid params for capabilities granted | + | granted | options with boolean role | get granted capabilities with invalid options boolean role | invalid params for capabilities granted | + | granted | options with array role | get granted capabilities with invalid options array role | invalid params for capabilities granted | - @sdk @transport - Scenario: Capabilities api - Positive Scenario: Validate capability request + @sdk @transport @Sev2 + Scenario: Capabilities api - Validate API Method Response content for capability request When '3rd party app' invokes the 'Firebolt' API to 'get info of capability request capability' Then 'Firebolt' platform responds with 'expected value for info api' When '3rd party app' invokes the 'Firebolt' API to 'get capabilityInfo of request capability' @@ -192,36 +192,36 @@ Feature: Capabilities When '3rd party app' invokes the 'Firebolt' API to 'check if capability request capability is supported' Then 'Firebolt' platform responds with 'expected value for supported api' - @sdk @transport - Scenario Outline: Capabilities.permitted - Positive Scenario: + @sdk @transport @Sev2 + Scenario Outline: Capabilities.permitted - Validating API and event responses for When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with 'expected value for permitted api' When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with '' Examples: - | Scenario | Permitted_Api_Key | Api_Key | Validation_Key | - | Validate authentication token device capability | check if authentication token device capability is permitted with role use | get the authentication token for device | decode base64 authentication token | - | Validate authentication token platform capability | check if authentication token platform capability is permitted with role use | get the authentication token for platform | platform authentication token | + | Scenario | Permitted_Api_Key | Api_Key | Validation_Key | + | authentication token device capability | check if authentication token device capability is permitted with role use | get the authentication token for device | decode base64 authentication token | + | authentication token platform capability | check if authentication token platform capability is permitted with role use | get the authentication token for platform | platform authentication token | - @sdk @transport - Scenario Outline: Capabilities.permitted - Positive Scenario: + @sdk @transport @Sev2 + Scenario Outline: Capabilities.permitted - Validating API and event responses for When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with 'expected value for permitted api' When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with '' Examples: - | Scenario | Permitted_Api_Key | Api_Key | Validation_Key | - | Validate authentication token root capability | check if authentication token root capability is permitted with role use | fetch root token | authentication root | - | Validate authentication token session capability | check if authentication token session capability is permitted with role use | fetch session token | authentication session | - | Validate device make capability | check if device make capability is permitted with role use | fetch device make | expected device make | - | Validate device model capability | check if device model capability is permitted with role use | fetch device model | expected device model | - | Validate device sku capability | check if device sku capability is permitted with role use | fetch device sku | expected device sku | - | Validate device uid capability | check if device uid capability is permitted with role use | fetch device uid | expected device uid | + | Scenario | Permitted_Api_Key | Api_Key | Validation_Key | + | authentication token root capability | check if authentication token root capability is permitted with role use | fetch root token | authentication root | + | authentication token session capability | check if authentication token session capability is permitted with role use | fetch session token | authentication session | + | device make capability | check if device make capability is permitted with role use | fetch device make | expected device make | + | device model capability | check if device model capability is permitted with role use | fetch device model | expected device model | + | device sku capability | check if device sku capability is permitted with role use | fetch device sku | expected device sku | + | device uid capability | check if device uid capability is permitted with role use | fetch device uid | expected device uid | - @sdk @transport @requiresPlatformImplementation - Scenario: Validate Capabilities.OnAvailable + @sdk @transport @requiresPlatformImplementation @Sev2 + Scenario: Capabilities.OnAvailable - Validate Event trigger Given 1st party app registers for the 'capabilities onAvailable' event using the 'Firebolt' API And User set response for 'set keyboard response in platform' And Framework registers 'keyboard' test provider @@ -229,8 +229,8 @@ Feature: Capabilities Then 'Firebolt' platform responds to '1st party app' with 'true for keyboard capability availability' And 'Firebolt' platform triggers to '1st party app' event 'expected value for capabilities onAvailable' - @sdk @transport @requiresPlatformImplementation @notSupported - Scenario: Validate Capabilities.OnUnavailable + @sdk @transport @requiresPlatformImplementation @notSupported @Sev2 + Scenario: Capabilities.OnUnavailable - Validate Event trigger and Error reponse Given 1st party app registers for the 'capabilities onUnavailable' event using the 'Firebolt' API And User set response for 'set keyboard response in platform' And Framework registers 'keyboard' test provider @@ -238,8 +238,8 @@ Feature: Capabilities Then 'Firebolt' platform responds to '1st party app' with 'false for keyboard capability availability' And 'Firebolt' platform triggers to '1st party app' event 'expected value for capabilities onUnAvailable' - @sdk @transport @requiresPlatformImplementation - Scenario: Validate Capabilities.OnGranted + @sdk @transport @requiresPlatformImplementation @Sev2 + Scenario: Capabilities.OnGranted - Validate Event trigger Given '3rd party app' registers for the 'capabilities onGranted' event using the 'Firebolt' API And User set response for 'set pinchallenge correct pin' And Framework registers 'pinChallenge' test provider @@ -251,8 +251,8 @@ Feature: Capabilities Then 'Firebolt' platform responds with 'true for granted capability with passed role' And 'Firebolt' platform triggers event 'expected value for capabilities OnGranted' - @sdk @transport @requiresPlatformImplementation - Scenario: Validate Capabilities.OnRevoked + @sdk @transport @requiresPlatformImplementation @Sev2 + Scenario: Capabilities.OnRevoked - Validate Event trigger and Error reponse Given '3rd party app' registers for the 'capabilities onRevoked' event using the 'Firebolt' API And User set response for 'set pinchallenge wrong pin' And Framework registers 'pinChallenge' test provider diff --git a/cypress/TestCases/FireboltCertification/Device.feature b/cypress/TestCases/FireboltCertification/Device.feature index eb23dd65b..e6bb78533 100644 --- a/cypress/TestCases/FireboltCertification/Device.feature +++ b/cypress/TestCases/FireboltCertification/Device.feature @@ -31,9 +31,9 @@ Feature: Device @sdk @transport @Sev2 Scenario: Device.name - Validating API and Event Responses for name change - Given we test the 'DEVICE_NAME_CORE' getters and setters 'setName' to 'Living hall' + Given the environment has been set up for 'Device name core' tests And '1st party app' registers for the 'Firebolt' event - When 1st party app invokes the 'Firebolt' API to set value + When 1st party app invokes the 'Firebolt' API to set 'setName' to 'Living hall' Then 'Firebolt' platform responds to '1st party app' set API When '1st party app' invokes the 'Firebolt' get API Then 'Firebolt' platform responds to '1st party app' get API diff --git a/cypress/TestCases/FireboltCertification/Discovery.feature b/cypress/TestCases/FireboltCertification/Discovery.feature index 53957e3f9..1573a4ff3 100644 --- a/cypress/TestCases/FireboltCertification/Discovery.feature +++ b/cypress/TestCases/FireboltCertification/Discovery.feature @@ -7,10 +7,10 @@ Feature: Discovery @sdk @transport @Sev0 Scenario Outline: Discovery.policy - Validating API and Event responses when - Given we test the '' getters and setters '' to '' + Given the environment has been set up for '' tests And '3rd party app' registers for the 'Firebolt' event And '3rd party app' invokes the 'Firebolt' get API - When 1st party app invokes the 'Firebolt' API to set value + When 1st party app invokes the 'Firebolt' API to set '' to '' Then 'Firebolt' platform responds to '1st party app' set API When '3rd party app' invokes the 'Firebolt' get API Then 'Firebolt' platform responds to '3rd party app' get API @@ -18,10 +18,10 @@ Feature: Discovery Examples: | Scenario | Method | Value | FB_Object | - | enabling recommendations | allowPersonalization | true | DISCOVERY_RECOMMENDATIONS | - | disabling recommendations | allowPersonalization | false | DISCOVERY_RECOMMENDATIONS | - | enabling watch history | allowWatchHistory | true | DISCOVERY_REMEMBER_WATCHED_PROGRAMS | - | disabling watch history | allowWatchHistory | false | DISCOVERY_REMEMBER_WATCHED_PROGRAMS | + | enabling recommendations | allowPersonalization | true | Discovery recommendations | + | disabling recommendations | allowPersonalization | false | Discovery recommendations | + | enabling watch history | allowWatchHistory | true | Discovery remember watched programs | + | disabling watch history | allowWatchHistory | false | Discovery remember watched programs | @sdk @transport @Sev1 Scenario Outline: Discovery.watched - Validate Method success with parameter configuration: @@ -141,7 +141,7 @@ Feature: Discovery @sdk @transport @Sev2 Scenario: Discovery.clearContentAccess - Clearing availabilities and entitlements from the subscriber - Given we test the 'DISCOVERY_CLEAR_CONTENTACCESS' getters and setters + Given the environment has been set up for 'Discovery clearContentAccess' tests When '3rd party app' invokes the 'Firebolt' get API Then 'Firebolt' platform responds to '3rd party app' get API diff --git a/cypress/TestCases/FireboltCertification/Keyboard.feature b/cypress/TestCases/FireboltCertification/Keyboard.feature index 684b91697..d1539e123 100644 --- a/cypress/TestCases/FireboltCertification/Keyboard.feature +++ b/cypress/TestCases/FireboltCertification/Keyboard.feature @@ -1,8 +1,8 @@ @Keyboard @coreSDK Feature: Keyboard - @sdk @transport @requiresPlatformImplementation - Scenario Outline: Keyboard. - Positive Scenario: without UI + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario Outline: Keyboard. - Validating API responses when prompting user with without UI Given the environment has been set up for 'Keyboard' tests And 3rd party 'certification' app is launched And Framework registers 'keyboard' test provider @@ -12,16 +12,16 @@ Feature: Keyboard And 'Firebolt' platform responds with 'foreground for lifecycle state' Examples: - | Method | Scenario | API_Key | Content | - | email | email with signIn type | prompt the user for their email address with signIn type | the entered email address | - | email | email with signUp type | prompt the user for their email address with signUp type | the entered email address | - | email | email with signIn with type alone | prompt the user for their email address with signIn type alone | the entered email address | - | password | password | prompt the user for their password | the entered user password | - | password | password as empty | prompt the user for their password as empty | the entered user password | - | standard | standard platform | prompt the user for their standard platform | the entered standard user value | + | Method | Scenario | API_Key | Content | + | email | email keyboard for signIn | prompt the user for their email address with signIn type | the entered email address | + | email | email keyboard for signUp | prompt the user for their email address with signUp type | the entered email address | + | email | email keyboard for signIn - type alone | prompt the user for their email address with signIn type alone | the entered email address | + | password | password keyboard | prompt the user for their password | the entered user password | + | password | password keyboard as empty | prompt the user for their password as empty | the entered user password | + | standard | standard keyboard | prompt the user for their standard platform | the entered standard user value | - @sdk @transport @requiresPlatformImplementation - Scenario Outline: Keyboard. - Positive Scenario: with UI + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario Outline: Keyboard. - Validating API responses when prompting user with with UI Given the environment has been set up for 'Keyboard' tests And User 'starts' recording lifecycle history for '1st party app' And 3rd party 'certification' app is launched @@ -35,13 +35,13 @@ Feature: Keyboard And User validates lifecycle history for '3rd party app' with 'background:foreground' Examples: - | Method | Scenario | API_Key | Content | - | email | email from keyboard | prompt the user for their email address with signIn type | the entered email address | - | password | password from keyboard | prompt the user for their password | the entered user password | - | standard | standard platform from keyboard | prompt the user for their standard platform | the entered standard user value | + | Method | Scenario | API_Key | Content | + | email | email keyboard | prompt the user for their email address with signIn type | the entered email address | + | password | password keyboard | prompt the user for their password | the entered user password | + | standard | standard keyboard | prompt the user for their standard platform | the entered standard user value | - @sdk @transport @requiresPlatformImplementation - Scenario Outline: Keyboard. - Negative Scenario: without UI expecting error + @sdk @transport @requiresPlatformImplementation @Sev2 + Scenario Outline: Keyboard. - Validating API error handling when without UI Given the environment has been set up for 'Keyboard' tests And 3rd party 'certification' app is launched And Framework registers 'keyboard' test provider @@ -49,17 +49,17 @@ Feature: Keyboard Then 'Firebolt' platform responds with '' Examples: - | Method | Scenario | API_Key | Validation_key | - | email | passing email type as invalid string | prompt the user for their email with invalid type as string | invalid parameter for email | - | email | passing email type as integer | prompt the user for their email with invalid type as integer | invalid parameter for email | - | email | passing email type as empty | prompt the user for their email with type as empty | invalid parameter for email | - | password | passing password as integer | prompt the user for their invalid password as integer | invalid parameter password | - | standard | passing standard as integer | prompt the user for their invalid standard as integer | invalid parameter standard | - | standard | passing standard as empty | prompt the user for their standard as empty | invalid parameter standard | + | Method | Scenario | API_Key | Validation_key | + | email | using email keyboard to pass invalid string | prompt the user for their email with invalid type as string | invalid parameter for email | + | email | using email keyboard to pass integer | prompt the user for their email with invalid type as integer | invalid parameter for email | + | email | using email keyboard and leaving blank | prompt the user for their email with type as empty | invalid parameter for email | + | password | using password keyboard to pass integer | prompt the user for their invalid password as integer | invalid parameter password | + | standard | using standard keyboard to pass integer | prompt the user for their invalid standard as integer | invalid parameter standard | + | standard | using standard keyboard and leaving empty | prompt the user for their standard as empty | invalid parameter standard | - @sdk @transport @requiresPlatformImplementation - Scenario Outline: Keyboard. - Negative Scenario: with UI expecting error + @sdk @transport @requiresPlatformImplementation @Sev2 + Scenario Outline: Keyboard. -Validating API error handling when with UI Given the environment has been set up for 'Keyboard' tests And User 'starts' recording lifecycle history for '1st party app' And 3rd party 'certification' app is launched @@ -69,10 +69,10 @@ Feature: Keyboard Then 'Firebolt' platform responds with '' Examples: - | Method | Scenario | API_Key | Validation_key | - | email | passing email type as invalid string | prompt the user for their email with invalid type as string | invalid parameter for email | - | email | passing email type as integer | prompt the user for their email with invalid type as integer | invalid parameter for email | - | email | passing email type as empty | prompt the user for their email with type as empty | invalid parameter for email | - | password | passing password as integer | prompt the user for their invalid password as integer | invalid parameter password | - | standard | passing standard as integer | prompt the user for their invalid standard as integer | invalid parameter password | - | standard | passing standard as empty | prompt the user for their standard as empty | invalid parameter standard | \ No newline at end of file + | Method | Scenario | API_Key | Validation_key | + | email | using email keyboard to pass invalid string | prompt the user for their email with invalid type as string | invalid parameter for email | + | email | using email keyboard to pass integer | prompt the user for their email with invalid type as integer | invalid parameter for email | + | email | using email keyboard and leaving blank | prompt the user for their email with type as empty | invalid parameter for email | + | password | using password keyboard to pass integer | prompt the user for their invalid password as integer | invalid parameter password | + | standard | using standard keyboard to pass integer | prompt the user for their invalid standard as integer | invalid parameter password | + | standard | using standard keyboard and leaving empty | prompt the user for their standard as empty | invalid parameter standard | \ No newline at end of file diff --git a/cypress/TestCases/FireboltCertification/LifecycleTestcases/LifecycleBackground.feature b/cypress/TestCases/FireboltCertification/LifecycleTestcases/LifecycleBackground.feature index ed5f71c1a..ce9af0899 100644 --- a/cypress/TestCases/FireboltCertification/LifecycleTestcases/LifecycleBackground.feature +++ b/cypress/TestCases/FireboltCertification/LifecycleTestcases/LifecycleBackground.feature @@ -13,11 +13,7 @@ Feature: Lifecycle_Background Examples: | state | | foreground | - - @notSupported - Examples: - | state | - | inactive | + | inactive | @needsFurtherInformation @notSupported @lifecycleManagement @requiresPlatformImplementation Scenario: Lifecycle R.3.4.4 Cannot Background app that is not loaded diff --git a/cypress/TestCases/FireboltCertification/Localization.feature b/cypress/TestCases/FireboltCertification/Localization.feature index 18dbf8c95..11aa9f321 100644 --- a/cypress/TestCases/FireboltCertification/Localization.feature +++ b/cypress/TestCases/FireboltCertification/Localization.feature @@ -67,10 +67,10 @@ Feature: Localization @sdk @transport @Sev0 Scenario Outline: Localization. - Validating API and Event Responses for change to - Given we test the 'LOCALIZATION' getters and setters '' to '' + Given the environment has been set up for 'Localization:' tests And '3rd party app' registers for the 'Firebolt' event And '3rd party app' invokes the 'Firebolt' get API - When 1st party app invokes the 'Firebolt' API to set value + When 1st party app invokes the 'Firebolt' API to set '' to '' Then 'Firebolt' platform responds to '1st party app' set API When '3rd party app' invokes the 'Firebolt' get API Then 'Firebolt' platform responds to '3rd party app' get API @@ -84,10 +84,10 @@ Feature: Localization @sdk @transport @Sev1 Scenario Outline: Localization. - Validating API and Event Responses for change to - Given we test the 'LOCALIZATION' getters and setters '' to '' + Given the environment has been set up for 'Localization:' tests And '3rd party app' registers for the 'Firebolt' event And '3rd party app' invokes the 'Firebolt' get API - When 1st party app invokes the 'Firebolt' API to set value + When 1st party app invokes the 'Firebolt' API to set '' to '' Then 'Firebolt' platform responds to '1st party app' set API When '3rd party app' invokes the 'Firebolt' get API Then 'Firebolt' platform responds to '3rd party app' get API diff --git a/cypress/TestCases/FireboltCertification/Metrics.feature b/cypress/TestCases/FireboltCertification/Metrics.feature index 52a30c401..e3c1da04e 100644 --- a/cypress/TestCases/FireboltCertification/Metrics.feature +++ b/cypress/TestCases/FireboltCertification/Metrics.feature @@ -5,119 +5,119 @@ Feature: Metrics Given the environment has been set up for 'Metrics' tests And 3rd party 'certification' app is launched - @sdk @transport - Scenario Outline: Metrics. - Positive Scenario: + @sdk @transport @Sev1 + Scenario Outline: Metrics. - Validating API Method success When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with '' Examples: - | Scenario | Method | API_Key | Validation_key | - | Metrics startContent | startContent | notify that content has started | true for startContent in metrics | - | Metrics stopContent | stopContent | notify that content has stopped | true for stopContent in metrics | + | Method | API_Key | Validation_key | + | startContent | notify that content has started | true for startContent in metrics | + | stopContent | notify that content has stopped | true for stopContent in metrics | - @sdk @transport - Scenario Outline: Metrics. - Negative Scenario: expecting error + @sdk @transport @Sev2 + Scenario Outline: Metrics. - Validating API Error handling when When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with '' Examples: - | Scenario | Method | API_Key | Validation_key | - | page with emptyParam | page | notify that page has navigated with empty parameter | invalid params for metrics page | - | action with emptyParam | action | notify about action with empty parameter | invalid params for metrics action | - | action with type-null | action | notify about action with type null | invalid params for metrics action | - | action with type-256 | action | notify about action with type maxlength 256 | invalid params for metrics action | - | action with dfrnt-category | action | notify about action with different category | invalid params for metrics action | - | error with emptyParam | error | notify that error has occured with empty parameter | invalid params for metrics error | - | mediaLoadStart with emptyParam | mediaLoadStart | infer load time with empty parameter | invalid params for metrics mediaLoadStart | - | mediaPlay with emptyParam | mediaPlay | start playback with empty parameter | invalid params for metrics mediaPlay | - | mediaPlaying with emptyParam | mediaPlaying | notify that playback has started with empty parameter | invalid params for metrics mediaPlaying | - | mediaPause with emptyParam | mediaPause | notify that playback has paused with empty parameter | invalid params for metrics mediaPause | - | mediaWaiting with emptyParam | mediaWaiting | notify that playback has halted with empty parameter | invalid params for metrics mediaWaiting | - | mediaProgress with emptyParam | mediaProgress | notify that playback is progressing with empty parameter | invalid params for metrics mediaProgress | - | mediaSeeking with emptyParam | mediaSeeking | notify that playback seek is initiated with empty parameter | invalid params for metrics mediaSeeking | - | mediaSeeked with emptyParam | mediaSeeked | notify that playback seek is completed with empty parameter | invalid params for metrics mediaSeeked | - | mediaRateChange with emptyParam | mediaRateChange | notify that playback rate is changed with empty parameter | invalid params for metrics mediaRateChange | - | mediaRenditionChange with emptyParam | mediaRenditionChange | notify that playback rendition is Changed with empty parameter | invalid params for metrics mediaRenditionChange | - | mediaEnded with emptyParam | mediaEnded | notify that playback has stopped with empty parameter | invalid params for metrics mediaEnded | + | Scenario | Method | API_Key | Validation_key | + | page has a emptyParam | page | notify that page has navigated with empty parameter | invalid params for metrics page | + | action has a emptyParam | action | notify about action with empty parameter | invalid params for metrics action | + | action has a type-null | action | notify about action with type null | invalid params for metrics action | + | action has a type-256 | action | notify about action with type maxlength 256 | invalid params for metrics action | + | action has a dfrnt-category | action | notify about action with different category | invalid params for metrics action | + | error caused by emptyParam | error | notify that error has occured with empty parameter | invalid params for metrics error | + | mediaLoadStart has a emptyParam | mediaLoadStart | infer load time with empty parameter | invalid params for metrics mediaLoadStart | + | mediaPlay has a emptyParam | mediaPlay | start playback with empty parameter | invalid params for metrics mediaPlay | + | mediaPlaying has a emptyParam | mediaPlaying | notify that playback has started with empty parameter | invalid params for metrics mediaPlaying | + | mediaPause has a emptyParam | mediaPause | notify that playback has paused with empty parameter | invalid params for metrics mediaPause | + | mediaWaiting has a emptyParam | mediaWaiting | notify that playback has halted with empty parameter | invalid params for metrics mediaWaiting | + | mediaProgress has a emptyParam | mediaProgress | notify that playback is progressing with empty parameter | invalid params for metrics mediaProgress | + | mediaSeeking has a emptyParam | mediaSeeking | notify that playback seek is initiated with empty parameter | invalid params for metrics mediaSeeking | + | mediaSeeked has a emptyParam | mediaSeeked | notify that playback seek is completed with empty parameter | invalid params for metrics mediaSeeked | + | mediaRateChange has a emptyParam | mediaRateChange | notify that playback rate is changed with empty parameter | invalid params for metrics mediaRateChange | + | mediaRenditionChange has a emptyParam | mediaRenditionChange | notify that playback rendition is Changed with empty parameter | invalid params for metrics mediaRenditionChange | + | mediaEnded has a emptyParam | mediaEnded | notify that playback has stopped with empty parameter | invalid params for metrics mediaEnded | - @sdk @transport - Scenario Outline: Metrics. - Positive Scenario: + @sdk @transport @Sev2 + Scenario Outline: Metrics. - Validating API Method response for When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with '' Examples: - | Scenario | Method | API_Key | Validation_key | - | startContent with entityId | startContent | notify that content has started with entityId | true for startContent in metrics | - | stopContent with entityId | stopContent | notify that content has stopped with entityId | true for stopContent in metrics | - | page with pageId | page | notify that page has navigated with pageId | true for page in metrics | - | action with userMetrics | action | notify about action with userMetrics | true for action in metrics | - | action with appMetrics | action | notify about action with appMetrics | true for action in metrics | - | action with parametersMetrics | action | notify about action with parametersMetrics | true for action in metrics | - | error with mediaStalled | error | notify that error has occured with mediaStalled | true for error in metrics | - | mediaLoadStart with entityId | mediaLoadStart | infer load time with entityId | true for mediaLoadStart in metrics | - | mediaPlay with entityId | mediaPlay | start playback with entityId | true for mediaPlay in metrics | - | mediaPlaying with entityId | mediaPlaying | notify that playback has started with entityId | true for mediaPlaying in metrics | - | mediaPause with entityId | mediaPause | notify that playback has paused with entityId | true for mediaPause in metrics | - | mediaWaiting with entityId | mediaWaiting | notify that playback has halted with entityId | true for mediaWaiting in metrics | - | mediaProgress with mediaPosition | mediaProgress | notify that playback is progressing with mediaPosition | true for mediaProgress in metrics | - | mediaSeeking with mediaPosition | mediaSeeking | notify that playback seek is initiated with mediaPosition | true for mediaSeeking in metrics | - | mediaSeeked with mediaPosition | mediaSeeked | notify that playback seek is completed with mediaPosition | true for mediaSeeked in metrics | - | mediaRateChange with playbackRate | mediaRateChange | notify that playback rate is changed with playbackRate | true for mediaRateChange in metrics | - | mediaRenditionChange with bitrateProfile | mediaRenditionChange | notify that playback rendition is Changed with bitrateProfile | true for mediaRenditionChange in metrics | - | mediaEnded with entityId | mediaEnded | notify that playback has stopped with entityId | true for mediaEnded in metrics | - | action with parametersMetrics as string | action | notify about action with parametersMetrics as string | true for action in metrics | - | action with parametersMetrics as boolean | action | notify about action with parametersMetrics as boolean | true for action in metrics | - | action with parametersMetrics as number | action | notify about action with parametersMetrics as number | true for action in metrics | - | action with parametersMetrics | action | notify about action with parametersMetrics | true for action in metrics | - | error with mediaStalled parameter | error | notify that error has occured with mediaStalled parameter | true for error in metrics | - | error with mediaStalled parameter as string | error | notify that error has occured with mediaStalled parameter as string | true for error in metrics | - | error with mediaStalled parameter as boolean | error | notify that error has occured with mediaStalled parameter as boolean | true for error in metrics | - | error with mediaStalled parameter as number | error | notify that error has occured with mediaStalled parameter as number | true for error in metrics | - | Metrics appInfo | appInfo | Inform the platform about app build | null for metrics appInfo | + | Scenario | Method | API_Key | Validation_key | + | startContent with entityId | startContent | notify that content has started with entityId | true for startContent in metrics | + | stopContent with entityId | stopContent | notify that content has stopped with entityId | true for stopContent in metrics | + | page with pageId | page | notify that page has navigated with pageId | true for page in metrics | + | action with userMetrics | action | notify about action with userMetrics | true for action in metrics | + | action with appMetrics | action | notify about action with appMetrics | true for action in metrics | + | action with parametersMetrics | action | notify about action with parametersMetrics | true for action in metrics | + | error with mediaStalled | error | notify that error has occured with mediaStalled | true for error in metrics | + | mediaLoadStart with entityId | mediaLoadStart | infer load time with entityId | true for mediaLoadStart in metrics | + | mediaPlay with entityId | mediaPlay | start playback with entityId | true for mediaPlay in metrics | + | mediaPlaying with entityId | mediaPlaying | notify that playback has started with entityId | true for mediaPlaying in metrics | + | mediaPause with entityId | mediaPause | notify that playback has paused with entityId | true for mediaPause in metrics | + | mediaWaiting with entityId | mediaWaiting | notify that playback has halted with entityId | true for mediaWaiting in metrics | + | mediaProgress with mediaPosition | mediaProgress | notify that playback is progressing with mediaPosition | true for mediaProgress in metrics | + | mediaSeeking with mediaPosition | mediaSeeking | notify that playback seek is initiated with mediaPosition | true for mediaSeeking in metrics | + | mediaSeeked with mediaPosition | mediaSeeked | notify that playback seek is completed with mediaPosition | true for mediaSeeked in metrics | + | mediaRateChange with playbackRate | mediaRateChange | notify that playback rate is changed with playbackRate | true for mediaRateChange in metrics | + | mediaRenditionChange with bitrateProfile | mediaRenditionChange | notify that playback rendition is Changed with bitrateProfile | true for mediaRenditionChange in metrics | + | mediaEnded with entityId | mediaEnded | notify that playback has stopped with entityId | true for mediaEnded in metrics | + | action with parametersMetrics as string | action | notify about action with parametersMetrics as string | true for action in metrics | + | action with parametersMetrics as boolean | action | notify about action with parametersMetrics as boolean | true for action in metrics | + | action with parametersMetrics as number | action | notify about action with parametersMetrics as number | true for action in metrics | + | action with parametersMetrics | action | notify about action with parametersMetrics | true for action in metrics | + | error handling with mediaStalled parameter | error | notify that error has occured with mediaStalled parameter | true for error in metrics | + | error handling with mediaStalled parameter as string | error | notify that error has occured with mediaStalled parameter as string | true for error in metrics | + | error handling with mediaStalled parameter as boolean | error | notify that error has occured with mediaStalled parameter as boolean | true for error in metrics | + | error handling with mediaStalled parameter as number | error | notify that error has occured with mediaStalled parameter as number | true for error in metrics | + | Metrics appInfo | appInfo | Inform the platform about app build | null for metrics appInfo | - @sdk @transport - Scenario Outline: Metrics. - Negative Scenario: expecting error + @sdk @transport @Sev2 + Scenario Outline: Metrics. - Validating API Error handling when given When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with '' Examples: - | Scenario | Method | API_Key | Validation_key | - | startContent with numeric-entityId | startContent | notify that content has started with numeric entityId | invalid params for metrics startContent | - | stopContent with numeric-entityId | stopContent | notify that content has stopped with numeric entityId | invalid params for metrics stopContent | - | page with numeric-pageId | page | notify that page has navigated with numeric pageId | invalid params for metrics page | - | action with numeric-userMetrics | action | notify about action with numeric userMetrics | invalid params for metrics action | - | action with numeric-appMetrics | action | notify about action with numeric appMetrics | invalid params for metrics action | - | action with numeric-typeMetrics | action | notify about action with numeric typeMetrics | invalid params for metrics action | - | action with numeric-paramMetrics | action | notify about action with numeric paramMetrics | invalid params for metrics action | - | action with paramMetrics nested object | action | notify about action with paramMetrics for nested object | invalid params for metrics action | - | error with numeric-type | error | notify that error has occured with numeric type | invalid params for metrics error | - | error with string-type | error | notify that error has occured with string type | invalid params for metrics error | - | error with numeric-code | error | notify that error has occured with numeric code | invalid params for metrics error | - | error with numeric-description | error | notify that error has occured with numeric description | invalid params for metrics error | - | error with numeric-visible | error | notify that error has occured with numeric visible | invalid params for metrics error | - | error with numeric-parameters | error | notify that error has occured with numeric parameters | invalid params for metrics error | - | invalid parameter error for metrics error | error | notify that error has occured with parameters for nested object | invalid params for metrics error | - | mediaLoadStart with numeric-entityId | mediaLoadStart | infer load time with numeric entityId | invalid params for metrics mediaLoadStart | - | mediaPlay with numeric-entityId | mediaPlay | start playback with numeric entityId | invalid params for metrics mediaPlay | - | mediaPlaying with numeric-entityId | mediaPlaying | notify that playback has started with numeric entityId | invalid params for metrics mediaPlaying | - | mediaPause with numeric-entityId | mediaPause | notify that playback has paused with numeric entityId | invalid params for metrics mediaPause | - | mediaWaiting with numeric-entityId | mediaWaiting | notify that playback has halted with numeric entityId | invalid params for metrics mediaWaiting | - | mediaProgress with string-mediaPosition | mediaProgress | notify that playback is progressing with string mediaPosition | invalid params for metrics mediaProgress | - | mediaProgress with string-progress | mediaProgress | notify that playback is progressing with string progress | invalid params for metrics mediaProgress | - | mediaProgress with invalid-progress | mediaProgress | notify that playback is progressing with invalid progress | invalid params for metrics mediaProgress | - | mediaProgress with decimal-progress | mediaProgress | notify that playback is progressing with decimal progress | invalid params for metrics mediaProgress | - | mediaSeeking with numeric-entityId | mediaSeeking | notify that playback seek is initiated with numeric entityId | invalid params for metrics mediaSeeking | - | mediaSeeking with decimal-target | mediaSeeking | notify that playback seek is initiated with decimal target | invalid params for metrics mediaSeeking | - | mediaSeeking with invalid-target | mediaSeeking | notify that playback seek is initiated with invalid target | invalid params for metrics mediaSeeking | - | mediaSeeking with string-target | mediaSeeking | notify that playback seek is initiated with string target | invalid params for metrics mediaSeeking | - | mediaSeeked with numeric-entityId | mediaSeeked | notify that playback seek is completed with numeric entityId | invalid params for metrics mediaSeeked | - | mediaSeeked with invalid-position | mediaSeeked | notify that playback seek is completed with invalid position | invalid params for metrics mediaSeeked | - | mediaSeeked with string-position | mediaSeeked | notify that playback seek is completed with string position | invalid params for metrics mediaSeeked | - | mediaSeeked with decimal-position | mediaSeeked | notify that playback seek is completed with decimal position | invalid params for metrics mediaSeeked | - | mediaRateChange with numeric-entityId | mediaRateChange | notify that playback rate is changed with numeric entityId | invalid params for metrics mediaRateChange | - | mediaRateChange with string-rate | mediaRateChange | notify that playback rate is changed with string rate | invalid params for metrics mediaRateChange | - | mediaRenditionChange with numeric-bitRate | mediaRenditionChange | notify that playback rendition is Changed with numeric bitRate | invalid params for metrics mediaRenditionChange | - | mediaEnded with numeric-entityId | mediaEnded | notify that playback has stopped with numeric entityId | invalid params for metrics mediaEnded | - | Metrics appInfo with numeric build | appInfo | Inform the platform about app with numeric build | invalid params for metrics appInfo | - | Metrics appInfo with boolean build | appInfo | Inform the platform about app with boolean build | invalid params for metrics appInfo | \ No newline at end of file + | Scenario | Method | API_Key | Validation_key | + | startContent with numeric-entityId | startContent | notify that content has started with numeric entityId | invalid params for metrics startContent | + | stopContent with numeric-entityId | stopContent | notify that content has stopped with numeric entityId | invalid params for metrics stopContent | + | page with numeric-pageId | page | notify that page has navigated with numeric pageId | invalid params for metrics page | + | action with numeric-userMetrics | action | notify about action with numeric userMetrics | invalid params for metrics action | + | action with numeric-appMetrics | action | notify about action with numeric appMetrics | invalid params for metrics action | + | action with numeric-typeMetrics | action | notify about action with numeric typeMetrics | invalid params for metrics action | + | action with numeric-paramMetrics | action | notify about action with numeric paramMetrics | invalid params for metrics action | + | action with paramMetrics nested object | action | notify about action with paramMetrics for nested object | invalid params for metrics action | + | error caused by numeric-type | error | notify that error has occured with numeric type | invalid params for metrics error | + | error caused by string-type | error | notify that error has occured with string type | invalid params for metrics error | + | error caused by numeric-code | error | notify that error has occured with numeric code | invalid params for metrics error | + | error caused by numeric-description | error | notify that error has occured with numeric description | invalid params for metrics error | + | error caused by numeric-visible | error | notify that error has occured with numeric visible | invalid params for metrics error | + | error caused by numeric-parameters | error | notify that error has occured with numeric parameters | invalid params for metrics error | + | invalid parameter error for metrics error | error | notify that error has occured with parameters for nested object | invalid params for metrics error | + | mediaLoadStart with numeric-entityId | mediaLoadStart | infer load time with numeric entityId | invalid params for metrics mediaLoadStart | + | mediaPlay with numeric-entityId | mediaPlay | start playback with numeric entityId | invalid params for metrics mediaPlay | + | mediaPlaying with numeric-entityId | mediaPlaying | notify that playback has started with numeric entityId | invalid params for metrics mediaPlaying | + | mediaPause with numeric-entityId | mediaPause | notify that playback has paused with numeric entityId | invalid params for metrics mediaPause | + | mediaWaiting with numeric-entityId | mediaWaiting | notify that playback has halted with numeric entityId | invalid params for metrics mediaWaiting | + | mediaProgress with string-mediaPosition | mediaProgress | notify that playback is progressing with string mediaPosition | invalid params for metrics mediaProgress | + | mediaProgress with string-progress | mediaProgress | notify that playback is progressing with string progress | invalid params for metrics mediaProgress | + | mediaProgress with invalid-progress | mediaProgress | notify that playback is progressing with invalid progress | invalid params for metrics mediaProgress | + | mediaProgress with decimal-progress | mediaProgress | notify that playback is progressing with decimal progress | invalid params for metrics mediaProgress | + | mediaSeeking with numeric-entityId | mediaSeeking | notify that playback seek is initiated with numeric entityId | invalid params for metrics mediaSeeking | + | mediaSeeking with decimal-target | mediaSeeking | notify that playback seek is initiated with decimal target | invalid params for metrics mediaSeeking | + | mediaSeeking with invalid-target | mediaSeeking | notify that playback seek is initiated with invalid target | invalid params for metrics mediaSeeking | + | mediaSeeking with string-target | mediaSeeking | notify that playback seek is initiated with string target | invalid params for metrics mediaSeeking | + | mediaSeeked with numeric-entityId | mediaSeeked | notify that playback seek is completed with numeric entityId | invalid params for metrics mediaSeeked | + | mediaSeeked with invalid-position | mediaSeeked | notify that playback seek is completed with invalid position | invalid params for metrics mediaSeeked | + | mediaSeeked with string-position | mediaSeeked | notify that playback seek is completed with string position | invalid params for metrics mediaSeeked | + | mediaSeeked with decimal-position | mediaSeeked | notify that playback seek is completed with decimal position | invalid params for metrics mediaSeeked | + | mediaRateChange with numeric-entityId | mediaRateChange | notify that playback rate is changed with numeric entityId | invalid params for metrics mediaRateChange | + | mediaRateChange with string-rate | mediaRateChange | notify that playback rate is changed with string rate | invalid params for metrics mediaRateChange | + | mediaRenditionChange with numeric-bitRate | mediaRenditionChange | notify that playback rendition is Changed with numeric bitRate | invalid params for metrics mediaRenditionChange | + | mediaEnded with numeric-entityId | mediaEnded | notify that playback has stopped with numeric entityId | invalid params for metrics mediaEnded | + | Metrics appInfo with numeric build | appInfo | Inform the platform about app with numeric build | invalid params for metrics appInfo | + | Metrics appInfo with boolean build | appInfo | Inform the platform about app with boolean build | invalid params for metrics appInfo | \ No newline at end of file diff --git a/cypress/TestCases/FireboltCertification/Metrics_RpcOnly.feature b/cypress/TestCases/FireboltCertification/Metrics_RpcOnly.feature index 5864e91a3..41994eef8 100644 --- a/cypress/TestCases/FireboltCertification/Metrics_RpcOnly.feature +++ b/cypress/TestCases/FireboltCertification/Metrics_RpcOnly.feature @@ -1,8 +1,8 @@ @Metrics @coreSDK @rpcOnly Feature: Metrics_RpcOnly - @transport - Scenario Outline: Metrics. - Positive Scenario: Validating rpc method metrics + @transport @Sev2 + Scenario Outline: Metrics. - Validating API method content Given the environment has been set up for 'Metrics' tests And 3rd party 'certification' app is launched When '3rd party app' invokes the 'Firebolt' API to '' @@ -14,8 +14,8 @@ Feature: Metrics_RpcOnly | signIn | log a sign in event | true for signIn in metrics | | signOut | log a sign out event | true for signOut in metrics | - @transport - Scenario: Internal.initialize - Positive Scenario: Validating rpc method + @transport @Sev2 + Scenario: Internal.initialize - Validating API method content Given the environment has been set up for 'Metrics' tests And 3rd party 'certification' app is launched When 1st party app invokes the 'Firebolt' API to 'initialize session' diff --git a/cypress/TestCases/FireboltCertification/Parameters.feature b/cypress/TestCases/FireboltCertification/Parameters.feature index d5d4dce8f..04d2017d2 100644 --- a/cypress/TestCases/FireboltCertification/Parameters.feature +++ b/cypress/TestCases/FireboltCertification/Parameters.feature @@ -1,8 +1,8 @@ @Parameters @coreSDK Feature: Parameters - @sdk @transport - Scenario Outline: Parameters.initialization - Positive Scenario: + @sdk @transport @Sev0 + Scenario Outline: Parameters.initialization - Validating API response when Given the environment has been set up for 'Parameters' tests And 3rd party 'certification' app is launched When '3rd party app' invokes the 'Firebolt' API to 'get parameters initialization' @@ -12,12 +12,12 @@ Feature: Parameters Then 'Firebolt' platform responds with '' Examples: - | Scenario | Set_API_Key | Validation_Key | - | Passing params - TRUE | set privacy allow AppContentAdTargeting as true | true for parameters initialization | - | Passing params - FALSE | set privacy allow AppContentAdTargeting as false | false for parameters initialization | + | Scenario | Set_API_Key | Validation_Key | + | enabling AppContentAdTargeting | set privacy allow AppContentAdTargeting as true | true for parameters initialization | + | disabling AppContentAdTargeting | set privacy allow AppContentAdTargeting as false | false for parameters initialization | - @sdk @transport - Scenario: Parameters.initialization - Positive Scenario: Validate NavigationIntent - Home + @sdk @transport @Sev0 + Scenario: Parameters.initialization - Validating API response when NavigationIntent is set to Home Given the environment has been set up for 'Parameters' tests When 1st party app invokes the 'Firebolt' API to 'discovery launch with home intent' And Test runner waits for 30 'seconds' diff --git a/cypress/TestCases/FireboltCertification/Profile.feature b/cypress/TestCases/FireboltCertification/Profile.feature index 83856e507..87d066762 100644 --- a/cypress/TestCases/FireboltCertification/Profile.feature +++ b/cypress/TestCases/FireboltCertification/Profile.feature @@ -1,8 +1,8 @@ @Profile @coreSDK Feature: Profile - @sdk @transport @requiresPlatformImplementation - Scenario Outline: Profile.approveContentRating - Positive Scenario: without UI + @sdk @transport @requiresPlatformImplementation @Sev0 + Scenario Outline: Profile.approveContentRating - Validating API responses for without UI Given the environment has been set up for 'Profile' tests And 3rd party 'certification' app is launched And Framework registers 'pinChallenge' test provider @@ -12,13 +12,44 @@ Feature: Profile And 'Firebolt' platform responds with 'expected lifecycle state as foreground' Examples: - | Scenario | Content | - | Correct-PIN | true for profile approveContentRating | - | Wrong-PIN | false for profile approveContentRating | - | Cancelling-PIN | false for profile approveContentRating | + | Scenario | Content | + | Correct PIN entry | true for profile approveContentRating | + + @sdk @transport @requiresPlatformImplementation @Sev2 + Scenario Outline: Profile.approveContentRating - Validating API responses for without UI + Given the environment has been set up for 'Profile' tests + And 3rd party 'certification' app is launched + And Framework registers 'pinChallenge' test provider + When '3rd party app' invokes the 'Firebolt' API to 'verify if current profile have access to content' + And '3rd party app' invokes the 'Firebolt' API to 'fetch lifecycle state' + Then 'Firebolt' platform responds with '' + And 'Firebolt' platform responds with 'expected lifecycle state as foreground' + + Examples: + | Scenario | Content | + | Wrong-PIN entry | false for profile approveContentRating | + | Cancelling PIN entry | false for profile approveContentRating | + + @sdk @transport @requiresPlatformImplementation @Sev0 + Scenario Outline: Profile.approveContentRating - Validating API responses for with UI + Given the environment has been set up for 'Profile' tests + And User 'starts' recording lifecycle history for '1st party app' + And 3rd party 'certification' app is launched + And User 'starts' recording lifecycle history for '3rd party app' + And Framework registers 'pinChallenge' test provider + When '3rd party app' invokes the 'Firebolt' API to 'verify if current profile have access to content' + And User 'stops' recording lifecycle history for '1st party app' + And User 'stops' recording lifecycle history for '3rd party app' + Then 'Firebolt' platform responds with '' + And User validates lifecycle history for '1st party app' with 'background:foreground:background' + And User validates lifecycle history for '3rd party app' with 'background:foreground' - @sdk @transport @requiresPlatformImplementation - Scenario Outline: Profile.approveContentRating - Positive Scenario: with UI + Examples: + | Scenario | Content | + | Correct PIN entry | true for profile approveContentRating | + + @sdk @transport @requiresPlatformImplementation @Sev2 + Scenario Outline: Profile.approveContentRating - Validating API responses for with UI Given the environment has been set up for 'Profile' tests And User 'starts' recording lifecycle history for '1st party app' And 3rd party 'certification' app is launched @@ -32,13 +63,12 @@ Feature: Profile And User validates lifecycle history for '3rd party app' with 'background:foreground' Examples: - | Scenario | Content | - | Correct-PIN | true for profile approveContentRating | - | Wrong-PIN | false for profile approveContentRating | - | Cancelling-PIN | false for profile approveContentRating | + | Scenario | Content | + | Wrong PIN entry | false for profile approveContentRating | + | Cancelling PIN entry | false for profile approveContentRating | - @sdk @transport @requiresPlatformImplementation - Scenario Outline: Profile.approvePurchase - Positive Scenario: without UI + @sdk @transport @requiresPlatformImplementation @Sev0 + Scenario Outline: Profile.approvePurchase - Validating API responses for without UI Given the environment has been set up for 'Profile' tests And 3rd party 'certification' app is launched And Framework registers 'pinChallenge' test provider @@ -48,13 +78,44 @@ Feature: Profile And 'Firebolt' platform responds with 'expected lifecycle state as foreground' Examples: - | Scenario | Content | - | Correct-PIN | true for profile approvePurchase | - | Wrong-PIN | false for profile approvePurchase | - | Cancelling-PIN | false for profile approvePurchase | + | Scenario | Content | + | Correct PIN entry | true for profile approvePurchase | + + @sdk @transport @requiresPlatformImplementation @Sev2 + Scenario Outline: Profile.approvePurchase - Validating API responses for without UI + Given the environment has been set up for 'Profile' tests + And 3rd party 'certification' app is launched + And Framework registers 'pinChallenge' test provider + When '3rd party app' invokes the 'Firebolt' API to 'verify if current profile have access to purchase' + And '3rd party app' invokes the 'Firebolt' API to 'fetch lifecycle state' + Then 'Firebolt' platform responds with '' + And 'Firebolt' platform responds with 'expected lifecycle state as foreground' + + Examples: + | Scenario | Content | + | Wrong PIN entry | false for profile approvePurchase | + | Cancelling PIN entry | false for profile approvePurchase | + + @sdk @transport @requiresPlatformImplementation @Sev0 + Scenario Outline: Profile.approvePurchase - Validating API responses for with UI + Given the environment has been set up for 'Profile' tests + And User 'starts' recording lifecycle history for '1st party app' + And 3rd party 'certification' app is launched + And User 'starts' recording lifecycle history for '3rd party app' + And Framework registers 'pinChallenge' test provider + When '3rd party app' invokes the 'Firebolt' API to 'verify if current profile have access to purchase' + And User 'stops' recording lifecycle history for '1st party app' + And User 'stops' recording lifecycle history for '3rd party app' + Then 'Firebolt' platform responds with '' + And User validates lifecycle history for '1st party app' with 'background:foreground:background' + And User validates lifecycle history for '3rd party app' with 'background:foreground' - @sdk @transport @requiresPlatformImplementation - Scenario Outline: Profile.approvePurchase - Positive Scenario: with UI + Examples: + | Scenario | Content | + | Correct PIN entry | true for profile approvePurchase | + + @sdk @transport @requiresPlatformImplementation @Sev2 + Scenario Outline: Profile.approvePurchase - Validating API responses for with UI Given the environment has been set up for 'Profile' tests And User 'starts' recording lifecycle history for '1st party app' And 3rd party 'certification' app is launched @@ -68,13 +129,12 @@ Feature: Profile And User validates lifecycle history for '3rd party app' with 'background:foreground' Examples: - | Scenario | Content | - | Correct-PIN | true for profile approvePurchase | - | Wrong-PIN | false for profile approvePurchase | - | Cancelling-PIN | false for profile approvePurchase | + | Scenario | Content | + | Wrong PIN entry | false for profile approvePurchase | + | Cancelling PIN entry | false for profile approvePurchase | - @sdk @transport - Scenario: Profile.flags - Positive Scenario + @sdk @transport @Sev2 + Scenario: Profile.flags - Validating API response Given the environment has been set up for 'Profile' tests And 3rd party 'certification' app is launched When '3rd party app' invokes the 'Firebolt' API to 'allow profile flags' diff --git a/cypress/TestCases/FireboltCertification/SecondScreen.feature b/cypress/TestCases/FireboltCertification/SecondScreen.feature index 0a49c3564..7aa1fcdbe 100644 --- a/cypress/TestCases/FireboltCertification/SecondScreen.feature +++ b/cypress/TestCases/FireboltCertification/SecondScreen.feature @@ -5,49 +5,49 @@ Feature: SecondScreen Given the environment has been set up for 'SecondScreen' tests And 3rd party 'certification' app is launched - @sdk @transport - Scenario Outline: SecondScreen. - Positive Scenario: + @sdk @transport @Sev1 + Scenario Outline: SecondScreen. - Validating API Method responses when When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with '' Examples: - | Scenario | Method | API_key | Validation_key | - | Validate passing device with empty array | device | get secondscreen device with empty array | expected secondscreen device | - | Validate passing device with string | device | get secondscreen device with string | expected secondscreen device | - | Validate passing protocols with empty array | protocols | get secondscreen protocols | expected secondscreen protocols | + | Scenario | Method | API_key | Validation_key | + | passing device with empty array | device | get secondscreen device with empty array | expected secondscreen device | + | passing device with string | device | get secondscreen device with string | expected secondscreen device | + | passing protocols with empty array | protocols | get secondscreen protocols | expected secondscreen protocols | - @sdk @transport - Scenario Outline: SecondScreen.device - Negative Scenario: expecting error + @sdk @transport @Sev2 + Scenario Outline: SecondScreen.device - Validating API Error handling when When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with '' Examples: - | Scenario | API_key | Validation_key | - | Validate passing device as boolean | get secondscreen device with boolean | invalid parameters for secondscreen device | - | Validate passing device as integer | get secondscreen device with integer | invalid parameters for secondscreen device | + | Scenario | API_key | Validation_key | + | passing device as boolean | get secondscreen device with boolean | invalid parameters for secondscreen device | + | passing device as integer | get secondscreen device with integer | invalid parameters for secondscreen device | - @sdk @transport - Scenario: SecondScreen.FriendlyName - Positive Scenario: Validate Set friendlyName - Given we test the 'SECONDSCREEN_FRIENDLYNAME' getters and setters 'name' to 'Living Room' + @sdk @transport @Sev2 + Scenario: SecondScreen.FriendlyName - Validating API and Event response + Given the environment has been set up for 'Secondscreen friendlyname' tests And '3rd party app' registers for the 'Firebolt' event And '3rd party app' invokes the 'Firebolt' get API - When 1st party app invokes the 'Firebolt' API to set value + When 1st party app invokes the 'Firebolt' API to set 'name' to 'Living Room' Then 'Firebolt' platform responds to '1st party app' set API When '3rd party app' invokes the 'Firebolt' get API Then 'Firebolt' platform responds to '3rd party app' get API And 'Firebolt' platform triggers '3rd party app' event - @regression @sdk @requiresPlatformImplementation - Scenario: SecondScreen.onFriendlyNameChanged - Positive Scenario: Validating event clearing listeners + @regression @sdk @requiresPlatformImplementation @Sev2 + Scenario: SecondScreen.onFriendlyNameChanged - Clearing event listeners Given '3rd party app' registers for the 'secondscreen onFriendlyNameChanged' event using the 'Firebolt' API And 3rd party stops listening to the event 'secondscreen onFriendlyNameChanged event' When 1st party app invokes the 'Firebolt' API to 'set friendlyName to guest room' Then 'Firebolt' platform responds to '1st party app' for 'set friendlyName to guest room' And 'Firebolt' platform does not trigger event for 'onFriendlyNameChanged' - @regression @sdk @requiresPlatformImplementation @notSupported - Scenario Outline: SecondScreen. - Positive Scenario: Validating event name in response + @regression @sdk @requiresPlatformImplementation @notSupported @Sev1 + Scenario Outline: SecondScreen. - Validating Event responses When '3rd party app' registers for the '' event using the 'Firebolt' API And User triggers event with value as '' Then 'Firebolt' platform triggers event '' @@ -59,8 +59,8 @@ Feature: SecondScreen | onCloseRequest | secondscreen onCloseRequest | secondscreen onCloseRequest event | onCloseRequest event | | onCloseRequest | secondscreen onCloseRequest | secondscreen onCloseRequest event | onCloseRequest event | - @regression @sdk @requiresPlatformImplementation @notSupported - Scenario Outline: SecondScreen. - Positive Scenario: Validating event Clearing listeners + @regression @sdk @requiresPlatformImplementation @notSupported @Sev1 + Scenario Outline: SecondScreen. - Clearing event listeners When '3rd party app' registers for the '' event using the 'Firebolt' API And 3rd party stops listening to the event '' And User triggers event with value as '' diff --git a/cypress/TestCases/FireboltCertification/SecureStorage.feature b/cypress/TestCases/FireboltCertification/SecureStorage.feature index a974d930a..2431ce983 100644 --- a/cypress/TestCases/FireboltCertification/SecureStorage.feature +++ b/cypress/TestCases/FireboltCertification/SecureStorage.feature @@ -5,8 +5,8 @@ Feature: SecureStorage Given the environment has been set up for 'Securestorage' tests And 3rd party 'certification' app is launched - @sdk @transport - Scenario Outline: SecureStorage.set - Positive Scenario: Validate + @sdk @transport @Sev1 + Scenario Outline: SecureStorage.set - Validate secure data content when Given '3rd party app' invokes the 'Firebolt' API to '' And 'Firebolt' platform responds with 'null for clearing stored value' And '3rd party app' invokes the 'Firebolt' API to '' @@ -17,14 +17,28 @@ Feature: SecureStorage Then 'Firebolt' platform responds with '' Examples: - | Scenario | Get_API_Key | Set_API_Key | Validation_Key | Clear_API_Key | - | Adding scope as device | get stored value with scope as device and key as authTestTokenDevice | update stored value for key authTestTokenDevice | expected value for authTestTokenDevice stored data in securestorage | clear stored value with scope as device | - | Adding scope as account | get stored value with scope as account and key as authTestTokenAccount | update stored value for key authTestTokenAccount | expected value for authTestTokenAccount stored data in securestorage | clear stored value with scope as account | - | Adding scope as device with optionalparams | get stored value with scope as device and key as authTestTokenDevice1 | update stored value for key authTestTokenDevice1 with options | authTestTokenValue1 for stored value in securestorage | clear stored value with scope as device | - | Adding scope as account with optionalparams | get stored value with scope as account and key as authTestTokenAccount1 | update stored value for key authTestTokenAccount1 with options | authTestTokenValue1 for stored value in securestorage | clear stored value with scope as account | - - @sdk @transport - Scenario Outline: SecureStorage.set - Positive Scenario: Validate + | Scenario | Get_API_Key | Set_API_Key | Validation_Key | Clear_API_Key | + | scope changed to device | get stored value with scope as device and key as authTestTokenDevice | update stored value for key authTestTokenDevice | expected value for authTestTokenDevice stored data in securestorage | clear stored value with scope as device | + | scope changed to account | get stored value with scope as account and key as authTestTokenAccount | update stored value for key authTestTokenAccount | expected value for authTestTokenAccount stored data in securestorage | clear stored value with scope as account | + + @sdk @transport @Sev2 + Scenario Outline: SecureStorage.set - Validate secure data content when + Given '3rd party app' invokes the 'Firebolt' API to '' + And 'Firebolt' platform responds with 'null for clearing stored value' + And '3rd party app' invokes the 'Firebolt' API to '' + And 'Firebolt' platform responds with 'null for getting stored value' + When '3rd party app' invokes the 'Firebolt' API to '' + Then 'Firebolt' platform responds with 'null for updating a secure data value' + When '3rd party app' invokes the 'Firebolt' API to '' + Then 'Firebolt' platform responds with '' + + Examples: + | Scenario | Get_API_Key | Set_API_Key | Validation_Key | Clear_API_Key | + | scope changed to device with optionalparams | get stored value with scope as device and key as authTestTokenDevice1 | update stored value for key authTestTokenDevice1 with options | authTestTokenValue1 for stored value in securestorage | clear stored value with scope as device | + | scope changed to account with optionalparams | get stored value with scope as account and key as authTestTokenAccount1 | update stored value for key authTestTokenAccount1 with options | authTestTokenValue1 for stored value in securestorage | clear stored value with scope as account | + + @sdk @transport @Sev1 + Scenario Outline: SecureStorage.set - Validate secure data content when Given '3rd party app' invokes the 'Firebolt' API to '' And 'Firebolt' platform responds with 'null for updating a secure data value' And '3rd party app' invokes the 'Firebolt' API to '' @@ -36,11 +50,11 @@ Feature: SecureStorage Examples: | Scenario | Get_API_Key1 | Set_API_Key | Get_API_Key2 | Validation_Key | Initial_Validation_Key | Initial_Set_API_Key | Clear_API_Key | - | Updating existing device scope value | get stored value with scope as device and key as authTestTokenDevice1 | update stored value for key authTestTokenDevice1 | get stored value with scope as device and key as authTestTokenDevice1 | authTestTokenValue2 for stored value in securestorage | authTestTokenValue1 for stored value in securestorage | update stored value for key authTestTokenDevice1 with options | clear stored value with scope as device | - | Updating existing account scope value | get stored value with scope as account and key as authTestTokenAccount1 | update stored value for key authTestTokenAccount1 | get stored value with scope as account and key as authTestTokenAccount1 | authTestTokenValue2 for stored value in securestorage | authTestTokenValue1 for stored value in securestorage | update stored value for key authTestTokenAccount1 with options | clear stored value with scope as account | + | updating existing device scope value | get stored value with scope as device and key as authTestTokenDevice1 | update stored value for key authTestTokenDevice1 | get stored value with scope as device and key as authTestTokenDevice1 | authTestTokenValue2 for stored value in securestorage | authTestTokenValue1 for stored value in securestorage | update stored value for key authTestTokenDevice1 with options | clear stored value with scope as device | + | updating existing account scope value | get stored value with scope as account and key as authTestTokenAccount1 | update stored value for key authTestTokenAccount1 | get stored value with scope as account and key as authTestTokenAccount1 | authTestTokenValue2 for stored value in securestorage | authTestTokenValue1 for stored value in securestorage | update stored value for key authTestTokenAccount1 with options | clear stored value with scope as account | - @sdk @transport - Scenario Outline: SecureStorage.set - Positive Scenario: Validate + @sdk @transport @Sev1 + Scenario Outline: SecureStorage.set - Validate secure data content when Given '3rd party app' invokes the 'Firebolt' API to '' And 'Firebolt' platform responds with 'null for updating a secure data value' And '3rd party app' invokes the 'Firebolt' API to '' @@ -53,12 +67,12 @@ Feature: SecureStorage Then 'Firebolt' platform responds with '' Examples: - | Scenario | Get_API_Key1 | Set_API_Key2 | Get_API_Key2 | Validation_Key1 | Validation_Key2 | Set_API_Key1 | - | Adding scope as account for existing key with scope device | get stored value with scope as device and key as authTestTokenDevice | update stored value with scope as account and key as authTestTokenDevice | get stored value with scope as account and key as authTestTokenDevice | expected value for authTestTokenDevice stored data in securestorage | expected value for account scoped authTestTokenDevice stored data in securestorage | update stored value for key authTestTokenDevice | - | Adding scope as device for existing key with scope account | get stored value with scope as account and key as authTestTokenAccount | update stored value with scope as device and key as authTestTokenAccount | get stored value with scope as device and key as authTestTokenAccount | expected value for authTestTokenAccount stored data in securestorage | expected value for device scoped authTestTokenAccount stored data in securestorage | update stored value for key authTestTokenAccount | + | Scenario | Get_API_Key1 | Set_API_Key2 | Get_API_Key2 | Validation_Key1 | Validation_Key2 | Set_API_Key1 | + | adding scope as account for existing key with scope as device | get stored value with scope as device and key as authTestTokenDevice | update stored value with scope as account and key as authTestTokenDevice | get stored value with scope as account and key as authTestTokenDevice | expected value for authTestTokenDevice stored data in securestorage | expected value for account scoped authTestTokenDevice stored data in securestorage | update stored value for key authTestTokenDevice | + | adding scope as device for existing key with scope as account | get stored value with scope as account and key as authTestTokenAccount | update stored value with scope as device and key as authTestTokenAccount | get stored value with scope as device and key as authTestTokenAccount | expected value for authTestTokenAccount stored data in securestorage | expected value for device scoped authTestTokenAccount stored data in securestorage | update stored value for key authTestTokenAccount | - @sdk @transport - Scenario Outline: SecureStorage.remove - Positive Scenario: Validate + @sdk @transport @Sev1 + Scenario Outline: SecureStorage.remove - Validate secure data content when Given '3rd party app' invokes the 'Firebolt' API to '' And 'Firebolt' platform responds with 'null for updating a secure data value' And '3rd party app' invokes the 'Firebolt' API to '' @@ -76,31 +90,58 @@ Feature: SecureStorage Examples: | Scenario | Set_API_Key1 | Set_API_Key2 | Remove_API_Key | Get_API_Key1 | Get_API_Key2 | Validation_Key2 | Validation_Key1 | Clear_API_Key | - | Removing device scope | set secure value for key authTestTokenDevice1 | set secure value for key authTestTokenDevice2 | remove the stored value authTestTokenDevice1 with scope device | get stored value for authTestTokenDevice1 with scope device | get stored value for authTestTokenDevice2 with scope device | expected value for authTestTokenDevice2 stored data in securestorage | expected value for authTestTokenDevice1 stored data in securestorage | clear stored value with scope as device | - | Removing account scope | set secure value for key authTestTokenAccount1 | set secure value for key authTestTokenAccount2 | remove the stored value authTestTokenAccount1 with scope account | get stored value for authTestTokenAccount1 with scope device | get stored value for authTestTokenAccount2 with scope device | expected value for authTestTokenAccount2 stored data in securestorage | expected value for authTestTokenAccount1 stored data in securestorage | clear stored value with scope as account | + | removing device scope | set secure value for key authTestTokenDevice1 | set secure value for key authTestTokenDevice2 | remove the stored value authTestTokenDevice1 with scope device | get stored value for authTestTokenDevice1 with scope device | get stored value for authTestTokenDevice2 with scope device | expected value for authTestTokenDevice2 stored data in securestorage | expected value for authTestTokenDevice1 stored data in securestorage | clear stored value with scope as device | + | removing account scope | set secure value for key authTestTokenAccount1 | set secure value for key authTestTokenAccount2 | remove the stored value authTestTokenAccount1 with scope account | get stored value for authTestTokenAccount1 with scope device | get stored value for authTestTokenAccount2 with scope device | expected value for authTestTokenAccount2 stored data in securestorage | expected value for authTestTokenAccount1 stored data in securestorage | clear stored value with scope as account | + + + @sdk @transport @Sev1 + Scenario Outline: SecureStorage.get - Validating API error handling when + When '3rd party app' invokes the 'Firebolt' API to '' + Then 'Firebolt' platform responds with '' + + Examples: + | Scenario | API_Key | Validation_Key | + | missing value | get stored value without scope | invalid parameters for securestorage get | + | missing key | get stored value without key | invalid parameters for securestorage get | + + + @sdk @transport @Sev2 + Scenario Outline: SecureStorage.get - Validating API error handling when + When '3rd party app' invokes the 'Firebolt' API to '' + Then 'Firebolt' platform responds with '' + + Examples: + | Scenario | API_Key | Validation_Key | + | invalid scope stored as value | get stored value with invalid scope | invalid parameters for securestorage get | + | scope value is an empty string | get stored value with scope as empty string | invalid parameters for securestorage get | + | scope value is is number | get stored value with scope as number | invalid parameters for securestorage get | + | scope value is null | get stored value with scope as null | invalid parameters for securestorage get | + | scope value is a boolean | get stored value with scope as boolean | invalid parameters for securestorage get | + | scope key is a number | get stored value with key as number | invalid parameters for securestorage get | + | scope key is null | get stored value with key as null | invalid parameters for securestorage get | + | scope key is a boolean | get stored value with key as boolean | invalid parameters for securestorage get | + | scope key is an empty string | get stored value with key as empty | custom error for securestorage get | - @sdk @transport - Scenario Outline: SecureStorage.get - Negative Scenario: Validate expecting errorr + @sdk @transport @Sev1 + Scenario Outline: SecureStorage.set - Validating API error handling when + Given '3rd party app' invokes the 'Firebolt' API to 'update stored value for key authTestTokenDevice' + And 'Firebolt' platform responds with 'null for updating a secure data value' + And '3rd party app' invokes the 'Firebolt' API to 'get stored value with scope as device and key as authTestTokenDevice' + And 'Firebolt' platform responds with 'expected value for authTestTokenDevice stored data in securestorage' When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with '' + When '3rd party app' invokes the 'Firebolt' API to 'get stored value with scope as device and key as authTestTokenDevice' + Then 'Firebolt' platform responds with 'expected value for authTestTokenDevice stored data in securestorage' Examples: - | Scenario | API_Key | Validation_Key | - | Passing invalid scope for get | get stored value with invalid scope | invalid parameters for securestorage get | - | Passing scope for get as empty string | get stored value with scope as empty string | invalid parameters for securestorage get | - | Passing scope for get as number | get stored value with scope as number | invalid parameters for securestorage get | - | Passing scope for null for getting stored value | get stored value with scope as null | invalid parameters for securestorage get | - | Passing scope for get as boolean | get stored value with scope as boolean | invalid parameters for securestorage get | - | without scope | get stored value without scope | invalid parameters for securestorage get | - | Passing key for get as number | get stored value with key as number | invalid parameters for securestorage get | - | Passing key as null | get stored value with key as null | invalid parameters for securestorage get | - | Passing key as boolean | get stored value with key as boolean | invalid parameters for securestorage get | - | without key | get stored value without key | invalid parameters for securestorage get | - | Passing key for get as empty string | get stored value with key as empty | custom error for securestorage get | - - @sdk @transport - Scenario Outline: SecureStorage.set - Negative Scenario: Validate expecting error + | Scenario | API_Key | Validation_Key | + | missing scope | set secure value without scope | invalid parameters for securestorage set | + | missing key | set secure value without key | invalid parameters for securestorage set | + | missing value | set secure value without value | invalid parameters for securestorage set | + + @sdk @transport @Sev2 + Scenario Outline: SecureStorage.set - Validating API error handling when Given '3rd party app' invokes the 'Firebolt' API to 'update stored value for key authTestTokenDevice' And 'Firebolt' platform responds with 'null for updating a secure data value' And '3rd party app' invokes the 'Firebolt' API to 'get stored value with scope as device and key as authTestTokenDevice' @@ -117,22 +158,35 @@ Feature: SecureStorage | Passing scope as null | set secure value with scope as null | invalid parameters for securestorage set | | Passing scope as boolean | set secure value with scope as boolean | invalid parameters for securestorage set | | Passing scope as empty string | set secure value with scope as empty string | invalid parameters for securestorage set | - | without scope | set secure value without scope | invalid parameters for securestorage set | | Passing key as number | set secure value with key as number | invalid parameters for securestorage set | | Passing key as null | set secure value with key as null | invalid parameters for securestorage set | | Passing key as boolean | set secure value with key as boolean | invalid parameters for securestorage set | - | without key | set secure value without key | invalid parameters for securestorage set | | Passing value as number | set secure value with value as number | invalid parameters for securestorage set | | Passing value as null | set secure value with value as null | invalid parameters for securestorage set | | Passing value as boolean | set secure value with value as boolean | invalid parameters for securestorage set | - | without value | set secure value without value | invalid parameters for securestorage set | | Passing invalid options | set secure value with invalid options | invalid parameters for securestorage set | | Passing options as empty object | set secure value with options as empty object | invalid parameters for securestorage set | | Passing options as empty string | set secure value with options as empty string | invalid parameters for securestorage set | | Passing key as empty string | set secure value with empty key | custom error for securestorage set | - @sdk @transport - Scenario Outline: SecureStorage.remove - Negative Scenario: Validate expecting error + @sdk @transport @Sev2 + Scenario Outline: SecureStorage.remove - Validating API error handling when given + Given '3rd party app' invokes the 'Firebolt' API to 'update stored value for key authTestTokenDevice' + And 'Firebolt' platform responds with 'null for updating a secure data value' + And '3rd party app' invokes the 'Firebolt' API to 'get stored value with scope as device and key as authTestTokenDevice' + And 'Firebolt' platform responds with 'expected value for authTestTokenDevice stored data in securestorage' + When '3rd party app' invokes the 'Firebolt' API to '' + Then 'Firebolt' platform responds with '' + When '3rd party app' invokes the 'Firebolt' API to 'get stored value with scope as device and key as authTestTokenDevice' + Then 'Firebolt' platform responds with 'expected value for authTestTokenDevice stored data in securestorage' + + Examples: + | Scenario | API_Key | Validation_Key | + | without scope | remove stored value without scope | invalid parameters for securestorage remove | + | without key | remove stored value without key | invalid parameters for securestorage remove | + + @sdk @transport @Sev2 + Scenario Outline: SecureStorage.remove - Validating API error handling when Given '3rd party app' invokes the 'Firebolt' API to 'update stored value for key authTestTokenDevice' And 'Firebolt' platform responds with 'null for updating a secure data value' And '3rd party app' invokes the 'Firebolt' API to 'get stored value with scope as device and key as authTestTokenDevice' @@ -149,15 +203,13 @@ Feature: SecureStorage | Passing scope as number | remove stored value with scope as number | invalid parameters for securestorage remove | | Passing scope as null | remove stored value with scope as null | invalid parameters for securestorage remove | | Passing scope as boolean | remove stored value with scope as boolean | invalid parameters for securestorage remove | - | without scope | remove stored value without scope | invalid parameters for securestorage remove | | Passing key as number | remove stored value with key as number | invalid parameters for securestorage remove | | Passing key as null | remove stored value with key as null | invalid parameters for securestorage remove | | Passing key as boolean | remove stored value with key as boolean | invalid parameters for securestorage remove | - | without key | remove stored value without key | invalid parameters for securestorage remove | | Passing key as empty string | remove stored value with empty key | custom error for securestorage remove | - @sdk @transport - Scenario Outline: SecureStorage.remove - Positive Scenario: Validate get and remove after TTL + @sdk @transport @Sev2 + Scenario Outline: SecureStorage.remove - Validate secure data content after TTL Given '3rd party app' invokes the 'Firebolt' API to '' And 'Firebolt' platform responds with 'null for clearing stored value' And '3rd party app' invokes the 'Firebolt' API to '' @@ -175,12 +227,12 @@ Feature: SecureStorage Then 'Firebolt' platform responds with 'null for getting stored value' Examples: - | Scenario | Get_API_Key | Set_API_Key | Remove_API_Key | Clear_API_Key | - | with device scope | get stored value with scope as device and key as authTestTokenDeviceTTL | set secure value with scope as device and TTL as 50 | remove stored value with scope as device and TTL as 50 | clear stored value with scope as device | - | with account scope | get stored value with scope as account and key as authTestTokenAccountTTL | set secure value with scope as account and TTL as 50 | remove stored value with scope as account and TTL as 50 | clear stored value with scope as account | + | Scenario | Get_API_Key | Set_API_Key | Remove_API_Key | Clear_API_Key | + | with scope as device | get stored value with scope as device and key as authTestTokenDeviceTTL | set secure value with scope as device and TTL as 50 | remove stored value with scope as device and TTL as 50 | clear stored value with scope as device | + | with scope as account | get stored value with scope as account and key as authTestTokenAccountTTL | set secure value with scope as account and TTL as 50 | remove stored value with scope as account and TTL as 50 | clear stored value with scope as account | - @sdk @transport - Scenario Outline: SecureStorage.clear - Positive Scenario: Clears all the data values + @sdk @transport @Sev2 + Scenario Outline: SecureStorage.clear - Validate secure data content is cleared Given '3rd party app' invokes the 'Firebolt' API to '' And 'Firebolt' platform responds with 'null for updating a secure data value' And '3rd party app' invokes the 'Firebolt' API to '' @@ -197,12 +249,12 @@ Feature: SecureStorage Then 'Firebolt' platform responds with 'null for getting stored value' Examples: - | Scenario | Clear_API_Key | Get_API_Key1 | Get_API_Key2 | Set_API_Key1 | Set_API_Key2 | Validation_Key1 | Validation_Key2 | - | with device scope | clear stored value with scope as device | get stored value with scope as device and key as authTestTokenDevice | get stored value with scope as device and key as authTestTokenDevice1 | update stored value for key authTestTokenDevice | update stored value for key authTestTokenDevice1 | expected value for authTestTokenDevice stored data in securestorage | authTestTokenValue2 for stored value in securestorage | - | with account scope | clear stored value with scope as account | get stored value with scope as account and key as authTestTokenAccount | get stored value with scope as account and key as authTestTokenAccount1 | update stored value for key authTestTokenAccount | update stored value for key authTestTokenAccount1 | expected value for authTestTokenAccount stored data in securestorage | authTestTokenValue2 for stored value in securestorage | + | Scenario | Clear_API_Key | Get_API_Key1 | Get_API_Key2 | Set_API_Key1 | Set_API_Key2 | Validation_Key1 | Validation_Key2 | + | with scope as device | clear stored value with scope as device | get stored value with scope as device and key as authTestTokenDevice | get stored value with scope as device and key as authTestTokenDevice1 | update stored value for key authTestTokenDevice | update stored value for key authTestTokenDevice1 | expected value for authTestTokenDevice stored data in securestorage | authTestTokenValue2 for stored value in securestorage | + | with scope as account | clear stored value with scope as account | get stored value with scope as account and key as authTestTokenAccount | get stored value with scope as account and key as authTestTokenAccount1 | update stored value for key authTestTokenAccount | update stored value for key authTestTokenAccount1 | expected value for authTestTokenAccount stored data in securestorage | authTestTokenValue2 for stored value in securestorage | - @sdk @transport - Scenario Outline: SecureStorage.clear - Negative Scenario: Validate expecting error + @sdk @transport @Sev1 + Scenario Outline: SecureStorage.clear - Validating API Error handling when Given '3rd party app' invokes the 'Firebolt' API to 'update stored value for key authTestTokenDevice' And 'Firebolt' platform responds with 'null for updating a secure data value' And '3rd party app' invokes the 'Firebolt' API to 'get stored value with scope as device and key as authTestTokenDevice' @@ -221,6 +273,26 @@ Feature: SecureStorage Examples: | Scenario | Clear_API_key | | Passing invalid scope | clear stored value with invalid scope | + + @sdk @transport @Sev2 + Scenario Outline: SecureStorage.clear - Validating API Error handling when + Given '3rd party app' invokes the 'Firebolt' API to 'update stored value for key authTestTokenDevice' + And 'Firebolt' platform responds with 'null for updating a secure data value' + And '3rd party app' invokes the 'Firebolt' API to 'get stored value with scope as device and key as authTestTokenDevice' + And 'Firebolt' platform responds with 'expected value for authTestTokenDevice stored data in securestorage' + And '3rd party app' invokes the 'Firebolt' API to 'update stored value for key authTestTokenAccount' + And 'Firebolt' platform responds with 'null for updating a secure data value' + And '3rd party app' invokes the 'Firebolt' API to 'get stored value with scope as account and key as authTestTokenAccount' + And 'Firebolt' platform responds with 'expected value for authTestTokenAccount stored data in securestorage' + When '3rd party app' invokes the 'Firebolt' API to '' + Then 'Firebolt' platform responds with 'invalid parameters for securestorage clear' + When '3rd party app' invokes the 'Firebolt' API to 'get stored value with scope as device and key as authTestTokenDevice' + Then 'Firebolt' platform responds with 'expected value for authTestTokenDevice stored data in securestorage' + When '3rd party app' invokes the 'Firebolt' API to 'get stored value with scope as account and key as authTestTokenAccount' + Then 'Firebolt' platform responds with 'expected value for authTestTokenAccount stored data in securestorage' + + Examples: + | Scenario | Clear_API_key | | Passing scope as empty string | clear stored value with scope as empty string | | Passing scope as number | clear stored value with scope as number | | Passing scope as null | clear stored value with scope as null | @@ -235,8 +307,8 @@ Feature: SecureStorage # set value1 in device scope # validates the set values for 1st app # validates the set value for 2nd app - @sdk @transport - Scenario: SecureStorage.set - Positive Scenario: Validate Adding scope as device in 2 apps + @sdk @transport @Sev1 + Scenario: SecureStorage.set - Validate API Adds value with device scope two apps Given '3rd party app' invokes the 'Firebolt' API to 'clear stored value with scope as device' And 'Firebolt' platform responds with 'null for clearing stored value' And 3rd party 'certification' app is launched with 'secondary 3rd party app' appId @@ -264,8 +336,8 @@ Feature: SecureStorage # validates the removed value for 2nd app # validates the remaining value for 1st app # validates the remaining value for 2nd app - @sdk @transport - Scenario: SecureStorage.remove - Positive Scenario: Validate Removing device scope in 2 apps + @sdk @transport @Sev2 + Scenario: SecureStorage.remove - Validate API removes value with device scope in two apps Given 3rd party 'certification' app is launched with 'secondary 3rd party app' appId And '3rd party app' invokes the 'Firebolt' API to 'set secure value for key authTestTokenDevice1' And 'Firebolt' platform responds with 'null for updating a secure data value' @@ -298,8 +370,8 @@ Feature: SecureStorage # clear values with device scope # validates the null value for 1st app # validates the null value for 2nd app - @sdk @transport - Scenario: SecureStorage.clear - Positive Scenario: Clears all the data values with device scope in 2 apps + @sdk @transport @Sev2 + Scenario: SecureStorage.clear - Validate API clears value with device scope in two apps Given 3rd party 'certification' app is launched with 'secondary 3rd party app' appId And '3rd party app' invokes the 'Firebolt' API to 'update stored value for key authTestTokenDevice' And 'Firebolt' platform responds with 'null for updating a secure data value' diff --git a/cypress/TestCases/FireboltCertification/UserGrants.feature b/cypress/TestCases/FireboltCertification/UserGrants.feature index 0567bcd83..290667f3c 100644 --- a/cypress/TestCases/FireboltCertification/UserGrants.feature +++ b/cypress/TestCases/FireboltCertification/UserGrants.feature @@ -4,8 +4,8 @@ Feature: UserGrants # If lifespan value is set to once, grant is requested for every attempt. # Case-1: Validating by allowing the grant # Case-2: Validating by denying the grant (using pinchallenge and acknowledge). - @sdk @transport @requiresPlatformImplementation - Scenario: UserGrants.Grant R*2.2.2.1 - Positive Scenario: Validate Capabilities with denied (pinChallenge) and lifespan once + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Grant R*2.2.2.1 - Validating Capabilities with denied pinChallenge and lifespan once Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched # Case-1 @@ -28,8 +28,8 @@ Feature: UserGrants Then User validates lifecycle history for '3rd party app' with 'background:foreground' # Testing with grantPolicy having one option with one step(here step with acknowledge) - @sdk @transport @requiresPlatformImplementation - Scenario: UserGrants.Capabilities R.2.1.1 - Positive Scenario: Validate Capability Grant access with one step option(only acknowledgeChallenge) + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Capabilities R.2.1.1 - Validating Capability Grant access with one step option(only acknowledgeChallenge) Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched And Framework registers 'ackchallenge' test provider @@ -44,8 +44,8 @@ Feature: UserGrants # If lifespan value forever only once ask for grant until we clear the given grant # Case-1: Allowing the grant and validating the result # Case-2: Checking the lifecycle history to check ui is not coming and validating for result because already allowed grant in Case-1. - @sdk @transport @requiresPlatformImplementation - Scenario: UserGrants.Capabilities R*2.2.2.2 - Positive Scenario: Validate Capabilities with granted (pinChallenge) and lifespan forever + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Capabilities R*2.2.2.2 - Validating Capabilities with granted pinChallenge and lifespan forever Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched #Case-1 @@ -67,8 +67,8 @@ Feature: UserGrants # If lifespan value forever only once ask for grant until we clear the given grant # Case-1: Denying the grant and validating for error # Case-2: Checking the lifecycle history to check ui is not coming and calling postal code and validating for error because already denied grant in Case-1. - @sdk @transportt @requiresPlatformImplementation - Scenario: UserGrants.Capabilities R*2.2.2.2 - Negative Scenario: Validate Capabilities with denied (pinChallenge) and lifespan forever + @sdk @transportt @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Capabilities R*2.2.2.2 - Validating Capabilities with denied pinChallenge and lifespan forever Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched #Case-1 @@ -90,8 +90,8 @@ Feature: UserGrants # If lifespan value appActive it ask grant once when app is active and it ask again when app is closed and active again. # Case-1: Allowing grant when app is active and validating # Case-2: Closing and launching the app, allowing grant and validating ui is coming again - @sdk @transport @requiresPlatformImplementation - Scenario: UserGrants.Capabilities R*2.2.2.3 - Positive Scenario: Validate Capabilities with granted (pinChallenge) and lifespan appActive + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Capabilities R*2.2.2.3 - Validating Capabilities with granted pinChallenge and lifespan appActive Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched #Case-1 @@ -116,8 +116,8 @@ Feature: UserGrants # If lifespan value appActive it ask grant once when app is active and it ask again when app is closed and active again. # Case-1: Denying grant when app is active and validating # Case-2: Closing and launching the app, denying grant and validating ui is coming again - @sdk @transport @requiresPlatformImplementation - Scenario: UserGrants.Capabilities R*2.2.2.3 - Negative Scenario: Validate Capabilities with denied (pinChallenge) and lifespan appActive + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Capabilities R*2.2.2.3 - Validating Capabilities with denied pinChallenge and lifespan appActive Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched #Case-1 @@ -144,8 +144,8 @@ Feature: UserGrants # Case-1: Allowing grant and validating the result # Case-2: Calling the API again within the ttl and it should not ask for grant # Case-3: Calling API after ttl, here it will ask grant again - @sdk @transport @requiresPlatformImplementation - Scenario: UserGrants.Capabilities R*2.2.2.5 - Positive Scenario: Validate Capabilities with granted (ackchallenge) and lifespan:seconds lifespanTtl:60 sec + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Capabilities R*2.2.2.5 - Validating Capabilities with granted ackchallenge and lifespan of 60 sec Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched #Case-1 @@ -177,8 +177,8 @@ Feature: UserGrants # Case-1: Denying grant and validating the error # Case-2: Calling the API again within the ttl and it should not ask for grant # Case-3: Calling API after ttl, here it will ask for grant again - @sdk @transport @requiresPlatformImplementation - Scenario: UserGrants.Capabilities R*2.2.2.5 - Negative Scenario: Validate Capabilities with denied (ackchallenge) and lifespan:seconds lifespanTtl:60 sec + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Capabilities R*2.2.2.5 - Validating Capabilities with denied ackchallenge and lifespan of 60 sec Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched # Case-1 @@ -209,8 +209,8 @@ Feature: UserGrants # If lifespan value seconds, after giving the grant it should not ask grant within ttl and it ask after the ttl # Case-1: Allowing grant and validating the result # Case-2: Before ttl ends rebooting the device and on calling api, it should return result without asking for grant - @sdk @transport @notSupported @requiresPlatformImplementation - Scenario: UserGrants.Capabilities R*2.2.2.5 - Positive Scenario: Validate Capabilities with grant(pinChallenge) and lifespan:seconds lifespanTtl:800sec - after reboot within ttl it should not ask for grant + @sdk @transport @notSupported @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Capabilities R*2.2.2.5 - Validating Capabilities with granted pinChallenge and lifespan of 800sec - it should not ask for grant after reboot within ttl Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched # Case-1 @@ -238,8 +238,8 @@ Feature: UserGrants # If lifespan value seconds, after giving the grant it should not ask grant within ttl and it ask after the ttl # Case-1: Allowing grant and validating the result # Case-2: Reboot the device after ttl, after reboot when API is called again and asks for grant, then deny grant - @sdk @transport @notSupported @requiresPlatformImplementation - Scenario: UserGrants.Capabilities R*2.2.2.5 - Positive Scenario: Validate Capabilities with grant(ackchallenge) and lifespan:seconds lifespanTtl:60sec - reboot after ttl and it should ask grant + @sdk @transport @notSupported @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Capabilities R*2.2.2.5 - Validating Capabilities with granted ackchallenge and lifespan of 60sec - it should ask for grant if reboot after ttl Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched # Case-1 @@ -269,8 +269,8 @@ Feature: UserGrants # If lifespan value seconds, after giving the grant it should not ask grant within ttl and it ask after the ttl # Case-1: Deny grant and validate error # Case-2: Before ttl ends rebooting the device, call api and expect to return result without asking for grant - @sdk @transport @notSupported @requiresPlatformImplementation - Scenario: UserGrants.Capabilities R*2.2.2.5 - Negative Scenario: Validate Capabilities with denied (pinChallenge) and lifespan:seconds lifespanTtl:800sec - after reboot within ttl and it should not ask grant + @sdk @transport @notSupported @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Capabilities R*2.2.2.5 - Validating Capabilities with denied pinChallenge and lifespan of 800sec - it should not ask for grant after reboot within ttl Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched # Case-1 @@ -298,8 +298,8 @@ Feature: UserGrants # With lifespan seconds, after giving the grant it should not ask grant within ttl and it ask after the ttl # Case-1: Deny grant and validate error # Case-2: Reboot device after ttl, after reboot when api is called again, expect to ask grant and then deny grant - @sdk @transport @notSupported @requiresPlatformImplementation - Scenario: UserGrants.Capabilities R*2.2.2.5 - Negative Scenario: Validate Capabilities with denied (ackchallenge) and lifespan:seconds lifespanTtl:60sec - reboot after ttl and it should ask grant + @sdk @transport @notSupported @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Capabilities R*2.2.2.5 - Validating Capabilities with denied ackchallenge and lifespan of 60sec - it should ask for grant if reboot after ttl Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched # Case-1 @@ -326,8 +326,8 @@ Feature: UserGrants Then User validates lifecycle history for '3rd party app' with 'background:foreground' # grantPolicy having lifespan:seconds and lifespanTtl:60 seconds - @sdk @transport @requiresPlatformImplementation - Scenario: UserGrants.Capabilities R*2.2.3.4 - Positive Scenario: privacySetting - autoApplyPolicy:always property-getter:true silently grant + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Capabilities R*2.2.3.4 - Validating Capabilities with privacySetting - autoApplyPolicy:always property-getter:true silently grant Given the environment has been set up for 'userGrants' tests And 1st party app invokes the 'Firebolt' API to 'disable closedCaptions' And 3rd party 'certification' app is launched @@ -342,8 +342,8 @@ Feature: UserGrants # First testcase having grantPolicy with lifespan:seconds and lifespanTtl:60 seconds # Second testcase having lifespan:appActive - @sdk @transport @requiresPlatformImplementation - Scenario Outline: UserGrants.Capabilities - Positive Scenario: + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario Outline: UserGrants.Capabilities - Given the environment has been set up for 'userGrants' tests And 1st party app invokes the 'Firebolt' API to '' And 3rd party 'certification' app is launched @@ -357,13 +357,13 @@ Feature: UserGrants Then 'Firebolt' platform responds with 'false for capabilities granted' Examples: - | Scenario | Key | API_Key | Invalid_Request_Error | Check_Capabilities_Granted | ReqId | - | Validate Capability autoApplyPolicy:always property-getter:false silently denied | disable closedCaptions | expect error for closedCaptions settings | invalid request for closedCaptions settings | check if accessibility closedCaptions capability is granted with role as use | R*2.2.3.4 | - | Validate Capability autoApplyPolicy:disallowed property-getter:false silently denied | disable voiceguidance | expect error for voiceGuidance Settings | invalid request for voiceGuidance settings | check if accessibility voiceGuidance capability is granted with role as use | R*2.2.3.6 | + | Scenario | Key | API_Key | Invalid_Request_Error | Check_Capabilities_Granted | ReqId | + | Validating Capability autoApplyPolicy:always property-getter:false silently denied | disable closedCaptions | expect error for closedCaptions settings | invalid request for closedCaptions settings | check if accessibility closedCaptions capability is granted with role as use | R*2.2.3.4 | + | Validating Capability autoApplyPolicy:disallowed property-getter:false silently denied | disable voiceguidance | expect error for voiceGuidance Settings | invalid request for voiceGuidance settings | check if accessibility voiceGuidance capability is granted with role as use | R*2.2.3.6 | # grantPolicy having lifespan:appActive - @sdk @transport @requiresPlatformImplementation - Scenario: UserGrants.Capabilities R*2.2.3.5 - Positive Scenario: Validate Capabilities with privacySetting - autoApplyPolicy:allowed property-getter:true silently grant + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Capabilities R*2.2.3.5 - Validating Capabilities with privacySetting - autoApplyPolicy:allowed property-getter:true silently grant Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched And 1st party app invokes the 'Firebolt' API to 'set privacy allow watchHistory as true' @@ -376,8 +376,8 @@ Feature: UserGrants Then 'Firebolt' platform responds with 'true for capabilities granted' # grantPolicy having lifespan:appActive - @sdk @transport @requiresPlatformImplementation - Scenario: UserGrants.Capabilities R*2.2.3.5 - Positive Scenario: Validate Capabilities with privacySetting - autoApplyPolicy:allowed property-getter:false grant + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Capabilities R*2.2.3.5 - Validating Capabilities with privacySetting - autoApplyPolicy:allowed property-getter:false grant Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched And 1st party app invokes the 'Firebolt' API to 'set privacy allow watchHistory as false' @@ -393,8 +393,8 @@ Feature: UserGrants Then 'Firebolt' platform responds with 'true for capabilities granted' # grantPolicy having lifespan:appActive - @sdk @transport @requiresPlatformImplementation - Scenario: UserGrants.Capabilities R*2.2.3.5 - Positive Scenario: Validate Capabilities with privacySetting - autoApplyPolicy:allowed property-getter:false deny + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Capabilities R*2.2.3.5 - Validating Capabilities with privacySetting - autoApplyPolicy:allowed property-getter:false deny Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched And 1st party app invokes the 'Firebolt' API to 'set privacy allow watchHistory as false' @@ -410,8 +410,8 @@ Feature: UserGrants Then 'Firebolt' platform responds with 'false for capabilities granted' # grantPolicy having lifespan:appActive - @sdk @transport @requiresPlatformImplementation - Scenario: UserGrants.Capabilities R*2.2.3.6 - Positive Scenario: Validate Capabilities with privacySetting - autoApplyPolicy:disallowed property-getter:true grant + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Capabilities R*2.2.3.6 - Validating Capabilities with privacySetting - autoApplyPolicy:disallowed property-getter:true grant Given the environment has been set up for 'userGrants' tests And 1st party app invokes the 'Firebolt' API to 'disable voiceguidance' And 3rd party 'certification' app is launched @@ -428,8 +428,8 @@ Feature: UserGrants Then 'Firebolt' platform responds with 'true for capabilities granted' # grantPolicy having lifespan:appActive - @sdk @transport @requiresPlatformImplementation - Scenario: UserGrants.Capabilities R*2.2.3.6 - Positive Scenario: Validate Capabilities with privacySetting - autoApplyPolicy:disallowed property-getter:true deny + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Capabilities R*2.2.3.6 - Validating Capabilities with privacySetting - autoApplyPolicy:disallowed property-getter:true deny Given the environment has been set up for 'userGrants' tests And 1st party app invokes the 'Firebolt' API to 'disable voiceguidance' And 3rd party 'certification' app is launched @@ -446,8 +446,8 @@ Feature: UserGrants Then 'Firebolt' platform responds with 'false for capabilities granted' # grantPolicy having lifespan:appActive - @sdk @transport @requiresPlatformImplementation - Scenario Outline: UserGrants.Capabilities R*2.2.3.7 - Positive Scenario: with privacySetting - + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario Outline: UserGrants.Capabilities R*2.2.3.7 - Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched And 1st party app invokes the 'Firebolt' API to '' @@ -463,13 +463,13 @@ Feature: UserGrants Then 'Firebolt' platform responds with 'true for capabilities granted' Examples: - | Scenario | Key | - | Validate Capability autoApplyPolicy:never property-getter:true grant | set privacy allow watchHistory as true | - | Validate Capability autoApplyPolicy:never property-getter:false grant | set privacy allow watchHistory as false | + | Scenario | Key | + | Validating Capability autoApplyPolicy:never property-getter:true grant | set privacy allow watchHistory as true | + | Validating Capability autoApplyPolicy:never property-getter:false grant | set privacy allow watchHistory as false | #grantPolicy having lifespan:appActive - @sdk @transport @requiresPlatformImplementation - Scenario Outline: UserGrants.Capabilities R*2.2.3.7 - Positive Scenario: with privacySetting - + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario Outline: UserGrants.Capabilities R*2.2.3.7 - Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched And 1st party app invokes the 'Firebolt' API to '' @@ -485,13 +485,13 @@ Feature: UserGrants Then 'Firebolt' platform responds with 'false for capabilities granted' Examples: - | Scenario | Key | - | Validate Capability autoApplyPolicy:never property-getter:true deny | set privacy allow watchHistory as true | - | Validate Capability autoApplyPolicy:never property-getter:false deny | set privacy allow watchHistory as false | + | Scenario | Key | + | Validating Capability autoApplyPolicy:never property-getter:true deny | set privacy allow watchHistory as true | + | Validating Capability autoApplyPolicy:never property-getter:false deny | set privacy allow watchHistory as false | #grantPolicy having lifespan:appActive - @sdk @transport @requiresPlatformImplementation - Scenario Outline: UserGrants.Capabilities - Positive Scenario:privacySetting - + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario Outline: UserGrants.Capabilities - Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched And 1st party app invokes the 'Firebolt' API to 'set privacy allow watchHistory as true' @@ -507,13 +507,13 @@ Feature: UserGrants Then 'Firebolt' platform responds with 'false for capabilities granted' Examples: - | Scenario | API_Key | Invalid_Request_Error | Method_Content | Check_Capabilities_Granted | ReqId | - | Validate Capability updateProperty:true - property-getter:true deny property should be set to false | expect error for secondscreen device | invalid request for secondscreen device | false for privacy allow watchHistory | check if secondscreen device capability is granted with role use | R*2.2.3.9 | - | Validate Capability updateProperty:false - property-getter:true deny property should not be updated | expect error for allow profile flags | invalid request for profile flags | true for privacy allow watchHistory | check if profile flags capability is granted with role use | R*2.2.3.10 | + | Scenario | API_Key | Invalid_Request_Error | Method_Content | Check_Capabilities_Granted | ReqId | + | Validating Capability updateProperty:true - property-getter:true deny property should be set to false | expect error for secondscreen device | invalid request for secondscreen device | false for privacy allow watchHistory | check if secondscreen device capability is granted with role use | R*2.2.3.9 | + | Validating Capability updateProperty:false - property-getter:true deny property should not be updated | expect error for allow profile flags | invalid request for profile flags | true for privacy allow watchHistory | check if profile flags capability is granted with role use | R*2.2.3.10 | # grantPolicy having lifespan:appActive - @sdk @transport @requiresPlatformImplementation - Scenario Outline: UserGrants.Capabilities R*2.2.3.9 - Positive Scenario:privacySetting - + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario Outline: UserGrants.Capabilities R*2.2.3.9 - Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched And 1st party app invokes the 'Firebolt' API to '' @@ -529,16 +529,16 @@ Feature: UserGrants Then 'Firebolt' platform responds with 'true for capabilities granted' Examples: - | Scenario | Set_API_Key | API_Key | Method_Content | Validation_Key | Check_Capabilities_Granted | - | Validate Capability updateProperty:true - property-getter:false grant property should be set to false | set privacy allow watchHistory as false | get secondscreen device | expected secondscreen device | true for privacy allow watchHistory | check if secondscreen device capability is granted with role use | - | Validate Capability updateProperty:true - property-getter:true grant property should not be changed | set privacy allow watchHistory as true | get secondscreen device | expected secondscreen device | true for privacy allow watchHistory | check if secondscreen device capability is granted with role use | - | Validate Capability updateProperty:false - property-getter:false grant property should not be changed | set privacy allow watchHistory as false | allow profile flags | expected profile flags for the current session | false for privacy allow watchHistory | check if profile flags capability is granted with role use | + | Scenario | Set_API_Key | API_Key | Method_Content | Validation_Key | Check_Capabilities_Granted | + | Validating Capability updateProperty:true - property-getter:false grant property should be set to false | set privacy allow watchHistory as false | get secondscreen device | expected secondscreen device | true for privacy allow watchHistory | check if secondscreen device capability is granted with role use | + | Validating Capability updateProperty:true - property-getter:true grant property should not be changed | set privacy allow watchHistory as true | get secondscreen device | expected secondscreen device | true for privacy allow watchHistory | check if secondscreen device capability is granted with role use | + | Validating Capability updateProperty:false - property-getter:false grant property should not be changed | set privacy allow watchHistory as false | allow profile flags | expected profile flags for the current session | false for privacy allow watchHistory | check if profile flags capability is granted with role use | # lifespan having powerActive # Case-1: Allow grant and validate the result # Case-2: Call API after device is rebooted,expect to ask for grant, deny grant and validate error - @sdk @transport @notSupported @requiresPlatformImplementation - Scenario: UserGrants.Capabilities R*2.2.2.4 - Positive Scenario: Validate Capabilities with grant (pinChallenge) and lifespan powerActive - after reboot deny and validate + @sdk @transport @notSupported @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Capabilities R*2.2.2.4 - Validating Capabilities with granted pinChallenge and lifespan powerActive - after reboot deny and validate Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched # Case-1 @@ -567,8 +567,8 @@ Feature: UserGrants # lifespan having powerActive # Case-1: Deny grant and validate error # Case-2: Call API after device is rebooted,expect to ask for grant, allow grant and validate result - @sdk @transport @notSupported @requiresPlatformImplementation - Scenario: UserGrants.Capabilities R*2.2.2.4 - Negative Scenario: Validate Capabilities with denied (pinChallenge) and lifespan powerActive - after reboot grant and validate + @sdk @transport @notSupported @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Capabilities R*2.2.2.4 - Validating Capabilities with denied pinChallenge and lifespan powerActive - after reboot grant and validate Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched # Case-1 @@ -596,8 +596,8 @@ Feature: UserGrants # 1st example: Call usergrants.request for account.uid with granting acknowledgeChallenge for role use and validate capabilities.info for same capability and check role use is granted and not any other role # 2nd example: Call usergrants.request for account.uid with granting acknowledgeChallenge for role manage and validate capabilities.info for same capability and check role manage is granted and not any other role - @sdk @transport @requiresPlatformImplementation - Scenario Outline: UserGrants.request R.1.1 - Positive Scenario: + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario Outline: UserGrants.request R.1.1 - Given the environment has been set up for 'userGrants' tests And Framework registers 'ackchallenge' test provider When 1st party app invokes the 'Firebolt' API to '' @@ -608,14 +608,14 @@ Feature: UserGrants Then 'Firebolt' platform responds to '1st party app' with '' Examples: - | Scenario | API_Key | Validation_Key | - | Validate userGrants.request by granting for role use | request grant for account uid capability with role use | granted for account uid capability with role use | - | Validate userGrants.request by granting for role manage | request grant for account uid capability with role manage | granted for account uid capability with role manage | + | Scenario | API_Key | Validation_Key | + | Validating method response when granting for role use | request grant for account uid capability with role use | granted for account uid capability with role use | + | Validating method response when granting for role manage | request grant for account uid capability with role manage | granted for account uid capability with role manage | # 1st example: Call usergrants.request for account.uid with denying acknowledgeChallenge for role use and validate capabilities.info for same capability and check role use is denied # 2nd example: Call usergrants.request for account.uid with denying acknowledgeChallenge for role manage and validate capabilities.info for same capability and check role manage is denied - @sdk @transport @requiresPlatformImplementation - Scenario Outline: UserGrants.request R.1.2 - Negative Scenario: + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario Outline: UserGrants.request R.1.2 - Given the environment has been set up for 'userGrants' tests And Framework registers 'ackchallenge' test provider When 1st party app invokes the 'Firebolt' API to '' @@ -626,13 +626,13 @@ Feature: UserGrants Then 'Firebolt' platform responds to '1st party app' with '' Examples: - | Scenario | API_Key | Validation_Key | - | Validate userGrants.request by denying for role use | request grant for account uid capability with role use | denied for account uid capability with role use | - | Validate userGrants.request by denying for role manage | request grant for account uid capability with role manage | denied for account uid capability with role manage | + | Scenario | API_Key | Validation_Key | + | Validating method response when denying for role use | request grant for account uid capability with role use | denied for account uid capability with role use | + | Validating method response when denying for role manage | request grant for account uid capability with role manage | denied for account uid capability with role manage | # Call usergrants.request with securestorage for role use, but the grant policy has role manage, since role mismatch it should return null since no grantpolicy is matched - @sdk @transport @requiresPlatformImplementation - Scenario: UserGrants.request R.1.1 - Negative Scenario: Validate userGrants.request call with role use, but grantpolicy having manage capability + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.request R.1.1 - Validating with role use, but grantpolicy having manage capability Given the environment has been set up for 'userGrants' tests And Framework registers 'pinChallenge' test provider When 1st party app invokes the 'Firebolt' API to 'request grant for secure storage capability with role use' @@ -644,8 +644,8 @@ Feature: UserGrants And '3rd party app' invokes the 'Firebolt' API to 'check if account uid capability is granted with role as manage' Then 'Firebolt' platform responds to '1st party app' with 'granted for secure storage capability with role use' - @sdk @transport @requiresPlatformImplementation - Scenario: UserGrants.request R.1.2 - Positive Scenario: Validate UserGrants.request which grantpolicy is not present in manifest + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.request R.1.2 - Validating for which grantpolicy is not present in manifest Given the environment has been set up for 'userGrants' tests When 1st party app invokes the 'Firebolt' API to 'request grant for device info capability with role use' And 3rd party 'certification' app is launched @@ -656,8 +656,8 @@ Feature: UserGrants And '3rd party app' invokes the 'Firebolt' API to 'check if device info capability is granted with role as manage' Then 'Firebolt' platform responds to '1st party app' with 'default values for device info capability with role use' - @sdk @transport @requiresPlatformImplementation - Scenario: UserGrants.request - Positive Scenario: Validate userGrants.request by deferring + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.request - Validating method response by deferring Given the environment has been set up for 'userGrants' tests And Framework registers 'ackchallenge' test provider When 1st party app invokes the 'Firebolt' API to 'request grant for account uid capability with role use' @@ -670,8 +670,8 @@ Feature: UserGrants And '3rd party app' invokes the 'Firebolt' API to 'check if account uid capability is granted with role as provide' Then 'Firebolt' platform responds to '1st party app' with 'deferred for account uid capability with role use' - @sdk @transport @requiresPlatformImplementation - Scenario: UserGrants.request - Positive Scenario: Validate userGrants.request by deferring with timeout + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.request - Validating method response by deferring with timeout Given the environment has been set up for 'userGrants' tests And Framework registers 'ackchallenge' test provider When 1st party app invokes the 'Firebolt' API to 'request grant for account uid capability with role use' @@ -685,8 +685,8 @@ Feature: UserGrants Then 'Firebolt' platform responds to '1st party app' with 'deferred for account uid capability with role use' # Call userGrants.request for account.uid with granting acknowledgeChallenge for role provide and validate by calling capabilities.info with same capability and check which role manage is granted and not any other role - @sdk @transport @requiresPlatformImplementation - Scenario: UserGrants.request R.1.1 - Positive Scenario: Validate usergrants.request by granting for role provide + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.request R.1.1 - Validating method response when granting for role provide Given the environment has been set up for 'userGrants' tests And Framework registers 'ackchallenge' test provider When 1st party app invokes the 'Firebolt' API to 'request grant for account uid capability with role provide' @@ -700,8 +700,8 @@ Feature: UserGrants Then 'Firebolt' platform responds to '1st party app' with 'granted for account uid capability with role provide' # Call userGrants.request for account.uid with denying acknowledgeChallenge for role manage and validate by calling capabilities.info with same capability and check which role manage is denied - @sdk @transport @requiresPlatformImplementation - Scenario: UserGrants.request R.1.2 - Negative Scenario: Validate usergrants.request by denying for role provide + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.request R.1.2 - Validating method response when denying for role provide Given the environment has been set up for 'userGrants' tests And Framework registers 'ackchallenge' test provider When 1st party app invokes the 'Firebolt' API to 'request grant for account uid capability with role provide' @@ -716,8 +716,8 @@ Feature: UserGrants # Testing with grantPolicy having with scope device and grant access, so all the apps in that device may have the access # provide access using any 3rd party and check in another 3rd party - @sdk @transport @requiresPlatformImplementation - Scenario: UserGrants.Capabilities R.4.4.1.1 - Positive Scenario: Validate Capability Grant access with scope device + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Capabilities R.4.4.1.1 - Validating Capability Grant access with scope device Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched And Framework registers 'pinChallenge' test provider @@ -734,8 +734,8 @@ Feature: UserGrants # Deny access with scope device, so all the apps in that device may not have the access # launch a 3rd party and provide acess using any 3rd party and check in another 3rd party - @sdk @transport @requiresPlatformImplementation - Scenario: UserGrants.Capabilities R.4.4.1.1 - Negative Scenario: Validate Capability access denied for pinChallenge with scope device + @sdk @transport @requiresPlatformImplementation @Sev1 + Scenario: UserGrants.Capabilities R.4.4.1.1 - Validating Capability access denied for pinChallenge with scope device Given the environment has been set up for 'userGrants' tests And 3rd party 'certification' app is launched And Framework registers 'pinChallenge' test provider diff --git a/cypress/TestCases/FireboltCertification/UserInterest.feature b/cypress/TestCases/FireboltCertification/UserInterest.feature index 282941b97..f48ac0bd9 100644 --- a/cypress/TestCases/FireboltCertification/UserInterest.feature +++ b/cypress/TestCases/FireboltCertification/UserInterest.feature @@ -5,8 +5,20 @@ Feature: UserInterest Given the environment has been set up for 'Userinterest' tests And 3rd party 'certification' app is launched - @sdk @transport - Scenario Outline: Discovery.userInterest - Positive Scenario: In-app UX - Notify userInterest with type + @sdk @transport @Sev1 + Scenario Outline: Discovery.userInterest - Validate event response with + When 1st party app registers for the 'Content onUserInterest' event using the 'Firebolt' API + And '3rd party app' invokes the 'Firebolt' API to 'notify userInterest with ' + Then 'Firebolt' platform responds with 'null for discovery userInterest' + And 'Firebolt' platform triggers to '1st party app' event 'onUserInterest with ' + + Examples: + | Scenario | userInterestData | Event_Content | + | interest & reason playlist with program entity | type interest and reason playlist with program entity | type interest reason playlist | + | disinterest & reason playlist with program entity | type disinterest and reason playlist with program entity | type disinterest reason playlist | + + @sdk @transport @Sev2 + Scenario Outline: Discovery.userInterest - Validate event response content with When 1st party app registers for the 'Content onUserInterest' event using the 'Firebolt' API And '3rd party app' invokes the 'Firebolt' API to 'notify userInterest with ' Then 'Firebolt' platform responds with 'null for discovery userInterest' @@ -14,8 +26,6 @@ Feature: UserInterest Examples: | Scenario | userInterestData | Event_Content | - | interest & reason playlist with program entity | type interest and reason playlist with program entity | type interest reason playlist | - | disinterest & reason playlist with program entity | type disinterest and reason playlist with program entity | type disinterest reason playlist | | interest & reason playlist with channel streaming entity | type interest and reason playlist with channel streaming entity | type interest reason playlist channel | | disinterest & reason playlist with channel streaming entity | type disinterest and reason playlist with channel streaming entity | type disinterest reason playlist channel | | interest & reason playlist with channel overTheAir entity | type interest and reason playlist with channel overTheAir entity | type interest reason playlist overTheAir | @@ -58,36 +68,36 @@ Feature: UserInterest | disinterest & reason recording with program season entity | type disinterest and reason recording with program season entity | type disinterest reason recording program season entity | - @sdk @transport - Scenario Outline: Discovery.userInterest - Negative Scenario: expecting error + @sdk @transport @Sev2 + Scenario Outline: Discovery.userInterest - Validating API Error handling when given When '3rd party app' invokes the 'Firebolt' API to 'notify userInterest ' Then 'Firebolt' platform responds with 'invalid params for discovery userInterest' Examples: | Scenario | Param | - | Empty param | without any params | - | Without Interest type | without interest type | - | Invalid Interest type - integer params | with numeric interestType | - | Invalid Interest type - test params | with string interestType | - | Invalid Interest type - boolean params | with boolean interestType | - | Invalid channelType in channel entity | with invalid channelType in channel entity | - | Boolean channelType in channel entity | with boolean channelType in channel entity | - | Integer channelType in channel entity | with integer channelType in channel entity | - | Invalid programType in program entity | with invalid programType in program entity | - | Boolean programType in program entity | with boolean programType in program entity | - | Integer programType in program entity | with integer programType in program entity | - | Invalid musicType in music entity | with invalid musicType in music entity | - | Boolean musicType in music entity | with boolean musicType in music entity | - | Integer musicType in music entity | with integer musicType in music entity | - | Invalid seriesId in program episode entity | with invalid seriesId in program episode entity | - | Invalid seasonId in program episode entity | with invalid seasonId in program episode entity | - | Invalid seriesId and seasonId in program episode entity | with invalid seriesId and seasonId in program episode entity | - | Invalid seriesId in program season entity | with invalid seriesId in program season entity | - | Invalid programType for program entity with seriesId | with invalid programType for program entity with seriesId | - | Invalid programType for program entity with seasonId | with invalid programType for program entity with seasonId | + | empty params | without any params | + | no Interest type | without interest type | + | invalid Interest type with integer params | with numeric interestType | + | invalid Interest type with test params | with string interestType | + | invalid Interest type with boolean params | with boolean interestType | + | invalid channelType in channel entity | with invalid channelType in channel entity | + | boolean channelType in channel entity | with boolean channelType in channel entity | + | integer channelType in channel entity | with integer channelType in channel entity | + | invalid programType in program entity | with invalid programType in program entity | + | boolean programType in program entity | with boolean programType in program entity | + | integer programType in program entity | with integer programType in program entity | + | invalid musicType in music entity | with invalid musicType in music entity | + | boolean musicType in music entity | with boolean musicType in music entity | + | integer musicType in music entity | with integer musicType in music entity | + | invalid seriesId in program episode entity | with invalid seriesId in program episode entity | + | invalid seasonId in program episode entity | with invalid seasonId in program episode entity | + | invalid seriesId and seasonId in program episode entity | with invalid seriesId and seasonId in program episode entity | + | invalid seriesId in program season entity | with invalid seriesId in program season entity | + | invalid programType for program entity with seriesId | with invalid programType for program entity with seriesId | + | invalid programType for program entity with seasonId | with invalid programType for program entity with seasonId | - @sdk - Scenario Outline: Content.requestUserInterest - Positive Scenario: Platform-UX - Notify requestUserInterest with type + @sdk @Sev1 + Scenario Outline: Content.requestUserInterest - Platform-UX - Notify requestUserInterest with type And 1st party app invokes the 'Firebolt' API to 'notify requestUserInterest with type ' Then 'Firebolt' platform responds to '1st party app' with '' @@ -100,30 +110,30 @@ Feature: UserInterest | disinterest and reason reaction | disinterest reason reaction | requestUserInterest with reason reaction | | disinterest and reason recording | disinterest reason recording | requestUserInterest with reason recording | - @sdk @transport - Scenario Outline: Content.requestUserInterest - Negative Scenario: expecting error + @sdk @transport @Sev2 + Scenario Outline: Content.requestUserInterest - Validating API Error handling when given When 1st party app invokes the 'Firebolt' API to 'notify requestUserInterest with ' Then 'Firebolt' platform responds to '1st party app' with 'invalid params for content requestUserInterest' Examples: - | Scenario | Param | - | Invalid Interest value - test params | invalid interestType | - | Invalid Interest type - boolean params | boolean interestType | - | Invalid reason value - test params | invalid reasonType | - | Invalid Interest type - boolean params | boolean reasonType | + | Scenario | Param | + | invalid Interest value with test params | invalid interestType | + | invalid Interest type with boolean params | boolean interestType | + | invalid reason value with test params | invalid reasonType | + | invalid Interest type with boolean params | boolean reasonType | - @sdk @requiresPlatformImplementation - Scenario: Content.requestUserInterest - Negative Scenario: Platform-UX - Notify requestUserInterest but platform timeout without sending response + @sdk @requiresPlatformImplementation @Sev2 + Scenario: Content.requestUserInterest - Validating API Error handling when platform times-out without sending response When 1st party app invokes the 'Firebolt' API to 'notify requestUserInterest with type interest timeout' Then 'Firebolt' platform responds to '1st party app' with 'not available for requestUserInterest' - @sdk @requiresPlatformImplementation - Scenario: Content.requestUserInterest - Negative Scenario: Platform-UX - Notify requestUserInterest but 3rd party app return error + @sdk @requiresPlatformImplementation @Sev2 + Scenario: Content.requestUserInterest - Validating API Error handling when 3rd party app returns error When 1st party app invokes the 'Firebolt' API to 'notify requestUserInterest with type interest returns error' Then 'Firebolt' platform responds to '1st party app' with 'invalid parameters for requestUserInterest' - @sdk @requiresPlatformImplementation - Scenario: Content.requestUserInterest - Negative Scenario: Platform-UX - Notify requestUserInterest without registering for providers + @sdk @requiresPlatformImplementation @Sev1 + Scenario: Content.requestUserInterest - Validating API Error handling when attempting to skip registering for providers Given the environment has been set up for 'UserInterestProvider' tests And 3rd party 'certification' app is launched When 1st party app invokes the 'Firebolt' API to 'notify requestUserInterest with type interest without provider' diff --git a/cypress/fixtures/docs/dynamicObjects.md b/cypress/fixtures/docs/dynamicObjects.md index 995a8fb3e..45e5322c3 100644 --- a/cypress/fixtures/docs/dynamicObjects.md +++ b/cypress/fixtures/docs/dynamicObjects.md @@ -7,6 +7,7 @@ FCS supports dynamic Firebolt JS objects to be used across multiple examples in - [Supported Dynamic Glue Codes](#supported-dynamic-glue-codes) - [Firebolt object](#firebolt-object) - [Sample Firebolt Object Format](#sample-firebolt-object-format) + - [How to initialize the Firebolt object](#how-to-initialize-the-firebolt-object) - [Supported types of validations](#supported-types-of-validations-here) - [Runtime Variables](#runtime-variables) - [ResolveAtRuntime Function](#resolveatruntime-function) @@ -17,17 +18,19 @@ FCS supports dynamic Firebolt JS objects to be used across multiple examples in To use dynamic Firebolt objects, we need to use dynamic glue codes listed [here](../../support/step_definitions/dynamicCalls.md) -- we test the '(.+)' getters and setters(?: '(._?)'(?: to '(._?)')?)? - 1st party app invokes the '(.+)' API to set( invalid)? value - '(.+)' invokes the '(.+)' get API - '(.+)' registers for the '(.+)' event - '(.+)' platform responds to '(.+)' (get|set) API(?: with '(.+)')? - '(.+)' platform (triggers|does not trigger) '(.\*?)' event(?: with '(.+)')? +- '(.+)' on '(.+)' page ## Firebolt object - Firebolt objects can be added in JavaScript files located in the `cypress/fixtures/fireboltCalls` folder. Ex: `cypress/fixtures/fireboltCalls/accessibility.js` - Firebolt objects present in the config module will take priority if the same key is present in FCS. +- Firebolt objects name must be in uppercase. +- Firebolt object is initialized using [the environment has been set up for {string} tests](../../support/step_definitions/testSetup.md#the-environment-has-been-set-up-for-string-tests) glue ### Below is the sample format of a dynamic firebolt object @@ -63,6 +66,84 @@ FIREBOLT_CALL = { - These are all the supported fields, but depending on the test scenario and glue code used, none of them are technically required. +### How to initialize the Firebolt object +- The Firebolt object should be initialized using the [the environment has been set up for {string} tests](../../support/step_definitions/testSetup.md#the-environment-has-been-set-up-for-string-tests) glue code. +- The glue code accepts the test type as a parameter, which determines the Firebolt object to be used. +- The Firebolt object will be retrieved based on the key name and stored in the runtime environment variable. + +#### Flowchart of Firebolt Object Usage +![alt text](envSetupFlowchart.png) + +#### Two Ways to Initialize the Firebolt Object +- **Passing the Key Name with a Colon `:`** + + This format allows you to specify both the module and the method of the Firebolt object by separating them with a colon. + Format: `module:method`. + ##### Format + ```javascript + Given the environment has been set up for 'module:method' tests + ``` + - **Module**: The name of the Firebolt object (e.g., Localization). + - **Method**: The specific method name (e.g., locale). + - The Firebolt object will be fetched based on the module name and method name and stored in the runtime environment variable. + - Refer [here](#runtime-variables) to know more about runtime variables. +- Example: `Given the environment has been set up for 'Localization:locale' tests` - `Localization` is the firebolt object name. + + **Firebolt Object:** + ```javascript + exports.LOCALIZATION = { + method: resolveAtRuntime('{{module}}.{{method}}'), + params: {}, + validationJsonPath: 'result', + content: { + data: [ + { + type: 'fixture', + validations: [ + { + mode: 'staticContentValidation', + type: resolveAtRuntime('value'), + }, + ], + }, + ], + }, + }; + ``` + +- **Passing the Key Name with Spaces** + + This format is used when the key name does not contain a colon. If the key name contains spaces, they are replaced with underscores, and the entire key name is converted to uppercase. + ##### Format + ```javascript + Given the environment has been set up for 'key Name' tests + ``` + - **key Name:** The Firebolt object name (e.g., Advertising skiprestriction). + - If the key name contains spaces, they are replaced with underscores and the entire key name is converted to uppercase (e.g., `Advertising skiprestriction` → `ADVERTISING_SKIPRESTRICTION`). + + - Example: `Given the environment has been set up for 'Advertising skiprestriction' tests` - + + **Firebolt Object:** + ```javascript + exports.ADVERTISING_SKIPRESTRICTION = { + method: 'Advertising.skipRestriction', + params: {}, + validationJsonPath: 'result', + content: { + data: [ + { + type: 'fixture', + validations: [ + { + mode: 'staticContentValidation', + type: resolveAtRuntime('value'), + }, + ], + }, + ], + }, + }; + ## Supported types of validations [here](./validations.md) ## Runtime Variables @@ -73,6 +154,9 @@ Below are the runtime variables that are used by the FireboltCall object. - **attribute:** Attribute is a field name of the `runtime` environment variable that holds the value of the method name. For example, if the method name is `closedCaptions.setEnabled`, the attribute value will be `enabled`. - **value:** Value is a field name of the `runtime` environment variable that holds the value used for to set the value or for validation. +- **module:** Module is a field name of the `runtime` environment variable that holds the module name. For example, `resolveAtRuntime('{{module}}')` will dynamically resolve the module name from the runtime environment (e.g., `Localization`). +- **method:** Method is a field name of the `runtime` environment variable that holds the method name. For ExampleFor example, `resolveAtRuntime('{{method}}')` will dynamically resolve the method name (e.g., `locale`). +- **appid:** This allows the app ID to be set dynamically. For example, `Cypress.env('firstPartyAppId')` fetches the appId dynamically. **Note:** `resolveAtRuntime()` function is used by the FireboltCall object in order to process runtime variables and other fields. @@ -197,10 +281,10 @@ In the below test case, fetching the Firebolt object `ACCESSIBILITY_CLOSEDCAPTIO ``` Scenario Outline: Accessibility.closedCaptionsSettings - Positive Scenario: - Given we test the 'ACCESSIBILITY_CLOSEDCAPTIONS_SETTINGS' getters and setters '' to '' + Given the environment has been set up for 'ACCESSIBILITY_CLOSEDCAPTIONS_SETTINGS' tests When '3rd party app' registers for the 'Firebolt' event When '3rd party app' invokes the 'Firebolt' get API - Given 1st party app invokes the 'Firebolt' API to set value + Given 1st party app invokes the 'Firebolt' API to set '' to '' And 'Firebolt' platform responds to '1st party app' set API When '3rd party app' invokes the 'Firebolt' get API And 'Firebolt' platform responds to '3rd party app' get API @@ -217,10 +301,10 @@ The following test case demonstrates that multiple APIs can be written using the ``` Scenario Outline: Accessibility.closedCaptionsSettings - Positive Scenario: - Given we test the 'ACCESSIBILITY_CLOSEDCAPTIONS_SETTINGS' getters and setters '' to '' + Given the environment has been set up for 'ACCESSIBILITY_CLOSEDCAPTIONS_SETTINGS' tests When '3rd party app' registers for the 'Firebolt' event When '3rd party app' invokes the 'Firebolt' get API - Given 1st party app invokes the 'Firebolt' API to set value + Given 1st party app invokes the 'Firebolt' API to set '' to '' And 'Firebolt' platform responds to '1st party app' set API When '3rd party app' invokes the 'Firebolt' get API And 'Firebolt' platform responds to '3rd party app' get API @@ -257,8 +341,8 @@ In the below testcase, fetching the firebolt object `CLOSED_CAPTIONS_SETTINGS` a ``` Scenario Outline: ClosedCaptions. - Negative Scenario: expecting error - Given we test the 'CLOSED_CAPTIONS_SETTINGS' getters and setters '' to '' - When 1st party app invokes the 'Firebolt' API to set invalid value + Given the environment has been set up for 'CLOSED_CAPTIONS_SETTINGS' tests + When 1st party app invokes the 'Firebolt' API to set '' to invalid '' And 'Firebolt' platform responds to '1st party app' set API with '' Examples: diff --git a/cypress/fixtures/docs/envSetupFlowchart.png b/cypress/fixtures/docs/envSetupFlowchart.png new file mode 100644 index 000000000..529f08004 Binary files /dev/null and b/cypress/fixtures/docs/envSetupFlowchart.png differ diff --git a/cypress/fixtures/fireboltCalls/accessibility.js b/cypress/fixtures/fireboltCalls/accessibility.js index f7e8c304d..0613609c5 100644 --- a/cypress/fixtures/fireboltCalls/accessibility.js +++ b/cypress/fixtures/fireboltCalls/accessibility.js @@ -1,4 +1,4 @@ -exports.ACCESSIBILITY_CLOSEDCAPTIONS_SETTINGS = { +exports.ACCESSIBILITY_CLOSEDCAPTIONSSETTINGS = { method: 'accessibility.closedCaptionsSettings', params: {}, validationJsonPath: resolveAtRuntime(['result.{{attribute}}', 'result.styles.{{attribute}}']), @@ -29,7 +29,7 @@ exports.ACCESSIBILITY_CLOSEDCAPTIONS_SETTINGS = { }, }; -exports.ACCESSIBILITY_VOICEGUIDANCE_SETTINGS = { +exports.ACCESSIBILITY_VOICEGUIDANCESETTINGS = { method: 'accessibility.voiceGuidanceSettings', params: null, validationJsonPath: resolveAtRuntime(['result.{{attribute}}']), @@ -57,7 +57,7 @@ exports.ACCESSIBILITY_VOICEGUIDANCE_SETTINGS = { }, }; -exports.AUDIODESCRIPTIONS_SETTINGS = { +exports.ACCESSIBILITY_AUDIODESCRIPTIONSETTINGS = { method: 'accessibility.audioDescriptionSettings', params: null, validationJsonPath: resolveAtRuntime(['result.{{attribute}}']), diff --git a/cypress/fixtures/fireboltCalls/account.json b/cypress/fixtures/fireboltCalls/account.json index f59ac87b2..06bc43f3e 100644 --- a/cypress/fixtures/fireboltCalls/account.json +++ b/cypress/fixtures/fireboltCalls/account.json @@ -9,74 +9,12 @@ "method": "account.id", "expected": "error" }, - "ACCOUNT_ID": { - "method": "account.id", - "validationJsonPath": "result", - "content": "ACCOUNT_ID" - }, - "ACCOUNT_UID": { - "method": "account.uid", - "validationJsonPath": "result", - "content": "ACCOUNT_UID" - }, - "INVALID_PARAMETER_ERROR_FOR_ACCOUNT_ID": { - "method": "account.id", - "validationJsonPath": "result", - "content": "INVALID_PARAMS" - }, - "INVALID_PARAMETER_ERROR_FOR_ACCOUNT_UID": { - "method": "account.uid", - "validationJsonPath": "result", - "content": "INVALID_PARAMS" - }, "INVALID_REQUEST_ERROR_FOR_ACCOUNT_UID": { "method": "account.uid", "validationJsonPath": "result", "content": "INVALID_PARAMS", "expectingError": true }, - "PUSH_SESSION_TOKEN": { - "method": "manage_account.session", - "params": "ACCOUNT_SESSION" - }, - "GET_ADVERTISINGID_WITH_CUSTOM_ERROR": { - "method": "advertising.advertisingId", - "params": "TRUE", - "expected": "error" - }, - "SET_ACCOUNT_SESSION_WITH_INVALID_TOKEN": { - "method": "manage_account.session", - "params": "ACCOUNT_SESSION_INVALID_TOKEN", - "expected": "error" - }, - "INVALID_PARAMETERS_FOR_ACCOUNT_SESSION": { - "method": "account.session", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "SET_ACCOUNT_SESSION_WITH_INVALID_EXPIRESIN": { - "method": "manage_account.session", - "params": "ACCOUNT_SESSION_INVALID_EXPIRESIN", - "expected": "error" - }, - "SET_ACCOUNT_SESSION_WITH_INVALID_EXPIRESIN_VALUE": { - "method": "manage_account.session", - "params": "ACCOUNT_EXPIRESIN_INVALID_VALUE", - "expected": "error" - }, - "SET_ACCOUNT_SESSION_WITHOUT_PARAMETERS": { - "method": "manage_account.session", - "expected": "error" - }, - "FETCH_ACCOUNT_ID_WHEN_DEVICE_IS_NOT_PROVISIONED": { - "method": "account.id", - "expected": "error" - }, - "FETCH_ACCOUNT_UID_WHEN_DEVICE_IS_NOT_PROVISIONED": { - "method": "account.uid", - "expected": "error" - }, "FETCH_ACCOUNT_ID_WHEN_ACCOUNT_IS_NOT_PROVISIONED": { "method": "account.id", "expected": "error" diff --git a/cypress/fixtures/fireboltCalls/advertising.json b/cypress/fixtures/fireboltCalls/advertising.json index 30b4b13a8..9b759d9f1 100644 --- a/cypress/fixtures/fireboltCalls/advertising.json +++ b/cypress/fixtures/fireboltCalls/advertising.json @@ -1,26 +1,8 @@ { - "ADVERTISING_ONPOLICYCHANGED": { - "method": "advertising.onPolicyChanged" - }, - "GET_ADVERTISING_POLICY": { - "method": "advertising.policy" - }, - "DISABLE_LIMITADTRACKING": { - "method": "manage_privacy.setAllowAppContentAdTargeting", - "params": "FALSE" - }, - "ENABLE_LIMITADTRACKING": { - "method": "manage_privacy.setAllowAppContentAdTargeting", - "params": "TRUE" - }, "SET_SKIPRESTRICTION_AS_NONE": { "method": "manage_advertising.setSkipRestriction", "params": "NONE" }, - "SET_SKIPRESTRICTION_AS_ADSUNWATCHED": { - "method": "manage_advertising.setSkipRestriction", - "params": "ADVERTISING_SKIPRESTRICTION_ADSUNWATCHED" - }, "SET_SKIPRESTRICTION_AS_ADSALL": { "method": "manage_advertising.setSkipRestriction", "params": "ADVERTISING_SKIPRESTRICTION_ADSALL" @@ -32,117 +14,17 @@ "GET_DEVICEATTRIBUTES": { "method": "advertising.deviceAttributes" }, - "GET_APPBUNDLEID": { - "method": "advertising.appBundleId" - }, - "GET_ADVERTISINGID": { - "method": "advertising.advertisingId" - }, - "GET_INITIALIZATION_PARAMETERS": { - "method": "parameters.initialization" - }, - "GET_NO_COPPA": { - "method": "advertising.config", - "params": "ADVERTISING_NO_COPPA" - }, "GET_COPPA_AS_TRUE": { "method": "advertising.config", "params": "ADVERTISING_COPPA_TRUE" }, - "GET_COPPA_AS_FALSE": { - "method": "advertising.config", - "params": "ADVERTISING_COPPA_FALSE" - }, - "GET_NO_COPPA_WITH_ENVIRONMENT_VALUE_TEST": { - "method": "advertising.config", - "params": "ADVERTISING_NO_COPPA_ENVIRONMENT_TEST" - }, "GET_COPPA_AS_TRUE_WITH_ENVIRONMENT_VALUE_TEST": { "method": "advertising.config", "params": "ADVERTISING_COPPA_TRUE_ENVIRONMENT_TEST" }, - "GET_COPPA_AS_FALSE_WITH_ENVIRONMENT_VALUE_TEST": { - "method": "advertising.config", - "params": "ADVERTISING_COPPA_FALSE_ENVIRONMENT_TEST" - }, - "GET_ONLY_COPPA": { - "method": "advertising.config", - "params": "ADVERTISING_ONLY_COPPA" - }, - "GET_EMPTY_PARAMETER": { - "method": "advertising.config", - "params": "ADVERTISING_EMPTY_PARAMS" - }, - "GET_CONFIG_WITH_EMPTY_PARAMETER": { - "method": "advertising.config", - "expected": "error" - }, - "GET_CONFIG_WITH_INVALID_COPPA": { - "method": "advertising.config", - "params": "ADVERTISING_INVALID_CONFIG_COPPA", - "expected": "error" - }, - "GET_CONFIG_WITH_INVALID_AUTHENTICATIONENTITY": { - "method": "advertising.config", - "params": "ADVERTISING_INVALID_CONFIG_AUTHENTICATIONENTITY", - "expected": "error" - }, - "GET_CONFIG_WITH_INVALID_ENVIRONMENT_DATATYPE": { - "method": "advertising.config", - "params": "ADVERTISING_INVALID_CONFIG_ENVIRONMENT_DATATYPE", - "expected": "error" - }, - "GET_CONFIG_WITH_INVALID_ENVIRONMENT": { - "method": "advertising.config", - "params": "ADVERTISING_INVALID_CONFIG_ENVIRONMENT", - "expected": "error" - }, - "GET_CONFIG_WITH_INTEGER_PARAMETER": { - "method": "advertising.config", - "params": "ADVERTISING_INTEGER_PARAM", - "expected": "error" - }, "SET_SKIPRESTRICTION_WITH_UNDEFINED_PARAMETER": { "method": "manage_advertising.setSkipRestriction" }, - "GET_ADVERTISINGID_FOR_SCOPE_BROWSER": { - "method": "advertising.advertisingId", - "params": "ADVERTISING_ADVERTISINGID_SCOPE_BROWSER" - }, - "GET_ADVERTISINGID_FOR_SCOPE_CONTENT": { - "method": "advertising.advertisingId", - "params": "ADVERTISING_ADVERTISINGID_SCOPE_CONTENT" - }, - "GET_ADVERTISINGID_WITH_INVALID_TYPE": { - "method": "advertising.advertisingId", - "params": "ADVERTISING_ADVERTISINGID_INVALID_TYPE", - "expected": "error" - }, - "GET_ADVERTISINGID_WITH_INVALID_ID": { - "method": "advertising.advertisingId", - "params": "ADVERTISING_ADVERTISINGID_INVALID_ID", - "expected": "error" - }, - "ADVERTISING_POLICY_LIMITADTRACKING_AS_TRUE": { - "method": "advertising.policy", - "validationJsonPath": "result.limitAdTracking", - "content": "ADVERTISING_POLICY_TRUE" - }, - "ADVERTISING_POLICY_LIMITADTRACKING_AS_FALSE": { - "method": "advertising.policy", - "validationJsonPath": "result.limitAdTracking", - "content": "ADVERTISING_POLICY_FALSE" - }, - "ONPOLICYCHANGED_FOR_ADVERTISING_LIMITADTRACKING_WITH_TRUE": { - "event": "advertising.onPolicyChanged", - "validationJsonPath": "eventResponse.limitAdTracking", - "content": "ADVERTISING_POLICY_TRUE" - }, - "ONPOLICYCHANGED_FOR_ADVERTISING_LIMITADTRACKING_WITH_FALSE": { - "event": "advertising.onPolicyChanged", - "validationJsonPath": "eventResponse.limitAdTracking", - "content": "ADVERTISING_POLICY_FALSE" - }, "ADVERTISING_POLICY_SKIPRESTRICTION_AS_NONE": { "method": "advertising.policy", "validationJsonPath": "result.skipRestriction", @@ -188,56 +70,11 @@ "validationJsonPath": "result", "content": "ADVERTISING_DEVICEATTRIBUTES" }, - "ADVERTISING_APPBUNDLEID": { - "method": "advertising.appBundleId", - "validationJsonPath": "result", - "content": "ADVERTISING_APPBUNDLEID" - }, - "ADVERTISING_CONFIG_COPPA_AS_ZERO": { - "method": "advertising.config", - "validationJsonPath": "result.coppa", - "content": "ADVERTISING_CONFIG_ZERO" - }, - "ADVERTISING_CONFIG_COPPA_AS_ONE": { - "method": "advertising.config", - "validationJsonPath": "result.coppa", - "content": "ADVERTISING_CONFIG_ONE" - }, - "INVALID_PARAMETER_ERROR_ADVERTISING_CONFIG": { - "method": "advertising.config", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, "ADVERTISING_SKIPRESTRICTION": { "method": "advertising.setSkipRestriction", "validationJsonPath": "result", "content": "ADVERTISING_SKIPRESTRICTION" }, - "INVALID_PARAMETER_FOR_ADVERTISING_ADVERTISINGID": { - "method": "advertising.advertisingId", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "ADVERTISING_CONFIG": { - "method": "advertising.config", - "validationJsonPath": "result", - "content": "ADVERTISING_CONFIGURATION" - }, - "LIMITADTRACKING_OFF_FOR_ADVERTISINGID": { - "method": "advertising.advertisingId", - "validationJsonPath": "result", - "content": "ADVERTISING_ADVERTISINGID_ADOFF" - }, - "LIMITADTRACKING_ON_FOR_ADVERTISINGID": { - "method": "advertising.advertisingId", - "validationJsonPath": "result", - "content": "ADVERTISING_ADVERTISINGID_ADON" - }, - "RESET_IDENTIFIER_FOR_ADVERTISING": { - "method": "manage_advertising.resetIdentifier" - }, "NULL_FOR_ADVERTISING_RESETIDENTIFIER": { "method": "advertising.resetIdentifier", "validationJsonPath": "result", @@ -300,52 +137,6 @@ "content": "INVALID_PARAMS", "expectingError": true }, - "GET_ADVERTISINGID_WITHOUT_SCOPE": { - "method": "advertising.advertisingId", - "params": "ADVERTISING_ADVERTISINGID_WITHOUT_SCOPE" - }, - "GET_ADVERTISINGID_WITH_SCOPE_ID_AS_RANDOM_STRING": { - "method": "advertising.advertisingId", - "params": "ADVERTISING_ADVERTISINGID_WITH_RANDOM_STRING_SCOPE_ID" - }, - "GET_ADVERTISINGID_WITH_SCOPE_ID_AS_EMPTY_STRING": { - "method": "advertising.advertisingId", - "params": "ADVERTISING_ADVERTISINGID_WITH_EMPTY_STRING_SCOPE_ID" - }, - "GET_ADVERTISINGID_WITH_INVALID_SCOPE_TYPE": { - "method": "advertising.advertisingId", - "params": "ADVERTISING_ADVERTISINGID_SCOPE_TYPE_INVALID_STRING", - "expected": "error" - }, - "GET_ADVERTISINGID_WITHOUT_SCOPE_TYPE_AND_ID": { - "method": "advertising.advertisingId", - "params": "ADVERTISING_ADVERTISINGID_WITHOUT_SCOPE_TYPE_ID", - "expected": "error" - }, - "GET_ADVERTISINGID_WITHOUT_SCOPE_ID": { - "method": "advertising.advertisingId", - "params": "ADVERTISING_ADVERTISINGID_WITHOUT_SCOPE_ID", - "expected": "error" - }, - "GET_ADVERTISINGID_WITHOUT_SCOPE_TYPE": { - "method": "advertising.advertisingId", - "params": "ADVERTISING_ADVERTISINGID_WITHOUT_SCOPE_TYPE", - "expected": "error" - }, - "GET_ADVERTISINGID_WITH_INVALID_SCOPE": { - "method": "advertising.advertisingId", - "params": "ADVERTISING_ADVERTISINGID_WITHOUT_SCOPE_TYPE", - "expected": "error" - }, - "SET_TRUE_FOR_ALLOWAPPCONTENTADTARGETING": { - "method": "manage_privacy.setAllowAppContentAdTargeting", - "params": "TRUE" - }, - "ONADVERTISINGPOLICYCHANGED": { - "event": "advertising.onPolicyChanged", - "validationJsonPath": "eventResponse", - "content": "NULL" - }, "EXPECT_ERROR_FOR_ADVERTISING_POLICY": { "method": "advertising.policy", "expected": "error" diff --git a/cypress/fixtures/fireboltCalls/authentication.json b/cypress/fixtures/fireboltCalls/authentication.json index f67b4820d..6bda639bd 100644 --- a/cypress/fixtures/fireboltCalls/authentication.json +++ b/cypress/fixtures/fireboltCalls/authentication.json @@ -1,8 +1,4 @@ { - "GET_THE_AUTHENTICATION_TOKEN_FOR_PLATFORM": { - "method": "authentication.token", - "params": "AUTHENTICATION_PLATFORM" - }, "GET_THE_AUTHENTICATION_TOKEN_FOR_DEVICE": { "method": "authentication.token", "params": "AUTHENTICATION_DEVICE" @@ -11,69 +7,6 @@ "method": "authentication.token", "params": "AUTHENTICATION_DISTRIBUTOR" }, - "GET_THE_AUTHENTICATION_TOKEN_FOR_DISTRIBUTOR_CIMA": { - "method": "authentication.token", - "params": "AUTHENTICATION_DISTRIBUTOR_CIMA" - }, - "GET_THE_AUTHENTICATION_TOKEN_FOR_DISTRIBUTOR_OAT": { - "method": "authentication.token", - "params": "AUTHENTICATION_DISTRIBUTOR_OAT" - }, - "FETCH_DEVICE_TOKEN": { - "method": "authentication.device" - }, - "FETCH_SESSION_TOKEN": { - "method": "authentication.session" - }, - "FETCH_ROOT_TOKEN": { - "method": "authentication.root" - }, - "GET_TOKEN_WITH_PLATFORM1_PARAMETER": { - "method": "authentication.token", - "params": "AUTHENTICATION_PLATFORM1", - "expected": "error" - }, - "GET_TOKEN_WITH_TRUE_PARAMETER": { - "method": "authentication.token", - "params": "TRUE", - "expected": "error" - }, - "GET_TOKEN_WITH_INTEGER_PARAMETER": { - "method": "authentication.token", - "params": "INTEGER123", - "expected": "error" - }, - "PLATFORM_AUTHENTICATION_TOKEN": { - "method": "authentication.token", - "validationJsonPath": "result", - "content": "AUTHENTICATION_DECODE_JWT_AUTHENTICATION_TOKEN" - }, - "DECODE_BASE64_AUTHENTICATION_TOKEN": { - "method": "authentication.token", - "validationJsonPath": "result", - "content": "AUTHENTICATION_DECODE_BASE64_AUTHENTICATION_TOKEN" - }, - "AUTHENTICATION_DEVICE": { - "method": "authentication.device", - "validationJsonPath": "result", - "content": "AUTHENTICATION_DECODE_BASE64_AUTHENTICATION_DEVICE_TOKEN" - }, - "AUTHENTICATION_SESSION": { - "method": "authentication.session", - "validationJsonPath": "result", - "content": "AUTHENTICATION_DECODE_BASE64_AUTHENTICATION_SESSION_TOKEN" - }, - "AUTHENTICATION_ROOT": { - "method": "authentication.root", - "validationJsonPath": "result", - "content": "AUTHENTICATION_DECODE_BASE64_AUTHENTICATION_ROOT_TOKEN" - }, - "INVALID_PARAMETER_ERROR_AUTHENTICATION_TOKEN": { - "method": "authentication.token", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, "EXPECT_ERROR_FOR_DEVICE_TOKEN": { "method": "authentication.device", "expected": "error" diff --git a/cypress/fixtures/fireboltCalls/capabilities.js b/cypress/fixtures/fireboltCalls/capabilities.js index d92418bbf..41530a31d 100644 --- a/cypress/fixtures/fireboltCalls/capabilities.js +++ b/cypress/fixtures/fireboltCalls/capabilities.js @@ -877,10 +877,6 @@ exports.CHECK_IF_ACCOUNT_UID_CAPABILITY_IS_PERMITTED = { method: 'capabilities.permitted', params: this.CAPABILITIES_VARIABLES.CAPABILITIES.PERMITTED_ACCOUNT_UID_USE_ROLE_PARAM, }; -exports.GET_INFO_OF_DISCOVERY_SIGNINSTATUS_CAPABILITY = { - method: 'capabilities.info', - params: this.CAPABILITIES_VARIABLES.CAPABILITIES.INFO_DISCOVERY_SIGNINSTATUS, -}; exports.CHECK_IF_DISCOVERY_SIGNINSTATUS_CAPABILITY_IS_SUPPORTED = { method: 'capabilities.supported', params: this.CAPABILITIES_VARIABLES.CAPABILITIES.SUPPORTED_DISCOVERY_SIGNINSTATUS, @@ -1024,7 +1020,6 @@ exports.CHECK_IF_AUTHENTICATION_TOKEN_PLATFORM_CAPABILITY_IS_PERMITTED = { method: 'capabilities.permitted', params: this.CAPABILITIES_VARIABLES.CAPABILITIES.PERMITTED_TOKEN_PLATFORM_USE_ROLE_PARAM, }; - exports.GET_INFO_OF_AUTHENTICATION_TOKEN_ROOT_CAPABILITY = { method: 'capabilities.info', params: this.CAPABILITIES_VARIABLES.CAPABILITIES.INFO_TOKEN_ROOT, diff --git a/cypress/fixtures/fireboltCalls/capabilities.json b/cypress/fixtures/fireboltCalls/capabilities.json index 85b68ad64..ec35a9c40 100644 --- a/cypress/fixtures/fireboltCalls/capabilities.json +++ b/cypress/fixtures/fireboltCalls/capabilities.json @@ -17,28 +17,11 @@ "validationJsonPath": "result", "content": "CAPABILITIES_INFO" }, - "CHECK_AVAILABILITY_OF_KEYBOARD_CAPABILITY":{ - "method": "capabilities.available", - "params": "CAPABILITIES_GET_KEYBOARD" - }, "TRUE_FOR_KEYBOARD_CAPABILITY_AVAILABILITY":{ "method": "capabilities.available", "validationJsonPath": "result", "content": "TRUE" }, - "CHECK_AVAILABILITY_OF_ACKNOWLEDGECHALLENGE_CAPABILITY":{ - "method": "capabilities.available", - "params": "CAPABILITIES_GET_ACKNOWLEDGECHALLENGE" - }, - "TRUE_FOR_ACKNOWLEDGECHALLENGE_CAPABILITY_AVAILABILITY":{ - "method": "capabilities.available", - "validationJsonPath": "result", - "content": "TRUE" - }, - "CHECK_AVAILABILITY_OF_PINCHALLENGE_CAPABILITY":{ - "method": "capabilities.available", - "params": "CAPABILITIES_GET_PINCHALLENGE" - }, "TRUE_FOR_PINCHALLENGE_CAPABILITY_AVAILABILITY":{ "method": "capabilities.available", "validationJsonPath": "result", @@ -53,174 +36,6 @@ "validationJsonPath": "result", "content": "TRUE" }, - "CHECK_IF_CAPABILITY_IS_GRANTED_WITH_ROLE_AS_USE":{ - "method": "capabilities.granted", - "params": "CAPABILITIES_GRANTED_WITH_OPTIONS_ROLE_USE" - }, - "CHECK_IF_CAPABILITY_IS_GRANTED_WITH_ROLE_AS_MANAGE":{ - "method": "capabilities.granted", - "params": "CAPABILITIES_GRANTED_WITH_OPTIONS_ROLE_MANAGE" - }, - "CHECK_IF_CAPABILITY_IS_GRANTED_WITH_ROLE_AS_PROVIDE":{ - "method": "capabilities.granted", - "params": "CAPABILITIES_GRANTED_WITH_OPTIONS_ROLE_PROVIDE" - }, - "GET_INFO_OF_USERGRANT_PINCHALLENGE_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_USERGRANT_PINCHALLENGE" - }, - "GET_INFO_OF_DEVICE_DISTRIBUTOR_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_DEVICE_DISTRIBUTOR" - }, - "GET_INFO_OF_WIFI_NETWORKSTATUS_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_NETWORK_STATUS" - }, - "GET_INFO_OF_LOCALIZATION_TIMEZONE_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_LOCALIZATION_TIMEZONE" - }, - "GET_INFO_OF_PRIVACY_SETTINGS_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_PRIVACY_SETTINGS_INFO_PARAM" - }, - "GET_INFO_OF_WIFI_PROTOCOL_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_PROTOCOL_WIFI" - }, - "GET_INFO_OF_USERGRANT_ACKNOWLEDGECHALLENGE_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_USERGRANT_ACKNOWLEDGECHALLENGE" - }, - "GET_INFO_OF_GRANTS_STATE_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_GRANTS_STATE" - }, - "CHECK_IF_USERGRANT_PINCHALLENGE_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_USERGRANT_PINCHALLENGE" - }, - "CHECK_IF_DEVICE_DISTRIBUTOR_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_DEVICE_DISTRIBUTOR" - }, - "CHECK_IF_WIFI_NETWORKSTATUS_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_NETWORK_STATUS" - }, - "CHECK_IF_LOCALIZATION_TIMEZONE_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_LOCALIZATION_TIMEZONE" - }, - "CHECK_IF_PRIVACY_SETTINGS_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_PRIVACY_SETTINGS" - }, - "CHECK_IF_WIFI_PROTOCOL_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_PROTOCOL_WIFI" - }, - "CHECK_IF_USERGRANT_ACKNOWLEDGECHALLENGE_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_USERGRANT_ACKNOWLEDGECHALLENGE" - }, - "CHECK_IF_FOR_GRANTS_STATE_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_GRANTS_STATE" - }, - "EXPECTED_VALUE_FOR_SUPPORTED_API":{ - "method": "capabilities.supported", - "validationJsonPath": "result", - "content": "CAPABILITIES_SUPPORTED" - }, - "EXPECTED_VALUE_FOR_INFO_API":{ - "method": "capabilities.info", - "validationJsonPath": "result", - "content": "CAPABILITIES_INFO" - }, - "EXPECTED_CAPABILITY_IS_REQUESTED":{ - "method": "capabilities.request", - "validationJsonPath": "result", - "content": "CAPABILITIES_REQUEST" - }, - "EXPECTED_VALUE_FOR_PERMITTED_API":{ - "method": "capabilities.permitted", - "validationJsonPath": "result", - "content": "CAPABILITIES_PERMITTED" - }, - "GET_INFO_OF_LIFECYCLE_READY_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_LIFECYCLE_READY" - }, - "CHECK_IF_LIFECYCLE_READY_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_LIFECYCLE_READY" - }, - "CHECK_IF_LIFECYCLE_READY_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_LIFECYCLE_READY_USE_ROLE_PARAM" - }, - "GET_INFO_OF_LIFECYCLE_STATE_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_LIFECYCLE_STATE" - }, - "CHECK_IF_LIFECYCLE_STATE_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_LIFECYCLE_STATE" - }, - "CHECK_IF_LIFECYCLE_STATE_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_LIFECYCLE_STATE_USE_ROLE_PARAM" - }, - "GET_INFO_OF_LIFECYCLE_LAUNCH_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_LIFECYCLE_LAUNCH" - }, - "CHECK_IF_LIFECYCLE_LAUNCH_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_LIFECYCLE_LAUNCH" - }, - "CHECK_IF_LIFECYCLE_LAUNCH_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_LIFECYCLE_LAUNCH_USE_ROLE_PARAM" - }, - "GET_INFO_OF_ADVERTISING_IDENTIFIER_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_ADVERTISING_IDENTIFIER" - }, - "CHECK_IF_ADVERTISING_IDENTIFIER_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_ADVERTISING_IDENTIFIER" - }, - "CHECK_IF_ADVERTISING_IDENTIFIER_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_ADVERTISING_IDENTIFIER_USE_ROLE_PARAM" - }, - "GET_INFO_OF_ACCOUNT_ID_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_ACCOUNT_ID" - }, - "CHECK_IF_ACCOUNT_ID_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_ACCOUNT_ID" - }, - "CHECK_IF_ACCOUNT_ID_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_ACCOUNT_ID_USE_ROLE_PARAM" - }, - "GET_INFO_OF_ACCOUNT_UID_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_ACCOUNT_UID" - }, - "CHECK_IF_ACCOUNT_UID_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_ACCOUNT_UID" - }, - "CHECK_IF_ACCOUNT_UID_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_ACCOUNT_UID_USE_ROLE_PARAM" - }, "CHECK_IF_ACCOUNT_UID_CAPABILITY_IS_GRANTED_WITH_CONTEXT_ROLE_USE":{ "method": "capabilities.granted", "params": "CAPABILITIES_PERMITTED_ACCOUNT_UID_USE_ROLE_PARAM", @@ -272,473 +87,6 @@ "method": "capabilities.info", "params": "CAPABILITIES_INFO_DISCOVERY_SIGNINSTATUS" }, - "CHECK_IF_DISCOVERY_SIGNINSTATUS_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_DISCOVERY_SIGNINSTATUS" - }, - "CHECK_IF_DISCOVERY_SIGNINSTATUS_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DISCOVERY_SIGNINSTATUS_USE_ROLE_PARAM" - }, - "GET_INFO_OF_DISCOVERY_WATCHNEXT_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_DISCOVERY_WATCHNEXT" - }, - "CHECK_IF_DISCOVERY_WATCHNEXT_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_DISCOVERY_WATCHNEXT" - }, - "CHECK_IF_DISCOVERY_WATCHNEXT_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DISCOVERY_WATCHNEXT_USE_ROLE_PARAM" - }, - "GET_INFO_OF_DISCOVERY_WATCHED_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_DISCOVERY_WATCHED" - }, - "CHECK_IF_DISCOVERY_WATCHED_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_DISCOVERY_WATCHED" - }, - "CHECK_IF_DISCOVERY_WATCHED_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DISCOVERY_WATCHED_USE_ROLE_PARAM" - }, - "GET_INFO_OF_DISCOVERY_ENTITYINFO_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_DISCOVERY_ENTITYINFO" - }, - "CHECK_IF_DISCOVERY_ENTITYINFO_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_DISCOVERY_ENTITYINFO" - }, - "CHECK_IF_DISCOVERY_ENTITYINFO_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DISCOVERY_ENTITYINFO_USE_ROLE_PARAM" - }, - "GET_INFO_OF_DISCOVERY_NAVIGATETO_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_DISCOVERY_NAVIGATETO" - }, - "CHECK_IF_DISCOVERY_NAVIGATETO_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_DISCOVERY_NAVIGATETO" - }, - "CHECK_IF_DISCOVERY_NAVIGATETO_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DISCOVERY_NAVIGATETO_USE_ROLE_PARAM" - }, - "GET_INFO_OF_DISCOVERY_POLICY_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_DISCOVERY_POLICY" - }, - "CHECK_IF_DISCOVERY_POLICY_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_DISCOVERY_POLICY" - }, - "CHECK_IF_DISCOVERY_POLICY_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DISCOVERY_POLICY_USE_ROLE_PARAM" - }, - "GET_INFO_OF_DISCOVERY_PURCHASEDCONTENT_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_DISCOVERY_PURCHASED_CONTENT" - }, - "CHECK_IF_DISCOVERY_PURCHASEDCONTENT_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_DISCOVERY_PURCHASED_CONTENT" - }, - "CHECK_IF_DISCOVERY_PURCHASEDCONTENT_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DISCOVERY_PURCHASED_CONTENT_USE_ROLE_PARAM" - }, - "GET_INFO_OF_KEYBOARD_INPUT_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_INPUT_KEYBOARD" - }, - "CHECK_IF_KEYBOARD_INPUT_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_INPUT_KEYBOARD" - }, - "CHECK_IF_KEYBOARD_INPUT_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_INPUT_KEYBOARD_USE_ROLE_PARAM" - }, - "GET_INFO_OF_LOCALIZATION_LOCATION_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_LOCALIZATION_LOCATION" - }, - "CHECK_IF_LOCALIZATION_LOCATION_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_LOCALIZATION_LOCATION" - }, - "CHECK_IF_LOCALIZATION_LOCATION_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_LOCALIZATION_LOCATION_USE_ROLE_PARAM" - }, - "GET_INFO_OF_PROTOCOLDIAL_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_PROTOCOL_DIAL" - }, - "CHECK_IF_PROTOCOLDIAL_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_PROTOCOL_DIAL" - }, - "CHECK_IF_PROTOCOLDIAL_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_PROTOCOL_DIAL_USE_ROLE_PARAM" - }, - - "GET_INFO_OF_AUTHENTICATION_TOKEN_DEVICE_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_TOKEN_DEVICE" - }, - "CHECK_IF_AUTHENTICATION_TOKEN_DEVICE_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_TOKEN_DEVICE" - }, - "CHECK_IF_AUTHENTICATION_TOKEN_DEVICE_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_TOKEN_DEVICE_USE_ROLE_PARAM" - }, - - "GET_INFO_OF_AUTHENTICATION_TOKEN_PLATFORM_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_TOKEN_PLATFORM" - }, - "CHECK_IF_AUTHENTICATION_TOKEN_PLATFORM_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_TOKEN_PLATFORM" - }, - "CHECK_IF_AUTHENTICATION_TOKEN_PLATFORM_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_TOKEN_PLATFORM_USE_ROLE_PARAM" - }, - - "GET_INFO_OF_AUTHENTICATION_TOKEN_ROOT_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_TOKEN_ROOT" - }, - "CHECK_IF_AUTHENTICATION_TOKEN_ROOT_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_TOKEN_ROOT" - }, - "CHECK_IF_AUTHENTICATION_TOKEN_ROOT_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_TOKEN_ROOT_USE_ROLE_PARAM" - }, - - "GET_INFO_OF_APPROVECONTENT_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_APPROVE_CONTENT" - }, - "CHECK_IF_APPROVECONTENT_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_APPROVE_CONTENT" - }, - "CHECK_IF_APPROVECONTENT_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_APPROVE_CONTENT_USE_ROLE_PARAM" - }, - - "GET_INFO_OF_PROFILE_APPROVEPURCHASE_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_APPROVE_PURCHASE" - }, - "CHECK_IF_PROFILE_APPROVEPURCHASE_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_APPROVE_PURCHASE" - }, - "CHECK_IF_PROFILE_APPROVEPURCHASE_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_APPROVE_PURCHASE_USE_ROLE_PARAM" - }, - - "GET_INFO_OF_PROFILE_FLAGS_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_PROFILE_FLAGS" - }, - "CHECK_IF_PROFILE_FLAGS_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_PROFILE_FLAGS" - }, - "CHECK_IF_PROFILE_FLAGS_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_PROFILE_FLAGS_USE_ROLE_PARAM" - }, - - "GET_INFO_OF_DEVICE_ID_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_DEVICE_ID" - }, - "CHECK_IF_DEVICE_ID_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_DEVICE_ID" - }, - "CHECK_IF_DEVICE_ID_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DEVICE_ID_USE_ROLE_PARAM" - }, - - "GET_INFO_OF_DEVICE_INFO_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_DEVICE_INFO" - }, - "CHECK_IF_DEVICE_INFO_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_DEVICE_INFO" - }, - "CHECK_IF_DEVICE_INFO_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DEVICE_INFO_USE_ROLE_PARAM" - }, - - "GET_INFO_OF_DEVICE_MAKE_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_DEVICE_MAKE" - }, - "CHECK_IF_DEVICE_MAKE_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_DEVICE_MAKE" - }, - "CHECK_IF_DEVICE_MAKE_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DEVICE_MAKE_USE_ROLE_PARAM" - }, - - - "GET_INFO_OF_DEVICE_MODEL_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_DEVICE_MODEL" - }, - "CHECK_IF_DEVICE_MODEL_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_DEVICE_MODEL" - }, - "CHECK_IF_DEVICE_MODEL_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DEVICE_MODEL_USE_ROLE_PARAM" - }, - - "GET_INFO_OF_DEVICE_SKU_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_DEVICE_SKU" - }, - "CHECK_IF_DEVICE_SKU_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_DEVICE_SKU" - }, - "CHECK_IF_DEVICE_SKU_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DEVICE_SKU_USE_ROLE_PARAM" - }, - - "GET_INFO_OF_DEVICE_UID_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_DEVICE_UID" - }, - "CHECK_IF_DEVICE_UID_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_DEVICE_UID" - }, - "CHECK_IF_DEVICE_UID_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DEVICE_UID_USE_ROLE_PARAM" - }, - - "GET_INFO_OF_METRICS_GENERAL_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_METRICS_GENERAL" - }, - "CHECK_IF_METRICS_GENERAL_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_METRICS_GENERAL" - }, - "CHECK_IF_METRICS_GENERAL_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_METRICS_GENERAL_USE_ROLE_PARAM" - }, - - "GET_INFO_OF_METRICS_MEDIA_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_METRICS_MEDIA" - }, - "CHECK_IF_METRICS_MEDIA_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_METRICS_MEDIA" - }, - "CHECK_IF_METRICS_MEDIA_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_METRICS_MEDIA_USE_ROLE_PARAM" - }, - - "GET_INFO_OF_PRIVACY_ADVERTISING_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_PRIVACY_ADVERTISING" - }, - "CHECK_IF_PRIVACY_ADVERTISING_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_PRIVACY_ADVERTISING" - }, - "CHECK_IF_PRIVACY_ADVERTISING_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_PRIVACY_ADVERTISING_USE_ROLE_PARAM" - }, - - "GET_INFO_OF_ADVERTISING_CONFIGURATION_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_ADVERTISING_CONFIGURATION" - }, - "CHECK_IF_ADVERTISING_CONFIGURATION_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_ADVERTISING_CONFIGURATION" - }, - "CHECK_IF_ADVERTISING_CONFIGURATION_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_ADVERTISING_CONFIGURATION" - }, - - "GET_INFO_OF_LOCALIZATION_LOCALITY_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_LOCALIZATION_LOCALITY" - }, - "CHECK_IF_LOCALIZATION_LOCALITY_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_LOCALIZATION_LOCALITY" - }, - "CHECK_IF_LOCALIZATION_LOCALITY_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_LOCALIZATION_LOCALITY" - }, - - "GET_INFO_OF_LOCALIZATION_POSTALCODE_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_LOCALIZATION_POSTALCODE" - }, - "CHECK_IF_LOCALIZATION_POSTALCODE_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_LOCALIZATION_POSTALCODE" - }, - "CHECK_IF_LOCALIZATION_POSTALCODE_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_LOCALIZATION_POSTALCODE" - }, - - "GET_INFO_OF_LOCALIZATION_COUNTRYCODE_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_LOCALIZATION_COUNTRYCODE" - }, - "CHECK_IF_LOCALIZATION_COUNTRYCODE_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_LOCALIZATION_COUNTRYCODE" - }, - "CHECK_IF_LOCALIZATION_COUNTRYCODE_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_LOCALIZATION_COUNTRYCODE" - }, - - "GET_INFO_OF_LOCALIZATION_LANGUAGE_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_LOCALIZATION_LANGUAGE" - }, - "CHECK_IF_LOCALIZATION_LANGUAGE_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_LOCALIZATION_LANGUAGE" - }, - "CHECK_IF_LOCALIZATION_LANGUAGE_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_LOCALIZATION_LANGUAGE" - }, - - "GET_INFO_OF_LOCALIZATION_LOCALE_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_LOCALIZATION_LOCALE" - }, - "CHECK_IF_LOCALIZATION_LOCALE_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_LOCALIZATION_LOCALE" - }, - "CHECK_IF_LOCALIZATION_LOCALE_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_LOCALIZATION_LOCALE" - }, - - "GET_INFO_OF_ACCESSIBILITY_CLOSEDCAPTIONS_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_ACCESSIBILITY_CLOSEDCAPTIONS" - }, - "CHECK_IF_ACCESSIBILITY_CLOSEDCAPTIONS_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_ACCESSIBILITY_CLOSEDCAPTIONS" - }, - "CHECK_IF_ACCESSIBILITY_CLOSEDCAPTIONS_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_ACCESSIBILITY_CLOSEDCAPTIONS" - }, - - "GET_INFO_OF_ACCESSIBILITY_VOICEGUIDANCE_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_ACCESSIBILITY_VOICEGUIDANCE" - }, - "CHECK_IF_ACCESSIBILITY_VOICEGUIDANCE_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_ACCESSIBILITY_VOICEGUIDANCE" - }, - "CHECK_IF_ACCESSIBILITY_VOICEGUIDANCE_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_ACCESSIBILITY_VOICEGUIDANCE" - }, - - "GET_INFO_OF_DEVICE_NAME_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_DEVICE_NAME" - }, - "CHECK_IF_DEVICE_NAME_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_DEVICE_NAME" - }, - "CHECK_IF_DEVICE_NAME_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DEVICE_NAME" - }, - "GET_INFO_OF_AUTHENTICATION_TOKEN_SESSION_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_TOKEN_SESSION" - }, - "CHECK_IF_AUTHENTICATION_TOKEN_SESSION_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_TOKEN_SESSION" - }, - "CHECK_IF_AUTHENTICATION_TOKEN_SESSION_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_TOKEN_SESSION_USE_ROLE_PARAM" - }, - "GET_INFO_OF_SECURE_STORAGE_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_SECURE_STORAGE_INFO_PARAM" - }, - "CHECK_IF_SECURE_STORAGE_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_SECURE_STORAGE" - }, - "CHECK_IF_SECURE_STORAGE_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_SECURE_STORAGE_USE_ROLE_PARAM" - }, - - "GET_INFO_OF_CAPABILITY_INFO_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_CAPABILITY_INFO_INFO_PARAM" - }, - "CHECK_IF_CAPABILITY_INFO_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_CAPABILITY_INFO" - }, - "CHECK_IF_CAPABILITY_INFO_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_CAPABILITY_INFO_USE_ROLE_PARAM" - }, - "GET_INFO_OF_CAPABILITIES_FOR_CAPABILITY_REQUEST":{ "method": "capabilities.info", "params": "CAPABILITIES_CAPABILITY_REQUEST_INFO_PARAM" @@ -751,83 +99,6 @@ "method": "capabilities.permitted", "params": "CAPABILITIES_PERMITTED_CAPABILITY_REQUEST_USE_ROLE_PARAM" }, - - "GET_INFO_OF_DISCOVERY_CONTENTACCESS_CAPABILITY":{ - "method": "capabilities.info", - "params": "CAPABILITIES_DISCOVERY_CONTENTACCESS_INFO_PARAM" - }, - "CHECK_IF_DISCOVERY_CONTENTACCESS_CAPABILITY_IS_SUPPORTED":{ - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_DISCOVERY_CONTENTACCESS" - }, - "CHECK_IF_DISCOVERY_CONTENTACCESS_CAPABILITY_IS_PERMITTED":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DISCOVERY_CONTENTACCESS_USE_ROLE_PARAM" - }, - "CHECK_IF_DISCOVERY_ENTITLEMENTS_CAPABILITY_IS_PERMITTED_WITH_ROLE_USE": { - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DISCOVERY_ENTITLE_USE_ROLE_PARAM" - }, - "CHECK_IF_DISCOVERY_WATCHNEXT_CAPABILITY_IS_PERMITTED_WITH_ROLE_USE":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DISCOVERY_WATCHNEXT_USE_ROLE_PARAM" - }, - "CHECK_IF_DISCOVERY_WATCHED_CAPABILITY_IS_PERMITTED_WITH_ROLE_USE":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DISCOVERY_WATCHED_USE_ROLE_PARAM" - }, - "GET_INFO_OF_CAPABILITIES_WITH_INVALID_CATEGORY": { - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_INVALID_CATEGORY", - "expected": "error" - }, - "GET_INFO_OF_CAPABILITIES_WITH_EMPTY_PARAM": { - "method": "capabilities.info", - "expected": "error" - }, - "GET_INFO_OF_CAPABILITIES_WITH_EMPTY_CAPABILITIES": { - "method": "capabilities.info", - "params": "CAPABILITIES_INFO_EMPTY_CAPABILITIES", - "expected": "error" - }, - "GET_PERMITTED_CAPABILITIES_WITH_INVALID_ROLE": { - "method": "capabilities.permitted", - "params": "CAPABILITIES_WIFI_INVALID_ROLE_PARAM", - "expected": "error" - }, - "GET_PERMITTED_CAPABILITIES_WITH_INVALID_CAPABILITY": { - "method": "capabilities.permitted", - "params": "CAPABILITIES_INVALID_CAPABILITY", - "expected": "error" - }, - "CHECK_AVAILABILITY_OF_CAPABILITIES_WITH_INVALID_CAPABILITY": { - "method": "capabilities.available", - "params": "CAPABILITIES_KEYBOARD_INVALID_CAPABILITY", - "expected": "error" - }, - "CHECK_AVAILABILITY_OF_CAPABILITIES_WITH_EMPTY_PARAM": { - "method": "capabilities.available", - "expected": "error" - }, - "GET_SUPPORTED_CAPABILITIES_WITH_EMPTY_PARAM": { - "method": "capabilities.supported", - "expected": "error" - }, - "GET_SUPPORTED_CAPABILITIES_MULTIPLE_CAPABILITY": { - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_MULTIPLE_CAPABILITY", - "expected": "error" - }, - "GET_SUPPORTED_CAPABILITIES_INVALID_CAPABILITY": { - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_INVALID_CAPABILITY", - "expected": "error" - }, - "CAPABILITIES_REQUEST_WITH_INVALID_ROLE": { - "method": "capabilities.request", - "params": "CAPABILITIES_REQUEST_INVALID_ROLE", - "expected": "error" - }, "CAPABILITIES_REQUEST_WITH_NULL_ROLE": { "method": "capabilities.request", "params": "CAPABILITIES_REQUEST_NULL_ROLE", @@ -882,100 +153,6 @@ "params": "CAPABILITIES_GRANTED_WITHOUT_CAPABILITY", "expected": "error" }, - "GET_GRANTED_CAPABILITIES_WITH_NULL_CAPABILITY": { - "method": "capabilities.granted", - "params": "CAPABILITIES_GRANTED_RANDOM_STRING_CAPABILITY", - "expected": "error" - }, - "GET_GRANTED_CAPABILITIES_WITH_RANDOM_STRING_CAPABILITY": { - "method": "capabilities.granted", - "params": "CAPABILITIES_GRANTED_NULL_CAPABILITY", - "expected": "error" - }, - "GET_GRANTED_CAPABILITIES_WITH_NUMBER_CAPABILITY": { - "method": "capabilities.granted", - "params": "CAPABILITIES_GRANTED_NUMBER_CAPABILITY", - "expected": "error" - }, - "GET_GRANTED_CAPABILITIES_WITH_BOOLEAN_CAPABILITY": { - "method": "capabilities.granted", - "params": "CAPABILITIES_GRANTED_BOOLEAN_CAPABILITY", - "expected": "error" - }, - "GET_GRANTED_CAPABILITIES_WITH_ARRAY_CAPABILITY": { - "method": "capabilities.granted", - "params": "CAPABILITIES_GRANTED_ARRAY_CAPABILITY", - "expected": "error" - }, - "GET_GRANTED_CAPABILITIES_WITH_STRING_OPTIONS": { - "method": "capabilities.granted", - "params": "CAPABILITIES_GRANTED_STRING_OPTIONS", - "expected": "error" - }, - "GET_GRANTED_CAPABILITIES_WITH_NUMBER_OPTIONS": { - "method": "capabilities.granted", - "params": "CAPABILITIES_GRANTED_NUMBER_OPTIONS", - "expected": "error" - }, - "GET_GRANTED_CAPABILITIES_WITH_BOOLEAN_OPTIONS": { - "method": "capabilities.granted", - "params": "CAPABILITIES_GRANTED_BOOLEAN_OPTIONS", - "expected": "error" - }, - "GET_GRANTED_CAPABILITIES_WITH_ARRAY_OPTIONS": { - "method": "capabilities.granted", - "params": "CAPABILITIES_GRANTED_ARRAY_OPTIONS", - "expected": "error" - }, - "CAPABILITIES_GRANTED_WITH_INVALID_OPTIONS_ROLE": { - "method": "capabilities.granted", - "params": "CAPABILITIES_GRANTED_INVALID_OPTIONS_ROLE", - "expected": "error" - }, - "GET_GRANTED_CAPABILITIES_WITH_INVALID_OPTIONS_NULL_ROLE": { - "method": "capabilities.granted", - "params": "CAPABILITIES_GRANTED_INVALID_OPTIONS_NULL_ROLE", - "expected": "error" - }, - "GET_GRANTED_CAPABILITIES_WITH_INVALID_OPTIONS_NUMBER_ROLE": { - "method": "capabilities.granted", - "params": "CAPABILITIES_GRANTED_INVALID_OPTIONS_NUMBER_ROLE", - "expected": "error" - }, - "GET_GRANTED_CAPABILITIES_WITH_INVALID_OPTIONS_BOOLEAN_ROLE": { - "method": "capabilities.granted", - "params": "CAPABILITIES_GRANTED_INVALID_OPTIONS_BOOLEAN_ROLE", - "expected": "error" - }, - "GET_GRANTED_CAPABILITIES_WITH_INVALID_OPTIONS_ARRAY_ROLE": { - "method": "capabilities.granted", - "params": "CAPABILITIES_GRANTED_INVALID_OPTIONS_ARRAY_ROLE", - "expected": "error" - }, - "INVALID_PARAMS_FOR_CAPABILITIES_INFO": { - "method": "capabilities.info", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "CUSTOM_ERROR_FOR_CAPABILITIES_INFO": { - "method": "capabilities.info", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMS_FOR_CAPABILITIES_PERMITTED": { - "method": "capabilities.permitted", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMS_FOR_CAPABILITIES_AVAILABLE": { - "method": "capabilities.available", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, "INVALID_PARAMS_FOR_CAPABILITIES_SUPPORTED": { "method": "capabilities.supported", "validationJsonPath": "result", @@ -988,29 +165,6 @@ "content": "INVALID_PARAMS", "expectingError": true }, - "INVALID_PARAMS_FOR_CAPABILITIES_GRANTED": { - "method": "capabilities.granted", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "CHECK_IF_LIFECYCLE_READY_CAPABILITY_EXPECTING_ERROR": { - "method": "lifecycle.ready", - "params": "CAPABILITIES_PERMITTED_LIFECYCLE_READY_USE_ROLE_PARAM", - "expected": "error" - }, - "CHECK_IF_LIFECYCLE_STATE_CAPABILITY_IS_PERMITTED_WITH_ROLE_USE":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_LIFECYCLE_STATE_USE_ROLE_PARAM" - }, - "CHECK_IF_ACCOUNT_ID_CAPABILITY_IS_PERMITTED_WITH_ROLE_USE":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_ACCOUNT_ID_USE_ROLE_PARAM" - }, - "CHECK_IF_ACCOUNT_UID_CAPABILITY_IS_PERMITTED_WITH_ROLE_USE":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_ACCOUNT_UID_USE_ROLE_PARAM" - }, "FALSE_FOR_CAPABLITIES_REQUEST_GRANTED": { "method": "capabilities.request", "event": null, @@ -1073,108 +227,6 @@ "validationJsonPath": "result", "content": "FALSE" }, - "GET_INFO_OF_CAPABILITY_REQUEST_CAPABILITY": { - "method": "capabilities.info", - "params": "CAPABILITIES_REQUEST_INFO_PARAM" - }, - "GET_CAPABILITYINFO_OF_REQUEST_CAPABILITY": { - "method": "capabilities.request", - "params": "CAPABILITIES_REQUEST_CAPABILITY_REQUEST" - }, - "CHECK_IF_CAPABILITY_REQUEST_CAPABILITY_IS_PERMITTED": { - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_CAPABILITY_REQUEST_USE_ROLE_PARAM" - }, - "CHECK_IF_CAPABILITY_REQUEST_CAPABILITY_IS_SUPPORTED": { - "method": "capabilities.supported", - "params": "CAPABILITIES_SUPPORTED_CAPABILITY_REQUEST" - }, - "GET_CAPABILITY_INFO":{ - "method": "capabilities.info", - "params": "CYPRESSENV-capabilitiesList" - }, - "CHECK_IF_AUTHENTICATION_TOKEN_DEVICE_CAPABILITY_IS_PERMITTED_WITH_ROLE_USE":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_TOKEN_DEVICE_USE_ROLE_PARAM" - }, - "CHECK_IF_AUTHENTICATION_TOKEN_PLATFORM_CAPABILITY_IS_PERMITTED_WITH_ROLE_USE":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_TOKEN_PLATFORM_USE_ROLE_PARAM" - }, - "CHECK_IF_AUTHENTICATION_TOKEN_ROOT_CAPABILITY_IS_PERMITTED_WITH_ROLE_USE":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_TOKEN_ROOT_USE_ROLE_PARAM" - }, - "CHECK_IF_AUTHENTICATION_TOKEN_SESSION_CAPABILITY_IS_PERMITTED_WITH_ROLE_USE":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_TOKEN_SESSION_USE_ROLE_PARAM" - }, - "CHECK_IF_DEVICE_MAKE_CAPABILITY_IS_PERMITTED_WITH_ROLE_USE":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DEVICE_MAKE_USE_ROLE_PARAM" - }, - "CHECK_IF_DEVICE_MODEL_CAPABILITY_IS_PERMITTED_WITH_ROLE_USE":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DEVICE_MODEL_USE_ROLE_PARAM" - }, - "CHECK_IF_DEVICE_SKU_CAPABILITY_IS_PERMITTED_WITH_ROLE_USE":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DEVICE_SKU_USE_ROLE_PARAM" - }, - "CHECK_IF_DEVICE_UID_CAPABILITY_IS_PERMITTED_WITH_ROLE_USE":{ - "method": "capabilities.permitted", - "params": "CAPABILITIES_PERMITTED_DEVICE_UID_USE_ROLE_PARAM" - }, - "CAPABILITIES_ONAVAILABLE": { - "method": "capabilities.onAvailable", - "params": "CAPABILITIES_ONAVAILBLE_KEYBOARD" - }, - "EXPECTED_VALUE_FOR_CAPABILITIES_ONAVAILABLE": { - "event": "capabilities.onAvailable", - "validationJsonPath": "eventResponse", - "content": "CAPABILITIES_ONAVAILABLE" - }, - "FALSE_FOR_KEYBOARD_CAPABILITY_AVAILABILITY":{ - "method": "capabilities.available", - "validationJsonPath": "result", - "content": "FALSE" - }, - "CAPABILITIES_ONUNAVAILABLE": { - "method": "capabilities.onUnavailable", - "params": "CAPABILITIES_ONUNAVAILBLE_KEYBOARD" - }, - "EXPECTED_VALUE_FOR_CAPABILITIES_ONUNAVAILABLE": { - "event": "capabilities.onUnavailable", - "validationJsonPath": "eventResponse", - "content": "CAPABILITIES_ONUNAVAILABLE" - }, - "CAPABILITIES_ONGRANTED": { - "method": "capabilities.onGranted", - "params": "CAPABILITIES_ONGRANTED_DEVICE_ID_ROLE_USE" - }, - "CHECK_IF_DEVICE_ID_CAPABILITY_IS_GRANTED":{ - "method": "capabilities.granted", - "params": "USERGRANTS_DEVICE_ID" - }, - "FALSE_FOR_GRANTED_CAPABILITY_WITH_PASSED_ROLE":{ - "method": "capabilities.granted", - "validationJsonPath": "result", - "content": "FALSE" - }, - "CAPABILITIES_ONREVOKED": { - "method": "capabilities.onRevoked", - "params": "CAPABILITIES_ONREVOKED_DEVICE_ID_ROLE_USE" - }, - "EXPECTED_VALUE_FOR_CAPABILITIES_ONGRANTED": { - "event": "capabilities.onGranted", - "validationJsonPath": "eventResponse", - "content": "CAPABILITIES_ONGRANTED" - }, - "EXPECTED_VALUE_FOR_CAPABILITIES_ONREVOKED": { - "event": "capabilities.onRevoked", - "validationJsonPath": "eventResponse", - "content": "CAPABILITIES_ONREVOKED" - }, "EXPECTED_VALUE_FOR_CAPABILITY_REQUEST":{ "method": "capabilities.request", "validationJsonPath": "result", diff --git a/cypress/fixtures/fireboltCalls/device.json b/cypress/fixtures/fireboltCalls/device.json index a80ae5a3a..78720c5cd 100644 --- a/cypress/fixtures/fireboltCalls/device.json +++ b/cypress/fixtures/fireboltCalls/device.json @@ -1,90 +1,14 @@ { - "FETCH_DEVICE_ID": { - "method": "device.id" - }, - "FETCH_DEVICE_DISTRIBUTOR": { - "method": "device.distributor" - }, - "FETCH_DEVICE_PLATFORM": { - "method": "device.platform" - }, - "FETCH_DEVICE_UID": { - "method": "device.uid" - }, - "FETCH_DEVICE_TYPE": { - "method": "device.type" - }, - "FETCH_DEVICE_MODEL": { - "method": "device.model" - }, - "FETCH_DEVICE_SKU": { - "method": "device.sku" - }, - "FETCH_DEVICE_MAKE": { - "method": "device.make" - }, - "EXPECTED_DEVICE_ID": { - "method": "device.id", - "validationJsonPath": "result", - "content": "DEVICE_ID" - }, - "EXPECTED_DEVICE_DISTRIBUTOR": { - "method": "device.distributor", - "validationJsonPath": "result", - "content": "DEVICE_DISTRIBUTOR" - }, - "EXPECTED_DEVICE_PLATFORM": { - "method": "device.platform", - "validationJsonPath": "result", - "content": "DEVICE_PLATFORM" - }, - "EXPECTED_DEVICE_UID": { - "method": "device.uid", - "validationJsonPath": "result", - "content": "DEVICE_UID" - }, - "EXPECTED_DEVICE_TYPE": { - "method": "device.type", - "validationJsonPath": "result", - "content": "DEVICE_TYPE" - }, - "EXPECTED_DEVICE_MODEL": { - "method": "device.model", - "validationJsonPath": "result", - "content": "DEVICE_MODEL" - }, "INVALID_REQUEST_FOR_DEVICE_MODEL": { "method": "device.model", "validationJsonPath": "result", "content": "INVALID_PARAMS", "expectingError": true }, - "EXPECTED_DEVICE_SKU": { - "method": "device.sku", - "validationJsonPath": "result", - "content": "DEVICE_SKU" - }, - "EXPECTED_DEVICE_MAKE": { - "method": "device.make", - "validationJsonPath": "result", - "content": "DEVICE_MAKE" - }, - "EXPECTED_DEVICE_VERSION": { - "method": "device.version", - "validationJsonPath": "result", - "content": "DEVICE_VERSION" - }, - "DEVICE_ONNAMECHANGED": { - "method": "device.onNameChanged" - }, "SET_DEVICE_NAME_TO_LIVING_HALL": { "method": "manage_device.setName", "params": "Living hall" }, - "SET_DEVICE_NAME_TO_LIVING_ROOM": { - "method": "manage_device.setName", - "params": "Living Room" - }, "GET_DEVICE_NAME": { "method": "device.name" }, @@ -100,49 +24,6 @@ "content": "Living hall", "expectingError": false }, - "FETCH_DEVICE_VERSION": { - "method": "device.version" - }, - "FETCH_HDCP": { - "method": "device.hdcp" - }, - "FETCH_HDR": { - "method": "device.hdr" - }, - "FETCH_SCREENRESOLUTION": { - "method": "device.screenResolution" - }, - "FETCH_VIDEORESOLUTION": { - "method": "device.videoResolution" - }, - "FETCH_AUDIO": { - "method": "device.audio" - }, - "EXPECTED_HDCP": { - "method": "device.hdcp", - "validationJsonPath": "result", - "content": "DEVICE_HDCP" - }, - "EXPECTED_HDR": { - "method": "device.hdr", - "validationJsonPath": "result", - "content": "DEVICE_HDR" - }, - "EXPECTED_SCREENRESOLUTION": { - "method": "device.screenResolution", - "validationJsonPath": "result", - "content": "DEVICE_SCREENRESOLUTION" - }, - "EXPECTED_VIDEORESOLUTION": { - "method": "device.videoResolution", - "validationJsonPath": "result", - "content": "DEVICE_VIDEORESOLUTION" - }, - "EXPECTED_AUDIO": { - "method": "device.audio", - "validationJsonPath": "result", - "content": "DEVICE_AUDIO" - }, "SET_DEVICE_NAME_TO_BEDROOM": { "method": "manage_device.setName", "params": "Bedroom" @@ -160,45 +41,11 @@ "validationJsonPath": "eventResponse", "content": "DEVICE_BEDROOM_NAME" }, - "PROVISION_DEVICE_WITH_DEFAULT_VALUES": { - "method": "manage_device.provision", - "params": "DEVICE_PROVISION_DEFAULT_VALUES" - }, "DEFAULT_VALUES_FOR_DEVICE_PROVISION": { "method": "device.provision", "validationJsonPath": "result", "content": "DEVICE_PROVISION_DEFAULT_CONTENT" }, - "PROVISION_DEVICE_WITH_DISTRIBUTOR_ID": { - "method": "manage_device.provision", - "params": "DEVICE_PROVISION_WITH_DISTRIBUTOR_ID" - }, - "DISTRIBUTOR_ID_FOR_DEVICE_PROVISION": { - "method": "device.provision", - "validationJsonPath": "result", - "content": "DEVICE_PROVISION_WITH_DISTRIBUTOR_ID_CONTENT" - }, - "GET_DEVICE_ID": { - "method": "device.id" - }, - "GET_ACCOUNT_ID": { - "method": "account.id" - }, - "EXPECTED_PROVISION_DEVICE_ID": { - "method": "device.id", - "validationJsonPath": "result", - "content": "DEVICE_PROVISION_DEVICE_ID" - }, - "EXPECTED_PROVISION_ACCOUNT_ID": { - "method": "account.id", - "validationJsonPath": "result", - "content": "DEVICE_PROVISION_ACCOUNT_ID" - }, - "DEFAULT_VALUE_FOR_DEVICE_PROVISION": { - "method": "device.provision", - "validationJsonPath": "result", - "content": "DEVICE_PROVISION_DEFAULT_CONTENT" - }, "EXPECT_ERROR_FOR_DEVICE_DISTRIBUTOR": { "method": "device.distributor", "expected": "error" @@ -230,37 +77,6 @@ "content": "INVALID_PARAMS", "expectingError": true }, - "INVALID_PARAMETERS_FOR_DEVICE_PROVISION": { - "method": "device.provision", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "PROVISION_DEVICE_WITH_INTEGER": { - "method": "manage_device.provision", - "params": "INTEGER123", - "expected": "error" - }, - "PROVISION_DEVICE_WITH_BOOLEAN": { - "method": "manage_device.provision", - "params": "TRUE", - "expected": "error" - }, - "PROVISION_DEVICE_WITHOUT_DEVICEID": { - "method": "manage_device.provision", - "params": "DEVICE_PROVISION_WITHOUT_DEVICEID", - "expected": "error" - }, - "PROVISION_DEVICE_WITH_EMPTY_PARAMS": { - "method": "manage_device.provision", - "params": "DEVICE_PROVISION_EMPTY_PARAMS", - "expected": "error" - }, - "PROVISION_DEVICE_WITHOUT_ACCOUNTID": { - "method": "manage_device.provision", - "params": "DEVICE_PROVISION_WITHOUT_ACCOUNTID", - "expected": "error" - }, "SET_DEVICE_NAME_WITHOUT_PARAMETERS": { "method": "manage_device.setName" }, @@ -270,92 +86,12 @@ "content": "Bedroom", "expectingError": false }, - "SET_DEVICE_NAME_TO_KITCHEN": { - "method": "manage_device.setName", - "params": "Kitchen" - }, - "ONDEVICENAMECHANGED": { - "event": "device.onNameChanged", - "validationJsonPath": "eventResponse", - "content": "NULL", - "expectingError": false - }, - "EXPECT_ERROR_FOR_DEVICE_NAME": { - "method": "device.name", - "expected": "error" - }, "INVALID_REQUEST_FOR_DEVICE_NAME": { "method": "device.name", "validationJsonPath": "result", "content": "INVALID_PARAMS", "expectingError": true }, - "DEVICE_ONNETWORKCHANGED": { - "method": "device.onNetworkChanged" - }, - "FETCH_DEVICE_NETWORK": { - "method": "device.network" - }, - "DEVICE_NETWORK_AS_WIFI_CONNECTED": { - "method": "device.network", - "validationJsonPath": "result", - "content": "DEVICE_NETWORK_WIFICONNECTED" - }, - "DEVICE_NETWORK_AS_WIFI_DISCONNECTED": { - "method": "device.network", - "validationJsonPath": "result", - "content": "DEVICE_NETWORK_WIFIDISCONNECTED" - }, - "DEVICE_NETWORK_AS_ETHERNET_CONNECTED": { - "method": "device.network", - "validationJsonPath": "result", - "content": "DEVICE_NETWORK_ETHERNETCONNECTED" - }, - "DEVICE_NETWORK_AS_ETHERNET_DISCONNECTED": { - "method": "device.network", - "validationJsonPath": "result", - "content": "DEVICE_NETWORK_ETHERNETDISCONNECTED" - }, - "DEVICE_NETWORK_AS_HYBRID_CONNECTED": { - "method": "device.network", - "validationJsonPath": "result", - "content": "DEVICE_NETWORK_HYBRIDCONNECTED" - }, - "DEVICE_NETWORK_AS_HYBRID_DISCONNECTED": { - "method": "device.network", - "validationJsonPath": "result", - "content": "DEVICE_NETWORK_HYBRIDDISCONNECTED" - }, - "ONNETWORKCHANGED_WITH_WIFI_CONNECTED": { - "event": "device.onNetworkChanged", - "validationJsonPath": "eventResponse", - "content": "DEVICE_NETWORK_WIFICONNECTED" - }, - "ONNETWORKCHANGED_WITH_WIFI_DISCONNECTED": { - "event": "device.onNetworkChanged", - "validationJsonPath": "eventResponse", - "content": "DEVICE_NETWORK_WIFIDISCONNECTED_EVENT" - }, - "ONNETWORKCHANGED_WITH_ETHERNET_CONNECTED": { - "event": "device.onNetworkChanged", - "validationJsonPath": "eventResponse", - "content": "DEVICE_NETWORK_ETHERNETCONNECTED" - }, - "ONNETWORKCHANGED_WITH_ETHERNET_DISCONNECTED": { - "event": "device.onNetworkChanged", - "validationJsonPath": "eventResponse", - "content": "DEVICE_NETWORK_ETHERNETDISCONNECTED_EVENT" - }, - "ONNETWORKCHANGED_WITH_HYBRID_CONNECTED": { - "event": "device.onNetworkChanged", - "validationJsonPath": "eventResponse", - "content": "DEVICE_NETWORK_HYBRIDCONNECTED" - }, - "ONNETWORKCHANGED_WITH_HYBRID_DISCONNECTED": { - "event": "device.onNetworkChanged", - "validationJsonPath": "eventResponse", - "content": "DEVICE_NETWORK_HYBRIDDISCONNECTED" - }, "EXPECT_ERROR_FOR_DEVICE_ID": { "method": "device.id", "expected": "error" @@ -370,30 +106,6 @@ "method": "device.model", "expected": "error" }, - "ONNETWORKCHANGED_EVENTS_WITH_WIFI_CONNECTED": { - "method": "device.onNetworkChanged", - "params": "DEVICE_ONNETWORKCHANGED_WIFICONNECT_EVENTS" - }, - "ONNETWORKCHANGED_EVENTS_WITH_WIFI_DISCONNECTED": { - "method": "device.onNetworkChanged", - "params": "DEVICE_ONNETWORKCHANGED_WIFIDISCONNECT_EVENTS" - }, - "ONNETWORKCHANGED_EVENTS_WITH_ETHERNET_CONNECTED": { - "method": "device.onNetworkChanged", - "params": "DEVICE_ONNETWORKCHANGED_ETHERNETCONNECT_EVENTS" - }, - "ONNETWORKCHANGED_EVENTS_WITH_ETHERNET_DISCONNECTED": { - "method": "device.onNetworkChanged", - "params": "DEVICE_ONNETWORKCHANGED_ETHERNETDISCONNECT_EVENTS" - }, - "ONNETWORKCHANGED_EVENTS_WITH_HYBRID_CONNECTED": { - "method": "device.onNetworkChanged", - "params": "DEVICE_ONNETWORKCHANGED_HYBRIDCONNECT_EVENTS" - }, - "ONNETWORKCHANGED_EVENTS_WITH_HYBRID_DISCONNECTED": { - "method": "device.onNetworkChanged", - "params": "DEVICE_ONNETWORKCHANGED_HYBRIDDISCONNECT_EVENTS" - }, "EXPECTED_VALUE_FOR_DEVICE_NAME": { "method": "device.name", "validationJsonPath": "result", diff --git a/cypress/fixtures/fireboltCalls/discovery.js b/cypress/fixtures/fireboltCalls/discovery.js index a9609745d..0c23e7d30 100644 --- a/cypress/fixtures/fireboltCalls/discovery.js +++ b/cypress/fixtures/fireboltCalls/discovery.js @@ -71,7 +71,7 @@ exports.DISCOVERY_REMEMBER_WATCHED_PROGRAMS = { }, }; -exports.DISCOVERY_CLEAR_CONTENTACCESS = { +exports.DISCOVERY_CLEARCONTENTACCESS = { method: 'discovery.clearContentAccess', params: {}, validationJsonPath: 'result', diff --git a/cypress/fixtures/fireboltCalls/discovery.json b/cypress/fixtures/fireboltCalls/discovery.json index 326f67551..ab52fd659 100644 --- a/cypress/fixtures/fireboltCalls/discovery.json +++ b/cypress/fixtures/fireboltCalls/discovery.json @@ -1,7 +1,4 @@ { - "DISCOVERY_ONPOLICYCHANGED": { - "method": "discovery.onPolicyChanged" - }, "ENABLE_RECOMMENDATIONS": { "method": "manage_privacy.setAllowPersonalization", "params": "TRUE" @@ -27,10 +24,6 @@ "validationJsonPath": "eventResponse.enableRecommendations", "content": "TRUE" }, - "DISABLE_RECOMMENDATIONS": { - "method": "manage_privacy.setAllowPersonalization", - "params": "FALSE" - }, "FALSE_FOR_HISTORY_BASED_RECOMMENDATIONS_IN_POLICY": { "method": "discovery.policy", "validationJsonPath": "result.enableRecommendations", @@ -55,10 +48,6 @@ "validationJsonPath": "eventResponse.rememberWatchedPrograms", "content": "TRUE" }, - "DISABLE_REMEMBER_WATCHED_PROGRAMS": { - "method": "manage_privacy.setAllowWatchHistory", - "params": "FALSE" - }, "FALSE_FOR_REMEMBER_WATCHED_PROGRAMS_IN_POLICY": { "method": "discovery.policy", "validationJsonPath": "result.rememberWatchedPrograms", @@ -69,221 +58,16 @@ "validationJsonPath": "eventResponse.rememberWatchedPrograms", "content": "FALSE" }, - "NOTIFY_WATCHED_CONTENT_WITH_ONLY_ENTITYID": { - "method": "discovery.watched", - "params": "DISCOVERY_WATCHED_ONLY_ENTITY_ID" - }, "EXPECT_ERROR_WHILE_NOTIFYING_WATCHED_CONTENT_WITH_ONLY_ENTITYID": { "method": "discovery.watched", "params": "DISCOVERY_WATCHED_ONLY_ENTITY_ID" }, - "NOTIFY_WATCHED_CONTENT_WITH_ENTITYID_PROGRESS": { - "method": "discovery.watched", - "params": "DISCOVERY_WATCHED_ENTITY_ID_PROGRESS" - }, - "NOTIFY_WATCHED_CONTENT_WITH_ENTITYID_PROGRESS_STATUS": { - "method": "discovery.watched", - "params": "DISCOVERY_WATCHED_ENTITY_ID_PROGRESS_STATUS" - }, - "NOTIFY_WATCHED_CONTENT_WITH_ENTITYID_PROGRESS_STATUS_DATE": { - "method": "discovery.watched", - "params": "DISCOVERY_WATCHED_ENTITY_ID_PROGRESS_STATUS_DATE" - }, - "TRUE_FOR_WATCHED_CONTENT_IN_DISCOVERY": { - "method": "discovery.watched", - "validationJsonPath": "result", - "content": "TRUE" - }, - "SUGGEST_WATCHNEXT_TILE_WITH_ENTITYID": { - "method": "discovery.watchNext", - "params": "DISCOVERY_WATCHNEXT_ONLY_TITLE_IDENTIFIERS_ENTITYID" - }, - "SUGGEST_WATCHNEXT_TILE_WITH_ENTITYID_ASSETID": { - "method": "discovery.watchNext", - "params": "DISCOVERY_WATCHNEXT_ONLY_TITLE_IDENTIFIERS_ENTITYID_ASSETID" - }, - "SUGGEST_WATCHNEXT_TILE_WITH_ENTITYID_ASSETID_SESSIONID": { - "method": "discovery.watchNext", - "params": "DISCOVERY_WATCHNEXT_ONLY_TITLE_IDENTIFIERS_ENTITYID_ASSETID_SESSIONID" - }, - "SUGGEST_WATCHNEXT_TILE_WITH_ENTITYID_ASSETID_SESSIONID_SERIESID": { - "method": "discovery.watchNext", - "params": "DISCOVERY_WATCHNEXT_ONLY_TITLE_IDENTIFIERS_ENTITYID_ASSETID_SESSIONID_SERIESID" - }, - "SUGGEST_WATCHNEXT_TILE_WITH_ENTITYID_ASSETID_SESSIONID_SERIESID_APPCONTENTDATA": { - "method": "discovery.watchNext", - "params": "DISCOVERY_WATCHNEXT_ONLY_TITLE_IDENTIFIERS_ENTITYID_ASSETID_SESSIONID_SERIESID_APPCONTENTDATA" - }, - "SUGGEST_WATCHNEXT_TILE_WITH_EXPIRES": { - "method": "discovery.watchNext", - "params": "DISCOVERY_WATCHNEXT_ONLY_TITLE_IDENTIFIERS_EXPIRES" - }, - "SUGGEST_WATCHNEXT_TILE_WITH_EXPIRES_IMAGES": { - "method": "discovery.watchNext", - "params": "DISCOVERY_WATCHNEXT_ONLY_TITLE_IDENTIFIERS_EXPIRES_IMAGES" - }, - "TRUE_FOR_WATCHNEXT_TILE_IN_DISCOVERY": { - "method": "discovery.watchNext", - "validationJsonPath": "result", - "content": "TRUE" - }, - "TRUE_FOR_ENTITLEMENTS_IN_DISCOVERY": { - "method": "discovery.entitlements", - "validationJsonPath": "result", - "content": "TRUE" - }, - "NOTIFY_ENTITLEMENTS": { - "method": "discovery.entitlements", - "params": "DISCOVERY_ENTITLEMENTS" - }, - "NOTIFY_ENTITLEMENTS_WITH_ENTITLEMENTID_ONLY": { - "method": "discovery.entitlements", - "params": "DISCOVERY_ENTITLEMENTS_ENTITLEMENTID_ONLY" - }, - "NOTIFY_USER_HAS_SIGNED_IN_WITH_ENTITLEMENTS": { - "method": "discovery.signIn", - "params": "DISCOVERY_SIGNIN_ENTITLEMENTS" - }, - "NOTIFY_USER_HAS_SIGNED_IN_WITHOUT_ENTITLEMENTS": { - "method": "discovery.signIn" - }, - "NOTIFY_USER_HAS_SIGNED_OUT": { - "method": "discovery.signOut" - }, - "NOTIFY_WATCHED_CONTENT_WITH_EMPTY_PARAMETER": { - "method": "discovery.watched", - "expected": "error" - }, - "INVALID_PARAMS_FOR_DISCOVERY_WATCHED": { - "method": "discovery.watched", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, "INVALID_REQUEST_FOR_DISCOVERY_WATCHED": { "method": "discovery.watched", "validationJsonPath": "result", "content": "INVALID_PARAMS", "expectingError": true }, - "NOTIFY_WATCHED_CONTENT_WITH_INVALID_ENTITYID_NUMBER": { - "method": "discovery.watched", - "params": "DISCOVERY_WATCHED_INVALID_ENTITY_ID_NUMBER", - "expected": "error" - }, - "NOTIFY_WATCHED_CONTENT_WITH_INVALID_PROGRESS": { - "method": "discovery.watched", - "params": "DISCOVERY_WATCHED_INVALID_PROGRESS", - "expected": "error" - }, - "NOTIFY_WATCHED_CONTENT_WITH_INVALID_PROGRESS_STRING": { - "method": "discovery.watched", - "params": "DISCOVERY_WATCHED_INVALID_PROGRESS_STRING", - "expected": "error" - }, - "NOTIFY_WATCHED_CONTENT_WITH_INVALID_COMPLETED": { - "method": "discovery.watched", - "params": "DISCOVERY_WATCHED_INVALID_COMPLETED", - "expected": "error" - }, - "NOTIFY_WATCHED_CONTENT_WITH_INVALID_WATCHEDON": { - "method": "discovery.watched", - "params": "DISCOVERY_WATCHED_INVALID_WATCHEDON", - "expected": "error" - }, - "INVALID_PARAMS_FOR_DISCOVERY_WATCHNEXT": { - "method": "discovery.watchNext", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "SUGGEST_WATCHNEXT_TILE_WITH_ONLY_TITLE": { - "method": "discovery.watchNext", - "params": "DISCOVERY_WATCHNEXT_ONLY_TITLE", - "expected": "error" - }, - "SUGGEST_WATCHNEXT_TILE_WITH_INVALID_IDENTIFIERS": { - "method": "discovery.watchNext", - "params": "DISCOVERY_WATCHNEXT_INVALID_IDENTIFIERS", - "expected": "error" - }, - "SUGGEST_WATCHNEXT_TILE_WITH_INVALID_EXPIRES": { - "method": "discovery.watchNext", - "params": "DISCOVERY_WATCHNEXT_INVALID_EXPIRES", - "expected": "error" - }, - "SUGGEST_WATCHNEXT_TILE_WITH_INVALID_EXPIRES_INTEGER": { - "method": "discovery.watchNext", - "params": "DISCOVERY_WATCHNEXT_INVALID_EXPIRES_INTEGER", - "expected": "error" - }, - "SUGGEST_WATCHNEXT_TILE_WITH_INVALID_IMAGES": { - "method": "discovery.watchNext", - "params": "DISCOVERY_WATCHNEXT_INVALID_IMAGES", - "expected": "error" - }, - "SUGGEST_WATCHNEXT_TILE_WITH_INVALID_IMAGE_INTEGER": { - "method": "discovery.watchNext", - "params": "DISCOVERY_WATCHNEXT_INVALID_IMAGE_INTEGER", - "expected": "error" - }, - "SUGGEST_WATCHNEXT_TILE_WITH_INVALID_IDENTIFIERS_ENTITYID": { - "method": "discovery.watchNext", - "params": "DISCOVERY_WATCHNEXT_INVALID_IDENTIFIERS_ENTITYID", - "expected": "error" - }, - "SUGGEST_WATCHNEXT_TILE_WITH_INVALID_IDENTIFIERS_ASSETID": { - "method": "discovery.watchNext", - "params": "DISCOVERY_WATCHNEXT_INVALID_IDENTIFIERS_ASSETID", - "expected": "error" - }, - "SUGGEST_WATCHNEXT_TILE_WITH_INVALID_IDENTIFIERS_SESSIONID": { - "method": "discovery.watchNext", - "params": "DISCOVERY_WATCHNEXT_INVALID_IDENTIFIERS_SESSIONID", - "expected": "error" - }, - "SUGGEST_WATCHNEXT_TILE_WITH_INVALID_IDENTIFIERS_SERIESID": { - "method": "discovery.watchNext", - "params": "DISCOVERY_WATCHNEXT_INVALID_IDENTIFIERS_SERIESID", - "expected": "error" - }, - "SUGGEST_WATCHNEXT_TILE_WITH_INVALID_IDENTIFIERS_APPCONTENTDATA": { - "method": "discovery.watchNext", - "params": "DISCOVERY_WATCHNEXT_INVALID_IDENTIFIERS_APPCONTENTDATA", - "expected": "error" - }, - "INVALID_PARAMS_FOR_DISCOVERY_ENTITLEMENTS": { - "method": "discovery.entitlements", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "NOTIFY_ENTITLEMENTS_WITH_NO_ID": { - "method": "discovery.entitlements", - "params": "DISCOVERY_INVALID_ENTITLEMENTS_ENTITLEMENTID", - "expected": "error" - }, - "NOTIFY_ENTITLEMENTS_WITH_INTEGER_PARAMS": { - "method": "discovery.entitlements", - "params": "DISCOVERY_INVALID_ENTITLEMENTS_INTEGER_PARAMS", - "expected": "error" - }, - "INVALID_PARAMS_FOR_DISCOVERY_SIGNIN": { - "method": "discovery.signIn", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "NOTIFY_USER_HAS_SIGNEDIN_WITH_NO_ID": { - "method": "discovery.signIn", - "params": "DISCOVERY_SIGNIN_INVALID_ENTITLEMENTS", - "expected": "error" - }, - "NOTIFY_USER_HAS_SIGNEDIN_WITH_INTEGER_PARAMS": { - "method": "discovery.signIn", - "params": "DISCOVERY_INVALID_ENTITLEMENTS_INTEGER_PARAMS", - "expected": "error" - }, "NOTIFY_CONTENT_ACCESS_WITH_AVAILABILITIES_CHANNEL_TYPE": { "method": "discovery.contentAccess", "params": "DISCOVERY_CONTENTACCESS_AVAILABILITIES_TYPE_CHANNEL_LINEUP" @@ -292,10 +76,6 @@ "method": "discovery.contentAccess", "params": "DISCOVERY_CONTENTACCESS_AVAILABILITIES_TYPE_PROGRAM_LINEUP" }, - "NOTIFY_CONTENT_ACCESS_WITH_AVAILABILITIES_TYPE_AND_ID": { - "method": "discovery.contentAccess", - "params": "DISCOVERY_CONTENTACCESS_AVAILABILITIES_ONLY_TYPE_ID" - }, "NOTIFY_CONTENT_ACCESS_WITH_AVAILABILITIES_TYPE_ID_AND_CATALOGID": { "method": "discovery.contentAccess", "params": "DISCOVERY_CONTENTACCESS_AVAILABILITIES_WITH_CATALOG_ID" @@ -308,141 +88,21 @@ "method": "discovery.contentAccess", "params": "DISCOVERY_CONTENTACCESS_AVAILABILITIES_WITH_CATALOG_ID_START_TIME_END_TIME" }, - "NOTIFY_CONTENT_ACCESS_WITH_AVAILABILITIES_AND_ENTITLEMENTS": { - "method": "discovery.contentAccess", - "params": "DISCOVERY_CONTENTACCESS_WITH_AVAILABILITIES_AND_ENTITLEMENTS" - }, - "NOTIFY_CONTENT_ACCESS_WITH_ONLY_ENTITLEMENTS": { - "method": "discovery.contentAccess", - "params": "DISCOVERY_CONTENTACCESS_WITH_ONLY_ENTITLEMENTS" - }, - "NOTIFY_CONTENT_ACCESS_WITH_AVAILABILITIES_PARAM_EMPTY": { - "method": "discovery.contentAccess", - "params": "DISCOVERY_CONTENTACCESS_AVAILABILITIES_AS_EMPTY" - }, - "NOTIFY_CONTENT_ACCESS_WITH_ENTITLEMENTS_PARAM_EMPTY": { - "method": "discovery.contentAccess", - "params": "DISCOVERY_CONTENTACCESS_ENTITLEMENTS_AS_EMPTY" - }, - "CLEAR_CONTENTACCESS": { - "method": "discovery.clearContentAccess" - }, - "INVALID_PARAMETER_ERROR_FOR_DISCOVERY_CONTENTACCESS": { - "method": "discovery.contentAccess", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, "NULL_FOR_DISCOVERY_CLEARCONTENTACCESS": { "method": "discovery.clearContentAccess", "validationJsonPath": "result", "content": "NULL" }, - "NULL_FOR_DISCOVERY_CONTENTACCESS": { - "method": "discovery.contentAccess", - "validationJsonPath": "result", - "content": "NULL" - }, - "NOTIFY_CONTENT_ACCESS_WITHOUT_PARAMS": { - "method": "discovery.contentAccess", - "expected": "error" - }, - "NOTIFY_CONTENT_ACCESS_WITHOUT_AVAILABILITIES_TYPE_VALUE": { - "method": "discovery.contentAccess", - "params": "DISCOVERY_CONTENTACCESS_AVAILABILITIES_WITHOUT_TYPE", - "expected": "error" - }, - "NOTIFY_CONTENT_ACCESS_WITHOUT_AVAILABILITIES_ID_VALUE": { - "method": "discovery.contentAccess", - "params": "DISCOVERY_CONTENTACCESS_AVAILABILITIES_WITHOUT_ID", - "expected": "error" - }, - "NOTIFY_CONTENT_ACCESS_WITH_INVALID_AVAILABILITIES_TYPE_VALUE": { - "method": "discovery.contentAccess", - "params": "DISCOVERY_CONTENTACCESS_AVAILABILITIES_INVALID_TYPE_VALUE", - "expected": "error" - }, - "NOTIFY_CONTENT_ACCESS_WITH_INVALID_AVAILABILITIES_TYPE": { - "method": "discovery.contentAccess", - "params": "DISCOVERY_CONTENTACCESS_AVAILABILITIES_INVALID_DATATYPE_TYPE", - "expected": "error" - }, - "NOTIFY_CONTENT_ACCESS_WITH_INVALID_AVAILABILITIES_ID": { - "method": "discovery.contentAccess", - "params": "DISCOVERY_CONTENTACCESS_AVAILABILITIES_INVALID_DATATYPE_ID", - "expected": "error" - }, - "NOTIFY_CONTENT_ACCESS_WITH_INVALID_AVAILABILITIES_CATALOG_ID": { - "method": "discovery.contentAccess", - "params": "DISCOVERY_CONTENTACCESS_AVAILABILITIES_INVALID_DATATYPE_CATALOG_ID", - "expected": "error" - }, - "NOTIFY_CONTENT_ACCESS_WITH_INVALID_AVAILABILITIES_STARTTIME": { - "method": "discovery.contentAccess", - "params": "DISCOVERY_CONTENTACCESS_AVAILABILITIES_INVALID_DATATYPE_START_TIME", - "expected": "error" - }, - "NOTIFY_CONTENT_ACCESS_WITH_INVALID_AVAILABILITIES_ENDTIME": { - "method": "discovery.contentAccess", - "params": "DISCOVERY_CONTENTACCESS_AVAILABILITIES_INVALID_DATATYPE_END_TIME", - "expected": "error" - }, - "NOTIFY_CONTENT_ACCESS_WITH_INVALID_ENTITLEMENTS_BOOLEAN_ENTITLEMENTID": { - "method": "discovery.contentAccess", - "params": "DISCOVERY_CONTENTACCESS_ENTITLEMENTS_INVALID_ENTITLEMENTID_TRUE", - "expected": "error" - }, - "NOTIFY_CONTENT_ACCESS_WITH_INVALID_ENTITLEMENTS_INTEGER_ENTITLEMENTID": { - "method": "discovery.contentAccess", - "params": "DISCOVERY_CONTENTACCESS_ENTITLEMENTS_INVALID_ENTITLEMENTID_INTEGER", - "expected": "error" - }, - "NOTIFY_CONTENT_ACCESS_WITH_INVALID_ENTITLEMENTS_INVALID_STARTTIME": { - "method": "discovery.contentAccess", - "params": "DISCOVERY_CONTENTACCESS_ENTITLEMENTS_INVALID_START_TIME", - "expected": "error" - }, - "NOTIFY_CONTENT_ACCESS_WITH_INVALID_ENTITLEMENTS_INVALID_ENDTIME": { - "method": "discovery.contentAccess", - "params": "DISCOVERY_CONTENTACCESS_ENTITLEMENTS_INVALID_END_TIME", - "expected": "error" - }, - "DISCOVERY_ONSIGNIN": { - "method": "manage_discovery.onSignIn" - }, "ONSIGNIN_FOR_DISCOVERY_WITH_APPID": { "event": "discovery.onSignIn", "validationJsonPath": "eventResponse", "content": "DISCOVERY_ONSIGNIN_APPID" }, - "SIGNIN_FOR_DISCOVERY": { - "method": "discovery.signIn", - "validationJsonPath": "result", - "content": "DISCOVERY_SIGNIN_TRUE" - }, - "DISCOVERY_ONSIGNOUT": { - "method": "manage_discovery.onSignOut" - }, "ONSIGNOUT_FOR_DISCOVERY_WITH_APPID": { "event": "discovery.onSignOut", "validationJsonPath": "eventResponse", "content": "DISCOVERY_ONSIGNOUT_APPID" }, - "SIGNOUT_FOR_DISCOVERY": { - "method": "discovery.signOut", - "validationJsonPath": "result", - "content": "DISCOVERY_SIGNOUT_TRUE" - }, - "SET_ALLOWPERSONALIZATION_TO_TRUE": { - "method": "manage_privacy.setAllowPersonalization", - "params": "TRUE" - }, - "ONDISCOVERYPOLICYCHANGED": { - "event": "discovery.onPolicyChanged", - "validationJsonPath": "eventResponse", - "content": "NULL", - "expectingError": false - }, "GET_HOME_INTENT": { "method": "discovery.launch", "params": "DISCOVERY_HOME_INTENT" diff --git a/cypress/fixtures/fireboltCalls/hdmiinput.json b/cypress/fixtures/fireboltCalls/hdmiinput.json index 68980721f..a4b2377dc 100644 --- a/cypress/fixtures/fireboltCalls/hdmiinput.json +++ b/cypress/fixtures/fireboltCalls/hdmiinput.json @@ -1,16 +1,4 @@ { - "GET_HDMIINPUT_PORTS_LIST":{ - "method": "manage_hdmiinput.ports" - }, - "EXPECTED_HDMIINPUT_PORTS":{ - "method": "hdmiinput.ports", - "validationJsonPath": "result", - "expected": "HDMIINPUT_PORTS" - }, - "GET_HDMIINPUT_PORT_WITH_PORTID_HDMI1":{ - "method": "manage_hdmiinput.port", - "params": "HDMIINPUT_PORT_HDMI1" - }, "GET_HDMIINPUT_PORT_WITH_PORTID_HDMI2":{ "method": "manage_hdmiinput.port", "params": "HDMIINPUT_PORT_HDMI2" @@ -20,56 +8,16 @@ "validationJsonPath": "result", "expected": "HDMIINPUT_PORT" }, - "SET_AUTOLOWLATENCYMODECAPABLE_WITH_TRUE": { - "method": "manage_hdmiinput.setAutoLowLatencyModeCapable", - "params": "HDMIINPUT_SETAUTOLOWLATENCYMODECAPABLE_TRUE" - }, - "TRUE_FOR_AUTOLOWLATENCYMODECAPABLE_PORT":{ - "method": "hdmiinput.port", - "validationJsonPath": "result.autoLowLatencyModeCapable", - "expected": "TRUE" - }, - "SET_AUTOLOWLATENCYMODECAPABLE_WITH_FALSE": { - "method": "manage_hdmiinput.setAutoLowLatencyModeCapable", - "params": "HDMIINPUT_SETAUTOLOWLATENCYMODECAPABLE_FALSE" - }, - "FALSE_FOR_AUTOLOWLATENCYMODECAPABLE_PORT":{ - "method": "hdmiinput.port", - "validationJsonPath": "result.autoLowLatencyModeCapable", - "expected": "FALSE" - }, - "SET_EDIDVERSION_TO_1.4": { - "method": "manage_hdmiinput.setEdidVersion", - "params": "HDMIINPUT_EDIDVERSION_1_4_HDMI1" - }, "1.4_FOR_EDIDVERSION_PORT":{ "method": "hdmiinput.port", "validationJsonPath": "result.edidVersion", "expected": "HDMIINPUT_EDIDVERSION_1_4" }, - "SET_EDIDVERSION_TO_2.0": { - "method": "manage_hdmiinput.setEdidVersion", - "params": "HDMIINPUT_EDIDVERSION_2_0_HDMI1" - }, "2.0_FOR_EDIDVERSION_PORT":{ "method": "hdmiinput.port", "validationJsonPath": "result.edidVersion", "expected": "HDMIINPUT_EDIDVERSION_2_0" }, - "SET_EDIDVERSION_TO_UNKNOWN": { - "method": "manage_hdmiinput.setEdidVersion", - "params": "HDMIINPUT_EDIDVERSION_UNKNOWN_HDMI1" - }, - "TRUE_FOR_AUTOLOWLATENCYMODECAPABLE_PORTS":{ - "method": "hdmiinput.ports", - "validationJsonPath": "result[0].autoLowLatencyModeCapable", - "expected": "TRUE" - }, - "FALSE_FOR_AUTOLOWLATENCYMODECAPABLE_PORTS":{ - "method": "hdmiinput.ports", - "validationJsonPath": "result[0].autoLowLatencyModeCapable", - "expected": "FALSE" - }, "1.4_FOR_EDIDVERSION_PORTS":{ "method": "hdmiinput.ports", "validationJsonPath": "result[0].edidVersion", @@ -80,75 +28,6 @@ "validationJsonPath": "result[0].edidVersion", "expected": "HDMIINPUT_EDIDVERSION_2_0" }, - "FALSE_FOR_AUTOLOWLATENCYMODESIGNALLED_PORTS":{ - "method": "hdmiinput.ports", - "validationJsonPath": "result[0].autoLowLatencyModeSignalled", - "expected": "FALSE" - }, - "OPEN_HDMI1_PORT":{ - "method": "manage_hdmiinput.open", - "params": "HDMIINPUT_PORT_HDMI1" - }, - "NULL_FOR_HDMIINPUT_OPEN":{ - "method": "hdmiinput.open", - "validationJsonPath": "result", - "expected": "NULL" - }, - "CLOSE_HDMI_PORT":{ - "method": "manage_hdmiinput.close" - }, - "NULL_FOR_HDMIINPUT_CLOSE":{ - "method": "hdmiinput.close", - "validationJsonPath": "result", - "expected": "NULL" - }, - "SET_AUTOLOWLATENCYMODECAPABLE_TRUE_WITH_HDMI1": { - "method": "manage_hdmiinput.setAutoLowLatencyModeCapable", - "params": "HDMIINPUT_AUTOLOWLATENCYMODECAPABLE_TRUE_HDMI1" - }, - "SET_AUTOLOWLATENCYMODECAPABLE_FALSE_WITH_HDMI1": { - "method": "manage_hdmiinput.setAutoLowLatencyModeCapable", - "params": "HDMIINPUT_AUTOLOWLATENCYMODECAPABLE_FALSE_HDMI1" - }, - "SET_LOWLATENCYMODE_WITH_TRUE": { - "method": "manage_hdmiinput.setLowLatencyMode", - "params": "HDMIINPUT_SETLOWLATENCYMODE_TRUE" - }, - "SET_LOWLATENCYMODE_WITH_FALSE": { - "method": "manage_hdmiinput.setLowLatencyMode", - "params": "HDMIINPUT_SETLOWLATENCYMODE_FALSE" - }, - "HDMIINPUT_ONAUTOLOWLATENCYMODECAPABLECHANGED": { - "method": "manage_hdmiinput.onAutoLowLatencyModeCapableChanged" - }, - "HDMIINPUT_ONEDIDVERSIONCHANGED": { - "method": "manage_hdmiinput.onEdidVersionChanged" - }, - "HDMIINPUT_ONLOWLATENCYMODECHANGED": { - "method": "manage_hdmiinput.onLowLatencyModeChanged" - }, - "GET_AUTOLOWLATENCYMODECAPABLE": { - "method": "manage_hdmiinput.autoLowLatencyModeCapable", - "params": "HDMIINPUT_PORTVALUE_HDMI1" - }, - "GET_EDIDVERSION": { - "method": "manage_hdmiinput.edidVersion", - "params": "HDMIINPUT_PORTVALUE_HDMI1" - }, - "GET_LOWLATENCYMODE": { - "method": "manage_hdmiinput.lowLatencyMode", - "params": "HDMIINPUT_PORTVALUE_HDMI1" - }, - "TRUE_FOR_AUTOLOWLATENCYMODECAPABLE_HDMI1_PORT":{ - "method": "hdmiinput.autoLowLatencyModeCapable", - "validationJsonPath": "result", - "expected": "TRUE" - }, - "FALSE_FOR_AUTOLOWLATENCYMODECAPABLE_HDMI1_PORT":{ - "method": "hdmiinput.autoLowLatencyModeCapable", - "validationJsonPath": "result", - "expected": "FALSE" - }, "1.4_FOR_EDIDVERSION_HDMI1_PORT":{ "method": "hdmiinput.edidVersion", "validationJsonPath": "result", @@ -159,26 +38,6 @@ "validationJsonPath": "result", "expected": "HDMIINPUT_EDIDVERSION_2_0" }, - "TRUE_FOR_LOWLATENCYMODE":{ - "method": "hdmiinput.lowLatencyMode", - "validationJsonPath": "result", - "expected": "TRUE" - }, - "FALSE_FOR_LOWLATENCYMODE":{ - "method": "hdmiinput.lowLatencyMode", - "validationJsonPath": "result", - "expected": "FALSE" - }, - "TRUE_FOR_ONAUTOLOWLATENCYMODECAPABLECHANGED":{ - "event": "hdmiinput.onAutoLowLatencyModeCapableChanged", - "validationJsonPath": "eventResponse", - "expected": "TRUE" - }, - "FALSE_FOR_ONAUTOLOWLATENCYMODECAPABLECHANGED":{ - "event": "hdmiinput.onAutoLowLatencyModeCapableChanged", - "validationJsonPath": "eventResponse", - "expected": "FALSE" - }, "1.4_FOR_ONEDIDVERSIONCHANGED":{ "event": "hdmiinput.onEdidVersionChanged", "validationJsonPath": "eventResponse", @@ -189,246 +48,6 @@ "validationJsonPath": "eventResponse", "expected": "HDMIINPUT_EDIDVERSION_2_0" }, - "TRUE_FOR_ONLOWLATENCYMODECHANGED":{ - "event": "hdmiinput.onLowLatencyModeChanged", - "validationJsonPath": "eventResponse", - "expected": "TRUE" - }, - "FALSE_FOR_ONLOWLATENCYMODECHANGED":{ - "event": "hdmiinput.onLowLatencyModeChanged", - "validationJsonPath": "eventResponse", - "expected": "FALSE" - }, - "SET_HDMIINPUT_WITH_INTEGER":{ - "method": "manage_hdmiinput.port", - "params": "HDMIINPUT_PORT_INTEGER", - "expected": "error" - }, - "SET_HDMIINPUT_WITH_BOOLEAN":{ - "method": "manage_hdmiinput.port", - "params": "HDMIINPUT_PORT_BOOLEAN", - "expected": "error" - }, - "SET_HDMIINPUT_WITH_INVALID_STRING":{ - "method": "manage_hdmiinput.port", - "params": "HDMIINPUT_PORT_INVALID_STRING", - "expected": "error" - }, - "SET_HDMIINPUT_PORT_WITH_INTEGER_EDIDVERSION":{ - "method": "manage_hdmiinput.setEdidVersion", - "params": "HDMIINPUT_EDIDVERSION_INTEGER", - "expected": "error" - }, - "SET_HDMIINPUT_PORT_WITH_BOOLEAN_EDIDVERSION":{ - "method": "manage_hdmiinput.setEdidVersion", - "params": "HDMIINPUT_PORT_BOOLEAN", - "expected": "error" - }, - "SET_HDMIINPUT_PORT_WITH_INVALID_STRING_EDIDVERSION":{ - "method": "manage_hdmiinput.setEdidVersion", - "params": "HDMIINPUT_EDIDVERSION_INVALID_STRING", - "expected": "error" - }, - "INVALID_PARAMETERS_FOR_HDMIINPUT_PORT":{ - "method": "hdmiinput.port", - "validationJsonPath": "result", - "expected": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMETERS_FOR_HDMIINPUT_EDIDVERSION":{ - "method": "hdmiinput.setEdidVersion", - "validationJsonPath": "result", - "expected": "INVALID_PARAMS", - "expectingError": true - }, - "SET_AUTOLOWLATENCYMODECAPABLE_WITH_INTEGER": { - "method": "manage_hdmiinput.setAutoLowLatencyModeCapable", - "params": "HDMIINPUT_AUTOLOWLATENCYMODECAPABLE_INTEGER_HDMI1", - "expected": "error" - }, - "SET_AUTOLOWLATENCYMODECAPABLE_WITH_INVALID_STRING": { - "method": "manage_hdmiinput.setAutoLowLatencyModeCapable", - "params": "HDMIINPUT_AUTOLOWLATENCYMODECAPABLE_STRING_HDMI1", - "expected": "error" - }, - "SET_EDIDVERSION_WITH_INTEGER": { - "method": "manage_hdmiinput.setEdidVersion", - "params": "HDMIINPUT_EDIDVERSION_INTEGER", - "expected": "error" - }, - "SET_EDIDVERSION_WITH_BOOLEAN": { - "method": "manage_hdmiinput.setEdidVersion", - "params": "HDMIINPUT_EDIDVERSION_BOOLEAN", - "expected": "error" - }, - "SET_LOWLATENCYMODE_WITH_INTEGER": { - "method": "manage_hdmiinput.setLowLatencyMode", - "params": "INTEGER_123", - "expected": "error" - }, - "SET_LOWLATENCYMODE_WITH_STRING": { - "method": "manage_hdmiinput.setLowLatencyMode", - "params": "TEST", - "expected": "error" - }, - "SET_AUTOLOWLATENCYMODECAPABLE_WITHOUT_PORT": { - "method": "manage_hdmiinput.setAutoLowLatencyModeCapable", - "params": "HDMIINPUT_AUTOLOWLATENCYMODECAPABLE_TRUE_WITHOUT_PORT", - "expected": "error" - }, - "SET_EDIDVERSION_WITHOUT_PORT": { - "method": "manage_hdmiinput.setEdidVersion", - "params": "HDMIINPUT_EDIDVERSION_1_4_WITHOUT_PORT", - "expected": "error" - }, - "SET_AUTOLOWLATENCYMODECAPABLE_WITH_EMPTY_PARAM": { - "method": "manage_hdmiinput.setAutoLowLatencyModeCapable", - "params": "EMPTY_PARAM", - "expected": "error" - }, - "SET_EDIDVERSION_WITH_EMPTY_PARAM": { - "method": "manage_hdmiinput.setEdidVersion", - "params": "EMPTY_PARAM", - "expected": "error" - }, - "SET_LOWLATENCYMODE_WITH_EMPTY_PARAM": { - "method": "manage_hdmiinput.setLowLatencyMode", - "params": "EMPTY_PARAM", - "expected": "error" - }, - "INVALID_PARAMETERS_FOR_AUTOLOWLATENCYMODECAPABLE":{ - "method": "hdmiinput.setAutoLowLatencyModeCapable", - "validationJsonPath": "result", - "expected": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMETERS_FOR_EDIDVERSION":{ - "method": "hdmiinput.setEdidVersion", - "validationJsonPath": "result", - "expected": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMETERS_FOR_LOWLATENCYMODE":{ - "method": "hdmiinput.setLowLatencyMode", - "validationJsonPath": "result", - "expected": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMETERS_FOR_HDMIINPUT_OPEN":{ - "method": "hdmiinput.open", - "validationJsonPath": "result", - "expected": "INVALID_PARAMS", - "expectingError": true - }, - "SET_HDMIINPUT_OPEN_WITH_EMPTY_PARAM": { - "method": "manage_hdmiinput.open", - "params": "EMPTY_PARAM", - "expected": "error" - }, - "SET_HDMIINPUT_OPEN_WITH_INTEGER": { - "method": "manage_hdmiinput.open", - "params": "HDMIINPUT_PORT_INTEGER", - "expected": "error" - }, - "SET_HDMIINPUT_OPEN_WITH_BOOLEAN": { - "method": "manage_hdmiinput.open", - "params": "HDMIINPUT_PORT_BOOLEAN", - "expected": "error" - }, - "GET_HDMIINPUT_PORTS_LIST_WITH_ERROR":{ - "method": "manage_hdmiinput.ports", - "expected": "error" - }, - "INVALID_PARAMETERS_FOR_HDMIINPUT_PORTS":{ - "method": "hdmiinput.ports", - "validationJsonPath": "result", - "expected": "INVALID_PARAMS", - "expectingError": true - }, - "GET_HDMIINPUT_PORT_WITH_ERROR":{ - "method": "manage_hdmiinput.port", - "expected": "error" - }, - "HDMIINPUT_ONCONNECTIONCHANGED":{ - "method": "manage_hdmiinput.onConnectionChanged" - }, - "HDMIINPUT_ONSIGNALCHANGED":{ - "method": "manage_hdmiinput.onSignalChanged" - }, - "HDMIINPUT_ONAUTOLOWLATENCYMODESIGNALCHANGED":{ - "method": "manage_hdmiinput.onAutoLowLatencyModeSignalChanged" - }, - "TRUE_FOR_HDMIINPUT_PORT_CONNECTED":{ - "method": "manage_hdmiinput.port", - "params": "HDMIINPUT_CONNECTED_TRUE" - }, - "FALSE_FOR_HDMIINPUT_PORT_CONNECTED":{ - "method": "manage_hdmiinput.port", - "params": "HDMIINPUT_CONNECTED_TRUE" - }, - "UNKNOWN_FOR_HDMIINPUT_PORT_SIGNAL":{ - "method": "manage_hdmiinput.port", - "params": "HDMIINPUT_SIGNAL_UNKNOWN" - }, - "NONE_FOR_HDMIINPUT_PORT_SIGNAL":{ - "method": "manage_hdmiinput.port", - "params": "HDMIINPUT_SIGNAL_NONE" - }, - "STABLE_FOR_HDMIINPUT_PORT_SIGNAL":{ - "method": "manage_hdmiinput.port", - "params": "HDMIINPUT_SIGNAL_STABLE" - }, - "UNSTABLE_FOR_HDMIINPUT_PORT_SIGNAL":{ - "method": "manage_hdmiinput.port", - "params": "HDMIINPUT_SIGNAL_UNSTABLE" - }, - "UNSUPPORTED_FOR_HDMIINPUT_PORT_SIGNAL":{ - "method": "manage_hdmiinput.port", - "params": "HDMIINPUT_SIGNAL_UNSUPPORTED" - }, - "TRUE_FOR_HDMIINPUT_PORT_AUTOLOWLATENCYMODESIGNALLED":{ - "method": "manage_hdmiinput.port", - "params": "HDMIINPUT_AUTOLOWLATENCYMODESIGNALLED_TRUE" - }, - "FALSE_FOR_HDMIINPUT_PORT_AUTOLOWLATENCYMODESIGNALLED":{ - "method": "manage_hdmiinput.port", - "params": "HDMIINPUT_AUTOLOWLATENCYMODESIGNALLED_FALSE" - }, - "TRUE_FOR_HDMIINPUT_ONCONNECTIONCHANGED_EVENT":{ - "event": "manage_hdmiinput.onConnectionChanged", - "validationJsonPath": "eventResponse", - "expected": "HDMIINPUT_ONCONNECTIONCHANGED_TRUE" - }, - "FALSE_FOR_HDMIINPUT_ONCONNECTIONCHANGED_EVENT":{ - "event": "manage_hdmiinput.onConnectionChanged", - "validationJsonPath": "eventResponse", - "expected": "HDMIINPUT_ONCONNECTIONCHANGED_FALSE" - }, - "UNKNOWN_FOR_HDMIINPUT_ONSIGNALCHANGED_EVENT":{ - "event": "manage_hdmiinput.onSignalChanged", - "validationJsonPath": "eventResponse", - "expected": "HDMIINPUT_ONSIGNALCHANGED_UNKNOWN" - }, - "NONE_FOR_HDMIINPUT_ONSIGNALCHANGED_EVENT":{ - "event": "manage_hdmiinput.onSignalChanged", - "validationJsonPath": "eventResponse", - "expected": "HDMIINPUT_ONSIGNALCHANGED_NONE" - }, - "STABLE_FOR_HDMIINPUT_ONSIGNALCHANGED_EVENT":{ - "event": "manage_hdmiinput.onSignalChanged", - "validationJsonPath": "eventResponse", - "expected": "HDMIINPUT_ONSIGNALCHANGED_STABLE" - }, - "UNSTABLE_FOR_HDMIINPUT_ONSIGNALCHANGED_EVENT":{ - "event": "manage_hdmiinput.onSignalChanged", - "validationJsonPath": "eventResponse", - "expected": "HDMIINPUT_ONSIGNALCHANGED_UNSTABLE" - }, - "UNSUPPORTED_FOR_HDMIINPUT_ONCONNECTIONCHANGED_EVENT":{ - "event": "manage_hdmiinput.onSignalChanged", - "validationJsonPath": "eventResponse", - "expected": "HDMIINPUT_ONSIGNALCHANGED_UNSUPPORTED" - }, "TRUE_FOR_HDMIINPUT_ONAUTOLOWLATENCYMODESIGNALCHANGED_EVENT":{ "event": "manage_hdmiinput.onAutoLowLatencyModeSignalChanged", "validationJsonPath": "eventResponse", diff --git a/cypress/fixtures/fireboltCalls/localization.js b/cypress/fixtures/fireboltCalls/localization.js index 39d2ea04b..32259c8c4 100644 --- a/cypress/fixtures/fireboltCalls/localization.js +++ b/cypress/fixtures/fireboltCalls/localization.js @@ -52,14 +52,14 @@ exports.LOCALIZATION_ADDITIONAL_INFO = { }; exports.LOCALIZATION = { - method: resolveAtRuntime('localization.{{attribute}}'), + method: resolveAtRuntime('{{module}}.{{method}}'), params: {}, validationJsonPath: 'result', - setMethod: resolveAtRuntime('manage_localization.set{{attribute.uppercaseFirstChar}}'), + setMethod: resolveAtRuntime('manage_{{module}}.set{{attribute.uppercaseFirstChar}}'), setParams: resolveAtRuntime('value'), setValidationJsonPath: 'result', setContent: null, - event: resolveAtRuntime('localization.on{{attribute.uppercaseFirstChar}}Changed'), + event: resolveAtRuntime('{{module}}.on{{method.uppercaseFirstChar}}Changed'), eventValidationJsonPath: 'eventResponse', content: { data: [ @@ -70,7 +70,7 @@ exports.LOCALIZATION = { mode: 'staticContentValidation', type: resolveAtRuntime('value'), description: resolveAtRuntime( - 'Validating that manage_localization.set{{attribute.uppercaseFirstChar}} {{attribute}} is {{value}}' + 'Validating that manage_{{module}}.set{{attribute.uppercaseFirstChar}} {{attribute}} is {{value}}' ), }, ], @@ -362,6 +362,11 @@ exports.SET_COUNTRYCODE_TO_PH = { params: { value: 'PH' }, }; +exports.SET_COUNTRYCODE_TO_UK = { + method: 'manage_localization.setCountryCode', + params: { value: 'UK' }, +}; + exports.SET_LOCALE_TO_ENUS = { method: 'manage_localization.setLocale', params: { value: 'en-US' }, diff --git a/cypress/fixtures/fireboltCalls/localization.json b/cypress/fixtures/fireboltCalls/localization.json index ada4267e8..5fee6344c 100644 --- a/cypress/fixtures/fireboltCalls/localization.json +++ b/cypress/fixtures/fireboltCalls/localization.json @@ -1,83 +1,4 @@ { - "GET_LOCALIZATION_ADDITIONALINFO": { - "method": "localization.additionalInfo" - }, - "EXPECTED_LOCALIZATION_ADDITIONALINFO": { - "method": "localization.additionalInfo", - "validationJsonPath": "result", - "content": "EMPTYPARAM" - }, - "SET_LOCALIZATION_ADDADDITIONALINFO_WITH_STRING": { - "method": "manage_localization.addAdditionalInfo", - "params": "LOCALIZATION_ADD_ADDITIONALINFO_AS_STRING" - }, - "STRING_FOR_LOCALIZATION_ADDITIONALINFO": { - "method": "localization.additionalInfo", - "validationJsonPath": "result", - "content": "LOCALIZATION_ADD_ADDITIONALINFO_AS_STRING" - }, - "SET_LOCALIZATION_ADDADDITIONALINFO_WITH_EMPTY_STRING": { - "method": "manage_localization.addAdditionalInfo", - "params": "LOCALIZATION_ADD_ADDITIONALINFO_AS_EMPTY" - }, - "EMPTY_STRING_FOR_LOCALIZATION_ADDITIONALINFO": { - "method": "localization.additionalInfo", - "validationJsonPath": "result", - "content": "LOCALIZATION_ADD_ADDITIONALINFO_AS_EMPTY" - }, - "SET_LOCALIZATION_REMOVEADDITIONALINFO_WITH_STRING": { - "method": "manage_localization.removeAdditionalInfo", - "params": "LOCALIZATION_ADD_ADDITIONALINFO_KEY_AS_STRING" - }, - "SET_LOCALIZATION_REMOVEADDITIONALINFO_WITH_EMPTY_STRING": { - "method": "manage_localization.removeAdditionalInfo", - "params": "LOCALIZATION_ADD_ADDITIONALINFO_KEY_AS_EMPTY_STRING" - }, - "EMPTY_KEY/VALUE_FOR_LOCALIZATION_ADDITIONALINFO": { - "method": "localization.additionalInfo", - "validationJsonPath": "result", - "content": "LOCALIZATION_REMOVE_ADDITIONALINFO_RESPONSE_AS_EMPTY_STRING" - }, - "EMPTY_RESPONSE_FOR_LOCALIZATION_ADDITIONALINFO": { - "method": "localization.additionalInfo", - "validationJsonPath": "result", - "content": "LOCALIZATION_REMOVE_ADDITIONALINFO_EMPTY_RESPONSE" - }, - "SET_LOCALIZATION_ADDADDITIONALINFO_WITH_KEY_AS_STRING_VALUE_AS_NULL": { - "method": "manage_localization.addAdditionalInfo", - "params": "LOCALIZATION_ADD_ADDITIONALINFO_VALUE_AS_NULL", - "expected": "error" - }, - "INVALID_PARAMETERS_FOR_LOCALIZATION_ADDADDITIONALINFO": { - "method": "localization.addAdditionalInfo", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "SET_LOCALIZATION_ADDADDITIONALINFO_WITH_KEY_AS_NULL_VALUE_AS_STRING": { - "method": "manage_localization.addAdditionalInfo", - "params": "LOCALIZATION_ADD_ADDITIONALINFO_KEY_AS_NULL", - "expected": "error" - }, - "SET_LOCALIZATION_ADDADDITIONALINFO_WITH_KEY_AND_VALUE_AS_NULL": { - "method": "manage_localization.addAdditionalInfo", - "params": "LOCALIZATION_ADD_ADDITIONALINFO_AS_NULL", - "expected": "error" - }, - "SET_LOCALIZATION_ADDADDITIONALINFO_WITH_KEY_AND_VALUE_AS_INTEGER": { - "method": "manage_localization.addAdditionalInfo", - "params": "LOCALIZATION_ADD_ADDITIONALINFO_AS_INTEGER", - "expected": "error" - }, - "SET_LOCALIZATION_ADDADDITIONALINFO_WITH_KEY_AND_VALUE_AS_OBJECT": { - "method": "manage_localization.addAdditionalInfo", - "params": "LOCALIZATION_ADD_ADDITIONALINFO_AS_OBJECT", - "expected": "error" - }, - "SET_LOCALIZATION_ADDADDITIONALINFO_WITH_EMPTY_OBJECT": { - "method": "manage_localization.addAdditionalInfo", - "expected": "error" - }, "SET_LOCALIZATION_REMOVEADDITIONALINFO_AS_EMPTY_OBJECT": { "method": "manage_localization.removeAdditionalInfo", "expected": "error" @@ -93,65 +14,28 @@ "params": "INTEGER_12345", "expected": "error" }, - "GET_LOCALIZATION_COUNTRYCODE": { - "method": "localization.countryCode" - }, - "LOCALIZATION_COUNTRYCODE": { - "method": "localization.countryCode" - }, "PH_FOR_LOCALIZATION_COUNTRYCODE": { "method": "localization.countryCode", "validationJsonPath": "result", "content": "LOCALIZATION_COUNTRYCODE_PH" }, - "GET_LOCALIZATION_LANGUAGE": { - "method": "localization.language" - }, "EXPECTED_LOCALIZATION_LANGUAGE": { "method": "localization.language", "validationJsonPath": "result", "content": "LOCALIZATION_LANGUAGE" }, - "GET_LOCALIZATION_LOCALE": { - "method": "localization.locale" - }, "ENUS_FOR_LOCALIZATION_LOCALE": { "method": "localization.locale", "validationJsonPath": "result", "content": "LOCALIZATION_LOCALE" }, - "ENUK_FOR_LOCALIZATION_LOCALE": { - "method": "localization.locale", - "validationJsonPath": "result", - "content": "LOCALIZATION_LOCALE_UK" - }, - "ESUK_FOR_LOCALIZATION_LOCALE": { - "method": "localization.locale", - "validationJsonPath": "result", - "content": "LOCALIZATION_LOCALE_UK_ES" - }, "GET_LOCALIZATION_PREFERREDAUDIOLANGUAGES": { "method": "localization.preferredAudioLanguages" }, - "GET_LOCALIZATION_LATLON": { - "method": "localization.latlon" - }, - "EXPECTED_LOCALIZATION_LATLON": { - "method": "localization.latlon", - "validationJsonPath": "result", - "content": "LOCALIZATION_LATLON" - }, - "LOCALIZATION_ONLOCALITYCHANGED": { - "method": "localization.onLocalityChanged" - }, "SET_LOCALIZATION_LOCALITY_TO_WASHINGTON": { "method": "manage_localization.setLocality", "params": "LOCALIZATION_LOCALITY_WASHINGTON" }, - "SET_LOCALIZATION_LOCALITY_TO_PHILADELPHIA": { - "method": "manage_localization.setLocality", - "params": "LOCALIZATION_LOCALITY_PHILADELPHIA" - }, "GET_LOCALIZATION_LOCALITY": { "method": "localization.locality" }, @@ -169,54 +53,17 @@ "validationJsonPath": "eventResponse", "content": "LOCALIZATION_LOCALITY_WASHINGTON" }, - "LOCALIZATION_ONCOUNTRYCODECHANGED": { - "method": "localization.onCountryCodeChanged" - }, - "LOCALIZATION_ONLOCALECHANGED": { - "method": "localization.onLocaleChanged" - }, - "LOCALIZATION_ONLANGUAGECHANGED": { - "method": "localization.onLanguageChanged" - }, "LOCALIZATION_ONPREFERREDAUDIOLANGUAGESCHANGED": { "method": "localization.onPreferredAudioLanguagesChanged" }, - "SET_COUNTRYCODE_TO_PH": { - "method": "manage_localization.setCountryCode", - "params": "LOCALIZATION_COUNTRYCODE_PH" - }, - "SET_COUNTRYCODE_TO_US": { - "method": "manage_localization.setCountryCode", - "params": "LOCALIZATION_COUNTRYCODE_US" - }, - "SET_LOCALE_TO_ENUS": { - "method": "manage_localization.setLocale", - "params": "LOCALIZATION_LOCALE" - }, - "SET_LOCALE_TO_ENUK": { - "method": "manage_localization.setLocale", - "params": "LOCALIZATION_LOCALE_UK" - }, - "SET_LOCALE_TO_ESUK": { - "method": "manage_localization.setLocale", - "params": "LOCALIZATION_LOCALE_UK_ES" - }, "SET_LANGUAGE_TO_ES": { "method": "manage_localization.setLanguage", "params": "LOCALIZATION_LANGUAGE_ES" }, - "SET_LANGUAGE_TO_EN": { - "method": "manage_localization.setLanguage", - "params": "LOCALIZATION_LANGUAGE_EN" - }, "SET_PREFERREDAUDIOLANGUAGES_TO_SPA_ENG": { "method": "manage_localization.setPreferredAudioLanguages", "params": "LOCALIZATION_PREFERRED_AUDIO_LANGUAGES_VALUE_SPA_ENG" }, - "SET_PREFERREDAUDIOLANGUAGES_TO_ENG_SPA": { - "method": "manage_localization.setPreferredAudioLanguages", - "params": "LOCALIZATION_PREFERRED_AUDIO_LANGUAGES_VALUE_ENG_SPA" - }, "SPA_ENG_FOR_LOCALIZATION_PREFERREDAUDIOLANGUAGES": { "method": "localization.preferredAudioLanguages", "validationJsonPath": "result", @@ -237,16 +84,6 @@ "validationJsonPath": "eventResponse", "content": "LOCALIZATION_PREFERRED_AUDIO_LANGUAGES_SPA_ENG" }, - "ONLANGUAGECHANGED_FOR_LOCALIZATION_WITH_ES": { - "event": "localization.onLanguageChanged", - "validationJsonPath": "eventResponse", - "content": "LOCALIZATION_LANGUAGE_ES" - }, - "ES_FOR_LOCALIZATION_LANGUAGE": { - "method": "localization.language", - "validationJsonPath": "result", - "content": "LOCALIZATION_LANGUAGE_ES" - }, "EN_FOR_LOCALIZATION_LANGUAGE": { "method": "localization.language", "validationJsonPath": "result", @@ -262,39 +99,15 @@ "validationJsonPath": "eventResponse", "content": "LOCALIZATION_LOCALE" }, - "ONLOCALECHANGED_FOR_LOCALIZATION_WITH_ENUK": { - "event": "localization.onLocaleChanged", - "validationJsonPath": "eventResponse", - "content": "LOCALIZATION_LOCALE_UK" - }, - "ONLOCALECHANGED_FOR_LOCALIZATION_WITH_ESUK": { - "event": "localization.onLocaleChanged", - "validationJsonPath": "eventResponse", - "content": "LOCALIZATION_LOCALE_UK_ES" - }, "ONCOUNTRYCODECHANGED_FOR_LOCALIZATION_WITH_PH": { "event": "localization.onCountryCodeChanged", "validationJsonPath": "eventResponse", "content": "LOCALIZATION_COUNTRYCODE_PH" }, - "ONCOUNTRYCODECHANGED_FOR_LOCALIZATION_WITH_UK": { - "event": "localization.onCountryCodeChanged", - "validationJsonPath": "eventResponse", - "content": "LOCALIZATION_COUNTRYCODE_UK" - }, - "UK_FOR_LOCALIZATION_COUNTRYCODE": { - "method": "localization.countryCode", - "validationJsonPath": "result", - "content": "LOCALIZATION_COUNTRYCODE" - }, "SET_POSTALCODE_TO_12345": { "method": "manage_localization.setPostalCode", "params": "STRING_12345" }, - "SET_POSTALCODE_TO_19103": { - "method": "manage_localization.setPostalCode", - "params": "STRING19103" - }, "GET_POSTALCODE": { "method": "localization.postalCode" }, @@ -362,10 +175,6 @@ "MANAGE_LOCALIZATION_ONPREFERREDAUDIOLANGUAGESCHANGED": { "method": "manage_localization.onPreferredAudioLanguagesChanged" }, - "SET_LOCALITY_TO_WASHINGTON": { - "method": "manage_localization.setLocality", - "params": "LOCALIZATION_LOCALITY_WASHINGTON" - }, "GET_LOCALITY": { "method": "manage_localization.locality" }, @@ -607,30 +416,6 @@ "SET_TIMEZONE_WITHOUT_PARAMS": { "method": "manage_localization.setTimeZone" }, - "SET_LOCALIZATION_TIMEZONE_WITH_AMERICA_LOSANGELES": { - "method": "manage_localization.setTimeZone", - "params": "LOCALIZATION_SETTIMEZONE_AMERICA_LOSANGELES" - }, - "ONLOCALITYCHANGED": { - "event": "localization.onLocalityChanged", - "validationJsonPath": "eventResponse", - "content": "NULL" - }, - "ONCOUNTRYCODECHANGED": { - "event": "localization.onCountryCodeChanged", - "validationJsonPath": "eventResponse", - "content": "NULL" - }, - "ONLOCALECHANGED": { - "event": "localization.onLocaleChanged", - "validationJsonPath": "eventResponse", - "content": "NULL" - }, - "ONLANGUAGECHANGED": { - "event": "localization.onLanguageChanged", - "validationJsonPath": "eventResponse", - "content": "NULL" - }, "EXPECT_ERROR_FOR_LOCALIZATION_LANGUAGE": { "method": "localization.language", "expected": "error" @@ -671,23 +456,5 @@ "validationJsonPath": "result", "content": "INVALID_PARAMS", "expectingError": true - }, - "SET_LOCALIZATION_ADDADDITIONALINFO_WITH_INTEGER": { - "method": "manage_localization.addAdditionalInfo", - "params": "LOCALIZATION_ADD_ADDITIONALINFO_VALUE_AS_INTEGER" - }, - "INTEGER_FOR_LOCALIZATION_ADDITIONALINFO": { - "method": "localization.additionalInfo", - "validationJsonPath": "result", - "content": "LOCALIZATION_ADD_ADDITIONALINFO_AS_INTEGER" - }, - "SET_LOCALIZATION_ADDADDITIONALINFO_WITH_BOOLEAN": { - "method": "manage_localization.addAdditionalInfo", - "params": "LOCALIZATION_ADD_ADDITIONALINFO_VALUE_AS_BOOLEAN" - }, - "BOOLEAN_FOR_LOCALIZATION_ADDITIONALINFO": { - "method": "localization.additionalInfo", - "validationJsonPath": "result", - "content": "LOCALIZATION_ADD_ADDITIONALINFO_AS_BOOLEAN" } } \ No newline at end of file diff --git a/cypress/fixtures/fireboltCalls/metrics.json b/cypress/fixtures/fireboltCalls/metrics.json index 99cac4d7d..595c1b45d 100644 --- a/cypress/fixtures/fireboltCalls/metrics.json +++ b/cypress/fixtures/fireboltCalls/metrics.json @@ -1,665 +1,12 @@ { - "SEND_METRICS_EVENT_WITH_SCHEMA_AND_FOO_DATA": { - "method": "manage_metrics.event", - "params": "METRICS_FOO_DATA_AND_SCHEMA" - }, - "SEND_METRICS_EVENT_WITH_SCHEMA_AND_NULL_FOO_DATA": { - "method": "manage_metrics.event", - "params": "METRICS_NULL_FOO_DATA_AND_SCHEMA" - }, - "SEND_METRICS_EVENT_WITH_SCHEMA_AND_BOOLEAN_FOO_DATA": { - "method": "manage_metrics.event", - "params": "METRICS_BOOLEAN_FOO_DATA_AND_SCHEMA" - }, - "SEND_METRICS_EVENT_WITH_EMPTY_DATA": { - "method": "manage_metrics.event", - "params": "METRICS_EMPTY_DATA_OBJECT" - }, "SEND_METRICS_EVENT_WITH_EMPTY_SCHEMA": { "method": "manage_metrics.event", "params": "METRICS_EMPTY_SCHEMA" }, - "SEND_METRICS_EVENT_WITH_SCHEMA_AS_BOOLEAN": { - "method": "manage_metrics.event", - "params": "METRICS_SCHEMA_AS_BOOLEAN", - "expected": "error" - }, - "SEND_METRICS_EVENT_WITH_SCHEMA_AS_INTEGER": { - "method": "manage_metrics.event", - "params": "METRICS_SCHEMA_AS_INTEGER", - "expected": "error" - }, - "SEND_METRICS_EVENT_WITH_INVALID_SCHEMA_URI": { - "method": "manage_metrics.event", - "params": "METRICS_SCHEMA_AS_INVALID_URI", - "expected": "error" - }, - "SEND_METRICS_EVENT_WITH_DATA_AS_STRING": { - "method": "manage_metrics.event", - "params": "METRICS_DATA_AS_STRING", - "expected": "error" - }, - "SEND_METRICS_EVENT_WITH_DATA_AS_BOOLEAN": { - "method": "manage_metrics.event", - "params": "METRICS_DATA_AS_BOOLEAN", - "expected": "error" - }, - "SEND_METRICS_EVENT_WITH_DATA_AS_INTEGER": { - "method": "manage_metrics.event", - "params": "METRICS_DATA_AS_INTEGER", - "expected": "error" - }, "NULL_FOR_METRICS_EVENT": { "method": "metrics.event", "validationJsonPath": "result", "content": "NULL" - }, - "INVALID_PARAMS_FOR_METRICS_EVENT":{ - "method": "metrics.event", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "NOTIFY_THAT_CONTENT_HAS_STARTED": { - "method": "metrics.startContent" - }, - "NOTIFY_THAT_CONTENT_HAS_STOPPED": { - "method": "metrics.stopContent" - }, - "TRUE_FOR_STARTCONTENT_IN_METRICS": { - "method": "metrics.startContent", - "validationJsonPath": "result", - "content": "TRUE" - }, - "TRUE_FOR_STOPCONTENT_IN_METRICS": { - "method": "metrics.stopContent", - "validationJsonPath": "result", - "content": "TRUE" - }, - "NOTIFY_THAT_PAGE_HAS_NAVIGATED_WITH_EMPTY_PARAMETER": { - "method": "metrics.page", - "expected": "error" - }, - "NOTIFY_ABOUT_ACTION_WITH_EMPTY_PARAMETER": { - "method": "metrics.action", - "expected": "error" - }, - "NOTIFY_ABOUT_ACTION_WITH_TYPE_NULL": { - "method": "metrics.action", - "params": "METRICS_ACTION_TYPE_NULL", - "expected": "error" - }, - "NOTIFY_ABOUT_ACTION_WITH_TYPE_MAXLENGTH_256": { - "method": "metrics.action", - "params": "METRICS_ACTION_TYPE_256", - "expected": "error" - }, - "NOTIFY_ABOUT_ACTION_WITH_DIFFERENT_CATEGORY": { - "method": "metrics.action", - "params": "METRICS_ACTION_DFRNT_CATEGORY", - "expected": "error" - }, - "NOTIFY_THAT_ERROR_HAS_OCCURED_WITH_EMPTY_PARAMETER": { - "method": "metrics.error", - "expected": "error" - }, - "INFER_LOAD_TIME_WITH_EMPTY_PARAMETER": { - "method": "metrics.mediaLoadStart", - "expected": "error" - }, - "START_PLAYBACK_WITH_EMPTY_PARAMETER": { - "method": "metrics.mediaPlay", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_HAS_STARTED_WITH_EMPTY_PARAMETER": { - "method": "metrics.mediaPlaying", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_HAS_PAUSED_WITH_EMPTY_PARAMETER": { - "method": "metrics.mediaPause", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_HAS_HALTED_WITH_EMPTY_PARAMETER": { - "method": "metrics.mediaWaiting", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_IS_PROGRESSING_WITH_EMPTY_PARAMETER": { - "method": "metrics.mediaProgress", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_SEEK_IS_INITIATED_WITH_EMPTY_PARAMETER": { - "method": "metrics.mediaSeeking", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_SEEK_IS_COMPLETED_WITH_EMPTY_PARAMETER": { - "method": "metrics.mediaSeeked", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_RATE_IS_CHANGED_WITH_EMPTY_PARAMETER": { - "method": "metrics.mediaRateChange", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_RENDITION_IS_CHANGED_WITH_EMPTY_PARAMETER": { - "method": "metrics.mediaRenditionChange", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_HAS_STOPPED_WITH_EMPTY_PARAMETER": { - "method": "metrics.mediaEnded", - "expected": "error" - }, - "INVALID_PARAMS_FOR_METRICS_STARTCONTENT": { - "method": "metrics.startContent", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMS_FOR_METRICS_STOPCONTENT": { - "method": "metrics.stopContent", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMS_FOR_METRICS_PAGE": { - "method": "metrics.page", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMS_FOR_METRICS_ACTION": { - "method": "metrics.action", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMS_FOR_METRICS_ERROR": { - "method": "metrics.error", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMS_FOR_METRICS_MEDIALOADSTART": { - "method": "metrics.mediaLoadStart", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMS_FOR_METRICS_MEDIAPLAY": { - "method": "metrics.mediaPlay", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMS_FOR_METRICS_MEDIAPLAYING": { - "method": "metrics.mediaPlaying", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMS_FOR_METRICS_MEDIAPAUSE": { - "method": "metrics.mediaPause", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMS_FOR_METRICS_MEDIAWAITING": { - "method": "metrics.mediaWaiting", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMS_FOR_METRICS_MEDIAPROGRESS": { - "method": "metrics.mediaProgress", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMS_FOR_METRICS_MEDIASEEKING": { - "method": "metrics.mediaSeeking", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMS_FOR_METRICS_MEDIASEEKED": { - "method": "metrics.mediaSeeked", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMS_FOR_METRICS_MEDIARATECHANGE": { - "method": "metrics.mediaRateChange", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMS_FOR_METRICS_MEDIARENDITIONCHANGE": { - "method": "metrics.mediaRenditionChange", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMS_FOR_METRICS_MEDIAENDED": { - "method": "metrics.mediaEnded", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "NOTIFY_THAT_CONTENT_HAS_STARTED_WITH_ENTITYID": { - "method": "metrics.startContent", - "params": "METRICS_ENTITYID" - }, - "NOTIFY_THAT_CONTENT_HAS_STOPPED_WITH_ENTITYID": { - "method": "metrics.stopContent", - "params": "METRICS_ENTITYID" - }, - "NOTIFY_THAT_PAGE_HAS_NAVIGATED_WITH_PAGEID": { - "method": "metrics.page", - "params": "METRICS_PAGE_ENTITYID" - }, - "NOTIFY_ABOUT_ACTION_WITH_USERMETRICS": { - "method": "metrics.action", - "params": "METRICS_ACTION_USERMETRICS" - }, - "NOTIFY_ABOUT_ACTION_WITH_APPMETRICS": { - "method": "metrics.action", - "params": "METRICS_ACTION_APPMETRICS" - }, - "NOTIFY_ABOUT_ACTION_WITH_PARAMETERSMETRICS": { - "method": "metrics.action", - "params": "METRICS_ACTION_PARAMETERS_METRICS" - }, - "NOTIFY_ABOUT_ACTION_WITH_PARAMETERSMETRICS_AS_STRING": { - "method": "metrics.action", - "params": "METRICS_ACTION_PARAMETERS_METRICS_AS_STRING" - }, - "NOTIFY_ABOUT_ACTION_WITH_PARAMETERSMETRICS_AS_BOOLEAN": { - "method": "metrics.action", - "params": "METRICS_ACTION_PARAMETERS_METRICS_AS_BOOLEAN" - }, - "NOTIFY_ABOUT_ACTION_WITH_PARAMETERSMETRICS_AS_NUMBER": { - "method": "metrics.action", - "params": "METRICS_ACTION_PARAMETERS_METRICS_AS_NUMBER" - }, - "NOTIFY_THAT_ERROR_HAS_OCCURED_WITH_MEDIASTALLED": { - "method": "metrics.error", - "params": "METRICS_ERROR_MEDIASTALLED" - }, - "NOTIFY_THAT_ERROR_HAS_OCCURED_WITH_MEDIASTALLED_PARAMETER": { - "method": "metrics.error", - "params": "METRICS_ERROR_MEDIASTALLED_WITH_PARAMETERS" - }, - "NOTIFY_THAT_ERROR_HAS_OCCURED_WITH_MEDIASTALLED_PARAMETER_AS_STRING": { - "method": "metrics.error", - "params": "METRICS_ERROR_MEDIASTALLED_WITH_PARAMETERS_AS_STRING" - }, - "NOTIFY_THAT_ERROR_HAS_OCCURED_WITH_MEDIASTALLED_PARAMETER_AS_BOOLEAN": { - "method": "metrics.error", - "params": "METRICS_ERROR_MEDIASTALLED_WITH_PARAMETERS_AS_BOOLEAN" - }, - "NOTIFY_THAT_ERROR_HAS_OCCURED_WITH_MEDIASTALLED_PARAMETER_AS_NUMBER": { - "method": "metrics.error", - "params": "METRICS_ERROR_MEDIASTALLED_WITH_PARAMETERS_AS_NUMBER" - }, - "INFER_LOAD_TIME_WITH_ENTITYID": { - "method": "metrics.mediaLoadStart", - "params": "METRICS_ENTITYID" - }, - "START_PLAYBACK_WITH_ENTITYID": { - "method": "metrics.mediaPlay", - "params": "METRICS_ENTITYID" - }, - "NOTIFY_THAT_PLAYBACK_HAS_STARTED_WITH_ENTITYID": { - "method": "metrics.mediaPlaying", - "params": "METRICS_ENTITYID" - }, - "NOTIFY_THAT_PLAYBACK_HAS_PAUSED_WITH_ENTITYID": { - "method": "metrics.mediaPause", - "params": "METRICS_ENTITYID" - }, - "NOTIFY_THAT_PLAYBACK_HAS_HALTED_WITH_ENTITYID": { - "method": "metrics.mediaWaiting", - "params": "METRICS_MEDIAWAITING" - }, - "NOTIFY_THAT_PLAYBACK_IS_PROGRESSING_WITH_MEDIAPOSITION": { - "method": "metrics.mediaProgress", - "params": "METRICS_MEDIAPROGRESS" - }, - "NOTIFY_THAT_PLAYBACK_SEEK_IS_INITIATED_WITH_MEDIAPOSITION": { - "method": "metrics.mediaSeeking", - "params": "METRICS_MEDIASEEKING" - }, - "NOTIFY_THAT_PLAYBACK_SEEK_IS_COMPLETED_WITH_MEDIAPOSITION": { - "method": "metrics.mediaSeeked", - "params": "METRICS_MEDIASEEKED" - }, - "NOTIFY_THAT_PLAYBACK_RATE_IS_CHANGED_WITH_PLAYBACKRATE": { - "method": "metrics.mediaRateChange", - "params": "METRICS_MEDIARATECHANGE" - }, - "NOTIFY_THAT_PLAYBACK_RENDITION_IS_CHANGED_WITH_BITRATEPROFILE": { - "method": "metrics.mediaRenditionChange", - "params": "METRICS_MEDIARENDITIONCHANGE" - }, - "NOTIFY_THAT_PLAYBACK_HAS_STOPPED_WITH_ENTITYID": { - "method": "metrics.mediaEnded", - "params": "METRICS_ENTITYID" - }, - "TRUE_FOR_PAGE_IN_METRICS": { - "method": "metrics.page", - "validationJsonPath": "result", - "content": "TRUE" - }, - "TRUE_FOR_ACTION_IN_METRICS": { - "method": "metrics.action", - "validationJsonPath": "result", - "content": "TRUE" - }, - "TRUE_FOR_ERROR_IN_METRICS": { - "method": "metrics.error", - "validationJsonPath": "result", - "content": "TRUE" - }, - "TRUE_FOR_MEDIALOADSTART_IN_METRICS": { - "method": "metrics.mediaLoadStart", - "validationJsonPath": "result", - "content": "TRUE" - }, - "TRUE_FOR_MEDIAPLAY_IN_METRICS": { - "method": "metrics.mediaPlay", - "validationJsonPath": "result", - "content": "TRUE" - }, - "TRUE_FOR_MEDIAPLAYING_IN_METRICS": { - "method": "metrics.mediaPlaying", - "validationJsonPath": "result", - "content": "TRUE" - }, - "TRUE_FOR_MEDIAPAUSE_IN_METRICS": { - "method": "metrics.mediaPause", - "validationJsonPath": "result", - "content": "TRUE" - }, - "TRUE_FOR_MEDIAWAITING_IN_METRICS": { - "method": "metrics.mediaWaiting", - "validationJsonPath": "result", - "content": "TRUE" - }, - "TRUE_FOR_MEDIAPROGRESS_IN_METRICS": { - "method": "metrics.mediaProgress", - "validationJsonPath": "result", - "content": "TRUE" - }, - "TRUE_FOR_MEDIASEEKING_IN_METRICS": { - "method": "metrics.mediaSeeking", - "validationJsonPath": "result", - "content": "TRUE" - }, - "TRUE_FOR_MEDIASEEKED_IN_METRICS": { - "method": "metrics.mediaSeeked", - "validationJsonPath": "result", - "content": "TRUE" - }, - "TRUE_FOR_MEDIARATECHANGE_IN_METRICS": { - "method": "metrics.mediaRateChange", - "validationJsonPath": "result", - "content": "TRUE" - }, - "TRUE_FOR_MEDIARENDITIONCHANGE_IN_METRICS": { - "method": "metrics.mediaRenditionChange", - "validationJsonPath": "result", - "content": "TRUE" - }, - "TRUE_FOR_MEDIAENDED_IN_METRICS": { - "method": "metrics.mediaEnded", - "validationJsonPath": "result", - "content": "TRUE" - }, - "NOTIFY_THAT_CONTENT_HAS_STARTED_WITH_NUMERIC_ENTITYID": { - "method": "metrics.startContent", - "params": "METRICS_INTEGER_12", - "expected": "error" - }, - "NOTIFY_THAT_CONTENT_HAS_STOPPED_WITH_NUMERIC_ENTITYID": { - "method": "metrics.stopContent", - "params": "METRICS_INTEGER_12", - "expected": "error" - }, - "NOTIFY_THAT_PAGE_HAS_NAVIGATED_WITH_NUMERIC_PAGEID": { - "method": "metrics.page", - "params": "METRICS_PAGEID_ERROR", - "expected": "error" - }, - "NOTIFY_ABOUT_ACTION_WITH_NUMERIC_USERMETRICS": { - "method": "metrics.action", - "params": "METRICS_ACTION_USERMETRICS_ERROR", - "expected": "error" - }, - "NOTIFY_ABOUT_ACTION_WITH_NUMERIC_APPMETRICS": { - "method": "metrics.action", - "params": "METRICS_ACTION_USERMETRICS_ERROR", - "expected": "error" - }, - "NOTIFY_ABOUT_ACTION_WITH_NUMERIC_TYPEMETRICS": { - "method": "metrics.action", - "params": "METRICS_ACTION_TYPEMETRICS_ERROR", - "expected": "error" - }, - "NOTIFY_ABOUT_ACTION_WITH_NUMERIC_PARAMMETRICS": { - "method": "metrics.action", - "params": "METRICS_ACTION_PARAMETERS_METRICS_ERROR", - "expected": "error" - }, - "NOTIFY_ABOUT_ACTION_WITH_PARAMMETRICS_FOR_NESTED_OBJECT": { - "method": "metrics.action", - "params": "METRICS_ACTION_PARAMETERS_METRICS_NESTED_OBJECT_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_ERROR_HAS_OCCURED_WITH_NUMERIC_TYPE": { - "method": "metrics.error", - "params": "METRICS_ERROR_TYPE_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_ERROR_HAS_OCCURED_WITH_STRING_TYPE": { - "method": "metrics.error", - "params": "METRICS_ERROR_TYPE_STRING_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_ERROR_HAS_OCCURED_WITH_NUMERIC_CODE": { - "method": "metrics.error", - "params": "METRICS_ERROR_CODE_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_ERROR_HAS_OCCURED_WITH_NUMERIC_DESCRIPTION": { - "method": "metrics.error", - "params": "METRICS_ERROR_DESC_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_ERROR_HAS_OCCURED_WITH_NUMERIC_VISIBLE": { - "method": "metrics.error", - "params": "METRICS_ERROR_VISIBLE_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_ERROR_HAS_OCCURED_WITH_NUMERIC_PARAMETERS": { - "method": "metrics.error", - "params": "METRICS_ERROR_PARAM_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_ERROR_HAS_OCCURED_WITH_PARAMETERS_FOR_NESTED_OBJECT": { - "method": "metrics.error", - "params": "METRICS_ERROR_PARAM_NESTED_OBJECT_ERROR", - "expected": "error" - }, - "INFER_LOAD_TIME_WITH_NUMERIC_ENTITYID": { - "method": "metrics.mediaLoadStart", - "params": "METRICS_INTEGER_12", - "expected": "error" - }, - "START_PLAYBACK_WITH_NUMERIC_ENTITYID": { - "method": "metrics.mediaPlay", - "params": "METRICS_INTEGER_12", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_HAS_STARTED_WITH_NUMERIC_ENTITYID": { - "method": "metrics.mediaPlaying", - "params": "METRICS_INTEGER_12", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_HAS_PAUSED_WITH_NUMERIC_ENTITYID": { - "method": "metrics.mediaPause", - "params": "METRICS_INTEGER_12", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_HAS_HALTED_WITH_NUMERIC_ENTITYID": { - "method": "metrics.mediaWaiting", - "params": "METRICS_INTEGER_12", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_IS_PROGRESSING_WITH_STRING_MEDIAPOSITION": { - "method": "metrics.mediaProgress", - "params": "METRICS_MEDIAPROGRESS_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_IS_PROGRESSING_WITH_STRING_PROGRESS": { - "method": "metrics.mediaProgress", - "params": "METRICS_MEDIAPROGRESS_PROGRESS_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_IS_PROGRESSING_WITH_INVALID_PROGRESS": { - "method": "metrics.mediaProgress", - "params": "METRICS_MEDIAPROGRESS_INVALID_PROGRESS_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_IS_PROGRESSING_WITH_DECIMAL_PROGRESS": { - "method": "metrics.mediaProgress", - "params": "METRICS_MEDIAPROGRESS_DECIMAL_PROGRESS_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_SEEK_IS_INITIATED_WITH_NUMERIC_ENTITYID": { - "method": "metrics.mediaSeeking", - "params": "METRICS_MEDIASEEKING_ENTITYID_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_SEEK_IS_INITIATED_WITH_DECIMAL_TARGET": { - "method": "metrics.mediaSeeking", - "params": "METRICS_MEDIASEEKING_DECIMAL_TARGET_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_SEEK_IS_INITIATED_WITH_INVALID_TARGET": { - "method": "metrics.mediaSeeking", - "params": "METRICS_MEDIASEEKING_INVALID_TARGET_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_SEEK_IS_INITIATED_WITH_STRING_TARGET": { - "method": "metrics.mediaSeeking", - "params": "METRICS_MEDIASEEKING_STRING_TARGET_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_SEEK_IS_COMPLETED_WITH_NUMERIC_ENTITYID": { - "method": "metrics.mediaSeeked", - "params": "METRICS_MEDIASEEKED_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_SEEK_IS_COMPLETED_WITH_INVALID_POSITION": { - "method": "metrics.mediaSeeked", - "params": "METRICS_MEDIASEEKED_INVALID_POSITION_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_SEEK_IS_COMPLETED_WITH_STRING_POSITION": { - "method": "metrics.mediaSeeked", - "params": "METRICS_MEDIASEEKED_STRING_POSITION_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_SEEK_IS_COMPLETED_WITH_DECIMAL_POSITION": { - "method": "metrics.mediaSeeked", - "params": "METRICS_MEDIASEEKED_DECIMAL_POSITION_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_RATE_IS_CHANGED_WITH_NUMERIC_ENTITYID": { - "method": "metrics.mediaRateChange", - "params": "METRICS_MEDIARATECHANGE_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_RATE_IS_CHANGED_WITH_STRING_RATE": { - "method": "metrics.mediaRateChange", - "params": "METRICS_MEDIARATECHANGE_WITH_STRING_RATE_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_RENDITION_IS_CHANGED_WITH_NUMERIC_BITRATE": { - "method": "metrics.mediaRenditionChange", - "params": "METRICS_MEDIARENDITIONCHANGE_ERROR", - "expected": "error" - }, - "NOTIFY_THAT_PLAYBACK_HAS_STOPPED_WITH_NUMERIC_ENTITYID": { - "method": "metrics.mediaEnded", - "params": "METRICS_INTEGER_12", - "expected": "error" - }, - "NOTIFY_THAT_APP_IS_MINIMALLY_USABLE": { - "method": "metrics.ready" - }, - "LOG_A_SIGN_IN_EVENT": { - "method": "metrics.signIn" - }, - "LOG_A_SIGN_OUT_EVENT": { - "method": "metrics.signOut" - }, - "TRUE_FOR_READY_IN_METRICS": { - "method": "metrics.ready", - "validationJsonPath": "result", - "content": "TRUE" - }, - "TRUE_FOR_SIGNIN_IN_METRICS": { - "method": "metrics.signIn", - "validationJsonPath": "result", - "content": "TRUE" - }, - "TRUE_FOR_SIGNOUT_IN_METRICS": { - "method": "metrics.signOut", - "validationJsonPath": "result", - "content": "TRUE" - }, - "INITIALIZE_SESSION": { - "method": "internal.initialize", - "params": { - "version": { - "major": 0, - "minor": 13, - "patch": 0, - "readable": "Firebolt Core SDK 0.13.0" - } - } - }, - "CONTENT_FOR_INTERNAL_INITIALIZE": { - "method": "internal.initialize", - "validationJsonPath": "result", - "content": "METRICS_INTERNAL_INITIALIZATION" - }, - "METRICS_MEDIALOADSTART_WITH_ENTITY_345": { - - }, - "INFORM_THE_PLATFORM_ABOUT_APP_BUILD": { - "method": "metrics.appInfo", - "params": "METRICS_APPINFO" - }, - "INFORM_THE_PLATFORM_ABOUT_APP_WITH_NUMERIC_BUILD": { - "method": "metrics.appInfo", - "params": "METRICS_INTEGER_12", - "expected": "error" - }, - "INFORM_THE_PLATFORM_ABOUT_APP_WITH_BOOLEAN_BUILD": { - "method": "metrics.appInfo", - "params": "TRUE", - "expected": "error" - }, - "NULL_FOR_METRICS_APPINFO": { - "method": "metrics.appInfo", - "validationJsonPath": "result", - "content": "NULL" - }, - "INVALID_PARAMS_FOR_METRICS_APPINFO":{ - "method": "metrics.appInfo", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true } } \ No newline at end of file diff --git a/cypress/fixtures/fireboltCalls/parameters.json b/cypress/fixtures/fireboltCalls/parameters.json index 29b7b1029..ed275b410 100644 --- a/cypress/fixtures/fireboltCalls/parameters.json +++ b/cypress/fixtures/fireboltCalls/parameters.json @@ -7,29 +7,6 @@ "method": "manage_privacy.setAllowAppContentAdTargeting", "params": "FALSE" }, - "GET_PARAMETERS_INITIALIZATION": { - "method": "parameters.initialization" - }, - "TRUE_FOR_PARAMETERS_INITIALIZATION": { - "method": "parameters.initialization", - "validationJsonPath": "result", - "content": "ADVERTISING_ADVERTISINGID_ADOFF" - }, - "FALSE_FOR_PARAMETERS_INITIALIZATION": { - "method": "parameters.initialization", - "validationJsonPath": "result", - "content": "ADVERTISING_ADVERTISINGID_ADON" - }, - "DISCOVERY_LAUNCH_WITH_HOME_INTENT": { - "method": "discovery.launch", - "params": "PARAMETERS_HOME_INTENT" - }, - "HOME_INTENT_FOR_PARAMETERS_INITIALIZATION": { - "method": "parameters.initialization", - "validationJsonPath": "result", - "content": "PARAMETERS_INITIALIZATION" - }, - "GET_INITIALIZATION_PARAMETERS_FOR_NULL_INTENT": { "method": "parameters.initialization", "context": "DISCOVERY_LAUNCH_NULL" @@ -70,7 +47,6 @@ "method": "parameters.initialization", "context": "DISCOVERY_LAUNCH_PLAYQUERY" }, - "NULLINTENT_FOR_INITIALIZATION_PARAMETERS": { "method": "parameters.initialization", "context": "DISCOVERY_LAUNCH_NULL", @@ -233,7 +209,6 @@ "validationJsonPath": "result.discovery", "content": "PARAMETERS_INITIALIZATION_PLAYENTITYINTENT_WITHOUT_OPTIONS" }, - "PARAMETERS_INITIALIZATION_ADVERTISINGID_AD_OFF": { "method": "parameters.initialization", "validationJsonPath": "result", @@ -244,7 +219,6 @@ "validationJsonPath": "result", "content": "ADVERTISING_ADVERTISINGID_ADON" }, - "NULLINTENT_SOURCE_FOR_INITIALIZATION_PARAMETERS": { "method": "parameters.initialization", "context": "DISCOVERY_LAUNCH_NULL", diff --git a/cypress/fixtures/fireboltCalls/privacy.json b/cypress/fixtures/fireboltCalls/privacy.json index a1144698d..35b0529f8 100644 --- a/cypress/fixtures/fireboltCalls/privacy.json +++ b/cypress/fixtures/fireboltCalls/privacy.json @@ -1,8 +1,4 @@ { - "SET_PRIVACY_SETALLOWAPPCONTENTADTARGETING_TRUE": { - "method": "manage_privacy.setAllowAppContentAdTargeting", - "params": "TRUE" - }, "SET_PRIVACY_SETALLOWAPPCONTENTADTARGETING_FALSE": { "method": "manage_privacy.setAllowAppContentAdTargeting", "params": "FALSE" @@ -107,10 +103,6 @@ "method": "manage_privacy.setAllowUnentitledResumePoints", "params": "FALSE" }, - "SET_PRIVACY_ALLOW_WATCHHISTORY_AS_TRUE": { - "method": "manage_privacy.setAllowWatchHistory", - "params": "TRUE" - }, "SET_PRIVACY_ALLOW_WATCHHISTORY_AS_FALSE": { "method": "manage_privacy.setAllowWatchHistory", "params": "FALSE" @@ -139,10 +131,6 @@ "method": "manage_privacy.setAllowUnentitledPersonalization", "params": "FALSE" }, - "SET_PRIVACY_ALLOW_REMOTEDIAGNOSTICS_AS_TRUE": { - "method": "manage_privacy.setAllowRemoteDiagnostics", - "params": "TRUE" - }, "SET_PRIVACY_ALLOW_REMOTEDIAGNOSTICS_AS_FALSE": { "method": "manage_privacy.setAllowRemoteDiagnostics", "params": "FALSE" @@ -163,26 +151,10 @@ "method": "manage_privacy.setAllowPrimaryBrowseAdTargeting", "params": "FALSE" }, - "SET_PRIVACY_ALLOW_APPCONTENTADTARGETING_AS_TRUE": { - "method": "manage_privacy.setAllowAppContentAdTargeting", - "params": "TRUE" - }, - "SET_PRIVACY_ALLOW_APPCONTENTADTARGETING_AS_FALSE": { - "method": "manage_privacy.setAllowAppContentAdTargeting", - "params": "FALSE" - }, - "SET_PRIVACY_ALLOW_ACRCOLLECTION_AS_TRUE": { - "method": "manage_privacy.setAllowACRCollection", - "params": "TRUE" - }, "SET_PRIVACY_ALLOW_ACRCOLLECTION_AS_FALSE": { "method": "manage_privacy.setAllowACRCollection", "params": "FALSE" }, - "SET_PRIVACY_ALLOW_CAMERAANALYTICS_AS_TRUE": { - "method": "manage_privacy.setAllowCameraAnalytics", - "params": "TRUE" - }, "SET_PRIVACY_ALLOW_CAMERAANALYTICS_AS_FALSE": { "method": "manage_privacy.setAllowCameraAnalytics", "params": "FALSE" @@ -564,14 +536,6 @@ "validationJsonPath": "eventResponse", "content": "FALSE" }, - "GET_PRIVACY_SETTINGS": { - "method": "manage_privacy.settings" - }, - "EXPECTED_PRIVACY_SETTINGS": { - "method": "privacy.settings", - "validationJsonPath": "result", - "content": "PRIVACY_SETTINGS_METHOD" - }, "SET_PRIVACY_ALLOWRESUMEPOINTS_WITH_INVALID_PARAMS_INTEGER": { "method": "manage_privacy.setAllowResumePoints", "params": "INTEGER1", diff --git a/cypress/fixtures/fireboltCalls/secondscreen.json b/cypress/fixtures/fireboltCalls/secondscreen.json index 87dbc00dc..20b153572 100644 --- a/cypress/fixtures/fireboltCalls/secondscreen.json +++ b/cypress/fixtures/fireboltCalls/secondscreen.json @@ -1,52 +1,4 @@ { - "GET_SECONDSCREEN_DEVICE_WITH_EMPTY_ARRAY": { - "method": "secondscreen.device", - "params": "EMPTYARRAY" - }, - "GET_SECONDSCREEN_DEVICE_WITH_STRING": { - "method": "secondscreen.device", - "params": "SECONDSCREEN_TEST" - }, - "GET_SECONDSCREEN_PROTOCOLS": { - "method": "secondscreen.protocols", - "params": "EMPTYARRAY" - }, - "GET_SECONDSCREEN_DEVICE_WITH_BOOLEAN": { - "method": "secondscreen.device", - "params": "SECONDSCREEN_TRUE", - "expected": "error" - }, - "GET_SECONDSCREEN_DEVICE_WITH_INTEGER": { - "method": "secondscreen.device", - "params": "SECONDSCREEN_INTEGER_123", - "expected": "error" - }, - "SECONDSCREEN_ONFRIENDLYNAMECHANGED": { - "method": "secondscreen.onFriendlyNameChanged" - }, - "SET_FRIENDLYNAME_TO_GUEST_ROOM": { - "method": "manage_device.setName", - "params": "SECONDSCREEN_FRIENDLYNAME" - }, - "GET_SECONDSCREEN_FRIENDLYNAME": { - "method": "secondscreen.friendlyName" - }, - "EXPECTED_SECONDSCREEN_DEVICE": { - "method": "secondscreen.device", - "validationJsonPath": "result", - "content": "SECONDSCREEN_DEVICE" - }, - "EXPECTED_SECONDSCREEN_PROTOCOLS": { - "method": "secondscreen.protocols", - "validationJsonPath": "result", - "content": "SECONDSCREEN_PROTOCOLS" - }, - "INVALID_PARAMETERS_FOR_SECONDSCREEN_DEVICE": { - "method": "secondscreen.device", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, "GUEST_ROOM_FOR_SECONDSCREEN_FRIENDLYNAME": { "method": "secondscreen.friendlyName", "validationJsonPath": "result", @@ -57,31 +9,6 @@ "validationJsonPath": "eventResponse", "content": "SECONDSCREEN_FRIENDLYNAME" }, - "ONFRIENDLYNAMECHANGED": { - "event": "secondscreen.onFriendlyNameChanged", - "validationJsonPath": "eventResponse", - "content": "NULL" - }, - "SECONDSCREEN_ONLAUNCHREQUEST": { - "method": "secondscreen.onLaunchRequest" - }, - "SECONDSCREEN_ONCLOSEREQUEST": { - "method": "secondscreen.onCloseRequest" - }, - "NULL_FOR_SECONDSCREEN_ONLAUNCHREQUEST_EVENT": { - "event": "secondscreen.onLaunchRequest", - "validationJsonPath": "eventResponse", - "content": "NULL" - }, - "NULL_FOR_SECONDSCREEN_ONCLOSEREQUEST_EVENT": { - "event": "secondscreen.onCloseRequest", - "validationJsonPath": "eventResponse", - "content": "NULL", - "expectingError": false - }, - "GET_SECONDSCREEN_DEVICE": { - "method": "secondscreen.device" - }, "EXPECT_ERROR_FOR_SECONDSCREEN_DEVICE": { "method": "secondscreen.device", "expected": "error" @@ -91,23 +18,5 @@ "validationJsonPath": "result", "content": "INVALID_PARAMS", "expectingError": true - }, - "SECONDSCREEN_ONLAUNCHREQUEST_EVENT": { - "event": "secondscreen.onLaunchRequest", - "validationJsonPath": "eventResponse", - "content": "SECONDSCREEN_ONLAUNCHREQUEST_TYPE_DIAL_WITH_TEST_DATA" - }, - "SECONDSCREEN_ONCLOSEREQUEST_EVENT": { - "event": "secondscreen.onCloseRequest", - "validationJsonPath": "eventResponse", - "content": "SECONDSCREEN_ONCLOSEREQUEST" - }, - "ONLAUNCHREQUEST_EVENT": { - "method": "secondscreen.onLaunchRequest", - "params": "SECONDSCREEN_ONLAUNCHREQUEST_EVENT" - }, - "ONCLOSEREQUEST_EVENT": { - "method": "secondscreen.onCloseRequest", - "params": "SECONDSCREEN_ONCLOSEREQUEST_EVENT" } } \ No newline at end of file diff --git a/cypress/fixtures/fireboltCalls/securestorage.json b/cypress/fixtures/fireboltCalls/securestorage.json index 24161b9e1..f62a2a047 100644 --- a/cypress/fixtures/fireboltCalls/securestorage.json +++ b/cypress/fixtures/fireboltCalls/securestorage.json @@ -1,115 +1,19 @@ { - "GET_STORED_VALUE_WITH_SCOPE_AS_DEVICE_AND_KEY_AS_AUTHTESTTOKENDEVICE": { - "method": "securestorage.get", - "params": "SECURESTORAGE_GET_DEVICE" - }, - "GET_STORED_VALUE_WITH_SCOPE_AS_ACCOUNT_AND_KEY_AS_AUTHTESTTOKENACCOUNT": { - "method": "securestorage.get", - "params": "SECURESTORAGE_GET_ACCOUNT" - }, - "GET_STORED_VALUE_WITH_SCOPE_AS_ACCOUNT_AND_KEY_AS_AUTHTESTTOKENDEVICE": { - "method": "securestorage.get", - "params": "SECURESTORAGE_GET_ACCOUNT_DEVICE_KEY" - }, - "GET_STORED_VALUE_WITH_SCOPE_AS_DEVICE_AND_KEY_AS_AUTHTESTTOKENACCOUNT": { - "method": "securestorage.get", - "params": "SECURESTORAGE_GET_DEVICE_ACCOUNT_KEY" - }, - "GET_STORED_VALUE_WITH_SCOPE_AS_DEVICE_AND_KEY_AS_AUTHTESTTOKENDEVICE1": { - "method": "securestorage.get", - "params": "SECURESTORAGE_GET_DEVICE_KEY1" - }, - "GET_STORED_VALUE_WITH_SCOPE_AS_ACCOUNT_AND_KEY_AS_AUTHTESTTOKENACCOUNT1": { - "method": "securestorage.get", - "params": "SECURESTORAGE_GET_ACCOUNT_KEY1" - }, - "UPDATE_STORED_VALUE_FOR_KEY_AUTHTESTTOKENDEVICE": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_DEVICE" - }, - "UPDATE_STORED_VALUE_FOR_KEY_AUTHTESTTOKENACCOUNT": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_ACCOUNT" - }, - "UPDATE_STORED_VALUE_FOR_KEY_AUTHTESTTOKENDEVICE1_WITH_OPTIONS": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_DEVICE_OPTIONAL" - }, - "UPDATE_STORED_VALUE_FOR_KEY_AUTHTESTTOKENACCOUNT1_WITH_OPTIONS": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_ACCOUNT_OPTIONAL" - }, "NULL_FOR_UPDATING_A_SECURE_DATA_VALUE": { "method": "securestorage.set", "validationJsonPath": "result", "content": "NULL" }, - "NULL_FOR_UPDATING_A_SECURE_DATA_VALUE_FOR_AN_APP": { - "method": "securestorage.setForApp", - "validationJsonPath": "result", - "content": "NULL" - }, "NULL_FOR_REMOVING_STORED_VALUE": { "method": "securestorage.remove", "validationJsonPath": "result", "content": "NULL" }, - "NULL_FOR_GETTING_STORED_VALUE": { - "method": "securestorage.get", - "validationJsonPath": "result", - "content": "NULL" - }, "NULL_FOR_REMOVING_STORED_VALUE_FOR_AN_APP": { "method": "securestorage.removeForApp", "validationJsonPath": "result", "content": "NULL" }, - "EXPECTED_VALUE_FOR_AUTHTESTTOKENDEVICE_STORED_DATA_IN_SECURESTORAGE": { - "method": "securestorage.get", - "validationJsonPath": "result", - "content": "SECURESTORAGE_DEFAULT_VALUE" - }, - "EXPECTED_VALUE_FOR_AUTHTESTTOKENACCOUNT_STORED_DATA_IN_SECURESTORAGE": { - "method": "securestorage.get", - "validationJsonPath": "result", - "content": "SECURESTORAGE_DEFAULT_VALUE" - }, - "EXPECTED_VALUE_FOR_ACCOUNT_SCOPED_AUTHTESTTOKENDEVICE_STORED_DATA_IN_SECURESTORAGE": { - "method": "securestorage.get", - "validationJsonPath": "result", - "content": "SECURESTORAGE_SCOPE_UPDATED_VALUE" - }, - "EXPECTED_VALUE_FOR_DEVICE_SCOPED_AUTHTESTTOKENACCOUNT_STORED_DATA_IN_SECURESTORAGE": { - "method": "securestorage.get", - "validationJsonPath": "result", - "content": "SECURESTORAGE_SCOPE_UPDATED_VALUE" - }, - "AUTHTESTTOKENVALUE1_FOR_STORED_VALUE_IN_SECURESTORAGE": { - "method": "securestorage.get", - "validationJsonPath": "result", - "content": "SECURESTORAGE_VALUE1" - }, - "AUTHTESTTOKENVALUE2_FOR_STORED_VALUE_IN_SECURESTORAGE": { - "method": "securestorage.get", - "validationJsonPath": "result", - "content": "SECURESTORAGE_VALUE2" - }, - "UPDATE_STORED_VALUE_FOR_KEY_AUTHTESTTOKENDEVICE1": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_DEVICE_VALUE2" - }, - "UPDATE_STORED_VALUE_FOR_KEY_AUTHTESTTOKENACCOUNT1": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_ACCOUNT_VALUE2" - }, - "UPDATE_STORED_VALUE_WITH_SCOPE_AS_ACCOUNT_AND_KEY_AS_AUTHTESTTOKENDEVICE": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_DEVICE_TO_ACCOUNT" - }, - "UPDATE_STORED_VALUE_WITH_SCOPE_AS_DEVICE_AND_KEY_AS_AUTHTESTTOKENACCOUNT": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_ACCOUNT_TO_DEVICE" - }, "GET_SECURESTORAGE_WITH_UPDATED_DEVICE_SCOPE_VALUE": { "method": "securestorage.get", "params": "SECURESTORAGE_GET_DEVICE_KEY1" @@ -146,14 +50,6 @@ "validationJsonPath": "result", "content": "SECURESTORAGE_DEFAULT_VALUE" }, - "SET_SECURE_VALUE_FOR_KEY_AUTHTESTTOKENDEVICE1": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_DEVICE1" - }, - "SET_SECURE_VALUE_FOR_KEY_AUTHTESTTOKENDEVICE2": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_DEVICE2" - }, "SET_SECURE_VALUE_FOR_AN_APP_FOR_KEY_AUTHTESTTOKENDEVICE1": { "method": "securestorage.setForApp", "params": "SECURESTORAGE_SET_DEVICE1" @@ -162,55 +58,6 @@ "method": "securestorage.setForApp", "params": "SECURESTORAGE_SET_DEVICE2" }, - "REMOVE_THE_STORED_VALUE_AUTHTESTTOKENDEVICE1_WITH_SCOPE_DEVICE": { - "method": "securestorage.remove", - "params": "SECURESTORAGE_REMOVE_DEVICE1" - }, - "GET_STORED_VALUE_FOR_AUTHTESTTOKENDEVICE1_WITH_SCOPE_DEVICE": { - "method": "securestorage.get", - "params": "SECURESTORAGE_GET_DEVICE_KEY1" - }, - "GET_STORED_VALUE_FOR_AUTHTESTTOKENDEVICE2_WITH_SCOPE_DEVICE": { - "method": "securestorage.get", - "params": "SECURESTORAGE_GET_DEVICE_KEY2" - }, - "GET_STORED_VALUE_FOR_AN_APP_FOR_AUTHTESTTOKENDEVICE1_WITH_SCOPE_DEVICE": { - "method": "securestorage.get", - "params": "SECURESTORAGE_GET_DEVICE_KEY1" - }, - "GET_STORED_VALUE_FOR_AN_APP_FOR_AUTHTESTTOKENDEVICE2_WITH_SCOPE_DEVICE": { - "method": "securestorage.get", - "params": "SECURESTORAGE_GET_DEVICE_KEY2" - }, - "GET_STORED_VALUE_FOR_AN_APP_FOR_AUTHTESTTOKENACCOUNT1_WITH_SCOPE_ACCOUNT": { - "method": "securestorage.get", - "params": "SECURESTORAGE_GET_ACCOUNT_KEY1" - }, - "GET_STORED_VALUE_FOR_AN_APP_FOR_AUTHTESTTOKENACCOUNT2_WITH_SCOPE_ACCOUNT": { - "method": "securestorage.get", - "params": "SECURESTORAGE_GET_ACCOUNT_KEY2" - }, - "EXPECTED_VALUE_FOR_AUTHTESTTOKENDEVICE2_STORED_DATA_IN_SECURESTORAGE": { - "method": "securestorage.get", - "validationJsonPath": "result", - "content": "SECURESTORAGE_GET_DEVICE2" - }, - "SET_SECURE_VALUE_FOR_KEY_AUTHTESTTOKENACCOUNT1": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_ACCOUNT1" - }, - "SET_SECURE_VALUE_FOR_KEY_AUTHTESTTOKENACCOUNT2": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_ACCOUNT2" - }, - "REMOVE_THE_STORED_VALUE_AUTHTESTTOKENACCOUNT1_WITH_SCOPE_ACCOUNT": { - "method": "securestorage.remove", - "params": "SECURESTORAGE_REMOVE_ACCOUNT1" - }, - "GET_STORED_VALUE_FOR_AUTHTESTTOKENACCOUNT1_WITH_SCOPE_DEVICE": { - "method": "securestorage.get", - "params": "SECURESTORAGE_GET_ACCOUNT_KEY1" - }, "REMOVE_THE_STORED_VALUE_AUTHTESTTOKENACCOUNT_WITH_SCOPE_ACCOUNT": { "method": "securestorage.remove", "params": "SECURESTORAGE_REMOVE_ACCOUNT" @@ -219,218 +66,24 @@ "method": "securestorage.remove", "params": "SECURESTORAGE_REMOVE_DEVICE" }, - "GET_STORED_VALUE_FOR_AUTHTESTTOKENACCOUNT2_WITH_SCOPE_DEVICE": { - "method": "securestorage.get", - "params": "SECURESTORAGE_GET_ACCOUNT_KEY2" - }, - "EXPECTED_VALUE_FOR_AUTHTESTTOKENACCOUNT2_STORED_DATA_IN_SECURESTORAGE": { - "method": "securestorage.get", - "validationJsonPath": "result", - "content": "SECURESTORAGE_GET_ACCOUNT2" - }, - "EXPECTED_VALUE_FOR_AUTHTESTTOKENACCOUNT1_STORED_DATA_IN_SECURESTORAGE": { - "method": "securestorage.get", - "validationJsonPath": "result", - "content": "SECURESTORAGE_GET_ACCOUNT1" - }, - "EXPECTED_VALUE_FOR_AUTHTESTTOKENDEVICE1_STORED_DATA_IN_SECURESTORAGE": { - "method": "securestorage.get", - "validationJsonPath": "result", - "content": "SECURESTORAGE_GET_DEVICE1" - }, - "INVALID_PARAMETERS_FOR_SECURESTORAGE_GET": { - "method": "securestorage.get", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "SET_SECURE_DATA_VALUE_FOR_AN_APP_WITH_SCOPE_DEVICE": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_DEVICE" - }, - "SET_SECURE_DATA_VALUE_FOR_AN_APP_WITH_INVALID_SCOPE": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_INVALID_SCOPE", - "expected": "error" - }, - "SET_SECURE_DATA_VALUE_FOR_AN_APP_WITH_INTEGER_SCOPE": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_INTEGER_SCOPE", - "expected": "error" - }, - "SET_SECURE_DATA_VALUE_FOR_AN_APP_WITH_NULL_SCOPE": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_NULL_SCOPE", - "expected": "error" - }, - "SET_SECURE_DATA_VALUE_FOR_AN_APP_WITH_BOOLEAN_SCOPE": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_BOOLEAN_SCOPE", - "expected": "error" - }, - "SET_SECURE_DATA_VALUE_FOR_AN_APP_WITH_EMPTY_SCOPE": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_EMPTY_SCOPE", - "expected": "error" - }, - "SET_SECURE_DATA_VALUE_FOR_AN_APP_WITHOUT_SCOPE": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_WITHOUT_SCOPE", - "expected": "error" - }, - "SET_SECURE_DATA_VALUE_FOR_AN_APP_WITH_INTEGER_KEY": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_WITH_INTEGER_KEY", - "expected": "error" - }, - "SET_SECURE_DATA_VALUE_FOR_AN_APP_WITH_NULL_KEY": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_WITH_NULL_KEY", - "expected": "error" - }, - "SET_SECURE_DATA_VALUE_FOR_AN_APP_WITH_BOOLEAN_KEY": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_WITH_BOOLEAN_KEY", - "expected": "error" - }, - "SET_SECURE_DATA_VALUE_FOR_AN_APP_WITHOUT_KEY": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_WITHOUT_KEY", - "expected": "error" - }, - "SET_SECURE_DATA_VALUE_FOR_AN_APP_WITH_INTEGER_VALUE": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_WITH_INTEGER_VALUE", - "expected": "error" - }, - "SET_SECURE_DATA_VALUE_FOR_AN_APP_WITH_NULL_VALUE": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_WITH_NULL_VALUE", - "expected": "error" - }, - "SET_SECURE_DATA_VALUE_FOR_AN_APP_WITH_BOOLEAN_VALUE": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_WITH_BOOLEAN_VALUE", - "expected": "error" - }, - "SET_SECURE_DATA_VALUE_FOR_AN_APP_WITHOUT_VALUE": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_WITHOUT_VALUE", - "expected": "error" - }, "SET_SECURE_DATA_VALUE_FOR_AN_APP_WITH_EMPTY_KEY": { "method": "manage_securestorage.setForApp", "params": "SECURESTORAGE_SETFORAPP_WITH_EMPTY_KEY", "expected": "error" }, - "SET_SECURE_DATA_VALUE1_FOR_AN_APP_WITH_SCOPE_DEVICE": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_DEVICE_KEY1" - }, - "SET_SECURE_DATA_VALUE1_FOR_SECOND_APP_WITH_SCOPE_DEVICE": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_DEVICE_KEY1_APP1" - }, - "SET_SECURE_DATA_VALUE2_FOR_AN_APP_WITH_SCOPE_DEVICE": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_DEVICE_KEY2" - }, - "SET_SECURE_DATA_VALUE_FOR_AN_APP_WITH_SCOPE_ACCOUNT": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_ACCOUNT" - }, "SET_SECURE_DATA_VALUE_FOR_AN_APP_WITH_SCOPE_ACCOUNT1": { "method": "manage_securestorage.setForApp", "params": "SECURESTORAGE_SETFORAPP_ACCOUNT_KEY1" }, - "SET_SECURE_DATA_VALUE1_FOR_AN_APP_WITH_SCOPE_ACCOUNT": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_ACCOUNT_KEY1" - }, - "SET_SECURE_DATA_VALUE2_FOR_AN_APP_WITH_SCOPE_ACCOUNT": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_ACCOUNT_KEY2" - }, - "SET_SECURE_DATA_VALUE_FOR_AN_APP_WITH_SCOPE_DEVICE_WITH_OPTIONAL_PARAMETER": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_DEVICE_OPTIONAL" - }, - "SET_SECURE_DATA_VALUE_FOR_AN_APP_WITH_SCOPE_ACCOUNT_WITH_OPTIONAL_PARAMETER": { - "method": "manage_securestorage.setForApp", - "params": "SECURESTORAGE_SETFORAPP_ACCOUNT_OPTIONAL" - }, - "AUTHTESTTOKENVALUE1_FOR_STORED_DATA_IN_SECURESTORAGE": { - "method": "securestorage.get", - "validationJsonPath": "result", - "content": "SECURESTORAGE_VALUE1" - }, "NULL_FOR_SETTING_A_DATA_VALUE": { "method": "securestorage.setForApp", "validationJsonPath": "result", "content": "NULL" }, - "REMOVE_SECURE_DATA_VALUE_FOR_AN_APP_WITH_SCOPE_DEVICE": { - "method": "manage_securestorage.removeForApp", - "params": "SECURESTORAGE_REMOVEFORAPP_DEVICE" - }, - "REMOVE_SECURE_DATA_VALUE_FOR_AN_APP_WITH_INVALID_SCOPE": { - "method": "manage_securestorage.removeForApp", - "params": "SECURESTORAGE_REMOVEFORAPP_WITH_INVALID_SCOPE", - "expected": "error" - }, - "REMOVE_SECURE_DATA_VALUE_FOR_AN_APP_WITH_EMPTY_SCOPE": { - "method": "manage_securestorage.removeForApp", - "params": "SECURESTORAGE_REMOVEFORAPP_WITH_EMPTY_SCOPE", - "expected": "error" - }, - "REMOVE_SECURE_DATA_VALUE_FOR_AN_APP_WITHOUT_SCOPE": { - "method": "manage_securestorage.removeForApp", - "params": "SECURESTORAGE_REMOVEFORAPP_WITHOUT_SCOPE", - "expected": "error" - }, - "REMOVE_SECURE_DATA_VALUE_FOR_AN_APP_WITH_INTEGER_SCOPE": { - "method": "manage_securestorage.removeForApp", - "params": "SECURESTORAGE_REMOVEFORAPP_WITH_INTEGER_SCOPE", - "expected": "error" - }, - "REMOVE_SECURE_DATA_VALUE_FOR_AN_APP_WITH_NULL_SCOPE": { - "method": "manage_securestorage.removeForApp", - "params": "SECURESTORAGE_REMOVEFORAPP_WITH_NULL_SCOPE", - "expected": "error" - }, - "REMOVE_SECURE_DATA_VALUE_FOR_AN_APP_WITH_BOOLEAN_SCOPE": { - "method": "manage_securestorage.removeForApp", - "params": "SECURESTORAGE_REMOVEFORAPP_WITH_BOOLEAN_SCOPE", - "expected": "error" - }, - "REMOVE_SECURE_DATA_VALUE_FOR_AN_APP_WITH_INTEGER_KEY": { - "method": "manage_securestorage.removeForApp", - "params": "SECURESTORAGE_REMOVEFORAPP_WITH_INTEGER_KEY", - "expected": "error" - }, - "REMOVE_SECURE_DATA_VALUE_FOR_AN_APP_WITH_NULL_KEY": { - "method": "manage_securestorage.removeForApp", - "params": "SECURESTORAGE_REMOVEFORAPP_WITH_NULL_KEY", - "expected": "error" - }, - "REMOVE_SECURE_DATA_VALUE_FOR_AN_APP_WITH_BOOLEAN_KEY": { - "method": "manage_securestorage.removeForApp", - "params": "SECURESTORAGE_REMOVEFORAPP_WITH_BOOLEAN_KEY", - "expected": "error" - }, - "REMOVE_SECURE_DATA_VALUE_FOR_AN_APP_WITHOUT_KEY": { - "method": "manage_securestorage.removeForApp", - "params": "SECURESTORAGE_REMOVEFORAPP_WITHOUT_KEY", - "expected": "error" - }, "REMOVE_SECURE_DATA_VALUE_FOR_AN_APP_WITH_SCOPE_ACCOUNT": { "method": "manage_securestorage.removeForApp", "params": "SECURESTORAGE_REMOVEFORAPP_ACCOUNT" }, - "REMOVE_SECURE_DATA_VALUE1_FOR_AN_APP_WITH_SCOPE_ACCOUNT": { - "method": "manage_securestorage.removeForApp", - "params": "SECURESTORAGE_REMOVEFORAPP_ACCOUNT_KEY1" - }, "GET_STORED_VALUE_FOR_AUTHTESTTOKENDEVICE_WITH_SCOPE_DEVICE": { "method": "securestorage.get", "params": "SECURESTORAGE_GET_DEVICE" @@ -447,44 +100,6 @@ "method": "securestorage.get", "params": "SECURESTORAGE_GET_ACCOUNT_KEY2" }, - "CLEAR_SECURE_DATA_VALUES_FOR_AN_APP_WITH_SCOPE_DEVICE": { - "method": "manage_securestorage.clearForApp", - "params": "SECURESTORAGE_CLEARFORAPP_DEVICE" - }, - "CLEAR_SECURE_DATA_VALUES_FOR_AN_APP_WITH_SCOPE_ACCOUNT": { - "method": "manage_securestorage.clearForApp", - "params": "SECURESTORAGE_CLEARFORAPP_ACCOUNT" - }, - "CLEAR_SECURE_DATA_VALUES_FOR_AN_APP_WITH_INVALID_SCOPE": { - "method": "manage_securestorage.clearForApp", - "params": "SECURESTORAGE_CLEARFORAPP_WITH_INVALID_SCOPE", - "expected": "error" - }, - "CLEAR_SECURE_DATA_VALUES_FOR_AN_APP_WITH_EMPTY_SCOPE": { - "method": "manage_securestorage.clearForApp", - "params": "SECURESTORAGE_CLEARFORAPP_WITH_EMPTY_SCOPE", - "expected": "error" - }, - "CLEAR_SECURE_DATA_VALUES_FOR_AN_APP_WITH_INTEGER_SCOPE": { - "method": "manage_securestorage.clearForApp", - "params": "SECURESTORAGE_CLEARFORAPP_WITH_INTEGER_SCOPE", - "expected": "error" - }, - "CLEAR_SECURE_DATA_VALUES_FOR_AN_APP_WITH_NULL_SCOPE": { - "method": "manage_securestorage.clearForApp", - "params": "SECURESTORAGE_CLEARFORAPP_WITH_NULL_SCOPE", - "expected": "error" - }, - "CLEAR_SECURE_DATA_VALUES_FOR_AN_APP_WITH_BOOLEAN_SCOPE": { - "method": "manage_securestorage.clearForApp", - "params": "SECURESTORAGE_CLEARFORAPP_WITH_BOOLEAN_SCOPE", - "expected": "error" - }, - "CLEAR_SECURE_DATA_VALUES_FOR_AN_APP_WITHOUT_SCOPE": { - "method": "manage_securestorage.clearForApp", - "params": "SECURESTORAGE_CLEARFORAPP_WITHOUT_SCOPE", - "expected": "error" - }, "GET_STORED_VALUE_FOR_AN_APP_WITH_SCOPE_DEVICE": { "method": "securestorage.get", "params": "SECURESTORAGE_GET_DEVICE" @@ -528,18 +143,6 @@ "params": "INTEGER123", "expected": "error" }, - "INVALID_PARAMS_FOR_SETTING_A_DATA_VALUE_IN_SECURESTORAGE":{ - "method": "securestorage.setForApp", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMETERS_FOR_SECURESTORAGE_SET": { - "method": "securestorage.set", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, "INVALID_PARAMS_FOR_REMOVING_STORED_VALUE_IN_SECURESTORAGE":{ "method": "securestorage.removeForApp", "validationJsonPath": "result", @@ -552,298 +155,6 @@ "content": "INVALID_PARAMS", "expectingError": true }, - "INVALID_PARAMETERS_FOR_SECURESTORAGE_REMOVEFORAPP": { - "method": "securestorage.removeForApp", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_PARAMS_FOR_CLEARING_ALL_DATA_FOR_AN_APP_IN_SECURESTORAGE":{ - "method": "securestorage.clearForApp", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "GET_STORED_VALUE_WITH_INVALID_SCOPE": { - "method": "securestorage.get", - "params": "SECURESTORAGE_INVALID_SCOPE", - "expected": "error" - }, - "GET_STORED_VALUE_WITH_SCOPE_AS_EMPTY_STRING": { - "method": "securestorage.get", - "params": "SECURESTORAGE_SCOPE_EMPTY", - "expected": "error" - }, - "GET_STORED_VALUE_WITH_SCOPE_AS_NUMBER": { - "method": "securestorage.get", - "params": "SECURESTORAGE_SCOPE_NUM", - "expected": "error" - }, - "GET_STORED_VALUE_WITH_SCOPE_AS_NULL": { - "method": "securestorage.get", - "params": "SECURESTORAGE_SCOPE_NULL", - "expected": "error" - }, - "GET_STORED_VALUE_WITH_SCOPE_AS_BOOLEAN": { - "method": "securestorage.get", - "params": "SECURESTORAGE_SCOPE_BOOL", - "expected": "error" - }, - "GET_STORED_VALUE_WITHOUT_SCOPE": { - "method": "securestorage.get", - "params": "SECURESTORAGE_WITHOUT_SCOPE", - "expected": "error" - }, - "GET_STORED_VALUE_WITH_KEY_AS_NUMBER": { - "method": "securestorage.get", - "params": "SECURESTORAGE_KEY_NUM", - "expected": "error" - }, - "GET_STORED_VALUE_WITH_KEY_AS_NULL": { - "method": "securestorage.get", - "params": "SECURESTORAGE_KEY_NULL", - "expected": "error" - }, - "GET_STORED_VALUE_WITH_KEY_AS_BOOLEAN": { - "method": "securestorage.get", - "params": "SECURESTORAGE_KEY_BOOL", - "expected": "error" - }, - "GET_STORED_VALUE_WITHOUT_KEY": { - "method": "securestorage.get", - "params": "SECURESTORAGE_WITHOUT_KEY", - "expected": "error" - }, - "SET_SECURE_VALUE_WITH_INVALID_SCOPE": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_INVALID_SCOPE", - "expected": "error" - }, - "SET_SECURE_VALUE_WITH_SCOPE_AS_NUMBER": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_SCOPE_NUM", - "expected": "error" - }, - "SET_SECURE_VALUE_WITH_SCOPE_AS_NULL": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_SCOPE_NULL", - "expected": "error" - }, - "SET_SECURE_VALUE_WITH_SCOPE_AS_BOOLEAN": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_SCOPE_BOOL", - "expected": "error" - }, - "SET_SECURE_VALUE_WITH_SCOPE_AS_EMPTY_STRING": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_SCOPE_EMPTY", - "expected": "error" - }, - "SET_SECURE_VALUE_WITHOUT_SCOPE": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_WITHOUT_SCOPE", - "expected": "error" - }, - "SET_SECURE_VALUE_WITH_KEY_AS_NUMBER": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_KEY_NUM", - "expected": "error" - }, - "SET_SECURE_VALUE_WITH_KEY_AS_NULL": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_KEY_NULL", - "expected": "error" - }, - "SET_SECURE_VALUE_WITH_KEY_AS_BOOLEAN": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_KEY_BOOL", - "expected": "error" - }, - "SET_SECURE_VALUE_WITHOUT_KEY": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_WITHOUT_KEY", - "expected": "error" - }, - "SET_SECURE_VALUE_WITH_VALUE_AS_NUMBER": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_VALUE_NUM", - "expected": "error" - }, - "SET_SECURE_VALUE_WITH_VALUE_AS_NULL": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_VALUE_NULL", - "expected": "error" - }, - "SET_SECURE_VALUE_WITH_VALUE_AS_BOOLEAN": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_VALUE_BOOL", - "expected": "error" - }, - "SET_SECURE_VALUE_WITHOUT_VALUE": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_WITHOUT_VALUE", - "expected": "error" - }, - "SET_SECURE_VALUE_WITH_INVALID_OPTIONS": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_INVALID_OPTIONS", - "expected": "error" - }, - "SET_SECURE_VALUE_WITH_OPTIONS_AS_EMPTY_OBJECT": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_OPTIONS_EMPTY_OBJ", - "expected": "error" - }, - "SET_SECURE_VALUE_WITH_OPTIONS_AS_EMPTY_STRING": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_OPTIONS_EMPTY_STRING", - "expected": "error" - }, - "REMOVE_STORED_VALUE_WITH_INVALID_SCOPE": { - "method": "securestorage.remove", - "params": "SECURESTORAGE_INVALID_SCOPE", - "expected": "error" - }, - "REMOVE_STORED_VALUE_WITH_SCOPE_AS_EMPTY_STRING": { - "method": "securestorage.remove", - "params": "SECURESTORAGE_SCOPE_EMPTY", - "expected": "error" - }, - "REMOVE_STORED_VALUE_WITH_SCOPE_AS_NUMBER": { - "method": "securestorage.remove", - "params": "SECURESTORAGE_SCOPE_NUM", - "expected": "error" - }, - "REMOVE_STORED_VALUE_WITH_SCOPE_AS_NULL": { - "method": "securestorage.remove", - "params": "SECURESTORAGE_SCOPE_NULL", - "expected": "error" - }, - "REMOVE_STORED_VALUE_WITH_SCOPE_AS_BOOLEAN": { - "method": "securestorage.remove", - "params": "SECURESTORAGE_SCOPE_BOOL", - "expected": "error" - }, - "REMOVE_STORED_VALUE_WITHOUT_SCOPE": { - "method": "securestorage.remove", - "params": "SECURESTORAGE_WITHOUT_SCOPE", - "expected": "error" - }, - "REMOVE_STORED_VALUE_WITH_KEY_AS_NUMBER": { - "method": "securestorage.remove", - "params": "SECURESTORAGE_KEY_NUM", - "expected": "error" - }, - "REMOVE_STORED_VALUE_WITH_KEY_AS_NULL": { - "method": "securestorage.remove", - "params": "SECURESTORAGE_KEY_NULL", - "expected": "error" - }, - "REMOVE_STORED_VALUE_WITH_KEY_AS_BOOLEAN": { - "method": "securestorage.remove", - "params": "SECURESTORAGE_KEY_BOOL", - "expected": "error" - }, - "REMOVE_STORED_VALUE_WITHOUT_KEY": { - "method": "securestorage.remove", - "params": "SECURESTORAGE_WITHOUT_KEY", - "expected": "error" - }, - "GET_STORED_VALUE_WITH_SCOPE_AS_DEVICE_AND_KEY_AS_AUTHTESTTOKENDEVICETTL": { - "method": "securestorage.get", - "params": "SECURESTORAGE_DEVICE_TTL" - }, - "GET_STORED_VALUE_WITH_SCOPE_AS_ACCOUNT_AND_KEY_AS_AUTHTESTTOKENACCOUNTTTL": { - "method": "securestorage.get", - "params": "SECURESTORAGE_ACCOUNT_TTL" - } - ,"REMOVE_STORED_VALUE_WITH_SCOPE_AS_DEVICE_AND_TTL_AS_50": { - "method": "securestorage.remove", - "params": "SECURESTORAGE_DEVICE_TTL" - } - ,"REMOVE_STORED_VALUE_WITH_SCOPE_AS_ACCOUNT_AND_TTL_AS_50": { - "method": "securestorage.remove", - "params": "SECURESTORAGE_ACCOUNT_TTL" - }, - "SET_SECURE_VALUE_WITH_SCOPE_AS_DEVICE_AND_TTL_AS_50": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_DEVICE_TTL" - }, - "SET_SECURE_VALUE_WITH_SCOPE_AS_ACCOUNT_AND_TTL_AS_50": { - "method": "securestorage.set", - "params": "SECURESTORAGE_SET_ACCOUNT_TTL" - }, - "AUTHTESTTOKENVALUETTL_FOR_STORED_VALUE_IN_SECURESTORAGE": { - "method": "securestorage.get", - "validationJsonPath": "result", - "content": "SECURESTORAGE_VALUE_TTL" - }, - "CLEAR_STORED_VALUE_WITH_SCOPE_AS_DEVICE": { - "method": "securestorage.clear", - "params": "SECURESTORAGE_CLEAR_DEVICE" - }, - "CLEAR_STORED_VALUE_WITH_SCOPE_AS_ACCOUNT": { - "method": "securestorage.clear", - "params": "SECURESTORAGE_CLEAR_ACCOUNT" - }, - "CLEAR_STORED_VALUE_WITH_SCOPE_AS_DEVICE_FOR_AN_APP": { - "method": "manage_securestorage.clearForApp", - "params": "SECURESTORAGE_CLEARFORAPP_DEVICE" - }, - "CLEAR_STORED_VALUE_WITH_SCOPE_AS_ACCOUNT_FOR_AN_APP": { - "method": "securestorage.clearForApp", - "params": "SECURESTORAGE_CLEARFORAPP_ACCOUNT" - }, - "NULL_FOR_CLEARING_STORED_VALUE": { - "method": "securestorage.clear", - "validationJsonPath": "result", - "content": "NULL" - }, - "NULL_FOR_CLEARING_STORED_VALUE_FOR_AN_APP": { - "method": "securestorage.clearForApp", - "validationJsonPath": "result", - "content": "NULL" - }, - "CLEAR_STORED_VALUE_WITH_INVALID_SCOPE": { - "method": "securestorage.clear", - "params": "SECURESTORAGE_CLEAR_INVALID_SCOPE", - "expected": "error" - }, - "CLEAR_STORED_VALUE_WITH_SCOPE_AS_EMPTY_STRING": { - "method": "securestorage.clear", - "params": "SECURESTORAGE_CLEAR_SCOPE_EMPTY", - "expected": "error" - }, - "CLEAR_STORED_VALUE_WITH_SCOPE_AS_NUMBER": { - "method": "securestorage.clear", - "params": "SECURESTORAGE_CLEAR_SCOPE_NUM", - "expected": "error" - }, - "CLEAR_STORED_VALUE_WITH_SCOPE_AS_NULL": { - "method": "securestorage.clear", - "params": "SECURESTORAGE_CLEAR_SCOPE_NULL", - "expected": "error" - }, - "CLEAR_STORED_VALUE_WITH_SCOPE_AS_BOOLEAN": { - "method": "securestorage.clear", - "params": "SECURESTORAGE_CLEAR_SCOPE_BOOLEAN", - "expected": "error" - }, - "CLEAR_STORED_VALUE_WITHOUT_SCOPE": { - "method": "securestorage.clear", - "expected": "error" - }, - "INVALID_PARAMETERS_FOR_SECURESTORAGE_CLEAR": { - "method": "securestorage.clear", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "GET_STORED_VALUE_WITH_KEY_AS_EMPTY": { - "method": "securestorage.get", - "params": "SECURESTORAGE_KEY_EMPTY", - "expected": "error" - }, "SET_SECURE_VALUE_WITH_EMPTY_KEY": { "method": "securestorage.set", "params": "SECURESTORAGE_SET_KEY_EMPTY", @@ -853,23 +164,5 @@ "method": "securestorage.remove", "params": "SECURESTORAGE_KEY_EMPTY", "expected": "error" - }, - "CUSTOM_ERROR_FOR_SECURESTORAGE_REMOVE": { - "method": "securestorage.remove", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "CUSTOM_ERROR_FOR_SECURESTORAGE_SET": { - "method": "securestorage.set", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "CUSTOM_ERROR_FOR_SECURESTORAGE_GET": { - "method": "securestorage.get", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true } } \ No newline at end of file diff --git a/cypress/fixtures/fireboltCalls/wifi.json b/cypress/fixtures/fireboltCalls/wifi.json index 780bc6f5a..db7804945 100644 --- a/cypress/fixtures/fireboltCalls/wifi.json +++ b/cypress/fixtures/fireboltCalls/wifi.json @@ -1,45 +1,4 @@ { - "SCAN_WIFI_WITH_EMPTY_PARAMS": { - "method": "manage_wifi.scan" - }, - "SCAN_WIFI_WITH_20_SECONDS_TIMEOUT": { - "method": "manage_wifi.scan", - "params": "WIFI_SCAN_WITH_20_SECONDS_TIMEOUT" - }, - - "SCAN_WIFI_WITH_BOOLEAN": { - "method": "manage_wifi.scan", - "params": "WIFI_SCAN_TIMEOUT_BOOLEAN_VALUE", - "expected": "error" - }, - "CONNECT_WIFI_WITH_INTEGER": { - "method": "manage_wifi.connect", - "params": "WIFI_CONNECT_INTEGER_SSID", - "expected": "error" - }, - "CONNECT_WPS_WITH_BOOLEAN": { - "method": "manage_wifi.wps", - "params": "WIFI_WPS_CONNECT_BOOLEAN_VALUE", - "expected": "error" - }, - "INVALID_BOOLEAN_PARAMS_FOR_WIFI_SCAN": { - "method": "wifi.scan", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_INTEGER_PARAMS_FOR_WIFI_CONNECT": { - "method": "wifi.connect", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, - "INVALID_VALUE_PARAMS_FOR_WIFI_WPS": { - "method": "wifi.wps", - "validationJsonPath": "result", - "content": "INVALID_PARAMS", - "expectingError": true - }, "WIFI_DISCONNECT": { "method": "manage_wifi.disconnect" }, diff --git a/cypress/fixtures/modules/advertising.json b/cypress/fixtures/modules/advertising.json index 2ecd43666..dfa6673f2 100644 --- a/cypress/fixtures/modules/advertising.json +++ b/cypress/fixtures/modules/advertising.json @@ -3,30 +3,13 @@ "SKIPRESTRICTION_ADSALL": "adsAll", "SKIPRESTRICTION_ALL": "all", "NO_COPPA": {"options": {"environment": "prod","authenticationEntity": "MVPD"}}, - "COPPA_TRUE": {"options": {"coppa": true,"environment": "prod","authenticationEntity": "MVPD"}}, - "COPPA_FALSE": {"options": {"coppa": false,"environment": "prod","authenticationEntity": "MVPD"}}, - "NO_COPPA_ENVIRONMENT_TEST": {"options": {"environment": "test","authenticationEntity": "MVPD"}}, - "COPPA_TRUE_ENVIRONMENT_TEST": {"options": {"coppa": true,"environment": "test","authenticationEntity": "MVPD"}}, - "COPPA_FALSE_ENVIRONMENT_TEST": {"options": {"coppa": false,"environment": "test","authenticationEntity": "MVPD"}}, - "ONLY_COPPA": {"options": {"coppa": true}}, "INVALID_CONFIG_COPPA": {"options": {"coppa": "true","environment": "test","authenticationEntity": "MVPD"}}, "INVALID_CONFIG_AUTHENTICATIONENTITY": {"options":{"environment": "prod","authenticationEntity": 10}}, "INVALID_CONFIG_ENVIRONMENT_DATATYPE": {"options": {"environment": true,"authenticationEntity": "MVPD"}}, "INVALID_CONFIG_ENVIRONMENT": {"options": {"environment": "work","authenticationEntity": "MVPD"}}, "INTEGER_PARAM": {"options": {"coppa": 123,"environment": 123,"authenticationEntity": 123}}, - "ADVERTISINGID_SCOPE_BROWSER": {"options": {"scope":{ "type": "browse","id": "paidPlacement"}}}, - "ADVERTISINGID_SCOPE_CONTENT": {"options": {"scope":{ "type": "content", "id": "merlin:linear:station:123"}}}, "ADVERTISINGID_INVALID_TYPE": {"options": {"scope":{ "type": 1234 ,"id": "paidPlacement"}}}, "ADVERTISINGID_INVALID_ID": {"options": {"scope":{ "type": "browse" ,"id": true}}}, - "EMPTY_PARAMS": {"options": {}}, "DEVICEATTRIBUTES": {}, - "APPBUNDLEID": "", - "SKIPRESTRICTION_INTEGER_VALUE" : 898756, - "ADVERTISINGID_WITHOUT_SCOPE": {"options": {}}, - "ADVERTISINGID_WITH_RANDOM_STRING_SCOPE_ID": {"options": {"scope":{ "type": "browse" ,"id": "test"}}}, - "ADVERTISINGID_WITH_EMPTY_STRING_SCOPE_ID": {"options": {"scope":{ "type": "browse" ,"id": ""}}}, - "ADVERTISINGID_SCOPE_TYPE_INVALID_STRING": {"options": {"scope":{ "type": "test" ,"id": "paidPlacement"}}}, - "ADVERTISINGID_WITHOUT_SCOPE_TYPE_ID": {"options": {"scope":{}}}, - "ADVERTISINGID_WITHOUT_SCOPE_ID": {"options": {"scope":{ "type": "test" }}}, - "ADVERTISINGID_WITHOUT_SCOPE_TYPE": {"options": {"scope":{"id": "paidPlacement"}}} + "SKIPRESTRICTION_INTEGER_VALUE" : 898756 } \ No newline at end of file diff --git a/cypress/fixtures/modules/authentication.json b/cypress/fixtures/modules/authentication.json index 79a1bb95a..d347aaf11 100644 --- a/cypress/fixtures/modules/authentication.json +++ b/cypress/fixtures/modules/authentication.json @@ -2,7 +2,5 @@ "PLATFORM": {"type":"platform"}, "DEVICE": {"type":"device"}, "DISTRIBUTOR": {"type":"distributor"}, - "DISTRIBUTOR_CIMA": {"type":"distributor","options":{"clientId":"CIMA"}}, - "DISTRIBUTOR_OAT": {"type":"distributor","options":{"clientId":"OAT"}}, "PLATFORM1": {"type":"platform1"} } \ No newline at end of file diff --git a/cypress/fixtures/modules/capabilities.json b/cypress/fixtures/modules/capabilities.json index 141030cbf..aef1fdeed 100644 --- a/cypress/fixtures/modules/capabilities.json +++ b/cypress/fixtures/modules/capabilities.json @@ -1,47 +1,11 @@ { - "GET_KEYBOARD": { - "capability": "xrn:firebolt:capability:input:keyboard" - }, - "GET_ACKNOWLEDGECHALLENGE": { - "capability": "xrn:firebolt:capability:usergrant:acknowledgechallenge" - }, - "GET_PINCHALLENGE": { - "capability": "xrn:firebolt:capability:usergrant:pinchallenge" - }, "GRANTED_WITH_GRANT": { "capability": "xrn:firebolt:capability:localization:postal-code" }, - "GRANTED_WITH_OPTIONS_ROLE_USE": { - "capability": "xrn:firebolt:capability:localization:postal-code", - "options": { - "role": "use" - } - }, "CAPABILITY_INFO_INFO_PARAM":{ "capabilities":["xrn:firebolt:capability:capabilities:info"] }, - "GRANTED_WITH_OPTIONS_ROLE_MANAGE": { - "capability": "xrn:firebolt:capability:localization:postal-code", - "options": { - "role": "manage" - } - }, - "GRANTED_WITH_OPTIONS_ROLE_PROVIDE": { - "capability": "xrn:firebolt:capability:localization:postal-code", - "options": { - "role": "provide" - } - }, - "INFO_USERGRANT_PINCHALLENGE": {"capabilities": ["xrn:firebolt:capability:usergrant:pinchallenge"]}, "INFO_DEVICE_DISTRIBUTOR": {"capabilities": ["xrn:firebolt:capability:device:distributor"]}, - "INFO_NETWORK_STATUS": {"capabilities": ["xrn:firebolt:capability:network:status"]}, - "INFO_LOCALIZATION_TIMEZONE": {"capabilities": ["xrn:firebolt:capability:localization:time-zone"]}, - "PRIVACY_SETTINGS_INFO_PARAM":{ - "capabilities":["xrn:firebolt:capability:privacy:settings"] - }, - "INFO_PROTOCOL_WIFI": {"capabilities": ["xrn:firebolt:capability:protocol:wifi"]}, - "INFO_USERGRANT_ACKNOWLEDGECHALLENGE": {"capabilities": ["xrn:firebolt:capability:usergrant:acknowledgechallenge"]}, - "INFO_GRANTS_STATE": {"capabilities": ["xrn:firebolt:capability:grants:state"]}, "REQUEST_USERGRANT_PINCHALLENGE": { "grants": [ { @@ -113,16 +77,6 @@ } ] }, - "SUPPORTED_USERGRANT_PINCHALLENGE":"xrn:firebolt:capability:usergrant:pinchallenge", - "SUPPORTED_DEVICE_DISTRIBUTOR":"xrn:firebolt:capability:device:distributor", - "SUPPORTED_NETWORK_STATUS":"xrn:firebolt:capability:network:status", - "SUPPORTED_LOCALIZATION_TIMEZONE":"xrn:firebolt:capability:localization:time-zone", - "SUPPORTED_PRIVACY_SETTINGS":"xrn:firebolt:capability:privacy:settings", - "SUPPORTED_PROTOCOL_WIFI":"xrn:firebolt:capability:protocol:wifi", - "SUPPORTED_USERGRANT_ACKNOWLEDGECHALLENGE":"xrn:firebolt:capability:usergrant:acknowledgechallenge", - "SUPPORTED_GRANTS_STATE":"xrn:firebolt:capability:grants:state", - "INFO_LIFECYCLE_READY": {"capabilities": ["xrn:firebolt:capability:lifecycle:ready"]}, - "SUPPORTED_LIFECYCLE_READY": "xrn:firebolt:capability:lifecycle:ready", "REQUEST_LIFECYCLE_READY": { "grants": [ { @@ -131,10 +85,6 @@ } ] }, - "INFO_LIFECYCLE_STATE": {"capabilities": ["xrn:firebolt:capability:lifecycle:state"]}, - "INFO_LIFECYCLE_LAUNCH": {"capabilities": ["xrn:firebolt:capability:lifecycle:launch"]}, - "SUPPORTED_LIFECYCLE_STATE": "xrn:firebolt:capability:lifecycle:state", - "SUPPORTED_LIFECYCLE_LAUNCH": "xrn:firebolt:capability:lifecycle:launch", "REQUEST_LIFECYCLE_STATE": { "grants": [ { @@ -151,12 +101,6 @@ } ] }, - "INFO_ADVERTISING_IDENTIFIER": {"capabilities": ["xrn:firebolt:capability:advertising:identifier"]}, - "INFO_ACCOUNT_ID": {"capabilities": ["xrn:firebolt:capability:account:id"]}, - "INFO_ACCOUNT_UID": {"capabilities": ["xrn:firebolt:capability:account:uid"]}, - "SUPPORTED_ADVERTISING_IDENTIFIER": "xrn:firebolt:capability:advertising:identifier", - "SUPPORTED_ACCOUNT_ID": "xrn:firebolt:capability:account:id", - "SUPPORTED_ACCOUNT_UID": "xrn:firebolt:capability:account:uid", "REQUEST_ADVERTISING_IDENTIFIER": { "grants": [ { @@ -762,24 +706,6 @@ "role": [] } }, - "PERMITTED_LIFECYCLE_READY_USE_ROLE_PARAM":{ - "capability":"xrn:firebolt:capability:lifecycle:ready", - "options" : { - "role":"use" - } - }, - "PERMITTED_LIFECYCLE_STATE_USE_ROLE_PARAM":{ - "capability":"xrn:firebolt:capability:lifecycle:state", - "options" : { - "role":"use" - } - }, - "PERMITTED_ACCOUNT_ID_USE_ROLE_PARAM":{ - "capability":"xrn:firebolt:capability:account:id", - "options" : { - "role":"use" - } - }, "PERMITTED_ACCOUNT_UID_USE_ROLE_PARAM":{ "capability":"xrn:firebolt:capability:account:uid", "options" : { @@ -852,12 +778,6 @@ "role":"use" } }, -"PERMITTED_LIFECYCLE_LAUNCH_USE_ROLE_PARAM":{ - "capability":"xrn:firebolt:capability:lifecycle:launch", - "options" : { - "role":"use" - } -}, "PERMITTED_DISCOVERY_SIGNINSTATUS_USE_ROLE_PARAM":{ "capability":"xrn:firebolt:capability:discovery:sign-in-status", "options" : { @@ -1098,12 +1018,6 @@ "role": "use" } }, -"PERMITTED_ADVERTISING_IDENTIFIER_USE_ROLE_PARAM":{ - "capability":"xrn:firebolt:capability:advertising:identifier", - "options" : { - "role":"use" - } -}, "GRANTED_ACCOUNT_UID_ROLE_USE": { "capability": "xrn:firebolt:capability:account:uid", "options": { diff --git a/cypress/fixtures/objects/validationObjects/account.json b/cypress/fixtures/objects/validationObjects/account.json deleted file mode 100644 index 8bf63cba5..000000000 --- a/cypress/fixtures/objects/validationObjects/account.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "ACCOUNT_ID": { - "data": [ - { - "type": "fixture", - "validations": [ - { - "mode": "deviceContentValidation", - "type": "ACCOUNTID", - "description": "Validation of the Account Id" - } - ] - } - ] - }, - "ACCOUNT_UID": { - "data": [ - { - "type": "regEx", - "validations": [ - { - "mode": "regex", - "type": "UID", - "description": "Validation of the Account uid" - } - ] - } - ] - } -} \ No newline at end of file diff --git a/cypress/support/constants/constants.js b/cypress/support/constants/constants.js index ba98519fb..7d27d84ae 100644 --- a/cypress/support/constants/constants.js +++ b/cypress/support/constants/constants.js @@ -102,7 +102,7 @@ module.exports = { DEVICE_PLATFORM: 'device.platform', DEVICE_VIDEORESOLUTION: 'device.videoResolution', DISCOVERY_LAUNCH: 'discovery.launch', - DYNAMIC_DEVICE_DETAILS_MODULES: ['Device'], + DYNAMIC_DEVICE_DETAILS_MODULES: 'dynamicDeviceDetailsModules', EMAIL: 'email', ENV_PLATFORM_SDK_VERSION: 'platformSdkVersion', ENV_PLATFORM: 'platform', @@ -176,6 +176,8 @@ module.exports = { FCS_VALIDATION_JSON: 'fCSValidationjson', FIREBOLT: 'firebolt', FIREBOLTCALL: 'fireboltCall', + FIREBOLT_OBJECT_DOC_PATH: + 'https://github.com/rdkcentral/firebolt-certification-suite/blob/main/cypress/fixtures/docs/dynamicObjects.md#firebolt-object', FIREBOLT_VERSION: 'Firebolt Version', FIREBOLTCALLS_FROM_CONFIGMODULE: 'cypress/fixtures/external/fireboltCalls/', FIREBOLTCALLS_FROM_FCS: 'cypress/fixtures/fireboltCalls/', @@ -302,6 +304,8 @@ module.exports = { NO_MATCHED_RESPONSE: 'Unable to find the response for the current request', NO_PARAMS: 'noParam', NO_RESPONSE: 'No_Response', + NO_RUNTIME_VARIABLE_FOUND: + 'No "runtime" environment variable found. Please ensure it is initialized in the step "the environment has been set up" with the appropriate firebolt object key.', NOTIFICATION_CONTENT_VALIDATION_REQ: 'Lifecycle notification content validation ', NOTIFICATION_EXISTS_REQ: 'Lifecycle notification exists ', NOTIFICATION_SCHEMA_VALIDATION_REQ: 'Lifecycle notification schema validation ', @@ -345,6 +349,7 @@ module.exports = { READ_FILES_FROM_DIRECTORY: 'readFilesFromDir', RECORD_TASK_TYPE_START: 'starts', REGEX: 'regEx', + REGEX_EVENT_VALIDATION: 'regexEventValidation', REPORT_COMMUNICATION_MODE: 'Communication Mode', REPORT_DATE: 'Date', REQUEST_OVERRIDE_CALLS: { @@ -360,8 +365,11 @@ module.exports = { SETFIREBOLTINTERACTIONSHANDLER: 'fcs.setFireboltInteractionsHandler', CREATE_MARKER: 'performance.createMarker', UNLOADAPP: 'fcs.unloadApp', + CLOSEAPP: 'fcs.closeApp', + DISMISSAPP: 'fcs.dismissApp', FETCHDEVICEDETAILS: 'fcs.fetchDeviceDetails', SCREENSHOT: 'fcs.screenshot', + GETAPPSTATE: 'fcs.getAppState', }, REQUEST_MAP_INTERACTIONS_SERVICE: 'Request map for firebolt interactions service : ', RESPONSE: 'Response: ', @@ -507,6 +515,7 @@ module.exports = { SCENARIO_NAME: 'scenarioName', FIREBOLT_INTERACTION: 'FireboltInteraction', PENDING_FEATURES: 'pendingFeatures', + FOREGROUND: 'FOREGROUND', PERFORMANCE_VALIDATION: 'performanceValidation', MARKER_CREATION_STATUS: 'markerCreationStatus', }; diff --git a/cypress/support/cypress-commands/commands.js b/cypress/support/cypress-commands/commands.js index 2da7bf9f8..f0193ffb9 100644 --- a/cypress/support/cypress-commands/commands.js +++ b/cypress/support/cypress-commands/commands.js @@ -17,7 +17,7 @@ */ const CONSTANTS = require('../constants/constants'); const { _ } = Cypress; -import UTILS, { getEnvVariable } from '../cypress-support/src/utils'; +import UTILS, { fireLog, getEnvVariable } from '../cypress-support/src/utils'; const logger = require('../Logger')('command.js'); import { apiObject, eventObject } from '../appObjectConfigs'; @@ -1528,22 +1528,18 @@ Cypress.Commands.add( * @example * cy.getRuntimeFireboltCallObject(sdk); */ -Cypress.Commands.add('getRuntimeFireboltCallObject', (sdk) => { - if (CONSTANTS.SUPPORTED_SDK.includes(sdk)) { - // Checking the `runtime` env variable created and it has 'fireboltCall' field, else failing the test. - if ( - UTILS.getEnvVariable(CONSTANTS.RUNTIME, false) && - UTILS.getEnvVariable(CONSTANTS.RUNTIME, false).hasOwnProperty(CONSTANTS.FIREBOLTCALL) && - UTILS.getEnvVariable(CONSTANTS.RUNTIME, false).fireboltCall - ) { - return UTILS.getEnvVariable(CONSTANTS.RUNTIME).fireboltCall; - } else { - fireLog.fail( - 'The runtime environment variable was not found. To initialize the firebolt object, add the step "we test the (.+) getters and setters" with firebolt object key.' - ); - } +Cypress.Commands.add('getRuntimeFireboltCallObject', () => { + // Checking the `runtime` env variable created and it has 'fireboltCall' field, else failing the test. + if ( + UTILS.getEnvVariable(CONSTANTS.RUNTIME, false) && + UTILS.getEnvVariable(CONSTANTS.RUNTIME, false).hasOwnProperty(CONSTANTS.FIREBOLTCALL) && + UTILS.getEnvVariable(CONSTANTS.RUNTIME, false).fireboltCall + ) { + return UTILS.getEnvVariable(CONSTANTS.RUNTIME).fireboltCall; } else { - fireLog.assert(false, `${sdk} SDK not Supported`); + fireLog.fail( + `The firebolt call object was not found in the runtime environment variable. Please ensure it is initialized in the step "the environment has been set up" with the appropriate firebolt object key. Refer here - ${CONSTANTS.FIREBOLT_OBJECT_DOC_PATH}` + ); } }); @@ -1599,6 +1595,44 @@ Cypress.Commands.add('envConfigSetup', () => { fireLog.info('No additional config module environment setup'); }); +/** + * @module commands + * @function exitAppSession + * @description Function to provide the test runner with various methods to end the current app session + * @param {String} exitType - Type of close operation to be performed. + * @param {String} appId - AppId to be closed. + * @example + * cy.exitAppSession('closeApp','testAppId') + * cy.exitAppSession('dismissApp','testAppId') + * cy.exitAppSession('unloadApp','testAppId') + */ +Cypress.Commands.add('exitAppSession', (exitType, appId) => { + fireLog.info('Invoking platform implementation to end session for appId: ' + appId); + let exitMethod; + switch (exitType) { + case 'closeApp': + exitMethod = CONSTANTS.REQUEST_OVERRIDE_CALLS.CLOSEAPP; + break; + case 'unloadApp': + exitMethod = CONSTANTS.REQUEST_OVERRIDE_CALLS.UNLOADAPP; + break; + case 'dismissApp': + exitMethod = CONSTANTS.REQUEST_OVERRIDE_CALLS.DISMISSAPP; + break; + default: + fireLog.info('Session for appId: ' + appId + ' will not be ended due to invalid exitType'); + fireLog.error(CONSTANTS.CONFIG_IMPLEMENTATION_MISSING); + } + fireLog.info('Session for appId: ' + appId + ' will be ended with type: ' + exitType); + const requestMap = { + method: exitMethod, + params: appId, + }; + cy.sendMessagetoPlatforms(requestMap).then((response) => { + fireLog.info('Platform has successfully ended app Session for appId: ' + appId); + }); +}); + /** * @module commands * @function initiatePerformanceMetrics diff --git a/cypress/support/cypress-support/src/config.js b/cypress/support/cypress-support/src/config.js index 656c3291d..4db379932 100644 --- a/cypress/support/cypress-support/src/config.js +++ b/cypress/support/cypress-support/src/config.js @@ -181,10 +181,12 @@ export default class Config { ); return fireboltResponse; } - typeof fireboltResponse == 'object' - ? (fireboltResponse = JSON.stringify(fireboltResponse)) - : fireboltResponse; - + if (typeof fireboltResponse === 'object') { + fireboltResponse = JSON.stringify(fireboltResponse); + } + if (typeof fireboltResponse === 'string') { + fireboltResponse = fireboltResponse.replace(/\r?\n|\s{3,}/g, ''); + } fireLog.info('Original Response to be converted to firebolt equivalent: ' + fireboltResponse); // If we've gotten to this point, we have a config override. Call it and return its response return methodConfig(fireboltResponse); diff --git a/cypress/support/cypress-support/src/main.js b/cypress/support/cypress-support/src/main.js index d55d24bea..f56572d6c 100644 --- a/cypress/support/cypress-support/src/main.js +++ b/cypress/support/cypress-support/src/main.js @@ -355,7 +355,13 @@ export default function (module) { overrideParams = UTILS.overideParamsFromConfigModule(overrideParams); } + // Pass overrideParams along with additionalParams to intent addon + additionalParams.overrideData = overrideParams; cy.runIntentAddon(CONSTANTS.TASK.RUNTEST, additionalParams).then((parsedIntent) => { + // Extract and store overrideParams from parsed intent and delete once done + overrideParams = parsedIntent.overrideData; + delete parsedIntent.overrideData; + // Create intent message using the parsed intent and override params const intent = UTILS.createIntentMessage( CONSTANTS.TASK.RUNTEST, overrideParams, diff --git a/cypress/support/cypress-support/src/utils.js b/cypress/support/cypress-support/src/utils.js index 1ba519f95..900fbf2dc 100644 --- a/cypress/support/cypress-support/src/utils.js +++ b/cypress/support/cypress-support/src/utils.js @@ -878,6 +878,10 @@ class FireLog extends Function { } info(message) {} + + error(message) { + throw new Error(message); + } } const fireLog = new FireLog(); diff --git a/cypress/support/step_definitions/dynamicCalls.js b/cypress/support/step_definitions/dynamicCalls.js index 477becac1..f95d429e0 100644 --- a/cypress/support/step_definitions/dynamicCalls.js +++ b/cypress/support/step_definitions/dynamicCalls.js @@ -51,22 +51,41 @@ Given( /** * @module getterSetterCalls - * @function Given 1st party app invokes the '(.+)' API to set( invalid)? value + * @function Given 1st party app(?: invokes the '(.+)' API)? to set(?: '(.*?)' to( invalid)? '(.*?)'|( invalid)? value)? * @description Sending a message to platform to set a value and `invalid` is a optional parameter that specify whether to expect for an error or a result. * @param {String} sdk - sdk name. + * @param {String} attribute - attribute holds the value of the method name * @param {String} invalidValue - Determines whether expecting for an error or result. + * @param {String} value - value holds the value used for to set the value or for validation. + * @param {String} invalidValue1 - Determines whether expecting for an error or result. * @example - * Given 1st party app invokes the 'Firebolt' API to set * Given 1st party app invokes the 'Firebolt' API to set invalid value + * Given 1st party app invokes the 'Firebolt' API to set 'enabled' to 'true' + * Given 1st party app to set 'enabled' to 'true' +Note: The below formats will be deprecated in the future + * Given 1st party app invokes the 'Firebolt' API to set value + * Given 1st party app to set value */ Given( - /1st party app invokes the '(.+)' API to set( invalid)? value$/, - async (sdk, invalidValue) => { - cy.getRuntimeFireboltCallObject(sdk).then((fireboltCallObject) => { + /1st party app(?: invokes the '(.+)' API)? to set(?: '(.*?)' to( invalid)? '(.*?)'|( invalid)? value)?$/, + async (sdk, attribute, invalidValue, value, invalidValue1) => { + if (Cypress.env(CONSTANTS.RUNTIME)) { + if (attribute && value) { + value = UTILS.parseValue(value); + Cypress.env(CONSTANTS.RUNTIME).attribute = attribute; + Cypress.env(CONSTANTS.RUNTIME).value = value; + } + } else { + fireLog.fail( + `${CONSTANTS.NO_RUNTIME_VARIABLE_FOUND} Refer here - ${CONSTANTS.FIREBOLT_OBJECT_DOC_PATH}` + ); + } + + cy.getRuntimeFireboltCallObject().then((fireboltCallObject) => { let setMethod; let setParams; const context = {}; - const expected = invalidValue ? CONSTANTS.ERROR : CONSTANTS.RESULT; + const expected = invalidValue || invalidValue1 ? CONSTANTS.ERROR : CONSTANTS.RESULT; let action = CONSTANTS.ACTION_CORE.toLowerCase(); if (UTILS.fireboltCallObjectHasField(fireboltCallObject, CONSTANTS.SET_METHOD)) { setMethod = UTILS.resolveRecursiveValues(fireboltCallObject.setMethod); @@ -118,7 +137,7 @@ Given( /** * @module getterSetterCalls - * @function Given '(.+)' invokes the '(.+)' get API + * @function Given '(.+)' invokes(?: the '(.+)')? get API * @description Sending a message to platform or 3rd party app to invoke an API and get the value. * @param {String} appId - app identifier. * @param {String} sdk - sdk name. @@ -126,9 +145,10 @@ Given( * Given '1st party app' invokes the 'Firebolt' get API * Given '3rd party app' invokes the 'Firebolt' get API * Given 'test_app' invokes the 'Firebolt' get API + * Given '1st party app' invokes get API */ -Given(/'(.+)' invokes the '(.+)' get API$/, async (appId, sdk) => { - cy.getRuntimeFireboltCallObject(sdk).then((fireboltCallObject) => { +Given(/'(.+)' invokes(?: the '(.+)')? get API$/, async (appId, sdk) => { + cy.getRuntimeFireboltCallObject().then((fireboltCallObject) => { const context = {}; const expected = CONSTANTS.RESULT; appId = UTILS.fetchAppIdentifierFromEnv(appId); @@ -176,16 +196,17 @@ Given(/'(.+)' invokes the '(.+)' get API$/, async (appId, sdk) => { /** * @module getterSetterCalls - * @function Given '(.+)' registers for the '(.+)' event + * @function Given '(.+)' registers for(?: the '(.+)')? event * @description Sending a message to platform or third party app to start listening for an event. * @param {String} appId - app identifier. * @param {String} sdk - sdk name. * @example * And '3rd party app' registers for the 'Firebolt' event * And '1st party app' registers for the 'Firebolt' event + * And '1st party app' registers for event */ -Given(/'(.+)' registers for the '(.+)' event$/, async (appId, sdk) => { - cy.getRuntimeFireboltCallObject(sdk).then((fireboltCallObject) => { +Given(/'(.+)' registers for(?: the '(.+)')? event$/, async (appId, sdk) => { + cy.getRuntimeFireboltCallObject().then((fireboltCallObject) => { let event; if (UTILS.fireboltCallObjectHasField(fireboltCallObject, CONSTANTS.EVENT)) { event = UTILS.resolveRecursiveValues(fireboltCallObject.event); @@ -231,23 +252,36 @@ Given(/'(.+)' registers for the '(.+)' event$/, async (appId, sdk) => { /** * @module getterSetterCalls - * @function Given '(.+)' platform responds to '(.+)' (get|set) API(?: with '(.+)')? + * @function Given '(.+)' platform responds to '(.+)' (get|set) API(?: with '(.+)'| with '(.+)')? * @description Performing a validation against the source of truth for the given API response * @param {String} sdk - name of the sdk. * @param {String} appId - app identifier. * @param {String} methodType - Determines the type of method being validated Ex: set or get + * @param {String} content - Optional parameter to pass the content to validate the response. * @param {String} errorContent - Doing error content validation when error content object key passed. Ex: 'INVALID_PARAMS' * @example * And 'Firebolt' platform responds to '1st party app' get API * And 'Firebolt' platform responds to '1st party app' set API * And 'Firebolt' platform responds to '3rd party app' get API * And 'Firebolt' platform responds to '1st party app' set API with 'INVALID_PARAMS' + * And 'Firebolt' platform responds to '3rd party app' get API with 'true' */ Given( - /'(.+)' platform responds to '(.+)' (get|set) API(?: with '(.+)')?$/, - async (sdk, appId, methodType, errorContent) => { + /'(.+)' platform responds to '(.+)' (get|set) API(?: with '(.+)'| with '(.+)')?$/, + async (sdk, appId, methodType, content, errorContent) => { + if (Cypress.env(CONSTANTS.RUNTIME)) { + if (content) { + content = UTILS.parseValue(content); + Cypress.env(CONSTANTS.RUNTIME).content = content; + } + } else { + fireLog.fail( + `${CONSTANTS.NO_RUNTIME_VARIABLE_FOUND} Refer here - ${CONSTANTS.FIREBOLT_OBJECT_DOC_PATH}` + ); + } + // Retrieving the dynamic firebolt call object from the env variable - cy.getRuntimeFireboltCallObject(sdk).then((fireboltCallObject) => { + cy.getRuntimeFireboltCallObject().then((fireboltCallObject) => { let method; const setOrGetMethod = methodType === CONSTANTS.SET ? CONSTANTS.SET_METHOD : CONSTANTS.METHOD; @@ -290,23 +324,35 @@ Given( /** * @module getterSetterCalls - * @function Given '(.+)' platform (triggers|does not trigger) '(.*?)' event(?: with '(.+)')? + * @function Given '(.+)' platform (triggers|does not trigger) '(.*?)' event(?: with '(.+)'| with '(.+)')? * @description Performing a event validation against the source of truth * @param {String} sdk - name of the sdk. * @param {String} eventExpected - Determines whether the event is expected or not. * @param {String} appId - app identifier. + * @param {String} content - Optional parameter to pass the content to validate the response. * @param {String} errorContent - Doing error content validation when error content object key passed. Ex: 'INVALID_PARAMS' * @example * And 'Firebolt' platform triggers '1st party app' event * And 'Firebolt' platform triggers '3rd party app' event * And 'Firebolt' platform does not trigger '3rd party app' event * And 'Firebolt' platform triggers '1st party app' event with 'INVALID_PARAMS' + * And 'Firebolt' platform triggers '1st party app' event with 'true' */ Given( - /'(.+)' platform (triggers|does not trigger) '(.*?)' event(?: with '(.+)')?$/, - async (sdk, eventExpected, appId, errorContent) => { + /'(.+)' platform (triggers|does not trigger) '(.*?)' event(?: with '(.+)'| with '(.+)')?$/, + async (sdk, eventExpected, appId, content, errorContent) => { + if (Cypress.env(CONSTANTS.RUNTIME)) { + if (content) { + content = UTILS.parseValue(content); + Cypress.env(CONSTANTS.RUNTIME).content = content; + } + } else { + fireLog.fail( + `${CONSTANTS.NO_RUNTIME_VARIABLE_FOUND} Refer here - ${CONSTANTS.FIREBOLT_OBJECT_DOC_PATH}` + ); + } // Retrieving the dynamic firebolt call object from the env variable - cy.getRuntimeFireboltCallObject(sdk).then((fireboltCallObject) => { + cy.getRuntimeFireboltCallObject().then((fireboltCallObject) => { let event; const isNullCase = fireboltCallObject.isNullCase || false; if (UTILS.fireboltCallObjectHasField(fireboltCallObject, CONSTANTS.EVENT)) { @@ -348,6 +394,26 @@ Given( * Given 'third party app is launched' on 'auth' page */ Given(/'(.+)' on '(.+)' page/, (validationObjectKey, page) => { + const appId = Cypress.env(CONSTANTS.CURRENT_APP_ID); + const requestMap = { + method: CONSTANTS.REQUEST_OVERRIDE_CALLS.GETAPPSTATE, + params: appId, + }; + fireLog.info(`Sending request to fetch app state: ${JSON.stringify(requestMap)}`); + + // Sending the request to the platform to retrieve the app state. + cy.sendMessagetoPlatforms(requestMap).then((response) => { + if (response.toUpperCase() === CONSTANTS.FOREGROUND) { + fireLog.info( + `State validation successful: Current state of ${appId} app is ${response} as expected` + ); + } else { + fireLog.fail( + `State validation failed: Current state of ${appId} app is ${response}, expected to be ${CONSTANTS.FOREGROUND}.` + ); + } + }); + // Storing the page name in runtime environment variable to use it in the validations. if (Cypress.env(CONSTANTS.RUNTIME)) { Cypress.env(CONSTANTS.RUNTIME).page = page; diff --git a/cypress/support/step_definitions/dynamicCalls.md b/cypress/support/step_definitions/dynamicCalls.md index ed6f2f3c1..a32ab00d7 100644 --- a/cypress/support/step_definitions/dynamicCalls.md +++ b/cypress/support/step_definitions/dynamicCalls.md @@ -2,12 +2,12 @@ ## Table of Contents: - [Dynamic Firebolt Objects](#dynamic-firebolt-objects) - - [we test the '(.+)' getters and setters(?: '(.*?)'(?: to '(.*?)')?)?](#we-test-the--getters-and-setters--to-) - - [1st party app invokes the '(.+)' API to set( invalid)? value](#1st-party-app-invokes-the--api-to-set-invalid-value) - - ['(.+)' invokes the '(.+)' get API](#-invokes-the--get-api) - - ['(.+)' registers for the '(.+)' event](#-registers-for-the--event) - - ['(.+)' platform responds to '(.+)' (get|set) API(?: with '(.+)')?](#-platform-responds-to--getset-api-with-) - - ['(.+)' platform (triggers|does not trigger) '(.\*?)' event(?: with '(.+)')?](#-platform-triggersdoes-not-trigger--event-with-) + - [1st party app(?: invokes the '(.+)' API)? to set(?: '(.*?)' to( invalid)? '(.*?)'|( invalid)? value)?](#1st-party-app-invokes-the--api-to-set-invalid-value) + - ['(.+)' invokes(?: the '(.+)')? get API](#-invokes-the--get-api) + - ['(.+)' registers for(?: the '(.+)')? event](#-registers-for-the--event) + - ['(.+)' platform responds to '(.+)' (get|set) API(?: with '(.+)'| with '(.+)')?](#-platform-responds-to--getset-api-with-) + - ['(.+)' platform (triggers|does not trigger) '(.*?)' event(?: with '(.+)'| with '(.+)')?](#-platform-triggersdoes-not-trigger--event-with-) + - ['(.+)' on '(.+)' page](#-on--page) ## Dynamic Firebolt Objects @@ -41,26 +41,33 @@ runtime: { } ``` -## 1st party app invokes the '(.+)' API to set( invalid)? value +## 1st party app(?: invokes the '(.+)' API)? to set(?: '(.*?)' to( invalid)? '(.*?)'|( invalid)? value)? #### Purpose: Sending a message to platform to set a value. Optional parameter: `invalid` can be used to specify whether to expect an error or a result. ### Examples: - -- `Given 1st party app invokes the 'Firebolt' API to set` - `Given 1st party app invokes the 'Firebolt' API to set invalid value` +- `Given 1st party app invokes the 'Firebolt' API to set 'enabled' to 'true'` +- `Given 1st party app to set 'enabled' to 'true'` + +*Note: The below formats will be deprecated in the future:* +- `Given 1st party app invokes the 'Firebolt' API to set value` +- `Given 1st party app to set value` ### Params: -| **Param** | **Definition** | -| ------------------ | -------------------------------------------------- | -| **_sdk_** | sdk name | -| **_invalidValue_** | Determines whether an error or result is expected. | +| **Param** | **Definition** | +| ------------------ | -------------------------------------------------- | +| **_sdk_** | sdk name | +| **_attribute_** | attribute holds the value of the method name | +| **_invalidValue_** | Determines whether expecting for an error or result. | +| **_value_** | value holds the value used for to set the value or for validation | +| **_invalidValue1_** | Determines whether expecting for an error or result. | **Note:** This glue step will work only if the fireboltCall object contains `setMethod` and `setParams` is a not required field, by default it will take an empty object. -## '(.+)' invokes the '(.+)' get API +## '(.+)' invokes(?: the '(.+)')? get API #### Purpose: Sending a message to platform or 3rd party app to invoke an API and get the value. @@ -69,6 +76,7 @@ runtime: { - `And '1st party app' invokes the 'Firebolt' get API` - `And '3rd party app' invokes the 'Firebolt' get API` - `And 'test_app' invokes the 'Firebolt' get API` +- `And '1st party app' invokes get API` ### Params: @@ -79,7 +87,7 @@ runtime: { **Note:** This glue step will work only if the fireboltCall object contains `method` and `params` is a not required field, by default it will take an empty object. -## '(.+)' registers for the '(.+)' event +## '(.+)' registers for(?: the '(.+)')? event #### Purpose: Sending a message to platform or third party app to start listening for an event. @@ -87,6 +95,7 @@ runtime: { - `And '3rd party app' registers for the 'Firebolt' event` - `And '1st party app' registers for the 'Firebolt' event` +- `And '1st party app' registers for event` ### Params: @@ -98,16 +107,16 @@ runtime: { **Note:** This glue step will work only if the fireboltCall object contains `event` field. -## '(.+)' platform responds to '(.+)' (get|set) API(?: with '(.+)')? +## '(.+)' platform responds to '(.+)' (get|set) API(?: with '(.+)'| with '(.+)')? #### Purpose: Validating that the get or set API response aligns with the expected response which will typically be configured by the dynamic object with a json path to validate. ### Examples: - - `And 'Firebolt' platform responds to '1st party app' get API` -- `And 'Firebolt' platform responds to '3rd party app' get API` - `And 'Firebolt' platform responds to '1st party app' set API` -- `And 'Firebolt' platform responds to '1st party app' 'CLOSEDCAPTION_SETTINGS' set API with 'INVALID_TYPE_PARAMS'` +- `And 'Firebolt' platform responds to '3rd party app' get API` +- `And 'Firebolt' platform responds to '1st party app' set API with 'INVALID_PARAMS'` +- `And 'Firebolt' platform responds to '3rd party app' get API with 'true'` ### Params: @@ -116,6 +125,7 @@ runtime: { | **_sdk_** | name of the sdk | | **_appId_** | app identifier | | **_methodType_** | Determines which method doing content validation Ex: set or get | +| **_content_** | Optional parameter to pass the content to validate the response. | | **_errorContent_** | Doing error content validation when error content object key passed. Ex: 'INVALID_PARAMS' | **Note:** This glue step will work only when fireboltCall `setMethod` for set method validation and `method` for get method validation. @@ -126,16 +136,16 @@ Below fields is not mandatory to add in the fireboltCall object, if not present - validationJsonPath ---> 'result' - content ---> null -## '(.+)' platform (triggers|does not trigger) '(.\*?)' event(?: with '(.+)')? +## '(.+)' platform (triggers|does not trigger) '(.*?)' event(?: with '(.+)'| with '(.+)')? #### Purpose: Validating the event response aligns with the expected response which will typically be configured by the dynamic object with a json path to validate. ### Examples: - +- `And 'Firebolt' platform triggers '1st party app' event` - `And 'Firebolt' platform triggers '3rd party app' event` - `And 'Firebolt' platform does not trigger '3rd party app' event` -- `And 'Firebolt' platform triggers '1st party app' event` - `And 'Firebolt' platform triggers '1st party app' event with 'INVALID_PARAMS'` +- `And 'Firebolt' platform triggers '1st party app' event with 'true'` ### Params: @@ -144,6 +154,7 @@ Below fields is not mandatory to add in the fireboltCall object, if not present | **_sdk_** | sdk name | | **_eventExpected_** | Determines whether the event is expected or not. | | **_appId_** | app identifier | +| **_content_** | Optional parameter to pass the content to validate the response. | | **_errorContent_** | Doing error content validation when error content object key passed. Ex: 'INVALID_PARAMS' | **Note:** This glue step will work only when fireboltCall object having `event`, `eventValidationJsonPath` and `content` fields not present default value will be used. diff --git a/cypress/support/step_definitions/launchApp.js b/cypress/support/step_definitions/launchApp.js index 74d397a24..9cee729cc 100644 --- a/cypress/support/step_definitions/launchApp.js +++ b/cypress/support/step_definitions/launchApp.js @@ -38,6 +38,9 @@ Given( UTILS.getEnvVariable(CONSTANTS.LIFECYCLE_CLOSE_TEST_TYPES).includes( UTILS.getEnvVariable(CONSTANTS.TEST_TYPE) ) || + UTILS.getEnvVariable(CONSTANTS.UNLOADING_APP_TEST_TYPES).includes( + UTILS.getEnvVariable(CONSTANTS.TEST_TYPE) + ) || UTILS.isTestTypeChanged(CONSTANTS.TEST_TYPE) ) { if (!state) { diff --git a/cypress/support/step_definitions/testSetup.js b/cypress/support/step_definitions/testSetup.js index 216f288ef..b1e4c4cb0 100644 --- a/cypress/support/step_definitions/testSetup.js +++ b/cypress/support/step_definitions/testSetup.js @@ -21,13 +21,38 @@ import UTILS, { fireLog } from '../cypress-support/src/utils'; /** * @module TestSetupGlue - * @function the environment has been set up for {string} tests - * @description Setup the environment for the test in question. - * @param {String} test - log message + * @function Given the environment has been set up for {string} tests + * @description Sets up the environment for the specified test. + * @param {String} test - The name of the test. * @example * Given the environment has been set up for 'Firebolt Sanity' tests */ Given('the environment has been set up for {string} tests', (test) => { + const runtime = {}; + + // Check if the test parameter is provided + if (test) { + let fireboltCallKey; + // Check if the test parameter contains a colon to split into module and method + if (test.includes(':')) { + const [module, method] = test.split(':'); + fireboltCallKey = module.toUpperCase(); + Object.assign(runtime, { method, module }); + } else { + // Replace spaces with underscores and convert to uppercase for the fireboltCallKey + fireboltCallKey = test.replace(/\s+/g, '_').toUpperCase(); + } + // Retrieve the firebolt object from environment variables using the fireboltCallKey + const fireboltObject = UTILS.getEnvVariable(CONSTANTS.COMBINEDFIREBOLTCALLS)[fireboltCallKey]; + if (fireboltObject) { + // Update the runtime environment variable with the firebolt object + runtime.fireboltCall = fireboltObject; + Cypress.env(CONSTANTS.RUNTIME, runtime); + fireLog.info(`Firebolt object successfully updated in runtime environment variable`); + } + } + Cypress.env(CONSTANTS.PREVIOUS_TEST_TYPE, Cypress.env(CONSTANTS.TEST_TYPE)); + Cypress.env(CONSTANTS.TEST_TYPE, test); if ( UTILS.getEnvVariable(CONSTANTS.PENDING_FEATURES).includes( JSON.stringify(window.testState.gherkinDocument.feature.name) @@ -35,13 +60,16 @@ Given('the environment has been set up for {string} tests', (test) => { ) { return 'pending'; } + + // Calling the envConfigSetup command to setup the environment for the test from the config module. + cy.envConfigSetup(); + if ( !UTILS.getEnvVariable(CONSTANTS.ENV_SETUP_STATUS, false) || UTILS.getEnvVariable(CONSTANTS.LIFECYCLE_CLOSE_TEST_TYPES).includes(test) || + UTILS.getEnvVariable(CONSTANTS.UNLOADING_APP_TEST_TYPES).includes(test) || UTILS.isTestTypeChanged(test) ) { - Cypress.env(CONSTANTS.PREVIOUS_TEST_TYPE, Cypress.env(CONSTANTS.TEST_TYPE)); - Cypress.env(CONSTANTS.TEST_TYPE, test); if (test.toLowerCase() == CONSTANTS.MODULE_NAMES.LIFECYCLEAPI) { Cypress.env(CONSTANTS.LIFECYCLE_VALIDATION, true); } @@ -57,7 +85,11 @@ Given('the environment has been set up for {string} tests', (test) => { } // fetch device details dynamically if (Cypress.env(CONSTANTS.FETCH_DEVICE_DETAILS_DYNAMICALLY_FLAG)) { - if (CONSTANTS.DYNAMIC_DEVICE_DETAILS_MODULES.includes(Cypress.env(CONSTANTS.TEST_TYPE))) { + if ( + UTILS.getEnvVariable(CONSTANTS.DYNAMIC_DEVICE_DETAILS_MODULES).includes( + Cypress.env(CONSTANTS.TEST_TYPE) + ) + ) { cy.getDeviceData(CONSTANTS.DEVICE_ID, {}, CONSTANTS.ACTION_CORE.toLowerCase()).then( (response) => { if (response) { @@ -82,8 +114,6 @@ Given('the environment has been set up for {string} tests', (test) => { fireLog.fail('Marker creation failed'); } } - // Calling the envConfigSetup command to setup the environment for the test from the config module. - cy.envConfigSetup(); }); /** @@ -95,80 +125,32 @@ Given('the environment has been set up for {string} tests', (test) => { * destroyAppInstance('Parameters') */ function destroyAppInstance(testType) { - const isAllowedTestType = UTILS.getEnvVariable(CONSTANTS.LIFECYCLE_CLOSE_TEST_TYPES).includes( + // Checking if the current test type is present in unloadAppTestTypes and/or closeAppTestTypes + const isCloseTestType = UTILS.getEnvVariable(CONSTANTS.LIFECYCLE_CLOSE_TEST_TYPES).includes( + testType + ); + const isUnloadTestType = UTILS.getEnvVariable(CONSTANTS.UNLOADING_APP_TEST_TYPES).includes( testType ); + const appId = UTILS.getEnvVariable(CONSTANTS.THIRD_PARTY_APP_ID); + // Checking if the previous test type is different from the current test type. const isDifferentFromPrevious = UTILS.getEnvVariable(CONSTANTS.PREVIOUS_TEST_TYPE, false) != testType && UTILS.getEnvVariable(CONSTANTS.PREVIOUS_TEST_TYPE, false) != undefined; - - if (isAllowedTestType || isDifferentFromPrevious) { - const requestTopic = UTILS.getTopic(); - const responseTopic = UTILS.getTopic(null, CONSTANTS.SUBSCRIBE); - - // The test type is present in the unloading app test list, taking the reason as 'error'. This will unload the app. - const closeReason = UTILS.getEnvVariable(CONSTANTS.UNLOADING_APP_TEST_TYPES).includes(testType) - ? CONSTANTS.ERROR - : CONSTANTS.USER_EXIT_REASON; - - const communicationMode = UTILS.getCommunicationMode(); - additionalParams = { - communicationMode: communicationMode, - action: 'Lifecycle.validation', - }; - const params = { - mode: 'Lifecycle.validation', - methodName: 'Lifecycle.close', - methodParams: { reason: closeReason }, - }; - const intentMessage = UTILS.createIntentMessage( - CONSTANTS.TASK.RUNTEST, - params, - additionalParams - ); - cy.log( - 'Sending lifecycle close intent to unload app, method: ' + - params.methodName + - ' params: ' + - JSON.stringify(params.methodParams) + // If the current test type is present inside the closeAppTestTypes array then close the app. + // If the multiple test types are executed in one command then close the app between them + if (isCloseTestType || isDifferentFromPrevious) { + fireLog.info( + 'Closing app since either Test Type is specified in closeAppTestTypes or is different from previous Test Type.' ); + cy.exitAppSession('closeApp', appId); + } - try { - cy.sendMessagetoApp(requestTopic, responseTopic, intentMessage).then((response) => { - let result; - try { - response = JSON.parse(response); - result = response.report.result; - fireLog.info( - 'Received response from app to acknowledge close request. Response: ' + - JSON.stringify(response) - ); - } catch { - result = response; - } - if (result === CONSTANTS.NO_RESPONSE || result === null) { - fireLog.info('App unloaded', 'destroyAppInstance'); - } else { - fireLog.info( - false, - 'App may have failed to unload. Response: ' + JSON.stringify(response) - ); - fireLog.info('Falling back to platform implementation of force unload.'); - const requestMap = { - method: CONSTANTS.REQUEST_OVERRIDE_CALLS.UNLOADAPP, - params: UTILS.getEnvVariable(CONSTANTS.THIRD_PARTY_APP_ID), - }; - cy.sendMessagetoPlatforms(requestMap).then(() => { - // Config modules needs override for validation of app unload - fireLog.info('Platforms unload app execution complete'); - }); - } - cy.wait(5000); - }); - } catch (error) { - fireLog.info('Failed to close the 3rd party app: ', error); - } + // If the current test type is present inside the unloadAppTestTypes array then unload the app. + if (isUnloadTestType) { + fireLog.info('Unloading app since Test Type is specified in unloadAppTestTypes.'); + cy.exitAppSession('unloadApp', appId); } } diff --git a/cypress/support/step_definitions/testSetup.md b/cypress/support/step_definitions/testSetup.md index 9ecd87e1b..574679471 100644 --- a/cypress/support/step_definitions/testSetup.md +++ b/cypress/support/step_definitions/testSetup.md @@ -1,15 +1,28 @@ # TestSetup Glue -## I initialize a {string} test -### Purpose: initalize a test during prerequisite +## the environment has been set up for {string} tests + +### Purpose: Sets up the environment for the specified test based on the test name. + +#### Below are the tasks that are performed based on the test name: + +- This glue is used to potentially initialize the Firebolt object for dynamic calls. The Firebolt object can be initialized with dynamic objects if they are available, but it will work regardless of whether dynamic objects are found or required. For more details on dynamic objects, refer to [here](../../fixtures/docs/dynamicObjects.md/#firebolt-object). + +- This glue will close the app instance for the specified test names. To close the app instance, the test name should be configured in the `closeAppTestTypes` environment variable. ### Params: -| Param | Definition| -| --- | --- | -| test | name of test | + +| Param | Definition | +| ----- | ------------ | +| test | name of test | ### Examples: -* `Given I initialize a 'Parental Control' test` + +- `Given the environment has been set up for 'Account' tests` +- `Given the environment has been set up for 'ADVERTISING_SKIPRESTRICTION' tests` +- `Given the environment has been set up for 'Localization:locale' tests` +- `Given the environment has been set up for 'Accessibility closedcaptions settings' tests` + ## destroyAppInstance diff --git a/cypress/support/step_definitions/validations.js b/cypress/support/step_definitions/validations.js index 7c048306e..5853653e0 100644 --- a/cypress/support/step_definitions/validations.js +++ b/cypress/support/step_definitions/validations.js @@ -298,17 +298,25 @@ Given( }; cy.sendMessagetoPlatforms(requestMap).then((result) => { - if (result.error) { - cy.log('Failed to fetch and validate the performance metrics').then(() => { - assert(false, result.error); - }); - } else { - result.map((response) => { - cy.log(response.message).then(() => { - assert.equal(true, response?.success, response?.message); - }); + cy.wrap(result) + .then((response) => { + if (response && Array.isArray(response)) { + response.map((res) => { + fireLog.info(JSON.stringify(res)); + }); + } + }) + .then(() => { + if (result.error) { + fireLog.info('Failed to fetch and validate the performance metrics').then(() => { + fireLog.assert(false, result.error); + }); + } else { + result.map((response) => { + fireLog.equal(true, response?.success, response?.message); + }); + } }); - } }); } ); diff --git a/cypress/support/validations/performanceValidation.js b/cypress/support/validations/performanceValidation.js index 60f64b4bc..c1d0cb6b9 100644 --- a/cypress/support/validations/performanceValidation.js +++ b/cypress/support/validations/performanceValidation.js @@ -17,7 +17,7 @@ */ const CONSTANTS = require('../constants/constants'); -const UTILS = require('../cypress-support/src/utils'); +import UTILS, { fireLog } from '../cypress-support/src/utils'; /** * @module performanceValidation @@ -43,17 +43,26 @@ Cypress.Commands.add('performanceValidation', (object) => { fireLog.info('Performance validation has started'); cy.sendMessagetoPlatforms(requestMap).then((result) => { - if (result.error) { - cy.log('Failed to fetch and validate the performance metrics').then(() => { - assert(false, result.error); + cy.wrap(result) + .then((response) => { + if (response && Array.isArray(response)) { + response.map((res) => { + fireLog.info(JSON.stringify(res)); + }); + } + }) + .then(() => { + if (result.error) { + fireLog.info('Failed to fetch and validate the performance metrics').then(() => { + fireLog.assert(false, result.error); + }); + } else { + result.map((response) => { + fireLog.equal(true, response?.success, response?.message); + }); + } }); - } else { - result.map((response) => { - cy.log(response.message).then(() => { - assert.equal(true, response?.success, response?.message); - }); - }); - } + fireLog.info('Performance validation has stopped'); }); } else { fireLog.info('PerformanceMetrics are disabled.'); diff --git a/cypress/support/validations/schemaValidation.js b/cypress/support/validations/schemaValidation.js index 14a434b2f..9111b1d8f 100644 --- a/cypress/support/validations/schemaValidation.js +++ b/cypress/support/validations/schemaValidation.js @@ -47,7 +47,10 @@ Cypress.Commands.add( responseType, isValidation ).then((schemaValidation) => { - if (methodOrEvent.includes('.on')) { + // Retrieving the pattern string from the env variable to differentiate if the method is an an event or a getter/setter + const regexPattern = UTILS.getEnvVariable(CONSTANTS.REGEX_EVENT_VALIDATION, true); + const regex = new RegExp(regexPattern.replace(/^\/|\/$/g, '')); // No need to replace slashes + if (regex.test(methodOrEvent)) { let formattedSchemaValidationResult; if ( @@ -116,7 +119,6 @@ Cypress.Commands.add( formattedResponse.response = result; } - return formattedResponse; }); } else { @@ -202,7 +204,6 @@ Cypress.Commands.add('getSchema', (methodOrEvent, params, schemaType) => { break; } } - return schemaMap; } }); diff --git a/defaultModule/requestModules/fcs.js b/defaultModule/requestModules/fcs.js index 38e02ce21..bfd40ffa3 100644 --- a/defaultModule/requestModules/fcs.js +++ b/defaultModule/requestModules/fcs.js @@ -85,9 +85,7 @@ function setTestProvider(parsedData) { } function setLifecycleState(parsedData) { - cy.log(CONSTANTS.SET_LIFECYCLE_STATE_MISSING).then(() => { - throw new Error(CONSTANTS.SET_LIFECYCLE_STATE_MISSING); - }); + fireLog.error(CONSTANTS.SET_LIFECYCLE_STATE_MISSING); } /** @@ -124,22 +122,96 @@ function fetchEventResponse(parsedParam) { }}}) */ function triggerEvent(key) { - fireLog.info(CONSTANTS.CONFIG_IMPLEMENTATION_MISSING).then(() => { - throw new Error(CONSTANTS.CONFIG_IMPLEMENTATION_MISSING); - }); + fireLog.error(CONSTANTS.CONFIG_IMPLEMENTATION_MISSING); } /** * @module fcs * @function unloadApp - * @description UnloadApp - * @param {String} appId - appId which is to be unloaded - * unloadApp() + * @description unloadApp + * @param {Object} request - request body containing method and appId which is to be closed + * unloadApp("method": "fcs.unloadApp","params": "test.test.test") **/ -function unloadApp(appId) { - fireLog.info(CONSTANTS.CONFIG_IMPLEMENTATION_MISSING).then(() => { - throw new Error(CONSTANTS.CONFIG_IMPLEMENTATION_MISSING); - }); +function unloadApp(request) { + // Generic error message due to missing implementation. + const appId = request.params; + fireLog.info( + 'App unload requires platform implementation. AppId: ' + appId + ' was not able to be unloaded.' + ); + fireLog.error(CONSTANTS.CONFIG_IMPLEMENTATION_MISSING); +} + +/** + * @module fcs + * @function dismissApp + * @description dismissApp + * @param {Object} request - request body containing method and appId which is to be closed + * dismissApp("method": "fcs.dismissApp","params": "test.test.test") + **/ +function dismissApp(request) { + // Generic error message due to missing implementation. + const appId = request.params; + fireLog.info( + 'App dismiss requires platform implementation. AppId: ' + + appId + + ' was not able to be dismissed.' + ); + fireLog.error(CONSTANTS.CONFIG_IMPLEMENTATION_MISSING); +} + +/** + * @module fcs + * @function closeApp + * @description closeApp + * @param {Object} request - request body containing method and appId which is to be closed + * closeApp("method": "fcs.closeApp","params": "test.test.test") + **/ +function closeApp(request) { + // Base implementation to invoke lifecycle.close when communicating with the app via PUBSUB + const appId = request.params; + const requestTopic = UTILS.getTopic(appId); + const responseTopic = UTILS.getTopic(appId, CONSTANTS.SUBSCRIBE); + + const communicationMode = UTILS.getCommunicationMode(); + additionalParams = { + communicationMode: communicationMode, + action: 'Lifecycle.validation', + }; + const params = { + mode: 'Lifecycle.validation', + methodName: 'Lifecycle.close', + methodParams: { reason: CONSTANTS.USER_EXIT_REASON }, + }; + const intentMessage = UTILS.createIntentMessage(CONSTANTS.TASK.RUNTEST, params, additionalParams); + fireLog.info( + 'Sending lifecycle close method to close app, method: ' + + params.methodName + + ' params: ' + + JSON.stringify(params.methodParams) + ); + try { + cy.sendMessagetoApp(requestTopic, responseTopic, intentMessage).then((response) => { + let result; + try { + response = JSON.parse(response); + result = response.report.result; + fireLog.info( + 'Received response from app to acknowledge close request. Response: ' + + JSON.stringify(response) + ); + } catch { + result = response; + } + if (result === CONSTANTS.NO_RESPONSE || result === null) { + fireLog.info('App closed successfully'); + } else { + fireLog.info(false, 'App may have failed to close.'); + } + cy.wait(5000); + }); + } catch (error) { + fireLog.info('Failed to close the 3rd party app: ', error); + } } module.exports = { @@ -149,4 +221,6 @@ module.exports = { fetchEventResponse, triggerEvent, unloadApp, + dismissApp, + closeApp, }; diff --git a/package.json b/package.json index fb0cee713..3081c0f70 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "firebolt-certification-suite", - "version": "1.4.0", + "version": "1.5.0-dev.14", "description": "Firebolt Certification Test Suite", "main": "index.js", "scripts": {