---
# System prepended metadata

title: SUP-204 - Sales Performance - Global Data - Secondary Sales Table
tags: [Sprint 6, SBP]

---

# SUP-204 - Sales Performance - Global Data - Secondary Sales Table

## Functional Test Scenarios
#### Test Scenario 1
```gherkin
Scenario: As an Admin, I want to access secondary data page
    Given the user has logged in as Admin
        And the user is on Sales Performance Page
    When the user clicks Secondary tab
    Then show secondary sales data table page
```

#### Test Scenario 2
```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 Secondary 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 3
```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 Secondary 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 4
```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 Secondary Sales Performance Page
    When the user clicks 'Data Option' menu section 
    Then show `Data Option` menu section pop-up
```

#### Test Scenario 5
```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 is on Secondary Sales Performance Page
    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                    | store          | orderQuantity            |
    | month                   | category       | orderValue               |
    | quarter                 | store+category | orderQuantity+orderValue |
    | week                    | store+category | orderQuantity+orderValue |
    | year+month              | store+category | orderQuantity+orderValue |
    | year+quarter            | store+category | orderQuantity+orderValue |
    | year+week               | store+category | orderQuantity+orderValue |
    | year+month+quarter      | store+category | orderQuantity+orderValue |
    | year+month+week         | store+category | orderQuantity+orderValue |
    | year+quarter+week       | store+category | orderQuantity+orderValue |
    | year+month+quarter+week | store+category | orderQuantity+orderValue |
    | month+quarter           | store+category | orderQuantity+orderValue |
    | month+week              | store+category | orderQuantity+orderValue |
    | month+quarter+week      | store+category | orderQuantity+orderValue |
    | quarter+week            | store+category | orderQuantity+orderValue |
```

## 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`