Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIRECERT:2171 - Ported testcase for device, display and MediaInfo. #134

Open
wants to merge 14 commits into
base: dev
Choose a base branch
from
56 changes: 56 additions & 0 deletions cypress/TestCases/FireboltCertification/Device.feature
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,59 @@ Feature: Device
| Validate network_Ethernet_disconnected | device network as ethernet disconnected | onNetworkChanged with ethernet disconnected | onNetworkChanged events with ethernet disconnected |
| Validate network_Hybrid_connected | device network as hybrid connected | onNetworkChanged with hybrid connected | onNetworkChanged events with hybrid connected |
| Validate network_Hybrid_disconnected | device network as hybrid disconnected | onNetworkChanged with hybrid disconnected | onNetworkChanged events with hybrid disconnected |

@Device @mfos @coreSDK @regression @sdk
Scenario Outline: Device.<Method> - Positive Scenario: <Scenario>
When '3rd party app' invokes the 'Firebolt' API to '<API_Key>'
Then 'Firebolt' platform responds with '<validation_key>'

SnehalP251 marked this conversation as resolved.
Show resolved Hide resolved
Examples:
| Scenario | Method | API_Key | validation_key |
| Validate hdcpVersionSupported | hdcpVersionSupported | fetch hdcpVersionSupported | expected hdcpVersionSupported |
| Validate hdrProfile | hdrProfile | fetch hdrProfile | expected hdrProfile |
| Validate hdrProfiles | hdrProfiles | fetch hdrProfiles | expected hdrProfiles |
| Validate audioFormatSupported | audioFormatSupported | fetch audioFormatSupported | expected audioFormatSupported |
| Validate audioFormatSupported with audioFormatOptions atmos | audioFormatSupported | fetch audioFormatSupported with audioFormatOptions atmos | expected audioFormatSupported |
| Validate videoFormatSupported | videoFormatSupported | fetch videoFormatSupported | expected videoFormatSupported |
| Validate videoFormatSupported with VideoFormatOptions resolution | videoFormatSupported | fetch videoFormatSupported with VideoFormatOptions resolution | expected videoFormatSupported |
| Validate audioMode | audioMode | fetch audioMode | expected audioMode |
| Validate videoMode | videoMode | fetch videoMode | expected videoMode |
| Validate videoModes | videoModes | fetch videoModes | expected videoModes |
| Validate sourceFrameRateUsed | sourceFrameRateUsed | fetch sourceFrameRateUsed | expected sourceFrameRateUsed |

@Device @mfos @coreSDK @regression @sdk
Scenario Outline: Device.<Method> - Negative Scenario: <Scenario>
When '3rd party app' invokes the 'Firebolt' API to '<API_Key>'
Then 'Firebolt' platform responds with '<validation_key>'

Examples:
| Scenario | Method | API_Key | validation_key |
| Invalid Audio codec type integer | audioFormatSupported | get audioFormatSupported with invalid Audiocodec type integer | invalid parameter error for audioFormatSupported |
| Invalid Audio codec type boolean | audioFormatSupported | get audioFormatSupported with invalid Audiocodec type boolean | invalid parameter error for audioFormatSupported |
| Invalid audioFormatOptions atmos type interger | audioFormatSupported | get audioFormatSupported with audioFormatOptions atmos type interger | invalid parameter error for audioFormatSupported |
| Invalid audioFormatOptions atmos type string | audioFormatSupported | get audioFormatSupported with audioFormatOptions atmos type string | invalid parameter error for audioFormatSupported |
| Invalid Video codec type integer | videoFormatSupported | get videoFormatSupported with invalid Videocodec type integer | invalid parameter error for videoFormatSupported |
| Invalid Video codec type boolean | videoFormatSupported | get videoFormatSupported with invalid Videocodec type boolean | invalid parameter error for videoFormatSupported |
| Invalid VideoFormatOptions resolution type boolean | videoFormatSupported | get videoFormatSupported with VideoFormatOptions resolution type boolean | invalid parameter error for videoFormatSupported |
| Invalid VideoFormatOptions resolution type interger | videoFormatSupported | get videoFormatSupported with VideoFormatOptions resolution type integer | invalid parameter error for videoFormatSupported |

@Device @coreSDK @sdk @transport @notSupported
Scenario Outline: Device.<method> - Positive Scenario: <Scenario>
When '3rd party app' registers for the '<Event_Registration_Key>' event using the 'Firebolt' API
And '3rd party app' invokes the 'Firebolt' API to '<API_Key>'
Then 'Firebolt' platform responds with '<Method_Validation_Key>'
When User triggers event with value as '<Event_Param>'
Then 'Firebolt' platform triggers event '<Event_Validation_Key>'

