# SUP-203 - Sales Performance - Global Data - Primary Sales Table ## Functoinal Test Scenarios #### Test Scenario 1 ```gherkin Scenario: As an Admin, I want to access Sales Performance Page Given the user has logged in as Admin And the user is on SBP Homepage When the user clicks 'Sales Performance' option menu Then the user redirected to Sales Performance Page ``` #### Test Scenario 2 ```gherkin Scenario: As an Admin, I want to access data source dropdown option Given the user has logged in as Admin And the user is on Sales Performance Page When the user clicks data source dropdown option on top right Then show data soruce dropdown option ``` #### Test Scenario 3 ```gherkin Scenario: As an Admin, I want to change the data source Given the user has logged in as Admin And the user is on Sales Performance Page When the user clicks data source dropdown option on top right And the user clicks data source <A> Then data source <A> chosen as data source in Sales Performance ``` #### Test Scenario 4 ```gherkin Scenario Outline: As an Admin, I should be able to see changed shown data on table based on data source Given the user has logged in as Admin And the user is on Sales Performance Page When the user choose <dataSourceType> Then show <dataShown> in Sales Performance Page based on chosen data source Examples: | dataSourceType | dataShown | | -------------- | ---------- | | sinbadData | sinbadData | | globalData | globalData | ``` #### Test Scenario 5 ```gherkin Scenario: As an Admin, I want to change data tab option Given the user has logged in as Admin And the user is on Sales Performance Page And the user currently on `Primary` menu When the user clicks 'Secondary' tab option Then the user redirects to Secondary Data Page ``` #### Test Scenario 6 ```gherkin Scenario Outline: As an Admin, I should be able to see changed shown data on table based on data tab option Given the user has logged in as Admin And the user is on Sales Performance Page When the user clicks <dataTabType> Then show data <dataShown> based on data tab chosen Examples: | dataTabType | dataShown | | ------------- | ------------- | | primaryType | primaryType | | secondaryType | secondaryType | ``` #### Test Scenario 7 ```gherkin Scenario: As an Admin, I want to access `Data Option` menu Given the user has logged in as Admin And the user is on Sales Performance Page When the user clicks 'Data Option' menu section Then show `Data Option` menu section pop-up ``` #### Test Scenario 8 ```gherkin Scenario Outline: As an Admin, I should be able to see shown data based on options chosen in `Data Option` Given the user has logged in as Admin And the user opened Data Option menu section pop-up When the user choose <timeFrameFilter> And the user choose <segmentFilter> And the user choose <measureNameFilter> And the user clicks `Apply` Then show data filtered based on chosen filters Examples: | timeFrameFilter | segmentFilter | measureNameFilter | | ----------------------- | ------------------------------------ | ------------------------------------------- | | year | buyingStore | orderCreated | | month | productBase | orderCancelled | | quarter | categoryBase | orderDone | | week | buyingStore+productBase | cancelRate | | year+month | buyingStore+categoryBase | orderOnProcess | | year+quarter | productBase+categoryBase | orderDelivered | | year+week | buyingStore+productBase+categoryBase | paidRate | | year+month+quarter | buyingStore+productBase+categoryBase | deliveredRate | | year+month+week | buyingStore+productBase+categoryBase | orderCreated+orderCanceled | | year+quarter+week | buyingStore+productBase+categoryBase | orderCreated+orderDone | | year+month+quarter+week | buyingStore+productBase+categoryBase | orderCreated+orderOnProcess | | month+quarter | buyingStore+productBase+categoryBase | orderCreated+orderDelivered | | month+week | buyingStore+productBase+categoryBase | orderCreated+deliveredRate | | month+quarter+week | buyingStore+productBase+categoryBase | orderDone+orderDelivered | | quarter+week | buyingStore+productBase+categoryBase | orderCreated+orderCancelled+orderOnProccess | ``` ## Backend Test Scenarios #### Test Scenario 1 ```gherkin Scenario: Given And When Then ``` #### Test Scenario 2 ```gherkin Scenario: Given And When Then ``` #### Test Scenario 3 ```gherkin Scenario: Given And When Then ``` #### Test Scenario 4 ```gherkin Scenario: Given And When Then ``` ###### tags: `Sprint 6` `SBP`