---
# System prepended metadata

title: SUP-208 - Setting Import History
tags: [Sprint 6, SBP]

---

# SUP-208 - Setting Import History

## Functional Test Scenarios
#### Test Scenario 1
```gherkin
Scenario: As an Admin, I want to access Import History Page
    Given the user has logged in as Admin
        And the user is on Settings Page
    When the user clicks 'Import History' tab
    Then the user redirects to Import History Page
```

#### Test Scenario 2
```gherkin
Scenario Outline: As an Admin, I should be able to see correct data in Import History table
    Given the user has logged in as Admin
        And the user is on Import History Page
    When the user has completed import(s) activities
    Then show correct data for <rowType> based on user's import activity
    Examples:
    | rowType      |
    | ------------ |
    | dateTime     |
    | importFile   |
    | importStatus |
    | reason       |
```

#### Test Scenario 3
```gherkin
Scenario: As an Admin, I want to download imported file
    Given the user has logged in as Admin
        And the user is on Import History Page
        And the user has imported file <A>
    When the user clicks file <A> hyperlink-text in 'Imported File' section
    Then the user automatically download file <A>
```

#### Test Scenario 4
```gherkin
Scenario: As an Admin, I should be able to see 'Success' status for correct import
    Given the user has logged in as Admin
        And the user is on Import History Page
        And file <A> has correct datas
    When the user import file <A>
    Then show 'Import Status' for file <A> as 'Success'
```

#### Test Scenario 5
```gherkin
Scenario Outline: As an Admin, I should be able to see 'Fail' status for incorrect import with the reason
    Given the user has logged in as Admin
        And the user is on Import Page
    When the user input <errorType> in file <A>
        And the user import file <A>
        And the user clicks 'Import History' tab
    Then the user redirects to Import History Page
        And show file <A>'s `Import Status` as `Fail`
        And show 'Reason' section with <errorMessage> based on <errorType>
    Examples:
    | errorType              | errorMessage                                                                   |
    | ---------------------- | ------------------------------------------------------------------------------ |
    | Wrong data type format | [Row 1][Order Qty]Must be a number                                             |
    | Found null             | [Row 1][Channel]can’t be null.                                                 |
    | Found minus value      | [Row 1][Dispatch Qty]Must be equal to 0 or greater than 0.                     |
    
```

###### tags: `Sprint 6` `SBP`