SnehalP251 marked this conversation as resolved.
Show resolved Hide resolved
Examples:
| Scenario | method | Event_Registration_Key | API_Key | Method_Validation_Key | Event_Validation_Key | Event_Param |
| validate device audioModeChanged | audioMode | device onAudioModeChanged | fetch audioMode | expected audioMode | expected device onAudioModeChanged event | onAudioModeChanged event |
| validate device videoModeChanged | videoMode | device onVideoModeChanged | fetch videoMode | expected videoMode | expected device onVideoModeChanged event | onVideoModeChanged event |
| validate device videoModesChanged | videoModes | device onVideoModesChanged | fetch videoModes | expected videoModes | expected device onVideoModesChanged event | onVideoModesChanged event |
| validate device sourceFrameRateUsedChanged | sourceFrameRateUsed | device onSourceFrameRateUsedChanged | fetch sourceFrameRateUsed | expected sourceFrameRateUsed | expected device onSourceFrameRateUsedChanged event | onSourceFrameRateUsedChanged event |
| validate device hdrProfileChanged | hdrProfile | device onHdrProfileChanged | fetch hdrProfile | expected hdrProfile | expected device onHdrProfileChanged event | onHdrProfileChanged event |
| validate device audioOutputChanged | audioMode | device onAudioOutputChanged | fetch audioMode | expected audioMode | expected device onAudioModeChanged event | onAudioModeChanged event |




44 changes: 44 additions & 0 deletions cypress/TestCases/FireboltCertification/Display.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Feature: Display

Background: Launch FCA for 'Display'
Given the environment has been set up for 'Display' tests
And 3rd party 'certification' app is launched

@Display @coreSDK @sdk @transport
Scenario Outline:Display.<Method> - Positive Scenario: <Scenario>
When '3rd party app' invokes the 'Firebolt' API to '<API_Key>'
Then 'Firebolt' platform responds with '<Validation_Key>'
Examples:
| Scenario | Method | API_Key | Validation_Key |
| Validate display colorDepth | colorDepth | get display colorDepth | expected display colorDepth |
| Validate display colorimetry | colorimetry | get display colorimetry | expected display colorimetry |
| Validate display hdrProfiles | hdrProfiles | get display hdrProfiles | expected display hdrProfiles |
| Validate display manufacturer | manufacturer | get display manufacturer | expected display manufacturer |
| Validate display productName | productName | get display productName | expected display productName |
| Validate display refreshRate | refreshRate | get display refreshRate | expected display refreshRate |
| Validate display resolution | resolution | get display resolution | expected display resolution |
| Validate display resolutionName | resolutionName | get display resolutionName | expected display resolutionName |
| Validate display size | size | get display size | expected display size |
| Validate display sourcePhysicalAddress | sourcePhysicalAddress | get display sourcePhysicalAddress | expected display sourcePhysicalAddress |

@Display @coreSDK @sdk @transport @notSupported
Scenario Outline: Display.<method> - Positive Scenario: <Scenario>
When '3rd party app' registers for the '<Event_Registration_Key>' event using the 'Firebolt' API
And '3rd party app' invokes the 'Firebolt' API to '<API_Key>'
Then 'Firebolt' platform responds with '<Method_Validation_Key>'
When User triggers event with value as '<Event_Param>'
Then 'Firebolt' platform triggers event '<Event_Validation_Key>'

Examples:
| Scenario | method | Event_Registration_Key | API_Key | Method_Validation_Key | Event_Validation_Key | Event_Param |
| validate display colorDepthChanged | colorDepth | display onColorDepthChanged | get display colorDepth | expected display colorDepth | expected display onColorDepthChanged event | onColorDepthChanged event |
| validate display colorimetryChanged | colorimetry | display onColorimetryChanged | get display colorimetry | expected display colorimetry | expected display onColorimetryChanged event | onColorimetryChanged event |
| validate display hdrProfilesChanged | hdrProfiles | display onHdrProfilesChanged | get display hdrProfiles | expected display hdrProfiles | expected display onHdrProfilesChanged event | onHdrProfilesChanged event |
| validate display ManufacturerChanged | manufacturer | display onManufacturerChanged | get display manufacturer | expected display manufacturer | expected display onManufacturerChanged event | onManufacturerChanged event |
| validate display productNameChanged | productName | display onProductNameChanged | get display productName | expected display productName | expected display onProductNameChanged event | onProductNameChanged event |
| validate display refreshRateChanged | refreshRate | display onRefreshRateChanged | get display refreshRate | expected display refreshRate | expected display onRefreshRateChanged event | onRefreshRateChanged event |
| validate display resolutionChanged | resolution | display onResolutionChanged | get display resolution | expected display resolution | expected display onResolutionChanged event | onResolutionChanged event |
| validate display resolutionNameChanged | resolutionName | display onResolutionNameChanged | get display resolutionName | expected display resolutionName | expected display onResolutionNameChanged event | onResolutionNameChanged event |
| validate display sizeChanged | size | display onSizeChanged | get display size | expected display size | expected display onSizeChanged event | onSizeChanged event |
SnehalP251 marked this conversation as resolved.
Show resolved Hide resolved
| validate display sourcePhysicalAddressChanged | sourcePhysicalAddress | display onSourcePhysicalAddressChanged | get display sourcePhysicalAddress | expected display sourcePhysicalAddress | expected display onSourcePhysicalAddressChanged event | onSourcePhysicalAddressChanged event |

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Feature: MediaInfo_Manage

