diff --git a/cypress/TestCases/FireboltCertification/Accessibility.feature b/cypress/TestCases/FireboltCertification/Accessibility.feature index 95704d327..4319b82ad 100644 --- a/cypress/TestCases/FireboltCertification/Accessibility.feature +++ b/cypress/TestCases/FireboltCertification/Accessibility.feature @@ -8,12 +8,12 @@ Feature: Accessibility @sdk @transport Scenario Outline: Accessibility.closedCaptionsSettings - Positive Scenario: Given we test the 'ACCESSIBILITY_CLOSEDCAPTIONS_SETTINGS' getters and setters '' to '' - When '3rd party app' registers for the 'Firebolt' event + 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 + Then 'Firebolt' platform responds to '1st party app' set API When '3rd party app' invokes the 'Firebolt' get API - Given 1st party app invokes the 'Firebolt' API to set value - 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 + Then 'Firebolt' platform responds to '3rd party app' get API And 'Firebolt' platform triggers '3rd party app' event Examples: @@ -53,9 +53,9 @@ Feature: Accessibility @sdk @transport Scenario Outline: Accessibility.closedCaptionsSettings - Positive Scenario: with 'null' params - When '3rd party app' registers for the 'accessibility onClosedCaptionsSettingsChanged' event using the 'Firebolt' API + Given '3rd party app' registers for the 'accessibility onClosedCaptionsSettingsChanged' event using the 'Firebolt' API And '3rd party app' invokes the 'Firebolt' API to 'get closedCaptions settings' - And 1st party app invokes the 'Firebolt' API to '' + When 1st party app invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds to '1st party app' for '' When '3rd party app' invokes the 'Firebolt' API to 'get closedCaptions settings' Then 'Firebolt' platform responds with '' @@ -79,12 +79,12 @@ Feature: Accessibility @sdk @transport Scenario Outline: Accessibility.voiceGuidanceSettings - Positive Scenario: Given we test the 'ACCESSIBILITY_VOICEGUIDANCE_SETTINGS' getters and setters '' to '' - 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 - And 'Firebolt' platform responds to '1st party app' set API + 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 + Then '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 + Then 'Firebolt' platform responds to '3rd party app' get API And 'Firebolt' platform triggers '3rd party app' event Examples: @@ -98,12 +98,12 @@ Feature: Accessibility @sdk @transport Scenario Outline: Accessibility.audioDescriptionSettings - Positive Scenario: Given we test the 'AUDIODESCRIPTIONS_SETTINGS' getters and setters '' to '' - When '3rd party app' registers for the 'Firebolt' event + 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 + Then 'Firebolt' platform responds to '1st party app' set API When '3rd party app' invokes the 'Firebolt' get API - Given 1st party app invokes the 'Firebolt' API to set value - 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 + Then 'Firebolt' platform responds to '3rd party app' get API And 'Firebolt' platform triggers '3rd party app' event Examples: @@ -114,11 +114,11 @@ Feature: Accessibility @sdk @transport Scenario Outline: Accessibility.closedCaptions - Positive Scenario: Given we test the 'ACCESSIBILITY_CLOSEDCAPTIONS' getters and setters '' to '' - When '3rd party app' registers for the 'Firebolt' event - Given 1st party app invokes the 'Firebolt' API to set value - And 'Firebolt' platform responds to '1st party app' set API + And '3rd party app' registers for the 'Firebolt' event + When 1st party app invokes the 'Firebolt' API to set value + Then '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 + Then 'Firebolt' platform responds to '3rd party app' get API And 'Firebolt' platform triggers '3rd party app' event Examples: @@ -140,21 +140,21 @@ Feature: Accessibility @sdk @transport @requiresPlatformImplementation Scenario: Accessibility.onClosedCaptionsSettingsChanged event - Positive Scenario: Clear listeners - When '3rd party app' registers for the 'accessibility onClosedCaptionsSettingsChanged' event using the 'Firebolt' API - And 1st party stops listening to the event 'accessibility onClosedCaptionsSettingsChanged event' - And 1st party app invokes the 'Firebolt' API to 'disable closedCaptions' + Given '3rd party app' registers for the 'accessibility onClosedCaptionsSettingsChanged' event using the 'Firebolt' API + And 3rd party stops listening to the event 'accessibility onClosedCaptionsSettingsChanged event' + When 1st party app invokes the 'Firebolt' API to 'disable closedCaptions' Then 'Firebolt' platform responds to '1st party app' for 'disable closedCaptions' And 'Firebolt' platform does not trigger event for 'onclosedCaptionsSettingsChanged' @sdk @transport Scenario Outline: Accessibility.voiceGuidance - Positive Scenario: Given we test the 'ACCESSIBILITY_VOICEGUIDANCE' getters and setters '' to '' - 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 - And 'Firebolt' platform responds to '1st party app' set API + 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 + Then '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 + Then 'Firebolt' platform responds to '3rd party app' get API And 'Firebolt' platform triggers '3rd party app' event Examples: diff --git a/cypress/TestCases/FireboltCertification/Advertising.feature b/cypress/TestCases/FireboltCertification/Advertising.feature index 7db7e4a63..5e5baa055 100644 --- a/cypress/TestCases/FireboltCertification/Advertising.feature +++ b/cypress/TestCases/FireboltCertification/Advertising.feature @@ -7,9 +7,9 @@ Feature: Advertising @sdk @transport Scenario Outline: Advertising.policy - Positive Scenario: - When '3rd party app' registers for the 'advertising onPolicyChanged' event using the 'Firebolt' API + Given '3rd party app' registers for the 'advertising onPolicyChanged' event using the 'Firebolt' API And '3rd party app' invokes the 'Firebolt' API to 'get advertising policy' - And 1st party app invokes the 'Firebolt' API to '' + When 1st party app invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds to '1st party app' for '' When '3rd party app' invokes the 'Firebolt' API to 'get advertising policy' Then 'Firebolt' platform responds with '' @@ -22,25 +22,27 @@ Feature: Advertising @sdk @transport Scenario Outline: Advertising.policy - Positive Scenario: - When '3rd party app' registers for the 'advertising onPolicyChanged' event using the 'Firebolt' API - And '3rd party app' invokes the 'Firebolt' API to 'get advertising policy' - And 1st party app invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds to '1st party app' for '' - When '3rd party app' invokes the 'Firebolt' API to 'get advertising policy' - Then 'Firebolt' platform responds with '' - And 'Firebolt' platform triggers event '' + Given we test the 'ADVERTISING_SKIPRESTRICTION' getters and setters '' to '' + 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 + 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 Examples: - | Scenario | API_Key | Method_Validation_key | Event_Validation_key | - | SkipRestriction adsAll | set skipRestriction as adsAll | Advertising policy skipRestriction as adsAll | onPolicyChanged for advertising skipRestriction with adsAll | - | SkipRestriction none | set skipRestriction as none | Advertising policy skipRestriction as none | onPolicyChanged for advertising skipRestriction with none | - | SkipRestriction adsUnwatched | set skipRestriction as adsUnwatched | Advertising policy skipRestriction as adsUnwatched | onPolicyChanged for advertising skipRestriction with adsUnwatched | - | SkipRestriction all | set skipRestriction as all | Advertising policy skipRestriction as all | onPolicyChanged for advertising skipRestriction with all | + | Scenario | Method | Value | + | SkipRestriction adsAll | skipRestriction | adsAll | + | SkipRestriction none | skipRestriction | none | + | SkipRestriction adsUnwatched | skipRestriction | adsUnwatched | + | SkipRestriction all | skipRestriction | all | @sdk @transport Scenario: Advertising.deviceAttributes - Positive Scenario: Get deviceAttributes - When '3rd party app' invokes the 'Firebolt' API to 'get deviceAttributes' - Then 'Firebolt' platform responds with 'advertising device attributes' + Given we test the 'ADVERTISING_DEVICEATTRIBUTES' getters and setters + When '3rd party app' invokes the 'Firebolt' get API + Then 'Firebolt' platform responds to '3rd party app' get API @sdk @transport Scenario: Advertising.appBundleId - Positive Scenario: Get appBundleId @@ -51,7 +53,7 @@ Feature: Advertising Scenario Outline: Advertising.advertisingId - Positive Scenario: Special Validation When '3rd party app' invokes the 'Firebolt' API to 'get advertisingId' And '3rd party app' invokes the 'Firebolt' API to 'get initialization parameters' - When 1st party app invokes the 'Firebolt' API to '' + And 1st party app invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds to '1st party app' with '' When '3rd party app' invokes the 'Firebolt' API to 'get advertisingId' And '3rd party app' invokes the 'Firebolt' API to 'get initialization parameters' @@ -143,8 +145,8 @@ Feature: Advertising @sdk @transport @requiresPlatformImplementation Scenario: Advertising.onPolicyChanged - Positive Scenario: Clearing event listeners - When '3rd party app' registers for the 'advertising onPolicyChanged' event using the 'Firebolt' API - And 1st party stops listening to the event 'advertising onPolicyChanged event' - And 1st party app invokes the 'Firebolt' API to 'set true for allowAppContentAdTargeting' + Given '3rd party app' registers for the 'advertising onPolicyChanged' event using the 'Firebolt' API + And 3rd party stops listening to the event 'advertising onPolicyChanged event' + When 1st party app invokes the 'Firebolt' API to 'set true for allowAppContentAdTargeting' Then 'Firebolt' platform responds to '1st party app' with 'set true for allowAppContentAdTargeting' And 'Firebolt' platform does not trigger event for 'onAdvertisingPolicyChanged' diff --git a/cypress/TestCases/FireboltCertification/Capabilities.feature b/cypress/TestCases/FireboltCertification/Capabilities.feature index 145475fa1..3d65c1893 100644 --- a/cypress/TestCases/FireboltCertification/Capabilities.feature +++ b/cypress/TestCases/FireboltCertification/Capabilities.feature @@ -222,7 +222,7 @@ Feature: Capabilities @sdk @transport @requiresPlatformImplementation Scenario: Validate Capabilities.OnAvailable - When 1st party app registers for the 'capabilities onAvailable' event using the 'Firebolt' API + 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 When 1st party app invokes the 'Firebolt' API to 'check availability of keyboard capability' @@ -231,19 +231,19 @@ Feature: Capabilities @sdk @transport @requiresPlatformImplementation @notSupported Scenario: Validate Capabilities.OnUnavailable - When 1st party app registers for the 'capabilities onUnavailable' event using the 'Firebolt' API + Given 1st party app registers for the 'capabilities onUnavailable' event using the 'Firebolt' API And User set response for 'set keyboard response in platform' - When Framework registers 'keyboard' test provider - And 1st party app invokes the 'Firebolt' API to 'check availability of keyboard capability' + And Framework registers 'keyboard' test provider + When 1st party app invokes the 'Firebolt' API to 'check availability of keyboard capability' 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 - When '3rd party app' registers for the 'capabilities onGranted' event using the 'Firebolt' API + 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 - When User set response for 'set acknowledge granted' + And User set response for 'set acknowledge granted' And Framework registers 'ackchallenge' test provider When '3rd party app' invokes the 'Firebolt' API to 'fetch device id' Then 'Firebolt' platform responds with 'expected device id' @@ -253,10 +253,10 @@ Feature: Capabilities @sdk @transport @requiresPlatformImplementation Scenario: Validate Capabilities.OnRevoked - When '3rd party app' registers for the 'capabilities onRevoked' event using the 'Firebolt' API + 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 - When User set response for 'set acknowledge granted' + And User set response for 'set acknowledge granted' And Framework registers 'ackchallenge' test provider When '3rd party app' invokes the 'Firebolt' API to 'expect error for device id' Then 'Firebolt' platform responds with 'invalid request for device id' diff --git a/cypress/TestCases/FireboltCertification/Device.feature b/cypress/TestCases/FireboltCertification/Device.feature index 040873583..be08d25dd 100644 --- a/cypress/TestCases/FireboltCertification/Device.feature +++ b/cypress/TestCases/FireboltCertification/Device.feature @@ -22,13 +22,13 @@ Feature: Device @sdk @transport Scenario: Device.name - Positive Scenario: Validate device name change - When '3rd party app' registers for the 'device onNameChanged' event using the 'Firebolt' API - And '3rd party app' invokes the 'Firebolt' API to 'get device name' - And 1st party app invokes the 'Firebolt' API to 'set device name to living hall' - Then 'Firebolt' platform responds to '1st party app' for 'set device name to living hall' - When '3rd party app' invokes the 'Firebolt' API to 'get device name' - Then 'Firebolt' platform responds with 'living hall for device name' - And 'Firebolt' platform triggers event 'onDeviceNameChanged with living hall' + Given we test the 'DEVICE_NAME_CORE' getters and setters 'setName' to 'Living hall' + And '1st party app' registers for the 'Firebolt' event + When 1st party app invokes the 'Firebolt' API to set value + 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 + And 'Firebolt' platform triggers '1st party app' event @mfos @regression @sdk Scenario Outline: Device. - Positive Scenario: @@ -46,18 +46,18 @@ Feature: Device @regression @sdk @requiresPlatformImplementation Scenario: Device.onNameChanged - Positive Scenario: Clearing event listeners - When '3rd party app' registers for the 'device onNameChanged' event using the 'Firebolt' API - And 1st party stops listening to the event 'device onNameChanged event' - And 1st party app invokes the 'Firebolt' API to 'set device name to kitchen' + Given '3rd party app' registers for the 'device onNameChanged' event using the 'Firebolt' API + And 3rd party stops listening to the event 'device onNameChanged event' + When 1st party app invokes the 'Firebolt' API to 'set device name to kitchen' Then 'Firebolt' platform responds to '1st party app' for 'set device name to kitchen' And 'Firebolt' platform does not trigger event for 'onDeviceNameChanged' @sdk @transport @requiresPlatformImplementation @notSupported Scenario Outline: Device.network - Positive Scenario: - When '3rd party app' registers for the 'device onNetworkChanged' event using the 'Firebolt' API - And '3rd party app' invokes the 'Firebolt' API to 'fetch device network' + Given '3rd party app' registers for the 'device onNetworkChanged' event using the 'Firebolt' API + When '3rd party app' invokes the 'Firebolt' API to 'fetch device network' Then 'Firebolt' platform responds with '' - When User triggers event with value as '' + And User triggers event with value as '' Then 'Firebolt' platform triggers event '' Examples: diff --git a/cypress/TestCases/FireboltCertification/Discovery.feature b/cypress/TestCases/FireboltCertification/Discovery.feature index 8e31439e6..88db30d83 100644 --- a/cypress/TestCases/FireboltCertification/Discovery.feature +++ b/cypress/TestCases/FireboltCertification/Discovery.feature @@ -7,20 +7,21 @@ Feature: Discovery @sdk @transport Scenario Outline: Discovery.policy - Positive Scenario: - When '3rd party app' registers for the 'discovery onPolicyChanged' event using the 'Firebolt' API - And '3rd party app' invokes the 'Firebolt' API to 'get value of policy' - And 1st party app invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds to '1st party app' for '' - When '3rd party app' invokes the 'Firebolt' API to 'get value of policy' - Then 'Firebolt' platform responds with '' - And 'Firebolt' platform triggers event '' + Given we test the '' getters and setters '' to '' + 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 + 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 Examples: - | Scenario | API_Key | Method_Content | Event_Content | - | enable Recommendations | enable recommendations | true for history based recommendations in policy | onPolicyChanged for discovery enableRecommendations with true | - | disable Recommendations | disable recommendations | false for history based recommendations in policy | onPolicyChanged for discovery enableRecommendations with false | - | enable remember watched programs | enable remember watched programs | true for remember watched programs in policy | onPolicyChanged for discovery rememberWatchedPrograms with true | - | disable remember watched programs | disable remember watched programs | false for remember watched programs in policy | onPolicyChanged for discovery rememberWatchedPrograms with false | + | Scenario | Method | Value | FB_Object | + | enable Recommendations | allowPersonalization | true | DISCOVERY_RECOMMENDATIONS | + | disable Recommendations | allowPersonalization | false | DISCOVERY_RECOMMENDATIONS | + | enable remember watched programs | allowWatchHistory | true | DISCOVERY_REMEMBER_WATCHED_PROGRAMS | + | disable remember watched programs | allowWatchHistory | false | DISCOVERY_REMEMBER_WATCHED_PROGRAMS | @sdk @transport Scenario Outline: Discovery.watched - Positive Scenario: @@ -132,8 +133,9 @@ Feature: Discovery @sdk @transport Scenario: Discovery.clearContentAccess - Positive Scenario: Clear both availabilities and entitlements from the subscriber - When '3rd party app' invokes the 'Firebolt' API to 'clear ContentAccess' - Then 'Firebolt' platform responds with 'null for discovery clearContentAccess' + Given we test the 'DISCOVERY_CLEAR_CONTENTACCESS' getters and setters + When '3rd party app' invokes the 'Firebolt' get API + Then 'Firebolt' platform responds to '3rd party app' get API @sdk @transport Scenario Outline: Discovery.contentAccess - Negative Scenario: expecting error @@ -158,8 +160,8 @@ Feature: Discovery @Device @regression @sdk @requiresPlatformImplementation Scenario: Discovery.onPolicyChanged - Positive Scenario: Clearing event listeners - When '3rd party app' registers for the 'discovery onPolicyChanged' event using the 'Firebolt' API - And 1st party stops listening to the event 'discovery onPolicyChanged event' - And 1st party app invokes the 'Firebolt' API to 'set allowPersonalization to true' + Given '3rd party app' registers for the 'discovery onPolicyChanged' event using the 'Firebolt' API + And 3rd party stops listening to the event 'discovery onPolicyChanged event' + When 1st party app invokes the 'Firebolt' API to 'set allowPersonalization to true' Then 'Firebolt' platform responds to '1st party app' for 'set allowPersonalization to true' And 'Firebolt' platform does not trigger event for 'onDiscoveryPolicyChanged' \ No newline at end of file diff --git a/cypress/TestCases/FireboltCertification/Localization.feature b/cypress/TestCases/FireboltCertification/Localization.feature index 183afa5e8..41c3ea270 100644 --- a/cypress/TestCases/FireboltCertification/Localization.feature +++ b/cypress/TestCases/FireboltCertification/Localization.feature @@ -12,8 +12,8 @@ Feature: Localization @sdk @transport Scenario Outline: Localization.addAdditionalInfo - Positive Scenario: - When '3rd party app' invokes the 'Firebolt' API to 'get localization additionalInfo' - And 1st party app invokes the 'Firebolt' API to '' + Given '3rd party app' invokes the 'Firebolt' API to 'get localization additionalInfo' + When 1st party app invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds to '1st party app' for '' When '3rd party app' invokes the 'Firebolt' API to 'get localization additionalInfo' Then 'Firebolt' platform responds with '' @@ -25,8 +25,8 @@ Feature: Localization @sdk @transport Scenario Outline: Localization.removeAdditionalInfo - Positive Scenario: - When '3rd party app' invokes the 'Firebolt' API to 'get localization additionalInfo' - And 1st party app invokes the 'Firebolt' API to '' + Given '3rd party app' invokes the 'Firebolt' API to 'get localization additionalInfo' + When 1st party app invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds to '1st party app' for '' When '3rd party app' invokes the 'Firebolt' API to 'get localization additionalInfo' Then 'Firebolt' platform responds with '' @@ -43,10 +43,10 @@ Feature: Localization @sdk @transport Scenario Outline: Positive Scenario: Validate interlinked methods - - When '3rd party app' registers for the '' event using the 'Firebolt' API + Given '3rd party app' registers for the '' event using the 'Firebolt' API And '3rd party app' registers for the '' event using the 'Firebolt' API And '3rd party app' invokes the 'Firebolt' API to '' - And 1st party app invokes the 'Firebolt' API to '' + When 1st party app invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds to '1st party app' for '' When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with '' @@ -61,31 +61,32 @@ Feature: Localization | Localization.locale and Localization.language | localization onLocaleChanged | localization onLanguageChanged | set locale to esUK | get localization locale | get localization language | esUK for localization locale | es for localization language | onlocalechanged for localization with esUK | onlanguagechanged for localization with es | @sdk @transport - Scenario Outline: - Positive Scenario: Validate - When '3rd party app' registers for the '' event using the 'Firebolt' API - And '3rd party app' invokes the 'Firebolt' API to '' - And 1st party app invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds to '1st party app' for '' - When '3rd party app' invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds with '' - And 'Firebolt' platform triggers event '' + Scenario Outline: Localization. - Positive Scenario: Validate + Given we test the 'LOCALIZATION' getters and setters '' to '' + 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 + 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 Examples: - | Scenario | Method | Event_Registration_Key | Set_API_Key | Get_API_Key | Method_Validation_Key | Event_Validation_Key | - | Set & get locality | Localization.locality | localization onLocalityChanged | set localization locality to washington | get localization locality | washington for localization locality | onlocalitychanged for localization locality with washington | - | Set & get countrycode | Localization.countrycode | localization onCountryCodeChanged | set countrycode to PH | get localization countrycode | PH for localization countrycode | oncountrycodechanged for localization with ph | - | Set & get locale | Localization.locale | localization onLocaleChanged | set locale to enUK | get localization locale | enUK for localization locale | onlocalechanged for localization with enUK | - | Set & get Language es | Localization.language | localization onLanguageChanged | set language to es | get localization language | es for localization language | onlanguagechanged for localization with es | - | Set & get Language en | Localization.language | localization onLanguageChanged | set language to en | get localization language | en for localization language | onlanguagechanged for localization with en | - | Set & get preferredAudioLanguages(spa-eng) | Localization.preferredAudioLanguages | localization onPreferredAudioLanguagesChanged | set preferredaudiolanguages to spa eng | get localization preferredaudiolanguages | spa eng for localization preferredaudiolanguages | onpreferredaudiolanguageschanged for localization with eng spa | - | Set & get preferredAudioLanguages(eng-spa) | Localization.preferredAudioLanguages | localization onPreferredAudioLanguagesChanged | set preferredaudiolanguages to eng spa | get localization preferredaudiolanguages | eng spa for localization preferredaudiolanguages | onpreferredaudiolanguageschanged for localization with eng and spa | - | Set & get PostalCode | Localization.postalCode | localization onPostalCodeChanged | set postalcode to 12345 | get postalcode | 12345 for localization postalcode | onpostalcodechanged for localization postalCode with 12345 | + | Scenario | Method | Value | + | Set & get locality | locality | washington | + | Set & get countrycode | countryCode | PH | + | Set & get locale | locale | enUK | + | Set & get Language es | language | es | + | Set & get Language en | language | en | + | Set & get preferredAudioLanguages(spa-eng) | preferredAudioLanguages | spa,eng | + | Set & get preferredAudioLanguages(eng-spa) | preferredAudioLanguages | eng,spa | + | Set & get PostalCode | postalCode | 12345 | @Device @regression @sdk @requiresPlatformImplementation Scenario Outline: Localization. - Positive Scenario: Clearing event listeners - When '3rd party app' registers for the '' event using the 'Firebolt' API - And 1st party stops listening to the event '' - And 1st party app invokes the 'Firebolt' API to '' + Given '3rd party app' registers for the '' event using the 'Firebolt' API + And 3rd party stops listening to the event '' + When 1st party app invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds to '1st party app' for '' And 'Firebolt' platform does not trigger event for '' diff --git a/cypress/TestCases/FireboltCertification/Manage/AccountManage.feature b/cypress/TestCases/FireboltCertification/Manage/AccountManage.feature index 3af5cd11c..081a79fe6 100644 --- a/cypress/TestCases/FireboltCertification/Manage/AccountManage.feature +++ b/cypress/TestCases/FireboltCertification/Manage/AccountManage.feature @@ -26,4 +26,4 @@ Feature: Account_Manage | Invalid session token | set account session with invalid token | | Invalid session ExpiresIn | set account session with invalid ExpiresIn | | Passing ExpiresIn Invalid value | set account session with invalid ExpiresIn value | - | Without session token - Empty params | set account session without parameters | \ No newline at end of file + | Without session token - Empty params | set account session without parameters | diff --git a/cypress/TestCases/FireboltCertification/Manage/AcknowledgeChallengeManage_RpcOnly.feature b/cypress/TestCases/FireboltCertification/Manage/AcknowledgeChallengeManage_RpcOnly.feature index f0bd7f9ea..518e0d33b 100644 --- a/cypress/TestCases/FireboltCertification/Manage/AcknowledgeChallengeManage_RpcOnly.feature +++ b/cypress/TestCases/FireboltCertification/Manage/AcknowledgeChallengeManage_RpcOnly.feature @@ -10,7 +10,7 @@ Feature: AcknowledgeChallenge_Manage_RpcOnly And Framework registers 'ackchallenge' test provider And User set response for 'granting acknowledge challenge' When 1st party app registers for the 'acknowledgeChallenge onRequestChallenge manage' event using the 'Firebolt' API - When '3rd party app' invokes the 'Firebolt' API to 'get localization countryCode' + And '3rd party app' invokes the 'Firebolt' API to 'get localization countryCode' And Fetch response for 'acknowledgeChallenge onRequestChallenge' event from 1st party app And 1st party app invokes the 'Firebolt' API to 'request focus for challenge provider' And 1st party app invokes the 'Firebolt' API to 'send response from challenge provider' @@ -24,7 +24,7 @@ Feature: AcknowledgeChallenge_Manage_RpcOnly And Framework registers 'ackchallenge' test provider And User set response for 'granting acknowledge challenge' When 1st party app registers for the 'acknowledgeChallenge onRequestChallenge manage' event using the 'Firebolt' API - When '3rd party app' invokes the 'Firebolt' API to 'get localization countryCode' + And '3rd party app' invokes the 'Firebolt' API to 'get localization countryCode' And Fetch response for 'acknowledgeChallenge onRequestChallenge' event from 1st party app And 1st party app invokes the 'Firebolt' API to 'send error from challenge provider' And Fetch response for 'localization countryCode' method from 3rd party app diff --git a/cypress/TestCases/FireboltCertification/Manage/AdvertisingManage.feature b/cypress/TestCases/FireboltCertification/Manage/AdvertisingManage.feature index 016d83cfd..9c9f6ed13 100644 --- a/cypress/TestCases/FireboltCertification/Manage/AdvertisingManage.feature +++ b/cypress/TestCases/FireboltCertification/Manage/AdvertisingManage.feature @@ -7,36 +7,38 @@ Feature: Advertising_Manage @sdk @transport Scenario: Advertising.resetIdentifier - Positive Scenario: Reset Identifier - When 1st party app invokes the 'Firebolt' API to 'reset identifier for advertising' - Then 'Firebolt' platform responds to '1st party app' with 'null for advertising resetIdentifier' + Given we test the 'ADVERTISING_RESET_IDENTIFIER' getters and setters + When '1st party app' invokes the 'Firebolt' get API + Then 'Firebolt' platform responds to '1st party app' get API @sdk @transport Scenario Outline: Advertising.skipRestriction - Positive Scenario: - When 1st party app registers for the 'advertising onSkipRestrictionChanged' event using the 'Firebolt' API - And 1st party app invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds to '1st party app' for '' - When 1st party app invokes the 'Firebolt' API to 'get advertising skipRestriction' - Then 'Firebolt' platform responds to '1st party app' with '' - And 'Firebolt' platform triggers to '1st party app' event '' + Given we test the 'ADVERTISING_SKIP_RESTRICTION' getters and setters 'skipRestriction' to '' + And '1st party app' registers for the 'Firebolt' event + When 1st party app invokes the 'Firebolt' API to set value + 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 + And 'Firebolt' platform triggers '1st party app' event Examples: - | Scenario | API_Key | Method_Validation_Key | Event_Validation_Key | - | SkipRestriction adsAll | set skipRestriction as adsAll | adsAll for skipRestriction | onSkipRestrictionChanged with adsAll | - | SkipRestriction none | set skipRestriction as none | none for skipRestriction | onSkipRestrictionChanged with none | - | SkipRestriction adsUnwatched | set skipRestriction as adsUnwatched | adsUnwatched for skipRestriction | onSkipRestrictionChanged with adsUnwatched | - | SkipRestriction all | set skipRestriction as all | all for skipRestriction | onSkipRestrictionChanged with all | - + | Scenario | Value | + | SkipRestriction adsAll | adsAll | + | SkipRestriction none | none | + | SkipRestriction adsUnwatched | adsUnwatched | + | SkipRestriction all | all | @sdk @transport Scenario: Advertising.setSkipRestriction - Negative Scenario: SkipRestriction expecting error - When 1st party app invokes the 'Firebolt' API to 'set skipRestriction with integer' - Then 'Firebolt' platform responds to '1st party app' with 'invalid parameters for skipRestriction' + Given we test the 'ADVERTISING_SKIP_RESTRICTION' getters and setters 'skipRestriction' to '898756' + When 1st party app invokes the 'Firebolt' API to set invalid value + Then 'Firebolt' platform responds to '1st party app' set API with 'INVALID_TYPE_PARAMS' @sdk @transport @notSupported Scenario: Advertising.resetIdentifier - Positive Scenario: Reset Identifier method - When '3rd party app' invokes the 'Firebolt' API to 'get no coppa' + Given '3rd party app' invokes the 'Firebolt' API to 'get no coppa' And '3rd party app' invokes the 'Firebolt' API to 'get advertisingId' - And 1st party app invokes the 'Firebolt' API to 'reset identifier for advertising' + When 1st party app invokes the 'Firebolt' API to 'reset identifier for advertising' And '3rd party app' invokes the 'Firebolt' API to 'get no coppa' And '3rd party app' invokes the 'Firebolt' API to 'get advertisingId' Then I validate last '2' response are different for 'advertising.config' API method diff --git a/cypress/TestCases/FireboltCertification/Manage/AudioDescriptionsManage.feature b/cypress/TestCases/FireboltCertification/Manage/AudioDescriptionsManage.feature index 38c5cc5c5..63206b800 100644 --- a/cypress/TestCases/FireboltCertification/Manage/AudioDescriptionsManage.feature +++ b/cypress/TestCases/FireboltCertification/Manage/AudioDescriptionsManage.feature @@ -7,24 +7,26 @@ Feature: AudioDescriptions_Manage @sdk @transport Scenario Outline: AudioDescriptions.enabled - Positive Scenario: - When 1st party app registers for the 'audioDescriptions onEnabledChanged' event using the 'Firebolt' API - And 1st party app invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds to '1st party app' for '' - When 1st party app invokes the 'Firebolt' API to 'get audioDescriptions' - Then 'Firebolt' platform responds to '1st party app' with '' - And 'Firebolt' platform triggers to '1st party app' event '' + Given we test the 'AUDIODESCRIPTIONS' getters and setters 'enabled' to '' + And '1st party app' registers for the 'Firebolt' event + When 1st party app invokes the 'Firebolt' API to set value + 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 + And 'Firebolt' platform triggers '1st party app' event Examples: - | Scenario | API_Key | Method_Validation_Key | Event_Validation_Key | - | Enable AudioDescriptions | enable audioDescription | enabled for audioDescriptions | onEnabledChanged for audiodescriptions with enable | - | Disable AudioDescriptions | disable audioDescription | disabled for audioDescriptions | onEnabledChanged for audiodescriptions with disable | + | Scenario | Value | + | Disable AudioDescriptions | false | + | Enable AudioDescriptions | true | @sdk @transport Scenario Outline: AudioDescriptions.enabled - Negative Scenario: expecting error - When 1st party app invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds to '1st party app' with 'invalid params for audiodescriptions setEnabled' + Given we test the 'AUDIODESCRIPTIONS' getters and setters 'enabled' to '' + When 1st party app invokes the 'Firebolt' API to set invalid value + Then 'Firebolt' platform responds to '1st party app' set API with 'INVALID_TYPE_PARAMS' Examples: - | Scenario | API_Key | - | Set audiodescriptions-test | enable audioDescription with test parameter | - | Set audiodescriptions-INTEGER | enable audioDescription with integer parameter | \ No newline at end of file + | Scenario | Value | + | Set audiodescriptions-test | test | + | Set audiodescriptions-INTEGER | 123 | \ No newline at end of file diff --git a/cypress/TestCases/FireboltCertification/Manage/ClosedCaptionsManage.feature b/cypress/TestCases/FireboltCertification/Manage/ClosedCaptionsManage.feature index 5540132eb..08ffd8933 100644 --- a/cypress/TestCases/FireboltCertification/Manage/ClosedCaptionsManage.feature +++ b/cypress/TestCases/FireboltCertification/Manage/ClosedCaptionsManage.feature @@ -7,8 +7,8 @@ Feature: ClosedCaptions_Manage @sdk @transport Scenario Outline: ClosedCaptions. - Positive Scenario: Given we test the 'CLOSED_CAPTIONS_SETTINGS' getters and setters '' to '' - When '1st party app' registers for the 'Firebolt' event - And 1st party app invokes the 'Firebolt' API to set value + And '1st party app' registers for the 'Firebolt' event + When 1st party app invokes the 'Firebolt' API to set value 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 @@ -51,8 +51,8 @@ Feature: ClosedCaptions_Manage @sdk @transport Scenario Outline: Closedcaptions. - Positive Scenario: with 'null' params - When 1st party app registers for the '' event using the 'Firebolt' API - And 1st party app invokes the 'Firebolt' API to '' + Given 1st party app registers for the '' event using the 'Firebolt' API + When 1st party app invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds to '1st party app' for '' When 1st party app invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds to '1st party app' with '' @@ -77,7 +77,7 @@ Feature: ClosedCaptions_Manage 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 - And 'Firebolt' platform responds to '1st party app' set API with '' + Then 'Firebolt' platform responds to '1st party app' set API with '' Examples: | Scenario | Method | Value | Error | diff --git a/cypress/TestCases/FireboltCertification/Manage/DeviceManage.feature b/cypress/TestCases/FireboltCertification/Manage/DeviceManage.feature index 604b20815..fb34e71d6 100644 --- a/cypress/TestCases/FireboltCertification/Manage/DeviceManage.feature +++ b/cypress/TestCases/FireboltCertification/Manage/DeviceManage.feature @@ -7,19 +7,20 @@ Feature: Device_Manage @sdk @transport Scenario: Device.name - Positive Scenario: set device name - Bedroom - When 1st party app registers for the 'device onNameChanged' event using the 'Firebolt' API - And 1st party app invokes the 'Firebolt' API to 'set device name to Bedroom' - Then 'Firebolt' platform responds to '1st party app' for 'set device name to Bedroom' - When 1st party app invokes the 'Firebolt' API to 'get manage device name' - Then 'Firebolt' platform responds to '1st party app' with 'Bedroom for device name' - And 'Firebolt' platform triggers to '1st party app' event 'onNameChanged for device with Bedroom' + Given we test the 'DEVICE_NAME' getters and setters 'setName' to 'Bedroom' + And '1st party app' registers for the 'Firebolt' event + When 1st party app invokes the 'Firebolt' API to set value + 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 + And 'Firebolt' platform triggers '1st party app' event @sdk @transport @notSupported Scenario Outline: Device.provision - Positive Scenario: When 1st party app invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds to '1st party app' with '' - Examples: + Examples: | Scenario | Key | MethodContent | | set device provision with default params | provision device with default values | default values for device provision | | set device provision with distributor id | provision device with distributor id | distributor id for device provision | @@ -30,8 +31,8 @@ Feature: Device_Manage And '3rd party app' invokes the 'Firebolt' API to 'get device id' And '3rd party app' invokes the 'Firebolt' API to 'get account id' Then 'Firebolt' platform responds with 'expected provision device id' - Then 'Firebolt' platform responds with 'expected provision account id' - Then 'Firebolt' platform responds with 'default value for device provision' + And 'Firebolt' platform responds with 'expected provision account id' + And 'Firebolt' platform responds with 'default value for device provision' @sdk @transport @notSupported Scenario: Device.provision - Positive Scenario: with distributor id including device.id account.id and device.distributor @@ -40,19 +41,20 @@ Feature: Device_Manage And '3rd party app' invokes the 'Firebolt' API to 'get device id' And '3rd party app' invokes the 'Firebolt' API to 'get account id' Then 'Firebolt' platform responds with 'expected provision device id' - Then 'Firebolt' platform responds with 'expected provision account id' - Then 'Firebolt' platform responds with 'distributor id for device provision' - Then 'Firebolt' platform responds with 'default value for device provision' + And 'Firebolt' platform responds with 'expected provision account id' + And 'Firebolt' platform responds with 'distributor id for device provision' + And 'Firebolt' platform responds with 'default value for device provision' @sdk @transport Scenario Outline: Device.name - Negative Scenario: expecting error - When 1st party app invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds to '1st party app' with 'invalid parameters for device' + Given we test the 'DEVICE_NAME' getters and setters 'setName' to '' + When 1st party app invokes the 'Firebolt' API to set invalid value + Then 'Firebolt' platform responds to '1st party app' set API with 'INVALID_TYPE_PARAMS' Examples: - | Scenario | Key | - | set device name with integer | set device name with integer | - | set device name with boolean | set device name with boolean | + | Scenario | Value | + | set device name with integer | 123 | + | set device name with boolean | true | @sdk @transport Scenario Outline: Device.provision - Negative Scenario: expecting error diff --git a/cypress/TestCases/FireboltCertification/Manage/KeyboardManage_RpcOnly.feature b/cypress/TestCases/FireboltCertification/Manage/KeyboardManage_RpcOnly.feature index 5e40b2605..1a6bef911 100644 --- a/cypress/TestCases/FireboltCertification/Manage/KeyboardManage_RpcOnly.feature +++ b/cypress/TestCases/FireboltCertification/Manage/KeyboardManage_RpcOnly.feature @@ -8,7 +8,7 @@ Feature: Keyboard_Manage_RpcOnly Given the environment has been set up for 'Keyboard-rpc-Only' tests And 3rd party 'certification' app is launched When 1st party app registers for the '' event using the 'Firebolt' API - When '3rd party app' invokes the 'Firebolt' API to '' + And '3rd party app' invokes the 'Firebolt' API to '' And Fetch response for '' event from 1st party app And 1st party app invokes the 'Firebolt' API to '' And 1st party app invokes the 'Firebolt' API to '' @@ -25,7 +25,7 @@ Feature: Keyboard_Manage_RpcOnly Given the environment has been set up for 'Keyboard-rpc-Only' tests And 3rd party 'certification' app is launched When 1st party app registers for the '' event using the 'Firebolt' API - When '3rd party app' invokes the 'Firebolt' API to '' + And '3rd party app' invokes the 'Firebolt' API to '' And Fetch response for '' event from 1st party app And 1st party app invokes the 'Firebolt' API to '' And Fetch response for '' method from 3rd party app diff --git a/cypress/TestCases/FireboltCertification/Manage/LocalizationManage.feature b/cypress/TestCases/FireboltCertification/Manage/LocalizationManage.feature index 6ef4629c9..b651f7d79 100644 --- a/cypress/TestCases/FireboltCertification/Manage/LocalizationManage.feature +++ b/cypress/TestCases/FireboltCertification/Manage/LocalizationManage.feature @@ -7,65 +7,69 @@ Feature: Localization_Manage @sdk @transport Scenario Outline: Localization. - Positive Scenario: - When 1st party app registers for the '' event using the 'Firebolt' API - And 1st party app invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds to '1st party app' for '' - When 1st party app invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds to '1st party app' with '' - And 'Firebolt' platform triggers to '1st party app' event '' + Given we test the 'LOCALIZATION_MANAGE' getters and setters '' to '' + And '1st party app' registers for the 'Firebolt' event + When 1st party app invokes the 'Firebolt' API to set value + 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 + And 'Firebolt' platform triggers '1st party app' event Examples: - | Scenario | Event_Registration_Key | API_Key | Key | Method_Validation_Key | Event_Validation_Key | - | Locality | manage localization onLocalityChanged | set locality to washington | get locality | washington for locality | onLocalityChanged for localization with washington | - | PostalCode | manage localization onPostalCodeChanged | set postalCode to 123456 | get manage postalCode | 123456 for postalCode | onPostalCodeChanged for localization with 123456 | - | CountryCode | manage localization onCountryCodeChanged | set countrycode to PH | get countrycode | PH for localization countrycode | onCountryCodeChanged for localization with PH | - | Language es | manage localization onLanguageChanged | set language to es | get language | es for localization language | onLanguageChanged for localization with es | - | Language en | manage localization onLanguageChanged | set language to en | get language | en for localization language | onLanguageChanged for localization with en | - | Locale | manage localization onLocaleChanged | set locale to enUK | get locale | enUK for localization locale | onLocaleChanged for localization with enUK | - | Time-Zone | manage localization onTimeZoneChanged | set timeZone to America/NewYork | get timeZone | America/NewYork for timeZone | onTimeZoneChanged for localization with America/NewYork | - | PreferredAudioLanguages | manage localization onPreferredAudioLanguagesChanged | set preferredAudioLanguages to spa eng | get preferredAudioLanguages | spa eng for preferredAudioLanguages | onPreferredAudioLanguagesChanged for localization with spa eng | + | Scenario | Method | Value | + | Locality | locality | washington | + | PostalCode | postalCode | 123456 | + | CountryCode | countryCode | PH | + | Language es | language | es | + | Language en | language | en | + | Locale | locale | en-UK | + | Time-Zone | timeZone | America/New_York | + | PreferredAudioLanguages | preferredAudioLanguages | spa,eng | @sdk @transport Scenario Outline: Localization. - Negative Scenario: expecting error - When 1st party app invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds to '1st party app' with '' + Given we test the 'LOCALIZATION_MANAGE' getters and setters '' to '' + When 1st party app invokes the 'Firebolt' API to set invalid value + Then 'Firebolt' platform responds to '1st party app' set API with 'INVALID_TYPE_PARAMS' Examples: - | Scenario | API_Key | Method | Validation_Key | - | Locality-integer | set locality with integer | locality | Invalid parameter for locality | - | Locality-boolean | set locality with boolean | locality | Invalid parameter for locality | - | Locale-integer | set locale with integer | locale | Invalid parameter for locale | - | Postal Code-integer | set postalCode with boolean | postalCode | Invalid parameter for postalCode | - | Postal Code-boolean | set postalCode with boolean | postalCode | Invalid parameter for postalCode | - | TimeZone-integer | set timeZone with boolean | timeZone | Invalid parameter for timeZone | - | TimeZone-boolean | set timeZone with boolean | timeZone | Invalid parameter for timeZone | + | Scenario | Method | Value | + | Locality-integer | locality | 123 | + | Locality-boolean | locality | true | + | Locale-integer | locale | 123 | + | Postal Code-integer | locality | 123 | + | Postal Code-boolean | locality | true | + | TimeZone-integer | locality | 123 | + | TimeZone-boolean | locality | true | @sdk @transport Scenario Outline: Localization. - Negative Scenario: expecting error - When 1st party app invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds to '1st party app' with '' + Given we test the 'LOCALIZATION_MANAGE' getters and setters '' to '' + When 1st party app invokes the 'Firebolt' API to set invalid value + Then 'Firebolt' platform responds to '1st party app' set API with 'INVALID_TYPE_PARAMS' Examples: - | Scenario | API_Key | Method | Validation_Key | - | Set 12 to countrycode | set countrycode with integer | setCountryCode | Invalid parameter for countrycode | - | Set true to countrycode | set countrycode with boolean | setCountryCode | Invalid parameter for countrycode | - | Set english to language | set language to english | setLanguage | Invalid parameter for language | - | Set true to language | set language to true | setLanguage | Invalid parameter for language | - | Set 12 to language | set language with integer | setLanguage | Invalid parameter for language | - | Set true to locale | set locale with boolean | setLocale | Invalid parameter for locale | - | Set preferredAudioLanguages-test | set preferredAudioLanguages to test | setPreferredAudioLanguages | Invalid parameter for preferredAudioLanguages | + | Scenario | Method | Value | + | Set 12 to countrycode | countryCode | 12 | + | Set true to countrycode | countryCode | true | + | Set english to language | language | 123 | + | Set true to language | language | true | + | Set 12 to language | language | 12 | + | Set true to locale | locale | true | + | Set preferredAudioLanguages-test | preferredAudioLanguages | test | - @Localization @coreSDK @sdk @transport + @sdk @transport Scenario Outline: Localization.removeAdditionalInfo - Negative Scenario: and expecting error - When 1st party app invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds to '1st party app' with 'invalid parameters for localization removeAdditionalInfo' + Given we test the 'LOCALIZATION_ADDITIONAL_INFO' getters and setters '' to '' + When 1st party app invokes the 'Firebolt' API to set invalid value + Then 'Firebolt' platform responds to '1st party app' set API with 'INVALID_TYPE_PARAMS' Examples: - | Scenario | API_Key | - | with param as object | set localization removeAdditionalInfo as integer | - | with param as integer | set localization removeAdditionalInfo as empty object | + | Scenario | Method | Value | + | with param as integer | removeAdditionalInfo | 12345 | + | with param as object | removeAdditionalInfo | null | - @Localization @coreSDK @sdk @transport + @sdk @transport Scenario Outline: Localization.addAdditionalInfo - Negative Scenario: and expecting error When 1st party app invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds to '1st party app' with 'invalid parameters for localization addAdditionalInfo' diff --git a/cypress/TestCases/FireboltCertification/Manage/PrivacyManage.feature b/cypress/TestCases/FireboltCertification/Manage/PrivacyManage.feature index aee8bf000..5a1f81199 100644 --- a/cypress/TestCases/FireboltCertification/Manage/PrivacyManage.feature +++ b/cypress/TestCases/FireboltCertification/Manage/PrivacyManage.feature @@ -7,39 +7,40 @@ Feature: Privacy_Manage @sdk @transport Scenario Outline: Privacy. - Positive Scenario: - When 1st party app registers for the '' event using the 'Firebolt' API - And 1st party app invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds to '1st party app' for '' - When 1st party app invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds to '1st party app' with '' - And 'Firebolt' platform triggers to '1st party app' event '' + Given we test the 'PRIVACY_SETTINGS' getters and setters '' to '' + And '1st party app' registers for the 'Firebolt' event + When 1st party app invokes the 'Firebolt' API to set value + 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 + And 'Firebolt' platform triggers '1st party app' event Examples: - | Scenario | Method | Event_Registration_Key | API_Set_Key | API_Key | Method_Validation_Key | Event_Validation_Key | - | Enable allowResumePoints | allowResumePoints | privacy onAllowResumePointsChanged | set privacy allow resumePoints as true | get privacy allow resumePoints | true for privacy allow resumePoints | onAllowResumePointsChanged for privacy true | - | Disable allowResumePoints | allowResumePoints | privacy onAllowResumePointsChanged | set privacy allow resumePoints as false | get privacy allow resumePoints | false for privacy allow resumePoints | onAllowResumePointsChanged for privacy false | - | Enable allowUnentitledResumePoints | allowUnentitledResumePoints | privacy onAllowUnentitledResumePointsChanged | set privacy allow unEntitledResumePoints as true | get privacy allow unEntitledResumePoints | true for privacy allow unEntitledResumePoints | onAllowUnentitledResumePointsChanged for privacy true | - | Disable allowUnentitledResumePoints | allowUnentitledResumePoints | privacy onAllowUnentitledResumePointsChanged | set privacy allow unEntitledResumePoints as false | get privacy allow unEntitledResumePoints | false for privacy allow unEntitledResumePoints | onAllowUnentitledResumePointsChanged for privacy false | - | Enable allowWatchHistory | allowWatchHistory | privacy onAllowWatchHistoryChanged | set privacy allow watchHistory as true | get privacy allow watchHistory | true for privacy allow watchHistory | onAllowWatchHistoryChanged for privacy true | - | Disable allowWatchHistory | allowWatchHistory | privacy onAllowWatchHistoryChanged | set privacy allow watchHistory as false | get privacy allow watchHistory | false for privacy allow watchHistory | onAllowWatchHistoryChanged for privacy false | - | Enable allowProductAnalytics | allowProductAnalytics | privacy onAllowProductAnalyticsChanged | set privacy allow productAnalytics as true | get privacy allow productAnalytics | true for privacy allow productAnalytics | onAllowProductAnalyticsChanged for privacy true | - | Disable allowProductAnalytics | allowProductAnalytics | privacy onAllowProductAnalyticsChanged | set privacy allow productAnalytics as false | get privacy allow productAnalytics | false for privacy allow productAnalytics | onAllowProductAnalyticsChanged for privacy false | - | Enable allowPersonalization | allowPersonalization | privacy onAllowPersonalizationChanged | set privacy allow personalization as true | get privacy allow personalization | true for privacy allow personalization | onAllowPersonalizationChanged for privacy true | - | Disable allowPersonalization | allowPersonalization | privacy onAllowPersonalizationChanged | set privacy allow personalization as false | get privacy allow personalization | false for privacy allow personalization | onAllowPersonalizationChanged for privacy false | - | Enable allowUnentitledPersonalization | allowUnentitledPersonalization | privacy onAllowUnentitledPersonalizationChanged | set privacy allow unEntitledpersonalization as true | get privacy allow unEntitledpersonalization | true for privacy allow unEntitledpersonalization | onAllowUnentitledPersonalizationChanged for privacy true | - | Disable allowUnentitledPersonalization | allowUnentitledPersonalization | privacy onAllowUnentitledPersonalizationChanged | set privacy allow unEntitledpersonalization as false | get privacy allow unEntitledpersonalization | false for privacy allow unEntitledpersonalization | onAllowUnentitledPersonalizationChanged for privacy false | - | Enable allowRemoteDiagnostics | allowRemoteDiagnostics | privacy onAllowRemoteDiagnosticsChanged | set privacy allow remoteDiagnostics as true | get privacy allow remoteDiagnostics | true for privacy allow remoteDiagnostics | onAllowRemoteDiagnosticsChanged for privacy true | - | Disable allowRemoteDiagnostics | allowRemoteDiagnostics | privacy onAllowRemoteDiagnosticsChanged | set privacy allow remoteDiagnostics as false | get privacy allow remoteDiagnostics | false for privacy allow remoteDiagnostics | onAllowRemoteDiagnosticsChanged for privacy false | - | Enable allowPrimaryContentAdTargeting | allowPrimaryContentAdTargeting | privacy onAllowPrimaryContentAdTargetingChanged | set privacy allow primaryContentAdTargeting as true | get privacy allow primaryContentAdTargeting | true for privacy allow primaryContentAdTargeting | onAllowPrimaryContentAdTargetingChanged for privacy true | - | Disable allowPrimaryContentAdTargeting | allowPrimaryContentAdTargeting | privacy onAllowPrimaryContentAdTargetingChanged | set privacy allow primaryContentAdTargeting as false | get privacy allow primaryContentAdTargeting | false for privacy allow primaryContentAdTargeting | onAllowPrimaryContentAdTargetingChanged for privacy false | - | Enable allowPrimaryBrowseAdTargeting | allowPrimaryBrowseAdTargeting | privacy onAllowPrimaryBrowseAdTargetingChanged | set privacy allow primaryBrowseAdTargeting as true | get privacy allow primaryBrowseAdTargeting | true for privacy allow primaryBrowseAdTargeting | onAllowPrimaryBrowseAdTargetingChanged for privacy true | - | Disable allowPrimaryBrowseAdTargeting | allowPrimaryBrowseAdTargeting | privacy onAllowPrimaryBrowseAdTargetingChanged | set privacy allow primaryBrowseAdTargeting as false | get privacy allow primaryBrowseAdTargeting | false for privacy allow primaryBrowseAdTargeting | onAllowPrimaryBrowseAdTargetingChanged for privacy false | - | Enable allowAppContentAdTargeting | allowAppContentAdTargeting | privacy onAllowAppContentAdTargetingChanged | set privacy allow appContentAdTargeting as true | get privacy allow appContentAdTargeting | true for privacy allow appContentAdTargeting | onAllowAppContentAdTargetingChanged for privacy true | - | Disable allowAppContentAdTargeting | allowAppContentAdTargeting | privacy onAllowAppContentAdTargetingChanged | set privacy allow appContentAdTargeting as false | get privacy allow appContentAdTargeting | false for privacy allow appContentAdTargeting | onAllowAppContentAdTargetingChanged for privacy false | - | Enable allowACRCollection | allowACRCollection | privacy onAllowACRCollectionChanged | set privacy allow ACRCollection as true | get privacy allow ACRCollection | true for privacy allow ACRCollection | onAllowACRCollectionChanged for privacy true | - | Disable allowACRCollection | allowACRCollection | privacy onAllowACRCollectionChanged | set privacy allow ACRCollection as false | get privacy allow ACRCollection | false for privacy allow ACRCollection | onAllowACRCollectionChanged for privacy false | - | Enable allowCameraAnalytics | allowCameraAnalytics | privacy onAllowCameraAnalyticsChanged | set privacy allow cameraAnalytics as true | get privacy allow cameraAnalytics | true for privacy allow cameraAnalytics | onallowcameraanalyticschanged for privacy true | - | Disable allowCameraAnalytics | allowCameraAnalytics | privacy onAllowCameraAnalyticsChanged | set privacy allow cameraAnalytics as false | get privacy allow cameraAnalytics | false for privacy allow cameraAnalytics | onallowcameraanalyticschanged for privacy false | + | Scenario | Method | Value | + | Enable allowResumePoints | allowResumePoints | true | + | Disable allowResumePoints | allowResumePoints | false | + | Enable allowUnentitledResumePoints | allowUnentitledResumePoints | true | + | Disable allowRallowUnentitledResumePointsesumePoints | allowUnentitledResumePoints | false | + | Enable allowWatchHistory | allowWatchHistory | true | + | Disable allowWatchHistory | allowWatchHistory | false | + | Enable allowProductAnalytics | allowProductAnalytics | true | + | Disable allowProductAnalytics | allowProductAnalytics | false | + | Enable allowPersonalization | allowPersonalization | true | + | Disable allowPersonalization | allowPersonalization | false | + | Enable allowUnentitledPersonalization | allowUnentitledPersonalization | true | + | Disable allowUnentitledPersonalization | allowUnentitledPersonalization | false | + | Enable allowRemoteDiagnostics | allowRemoteDiagnostics | true | + | Disable allowRemoteDiagnostics | allowRemoteDiagnostics | false | + | Enable allowPrimaryContentAdTargeting | allowPrimaryContentAdTargeting | true | + | Disable allowPrimaryContentAdTargeting | allowPrimaryContentAdTargeting | false | + | Enable allowPrimaryBrowseAdTargeting | allowPrimaryBrowseAdTargeting | true | + | Disable allowPrimaryBrowseAdTargeting | allowPrimaryBrowseAdTargeting | false | + | Enable allowAppContentAdTargeting | allowAppContentAdTargeting | true | + | Disable allowAppContentAdTargeting | allowAppContentAdTargeting | false | + | Enable allowACRCollection | allowACRCollection | true | + | Disable allowACRCollection | allowACRCollection | false | + | Enable allowCameraAnalytics | allowCameraAnalytics | true | + | Disable allowCameraAnalytics | allowCameraAnalytics | false | @sdk @transport Scenario: Privacy.settings - Positive Scenario: Settings @@ -72,32 +73,33 @@ Feature: Privacy_Manage @sdk @transport Scenario Outline: Privacy. - Negative Scenario: and expecting error - When 1st party app invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds to '1st party app' with '' + Given we test the 'PRIVACY_SETTINGS' getters and setters '' to '' + When 1st party app invokes the 'Firebolt' API to set invalid value + Then 'Firebolt' platform responds to '1st party app' set API with 'INVALID_TYPE_PARAMS' Examples: - | Scenario | Method | Error_Key | Error_Object | - | Set Integer value | allowResumePoints | set privacy allowResumePoints with invalid params integer | invalid params integer for privacy allowResumePoints | - | Set String value | allowResumePoints | set privacy allowResumePoints with invalid test params | invalid test params for privacy allowResumePoints | - | Set Integer value | allowUnentitledResumePoints | set privacy allowUnentitledResumePoints with invalid params integer | invalid params integer for privacy allowUnentitledResumePoints | - | Set String value | allowUnentitledResumePoints | set privacy allowUnentitledResumePoints with invalid test params | invalid test params for privacy allowUnentitledResumePoints | - | Set Integer value | allowWatchHistory | set privacy allowwatchhistory with invalid params integer | invalid params integer for privacy allowwatchhistory | - | Set String value | allowWatchHistory | set privacy allowwatchhistory with invalid test params | invalid test params for privacy allowwatchhistory | - | Set Integer value | allowProductAnalytics | set privacy allowProductAnalytics with invalid params integer | invalid params integer for privacy allowProductAnalytics | - | Set String value | allowProductAnalytics | set privacy allowProductAnalytics with invalid test params | invalid test params for privacy allowProductAnalytics | - | Set Integer value | allowPersonalization | set privacy allowPersonalization with invalid params integer | invalid params integer for privacy allowPersonalization | - | Set String value | allowPersonalization | set privacy allowPersonalization with invalid test params | invalid test params for privacy allowPersonalization | - | Set Integer value | allowUnentitledPersonalization | set privacy allowunentitledpersonalization with invalid params integer | invalid params integer for privacy allowunentitledpersonalization | - | Set String value | allowUnentitledPersonalization | set privacy allowunentitledpersonalization with invalid test params | invalid test params for privacy allowunentitledpersonalization | - | Set Integer value | allowRemoteDiagnostics | set privacy allowRemoteDiagnostics with invalid params integer | invalid params integer for privacy allowRemoteDiagnostics | - | Set String value | allowRemoteDiagnostics | set privacy allowRemoteDiagnostics with invalid test params | invalid test params for privacy allowRemoteDiagnostics | - | Set Integer value | allowPrimaryContentAdTargeting | set privacy allowPrimaryContentAdTargeting with invalid params integer | invalid params integer for privacy allowPrimaryContentAdTargeting | - | Set String value | allowPrimaryContentAdTargeting | set privacy allowPrimaryContentAdTargeting with invalid test params | invalid test params for privacy allowPrimaryContentAdTargeting | - | Set Integer value | allowPrimaryBrowseAdTargeting | set privacy allowPrimaryBrowseAdTargeting with invalid params integer | invalid params integer for privacy allowPrimaryBrowseAdTargeting | - | Set String value | allowPrimaryBrowseAdTargeting | set privacy allowPrimaryBrowseAdTargeting with invalid test params | invalid test params for privacy allowPrimaryBrowseAdTargeting | - | Set Integer value | allowAppContentAdTargeting | set privacy allowAppContentAdTargeting with invalid params integer | invalid params integer for privacy allowAppContentAdTargeting | - | Set String value | allowAppContentAdTargeting | set privacy allowAppContentAdTargeting with invalid test params | invalid test params for privacy allowAppContentAdTargeting | - | Set Integer value | allowACRCollection | set privacy allowACRCollection with invalid params integer | invalid params integer for privacy allowACRCollection | - | Set String value | allowACRCollection | set privacy allowACRCollection with invalid test params | invalid test params for privacy allowACRCollection | - | Set Integer value | allowCameraAnalytics | set privacy allowCameraAnalytics with invalid params integer | invalid params integer for privacy allowCameraAnalytics | - | Set String value | allowCameraAnalytics | set privacy allowCameraAnalytics with invalid test params | invalid test params for privacy allowCameraAnalytics | \ No newline at end of file + | Scenario | Method | Value | + | Set Integer param | allowResumePoints | 1 | + | Set String param | allowResumePoints | test | + | Set Integer param | allowUnentitledResumePoints | 1 | + | Set String param | allowUnentitledResumePoints | test | + | Set Integer param | allowWatchHistory | 1 | + | Set String param | allowWatchHistory | test | + | Set Integer param | allowProductAnalytics | 1 | + | Set String param | allowProductAnalytics | test | + | Set Integer param | allowPersonalization | 1 | + | Set String param | allowPersonalization | test | + | Set Integer param | allowUnentitledPersonalization | 1 | + | Set String param | allowUnentitledPersonalization | test | + | Set Integer param | allowRemoteDiagnostics | 1 | + | Set String param | allowRemoteDiagnostics | test | + | Set Integer param | allowPrimaryContentAdTargeting | 1 | + | Set String param | allowPrimaryContentAdTargeting | test | + | Set Integer param | allowPrimaryBrowseAdTargeting | 1 | + | Set String param | allowPrimaryBrowseAdTargeting | test | + | Set Integer param | allowAppContentAdTargeting | 1 | + | Set String param | allowAppContentAdTargeting | test | + | Set Integer param | allowACRCollection | 1 | + | Set String param | allowACRCollection | test | + | Set Integer param | allowCameraAnalytics | 1 | + | Set String param | allowCameraAnalytics | test | \ No newline at end of file diff --git a/cypress/TestCases/FireboltCertification/Manage/ProfileManage_RpcOnly.feature b/cypress/TestCases/FireboltCertification/Manage/ProfileManage_RpcOnly.feature index 9e839eec6..3c68b6191 100644 --- a/cypress/TestCases/FireboltCertification/Manage/ProfileManage_RpcOnly.feature +++ b/cypress/TestCases/FireboltCertification/Manage/ProfileManage_RpcOnly.feature @@ -7,7 +7,7 @@ Feature: Profile_Manage_RpcOnly Scenario: PinChallenge.onRequestChallenge - Positive Scenario: Validating rpc method Given the environment has been set up for 'PinChallenge-rpc-Only' tests And 3rd party 'certification' app is launched - When 1st party app registers for the 'pinChallenge onRequestChallenge manage' event using the 'Firebolt' API + And 1st party app registers for the 'pinChallenge onRequestChallenge manage' event using the 'Firebolt' API When '3rd party app' invokes the 'Firebolt' API to 'profile approvePurchase' And Fetch response for 'pinChallenge onRequestChallenge' event from 1st party app And 1st party app invokes the 'Firebolt' API to 'request focus for pinchallenge provider' @@ -20,7 +20,7 @@ Feature: Profile_Manage_RpcOnly Scenario: PinChallenge.challengeError - Negative Scenario: Validating rpc method Given the environment has been set up for 'PinChallenge-rpc-Only' tests And 3rd party 'certification' app is launched - When 1st party app registers for the 'pinChallenge onRequestChallenge manage' event using the 'Firebolt' API + And 1st party app registers for the 'pinChallenge onRequestChallenge manage' event using the 'Firebolt' API When '3rd party app' invokes the 'Firebolt' API to 'profile approvePurchase' And Fetch response for 'pinChallenge onRequestChallenge' event from 1st party app And 1st party app invokes the 'Firebolt' API to 'send error from pinchallenge provider' diff --git a/cypress/TestCases/FireboltCertification/Manage/SecureStorageManage.feature b/cypress/TestCases/FireboltCertification/Manage/SecureStorageManage.feature index 83dbabfd0..2e942050d 100644 --- a/cypress/TestCases/FireboltCertification/Manage/SecureStorageManage.feature +++ b/cypress/TestCases/FireboltCertification/Manage/SecureStorageManage.feature @@ -9,8 +9,8 @@ Feature: SecureStorage_Manage Scenario Outline: SecureStorage.setForApp - Positive Scenario: Given 1st party app invokes the 'Firebolt' API to '' And 'Firebolt' platform responds to '1st party app' for 'null for clearing stored value for an app' - When '3rd party app' invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds with 'null for getting stored value' + And '3rd party app' invokes the 'Firebolt' API to '' + And 'Firebolt' platform responds with 'null for getting stored value' When 1st party app invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds to '1st party app' for '' When '3rd party app' invokes the 'Firebolt' API to '' @@ -27,16 +27,16 @@ Feature: SecureStorage_Manage Scenario Outline: SecureStorage.removeForApp - Positive Scenario: Given 1st party app invokes the 'Firebolt' API to '' And 'Firebolt' platform responds to '1st party app' for 'null for clearing stored value for an app' - When '3rd party app' invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds with 'null for getting stored value' + And '3rd party app' invokes the 'Firebolt' API to '' + And 'Firebolt' platform responds with 'null for getting stored value' And 1st party app invokes the 'Firebolt' API to '' And 'Firebolt' platform responds to '1st party app' for 'null for updating a secure data value for an app' And 1st party app invokes the 'Firebolt' API to '' And 'Firebolt' platform responds to '1st party app' for 'null for updating a secure data value for an app' - When '3rd party app' invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds with '' - When '3rd party app' invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds with '' + And '3rd party app' invokes the 'Firebolt' API to '' + And 'Firebolt' platform responds with '' + And '3rd party app' invokes the 'Firebolt' API to '' + And 'Firebolt' platform responds with '' When 1st party app invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds to '1st party app' for '' When '3rd party app' invokes the 'Firebolt' API to '' @@ -53,12 +53,12 @@ Feature: SecureStorage_Manage Scenario Outline: SecureStorage.clearForApp - Positive Scenario: Given 1st party app invokes the 'Firebolt' API to '' And 'Firebolt' platform responds to '1st party app' for '' - When '3rd party app' invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds with '' + And '3rd party app' invokes the 'Firebolt' API to '' + And 'Firebolt' platform responds with '' And 1st party app invokes the 'Firebolt' API to '' And 'Firebolt' platform responds to '1st party app' for '' - When '3rd party app' invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds with '' + And '3rd party app' invokes the 'Firebolt' API to '' + And 'Firebolt' platform responds with '' When 1st party app invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds to '1st party app' for '' When '3rd party app' invokes the 'Firebolt' API to '' @@ -95,8 +95,8 @@ Feature: SecureStorage_Manage @sdk @transport Scenario Outline: SecureStorage.removeForApp - Negative Scenario: - And 1st party app invokes the 'Firebolt' API to '' - And 'Firebolt' platform responds to '1st party app' for 'invalid parameters for securestorage removeForApp' + When 1st party app invokes the 'Firebolt' API to '' + Then 'Firebolt' platform responds to '1st party app' for 'invalid parameters for securestorage removeForApp' Examples: | Scenario | API_Key | @@ -137,16 +137,16 @@ Feature: SecureStorage_Manage Given 3rd party 'certification' app is launched with 'secondary 3rd party app' appId And 1st party app invokes the 'Firebolt' API to '' And 'Firebolt' platform responds to '1st party app' for 'null for clearing stored value for an app' - When '3rd party app' invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds with 'null for getting stored value' + And '3rd party app' invokes the 'Firebolt' API to '' + And 'Firebolt' platform responds with 'null for getting stored value' And 'secondary 3rd party app' invokes the 'Firebolt' API to '' And 'Firebolt' platform responds to 'secondary 3rd party app' with 'null for getting stored value' When 1st party app invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds to '1st party app' for '' When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with '' - And 'secondary 3rd party app' invokes the 'Firebolt' API to '' - And 'Firebolt' platform responds to 'secondary 3rd party app' with 'null for getting stored value' + When 'secondary 3rd party app' invokes the 'Firebolt' API to '' + Then 'Firebolt' platform responds to 'secondary 3rd party app' with 'null for getting stored value' Examples: | Scenario | Set_API_Key | API_Key | Method_Validation_Key | Clear_API_Key | @@ -168,21 +168,21 @@ Feature: SecureStorage_Manage Given 3rd party 'certification' app is launched with 'secondary 3rd party app' appId And 1st party app invokes the 'Firebolt' API to '' And 'Firebolt' platform responds to '1st party app' for 'null for clearing stored value for an app' - When '3rd party app' invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds with 'null for getting stored value' + And '3rd party app' invokes the 'Firebolt' API to '' + And 'Firebolt' platform responds with 'null for getting stored value' And 'secondary 3rd party app' invokes the 'Firebolt' API to '' And 'Firebolt' platform responds to 'secondary 3rd party app' with 'null for getting stored value' And 1st party app invokes the 'Firebolt' API to '' And 'Firebolt' platform responds to '1st party app' for 'null for updating a secure data value for an app' And 1st party app invokes the 'Firebolt' API to '' And 'Firebolt' platform responds to '1st party app' for 'null for updating a secure data value for an app' - When '3rd party app' invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds with '' - When '3rd party app' invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds with '' + And '3rd party app' invokes the 'Firebolt' API to '' + And 'Firebolt' platform responds with '' + And '3rd party app' invokes the 'Firebolt' API to '' + And 'Firebolt' platform responds with '' And 1st party app invokes the 'Firebolt' API to 'set secure data value1 for second app with scope device' And 'Firebolt' platform responds to '1st party app' for 'null for updating a secure data value for an app' - When 'secondary 3rd party app' invokes the 'Firebolt' API to '' + And 'secondary 3rd party app' invokes the 'Firebolt' API to '' And 'Firebolt' platform responds to 'secondary 3rd party app' with '' When 1st party app invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds to '1st party app' for '' @@ -191,7 +191,7 @@ Feature: SecureStorage_Manage When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with '' When 'secondary 3rd party app' invokes the 'Firebolt' API to '' - And 'Firebolt' platform responds to 'secondary 3rd party app' with '' + Then 'Firebolt' platform responds to 'secondary 3rd party app' with '' Examples: | Scenario | Remove_API_Key | Set_API_Key1 | Set_API_Key2 | Get_API_Key1 | Get_API_Key2 | Validation_Key2 | Validation_Key1 | Clear_API_Key | @@ -212,16 +212,16 @@ Feature: SecureStorage_Manage And 'Firebolt' platform responds to '1st party app' for '' And 1st party app invokes the 'Firebolt' API to 'set secure data value1 for second app with scope device' And 'Firebolt' platform responds to '1st party app' for 'null for updating a secure data value for an app' - When '3rd party app' invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds with '' - When 'secondary 3rd party app' invokes the 'Firebolt' API to '' + And '3rd party app' invokes the 'Firebolt' API to '' + And 'Firebolt' platform responds with '' + And 'secondary 3rd party app' invokes the 'Firebolt' API to '' And 'Firebolt' platform responds to 'secondary 3rd party app' with '' When 1st party app invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds to '1st party app' for '' When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with 'null for getting stored value' When 'secondary 3rd party app' invokes the 'Firebolt' API to '' - And 'Firebolt' platform responds to 'secondary 3rd party app' with '' + Then 'Firebolt' platform responds to 'secondary 3rd party app' with '' Examples: | Scenario | Clear_API_Key | API_Key | Set_API_Key1 | Set_API_Key2 | Get_API_Key1 | Get_API_Key2 | Validation_Key2 | Validation_Key1 | diff --git a/cypress/TestCases/FireboltCertification/Manage/VoiceGuidanceManage.feature b/cypress/TestCases/FireboltCertification/Manage/VoiceGuidanceManage.feature index 53d00dbf8..f2f44a2d6 100644 --- a/cypress/TestCases/FireboltCertification/Manage/VoiceGuidanceManage.feature +++ b/cypress/TestCases/FireboltCertification/Manage/VoiceGuidanceManage.feature @@ -7,33 +7,35 @@ Feature: VoiceGuidance_Manage @sdk @transport Scenario Outline: Voiceguidance. - Positive Scenario: - When 1st party app registers for the '' event using the 'Firebolt' API - And 1st party app invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds to '1st party app' for '' - When 1st party app invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds to '1st party app' with '' - And 'Firebolt' platform triggers to '1st party app' event '' + Given we test the 'VOICEGUIDANCE' getters and setters '' to '' + And '1st party app' registers for the 'Firebolt' event + When 1st party app invokes the 'Firebolt' API to set value + 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 + And 'Firebolt' platform triggers '1st party app' event Examples: - | Scenario | Method | Event_registration_Key | API_Set_Key | API_Key | Method_Validation_Key | Event_Validation_Key | - | Disable voiceguidance | enabled | voiceguidance onenabledchanged | disable voiceguidance | get voiceguidance enabled | false for voiceguidance enabled | onenabledchanged for voiceguidance with false | - | Enable voiceguidance | enabled | voiceguidance onenabledchanged | enable voiceguidance | get voiceguidance enabled | true for voiceguidance enabled | onenabledchanged for voiceguidance with true | - | Set speed-1 | speed | voiceguidance onspeedchanged | set voiceguidance speed to 1 | get voiceguidance speed | 1 for voiceguidance speed | onSpeedChanged for voiceguidance with 1 | - | Set speed-2 | speed | voiceguidance onspeedchanged | set voiceguidance speed to 2 | get voiceguidance speed | 2 for voiceguidance speed | onSpeedChanged for voiceguidance with 2 | + | Scenario | Method | Value | + | Disable voiceguidance | enabled | false | + | Enable voiceguidance | enabled | true | + | Set speed-1 | speed | 1 | + | Set speed-2 | speed | 2 | @sdk @transport Scenario Outline: Voiceguidance. - Negative Scenario: and expecting error - When 1st party app invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds to '1st party app' with '' + Given we test the 'VOICEGUIDANCE' getters and setters '' to '' + When 1st party app invokes the 'Firebolt' API to set invalid value + Then 'Firebolt' platform responds to '1st party app' set API with 'INVALID_TYPE_PARAMS' Examples: - | Scenario | Method | API_Key | Error_Object | - | Set string param | enabled | set voiceguidance enabled with test string | invalid test sting for voiceguidance enabled | - | Set integer param | enabled | set voiceguidance enabled with integer | invalid integer for voiceguidance enabled | - | Set Enable-test | enabled | enable voiceGuidance with test parameter | invalid params for voiceGuidance setEnabled | - | Set Enable-123 | enabled | enable voiceGuidance with integer parameter | invalid params for voiceGuidance setEnabled | - | Set speed-test | speed | set speed as test | invalid params for voiceGuidance setSpeed | - | Set speed-true | speed | set speed as true | invalid params for voiceGuidance setSpeed | - | Set string param | speed | set voiceguidance speed to test string | invalid test sting for voiceguidance speed | - | Set boolean param | speed | set voiceguidance speed to true | invalid true for voiceguidance speed | - | Set speed-12 | speed | set voiceguidance speed to integer | invalid integer for voiceguidance speed | \ No newline at end of file + | Scenario | Method | Value | + | Set string param | enabled | test | + | Set integer param | enabled | 1 | + | Set Enable-test | enabled | test | + | Set Enable-123 | enabled | 123 | + | Set speed-test | speed | test | + | Set speed-true | speed | true | + | Set string param | speed | test | + | Set boolean param | speed | true | + | Set speed-12 | speed | 12 | \ No newline at end of file diff --git a/cypress/TestCases/FireboltCertification/Metrics.feature b/cypress/TestCases/FireboltCertification/Metrics.feature index 48d0a919d..089cc15a4 100644 --- a/cypress/TestCases/FireboltCertification/Metrics.feature +++ b/cypress/TestCases/FireboltCertification/Metrics.feature @@ -7,13 +7,14 @@ Feature: Metrics @sdk @transport Scenario Outline: Metrics. - Positive Scenario: - When '3rd party app' invokes the 'Firebolt' API to '' - Then 'Firebolt' platform responds with '' + Given we test the 'METRICS_METHOD' getters and setters '' to '{}' + When '3rd party app' invokes the 'Firebolt' get API + Then 'Firebolt' platform responds to '3rd party app' get API 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 | + | Scenario | Method | + | Metrics startContent | startContent | + | Metrics stopContent | stopContent | @sdk @transport Scenario Outline: Metrics. - Negative Scenario: expecting error diff --git a/cypress/TestCases/FireboltCertification/Metrics_RpcOnly.feature b/cypress/TestCases/FireboltCertification/Metrics_RpcOnly.feature index 2fa578bd1..4708a7f3c 100644 --- a/cypress/TestCases/FireboltCertification/Metrics_RpcOnly.feature +++ b/cypress/TestCases/FireboltCertification/Metrics_RpcOnly.feature @@ -2,17 +2,18 @@ Feature: Metrics_RpcOnly @transport - Scenario Outline: Metrics. - Positive Scenario: Validating rpc method metrics + Scenario Outline: Metrics. - Positive Scenario: Validating rpc method metrics 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 '' - Then 'Firebolt' platform responds with '' + When we test the 'METRICS_METHOD' getters and setters '' to '{}' + And '3rd party app' invokes the 'Firebolt' get API + Then 'Firebolt' platform responds to '3rd party app' get API Examples: - | Scenario | API_Key | Validation_key | - | ready | notify that app is minimally usable | true for ready in metrics | - | signIn | log a sign in event | true for signIn in metrics | - | signOut | log a sign out event | true for signOut in metrics | + | Method | + | ready | + | signIn | + | signOut | @transport Scenario: Internal.initialize - Positive Scenario: Validating rpc method diff --git a/cypress/TestCases/FireboltCertification/SecondScreen.feature b/cypress/TestCases/FireboltCertification/SecondScreen.feature index 051e44eeb..5beb3d291 100644 --- a/cypress/TestCases/FireboltCertification/SecondScreen.feature +++ b/cypress/TestCases/FireboltCertification/SecondScreen.feature @@ -28,18 +28,20 @@ Feature: SecondScreen @sdk @transport Scenario: SecondScreen.FriendlyName - Positive Scenario: Validate Set friendlyName - Given '3rd party app' registers for the 'secondscreen onFriendlyNameChanged' event using the 'Firebolt' API - When '3rd party app' invokes the 'Firebolt' API to 'get secondscreen friendlyName' - And 1st party app invokes the 'Firebolt' API to 'set friendlyName to guest room' - And '3rd party app' invokes the 'Firebolt' API to 'get secondscreen friendlyName' - Then 'Firebolt' platform responds with 'guest room for secondscreen friendlyName' - And 'Firebolt' platform triggers event 'onFriendlyNameChanged for secondscreen with guest room' + Given we test the 'SECONDSCREEN_FRIENDLYNAME' getters and setters 'name' to 'Guest Room' + 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 + 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 Given '3rd party app' registers for the 'secondscreen onFriendlyNameChanged' event using the 'Firebolt' API - And 1st party stops listening to the event 'secondscreen onFriendlyNameChanged event' - And 1st party app invokes the 'Firebolt' API to 'set friendlyName to guest room' + 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' @@ -59,8 +61,8 @@ Feature: SecondScreen @regression @sdk @requiresPlatformImplementation @notSupported Scenario Outline: SecondScreen. - Positive Scenario: Validating event Clearing listeners When '3rd party app' registers for the '' event using the 'Firebolt' API - And 1st party stops listening to the event '' - Then User triggers event with value as '' + And 3rd party stops listening to the event '' + And User triggers event with value as '' Then 'Firebolt' platform does not trigger event for '' Examples: | Event_Name | Registered_Event | Clear_Event_Name | Event_Validation_Key | Event_Params | diff --git a/cypress/TestCases/FireboltCertification/SecureStorage.feature b/cypress/TestCases/FireboltCertification/SecureStorage.feature index f8ad7e214..da0050b29 100644 --- a/cypress/TestCases/FireboltCertification/SecureStorage.feature +++ b/cypress/TestCases/FireboltCertification/SecureStorage.feature @@ -3,7 +3,7 @@ Feature: SecureStorage Background: Launch FCA for 'Securestorage' Given the environment has been set up for 'Securestorage' tests - When 3rd party 'certification' app is launched + And 3rd party 'certification' app is launched @sdk @transport Scenario Outline: SecureStorage.set - Positive Scenario: Validate @@ -250,8 +250,8 @@ Feature: SecureStorage 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 '' - And 'secondary 3rd party app' invokes the 'Firebolt' API to '' - And 'Firebolt' platform responds to 'secondary 3rd party app' with '' + When 'secondary 3rd party app' invokes the 'Firebolt' API to '' + Then 'Firebolt' platform responds to 'secondary 3rd party app' with '' Examples: | Scenario | Get_API_Key | Set_API_Key | Validation_Key | Clear_API_Key | @@ -287,12 +287,12 @@ Feature: SecureStorage Then 'Firebolt' platform responds with 'null for removing stored value' When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with 'null for getting stored value' - And 'secondary 3rd party app' invokes the 'Firebolt' API to '' - And 'Firebolt' platform responds to 'secondary 3rd party app' with 'null for getting stored value' + When 'secondary 3rd party app' invokes the 'Firebolt' API to '' + Then 'Firebolt' platform responds to 'secondary 3rd party app' with 'null for getting stored value' When '3rd party app' invokes the 'Firebolt' API to '' Then 'Firebolt' platform responds with '' - And 'secondary 3rd party app' invokes the 'Firebolt' API to '' - And 'Firebolt' platform responds to 'secondary 3rd party app' with '' + When 'secondary 3rd party app' invokes the 'Firebolt' API to '' + Then 'Firebolt' platform responds to 'secondary 3rd party app' with '' Examples: @@ -328,10 +328,10 @@ Feature: SecureStorage Then '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 getting stored value' - And 'secondary 3rd party app' invokes the 'Firebolt' API to '' - And 'Firebolt' platform responds to 'secondary 3rd party app' with 'null for getting stored value' - And 'secondary 3rd party app' invokes the 'Firebolt' API to '' - And 'Firebolt' platform responds to 'secondary 3rd party app' with 'null for getting stored value' + When 'secondary 3rd party app' invokes the 'Firebolt' API to '' + Then 'Firebolt' platform responds to 'secondary 3rd party app' with 'null for getting stored value' + When 'secondary 3rd party app' invokes the 'Firebolt' API to '' + Then 'Firebolt' platform responds to 'secondary 3rd party app' with 'null for getting stored value' Examples: diff --git a/cypress/fixtures/fireboltCalls/advertising.js b/cypress/fixtures/fireboltCalls/advertising.js new file mode 100644 index 000000000..35975a435 --- /dev/null +++ b/cypress/fixtures/fireboltCalls/advertising.js @@ -0,0 +1,95 @@ +exports.ADVERTISING_RESET_IDENTIFIER = { + method: 'manage_advertising.resetIdentifier', + params: {}, + validationJsonPath: 'result', + content: { + data: [ + { + type: 'fixture', + validations: [ + { + mode: 'staticContentValidation', + type: null, + description: resolveAtRuntime('Validating that manage_advertising.resetIdentifier'), + }, + ], + }, + ], + }, +}; + +exports.ADVERTISING_SKIP_RESTRICTION = { + method: 'manage_advertising.skipRestriction', + params: {}, + validationJsonPath: 'result', + setMethod: resolveAtRuntime('manage_advertising.set{{attribute.uppercaseFirstChar}}'), + setParams: resolveAtRuntime('value'), + setValidationJsonPath: 'result', + setContent: null, + event: 'manage_advertising.onSkipRestrictionChanged', + eventValidationJsonPath: 'eventResponse', + content: { + data: [ + { + type: 'fixture', + validations: [ + { + mode: 'staticContentValidation', + type: resolveAtRuntime('value'), + description: resolveAtRuntime( + 'Validating that manage_advertising.set{{attribute.uppercaseFirstChar}} {{attribute}} is {{value}}' + ), + }, + ], + }, + ], + }, +}; + +exports.ADVERTISING_SKIPRESTRICTION = { + method: 'advertising.policy', + params: {}, + validationJsonPath: 'result.skipRestriction', + setMethod: resolveAtRuntime('manage_advertising.setSkipRestriction'), + setParams: resolveAtRuntime('value'), + setValidationJsonPath: 'result', + setContent: null, + event: 'advertising.onPolicyChanged', + eventValidationJsonPath: 'eventResponse.skipRestriction', + content: { + data: [ + { + type: 'fixture', + validations: [ + { + mode: 'staticContentValidation', + type: resolveAtRuntime('value'), + description: resolveAtRuntime( + 'Validating that manage_advertising.setskipRestriction skipRestriction is {{value}}' + ), + }, + ], + }, + ], + }, +}; + +exports.ADVERTISING_DEVICEATTRIBUTES = { + method: 'advertising.deviceAttributes', + params: {}, + validationJsonPath: 'result', + content: { + data: [ + { + type: 'fixture', + validations: [ + { + mode: 'staticContentValidation', + type: {}, + description: 'Validating advertising.deviceAttributes', + }, + ], + }, + ], + }, +}; diff --git a/cypress/fixtures/fireboltCalls/audiodescriptions.js b/cypress/fixtures/fireboltCalls/audiodescriptions.js new file mode 100644 index 000000000..1c09a4247 --- /dev/null +++ b/cypress/fixtures/fireboltCalls/audiodescriptions.js @@ -0,0 +1,27 @@ +exports.AUDIODESCRIPTIONS = { + method: 'manage_audiodescriptions.enabled', + params: {}, + validationJsonPath: 'result', + setMethod: resolveAtRuntime('manage_audiodescriptions.set{{attribute.uppercaseFirstChar}}'), + setParams: resolveAtRuntime('value'), + setValidationJsonPath: 'result', + setContent: null, + event: 'manage_audiodescriptions.onEnabledChanged', + eventValidationJsonPath: 'eventResponse', + content: { + data: [ + { + type: 'fixture', + validations: [ + { + mode: 'staticContentValidation', + type: resolveAtRuntime('value'), + description: resolveAtRuntime( + 'Validating that manage_audiodescriptions.on{{event.uppercaseFirstChar}} {{attribute}} is {{value}}' + ), + }, + ], + }, + ], + }, +}; diff --git a/cypress/fixtures/fireboltCalls/device.js b/cypress/fixtures/fireboltCalls/device.js new file mode 100644 index 000000000..92f35c36b --- /dev/null +++ b/cypress/fixtures/fireboltCalls/device.js @@ -0,0 +1,55 @@ +exports.DEVICE_NAME = { + method: 'manage_device.name', + params: {}, + validationJsonPath: 'result', + setMethod: resolveAtRuntime('manage_device.{{attribute}}'), + setParams: resolveAtRuntime('value'), + setValidationJsonPath: 'result', + setContent: null, + event: 'device.onNameChanged', + eventValidationJsonPath: 'eventResponse', + content: { + data: [ + { + type: 'fixture', + validations: [ + { + mode: 'staticContentValidation', + type: resolveAtRuntime('value'), + description: resolveAtRuntime( + 'Validating that manage_device.{{event}} {{attribute}} is {{value}}' + ), + }, + ], + }, + ], + }, +}; + +exports.DEVICE_NAME_CORE = { + method: 'device.name', + params: {}, + validationJsonPath: 'result', + setMethod: resolveAtRuntime('manage_device.{{attribute}}'), + setParams: resolveAtRuntime('value'), + setValidationJsonPath: 'result', + setContent: null, + event: 'device.onNameChanged', + eventValidationJsonPath: 'eventResponse', + content: { + data: [ + { + type: 'fixture', + validations: [ + { + mode: 'staticContentValidation', + type: resolveAtRuntime('value'), + description: resolveAtRuntime( + 'Validating that device.onNameChanged {{attribute}} is {{value}}' + ), + }, + ], + }, + ], + }, +}; diff --git a/cypress/fixtures/fireboltCalls/discovery.js b/cypress/fixtures/fireboltCalls/discovery.js new file mode 100644 index 000000000..8f8e2e328 --- /dev/null +++ b/cypress/fixtures/fireboltCalls/discovery.js @@ -0,0 +1,74 @@ +exports.DISCOVERY_RECOMMENDATIONS = { + method: 'discovery.policy', + params: {}, + validationJsonPath: 'result.enableRecommendations', + setMethod: resolveAtRuntime('manage_privacy.set{{attribute.uppercaseFirstChar}}'), + setParams: resolveAtRuntime('value'), + setValidationJsonPath: 'result', + setContent: null, + event: 'discovery.onPolicyChanged', + eventValidationJsonPath: 'eventResponse.enableRecommendations', + content: { + data: [ + { + type: 'fixture', + validations: [ + { + mode: 'staticContentValidation', + type: resolveAtRuntime('value'), + description: resolveAtRuntime( + 'Validating that manage_privacy.set{{attribute.uppercaseFirstChar}} {{attribute}} is {{value}}' + ), + }, + ], + }, + ], + }, +}; +exports.DISCOVERY_REMEMBER_WATCHED_PROGRAMS = { + method: 'discovery.policy', + params: {}, + validationJsonPath: 'result.rememberWatchedPrograms', + setMethod: resolveAtRuntime('manage_privacy.set{{attribute.uppercaseFirstChar}}'), + setParams: resolveAtRuntime('value'), + setValidationJsonPath: 'result', + setContent: null, + event: 'discovery.onPolicyChanged', + eventValidationJsonPath: 'eventResponse.rememberWatchedPrograms', + content: { + data: [ + { + type: 'fixture', + validations: [ + { + mode: 'staticContentValidation', + type: resolveAtRuntime('value'), + description: resolveAtRuntime( + 'Validating that manage_privacy.set{{attribute.uppercaseFirstChar}} {{attribute}} is {{value}}' + ), + }, + ], + }, + ], + }, +}; + +exports.DISCOVERY_CLEAR_CONTENTACCESS = { + method: 'discovery.clearContentAccess', + params: {}, + validationJsonPath: 'result', + content: { + data: [ + { + type: 'fixture', + validations: [ + { + mode: 'staticContentValidation', + type: null, + description: resolveAtRuntime('Validating that discovery.clearContentAccess'), + }, + ], + }, + ], + }, +}; diff --git a/cypress/fixtures/fireboltCalls/localization.js b/cypress/fixtures/fireboltCalls/localization.js new file mode 100644 index 000000000..dd2326702 --- /dev/null +++ b/cypress/fixtures/fireboltCalls/localization.js @@ -0,0 +1,62 @@ +exports.LOCALIZATION_MANAGE = { + method: resolveAtRuntime('manage_localization.{{attribute}}'), + params: null, + validationJsonPath: 'result', + setMethod: resolveAtRuntime('manage_localization.set{{attribute.uppercaseFirstChar}}'), + setParams: resolveAtRuntime('value'), + setValidationJsonPath: 'result', + setContent: null, + event: resolveAtRuntime('manage_localization.on{{attribute.uppercaseFirstChar}}Changed'), + eventValidationJsonPath: 'eventResponse', + content: { + data: [ + { + type: 'fixture', + validations: [ + { + mode: 'staticContentValidation', + type: resolveAtRuntime('value'), + description: resolveAtRuntime( + 'Validating that manage_localization.set{{attribute.uppercaseFirstChar}} {{attribute}} is {{value}}' + ), + }, + ], + }, + ], + }, +}; + +exports.LOCALIZATION_ADDITIONAL_INFO = { + setMethod: resolveAtRuntime('manage_localization.{{attribute}}'), + setParams: resolveAtRuntime('value'), + setValidationJsonPath: 'result', + setContent: null, +}; + +exports.LOCALIZATION = { + method: resolveAtRuntime('localization.{{attribute}}'), + params: {}, + validationJsonPath: 'result', + setMethod: resolveAtRuntime('manage_localization.set{{attribute.uppercaseFirstChar}}'), + setParams: resolveAtRuntime('value'), + setValidationJsonPath: 'result', + setContent: null, + event: resolveAtRuntime('localization.on{{attribute.uppercaseFirstChar}}Changed'), + eventValidationJsonPath: 'eventResponse', + content: { + data: [ + { + type: 'fixture', + validations: [ + { + mode: 'staticContentValidation', + type: resolveAtRuntime('value'), + description: resolveAtRuntime( + 'Validating that manage_localization.set{{attribute.uppercaseFirstChar}} {{attribute}} is {{value}}' + ), + }, + ], + }, + ], + }, +}; diff --git a/cypress/fixtures/fireboltCalls/metrics.js b/cypress/fixtures/fireboltCalls/metrics.js new file mode 100644 index 000000000..59866b883 --- /dev/null +++ b/cypress/fixtures/fireboltCalls/metrics.js @@ -0,0 +1,21 @@ +exports.METRICS_METHOD = { + method: resolveAtRuntime('metrics.{{attribute}}'), + params: {}, + validationJsonPath: 'result', + content: { + data: [ + { + type: 'fixture', + validations: [ + { + mode: 'staticContentValidation', + type: true, + description: resolveAtRuntime( + 'Validating that metrics.{{attribute}} {{attribute}} is true' + ), + }, + ], + }, + ], + }, +}; diff --git a/cypress/fixtures/fireboltCalls/privacy.js b/cypress/fixtures/fireboltCalls/privacy.js new file mode 100644 index 000000000..8d2b09651 --- /dev/null +++ b/cypress/fixtures/fireboltCalls/privacy.js @@ -0,0 +1,27 @@ +exports.PRIVACY_SETTINGS = { + method: resolveAtRuntime('manage_privacy.{{attribute}}'), + params: null, + validationJsonPath: 'result', + setMethod: resolveAtRuntime('manage_privacy.set{{attribute.uppercaseFirstChar}}'), + setParams: resolveAtRuntime('value'), + setValidationJsonPath: 'result', + setContent: null, + event: resolveAtRuntime('manage_privacy.on{{attribute.uppercaseFirstChar}}Changed'), + eventValidationJsonPath: 'eventResponse', + content: { + data: [ + { + type: 'fixture', + validations: [ + { + mode: 'staticContentValidation', + type: resolveAtRuntime('value'), + description: resolveAtRuntime( + 'Validating that manage_privacy.set{{attribute.uppercaseFirstChar}} {{attribute}} is {{value}}' + ), + }, + ], + }, + ], + }, +}; diff --git a/cypress/fixtures/fireboltCalls/secondscreen.js b/cypress/fixtures/fireboltCalls/secondscreen.js new file mode 100644 index 000000000..940a299d9 --- /dev/null +++ b/cypress/fixtures/fireboltCalls/secondscreen.js @@ -0,0 +1,27 @@ +exports.SECONDSCREEN_FRIENDLYNAME = { + method: 'secondscreen.friendlyName', + params: {}, + validationJsonPath: 'result', + setMethod: resolveAtRuntime('manage_device.set{{attribute.uppercaseFirstChar}}'), + setParams: resolveAtRuntime('value'), + setValidationJsonPath: 'result', + setContent: null, + event: 'secondscreen.onFriendlyNameChanged', + eventValidationJsonPath: 'eventResponse', + content: { + data: [ + { + type: 'fixture', + validations: [ + { + mode: 'staticContentValidation', + type: resolveAtRuntime('value'), + description: resolveAtRuntime( + 'Validating that manage_device.set{{attribute.uppercaseFirstChar}} {{attribute}} is {{value}}' + ), + }, + ], + }, + ], + }, +}; diff --git a/cypress/fixtures/fireboltCalls/voiceguidance.js b/cypress/fixtures/fireboltCalls/voiceguidance.js new file mode 100644 index 000000000..7499b45dc --- /dev/null +++ b/cypress/fixtures/fireboltCalls/voiceguidance.js @@ -0,0 +1,27 @@ +exports.VOICEGUIDANCE = { + method: resolveAtRuntime('manage_voiceguidance.{{attribute}}'), + params: null, + validationJsonPath: 'result', + setMethod: resolveAtRuntime('manage_voiceguidance.set{{attribute.uppercaseFirstChar}}'), + setParams: resolveAtRuntime('value'), + setValidationJsonPath: 'result', + setContent: null, + event: resolveAtRuntime('manage_voiceguidance.on{{attribute.uppercaseFirstChar}}Changed'), + eventValidationJsonPath: 'eventResponse', + content: { + data: [ + { + type: 'fixture', + validations: [ + { + mode: 'staticContentValidation', + type: resolveAtRuntime('value'), + description: resolveAtRuntime( + 'Validating that manage_voiceguidance.on{{event.uppercaseFirstChar}} {{attribute}} is {{value}}' + ), + }, + ], + }, + ], + }, +};