Background: Launch FCA for 'MediaInfo'
Given the environment has been set up for 'MediaInfo' tests
And 3rd party 'certification' app is launched

@MediaInfo @manageSDK
Scenario Outline: MediaInfo.<Method> - Positive Scenario: <Scenario>
When 1st party app invokes the 'Firebolt' API to '<API_Key>'
Then 'Firebolt' platform responds to '1st party app' with '<Validation_Key>'

Examples:
| Scenario | Method | API_Key | Validation_Key |
| Validate activeAudioFormats | activeAudioFormats | get a list of active audio formats | expected activeAudioFormats |
| Validate activeVideoFormats | activeVideoFormats | get a list of active video formats | expected activeVideoFormats |

@MediaInfo @manageSDK @notSupported
Scenario Outline: MediaInfo.<method> - Positive Scenario: <Scenario>
When 1st party app registers for the '<Event_Registration_Key>' event using the 'Firebolt' API
And 1st party app invokes the 'Firebolt' API to '<API_Key>'
SnehalP251 marked this conversation as resolved.
Show resolved Hide resolved
Then 'Firebolt' platform responds to '1st party app' with '<Validation_Key>'
When User triggers event with value as '<Event_Param>'
Then 'Firebolt' platform triggers event '<Event_Validation_Key>'

Examples:
| Scenario | method | Event_Registration_Key | API_Key | Validation_Key | Event_Validation_Key | Event_Param |
| validate mediaInfo activeAudioFormatsChanged | activeAudioFormats | mediaInfo onActiveAudioFormatsChanged | get a list of active audio formats | expected activeAudioFormats | expected mediaInfo onActiveAudioFormatsChanged event | onActiveAudioFormatsChanged event |
| validate mediaInfo activeVideoFormatsChanged | activeVideoFormats | mediaInfo onActiveVideoFormatsChanged | get a list of active video formats | expected activeVideoFormats | expected mediaInfo onActiveVideoFormatsChanged event | onActiveVideoFormatsChanged event |
27 changes: 27 additions & 0 deletions cypress/TestCases/FireboltCertification/MediaInfo.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Feature: MediaInfo

Background: Launch FCA for 'MediaInfo'
Given the environment has been set up for 'MediaInfo' tests
And 3rd party 'certification' app is launched

@MediaInfo @coreSDK @sdk @transport
Scenario Outline: MediaInfo.<Method> - Positive Scenario: <Scenario>
When '3rd party app' invokes the 'Firebolt' API to '<API_Key>'
Then 'Firebolt' platform responds with '<Validation_Key>'
SnehalP251 marked this conversation as resolved.
Show resolved Hide resolved
Examples:
| Scenario | Method | API_Key | Validation_Key |
| Validate audioFormat | audioFormat | get audio format | expected audioFormat |
| Validate videoFormat | videoFormat | get video format | expected videoFormat |

@MediaInfo @coreSDK @sdk @transport @notSupported
Scenario Outline: MediaInfo.<method> - Positive Scenario: <Scenario>
When '3rd party app' registers for the '<Event_Registration_Key>' event using the 'Firebolt' API
And '3rd party app' invokes the 'Firebolt' API to '<API_Key>'
Then 'Firebolt' platform responds with '<Method_Validation_Key>'
When User triggers event with value as '<Event_Param>'
Then 'Firebolt' platform triggers event '<Event_Validation_Key>'

Examples:
| Scenario | method | Event_Registration_Key | API_Key | Method_Validation_Key | Event_Validation_Key | Event_Param |
| validate mediaInfo audioFormatChanged | audioFormat | mediaInfo onAudioFormatChanged | get audio format | expected audioFormat | expected mediaInfo onAudioFormatChanged event | onAudioFormatChanged event |
| validate mediaInfo videoFormatChanged | videoFormat | mediaInfo onVideoFormatChanged | get video format | expected videoFormat | expected mediaInfo onVideoFormatChanged event | onVideoFormatChanged event |
Loading
Loading