# EC1-398 - API Get Data from segmentation setting ## Test Scenarios #### Test Scenario 1 ```gherkin Scenario: As an Admin, I want to hit segmentation-setting endpoint with blank params value Given the user has logged in as Admin When the user input blank params for store segmentation And the user input correct params value for warehouseId And the user hit segmentation-setting endpoint Then successfully get response from segmentation-setting ``` #### Test Scenario 2 ```gherkin Scenario: As an Admin, I should be able to see store's segmentation fields in the response data Given the user has logged in as Admin When the user hit segmentation-setting endpoint Then show response data based on inputted params And show store's warehouseCatalogue, cluster, type, group, channel response objects ``` #### Test Scenario 3 ```gherkin Scenario Outline: As an Admin, I shouldn't be able to hit with wrong params value Given the user has logged in as Admin When the user input <wrongValue> for <paramsType> And the user hit segmentation-setting endpoint Then show error message Examples: | wrongValue | paramsType | | ----------- | ---------- | | catalogueId | alphabet | | warehouseId | alphabet | | typeId | alphabet | | groupId | alphabet | | channelId | alphabet | | clusterId | alphabet | ``` #### Test Scenario 4 ```gherkin Scenario Outline: As an Admin, I shouldn't be able to hit with deleted params field Given the user has logged in as Admin When the user deletes <paramsField> And the user hit segmentation-setting endpoint Then show error messages Examples: | paramsField | | ----------- | | catalogueId | | warehouseId | | typeId | | groupId | | channelId | | clusterId | ``` #### Test Scenario 5 ```gherkin Scenario: As an Admin, I want to hit segmentation-setting endpoint with filled params value Given the user has logged in as Admin When the user input all params value And the user hit segmentation-setting endpoint Then show response data based on inputted params value ``` #### Test Scenario 6 ```gherkin Scenario Outline: As an Admin, I shouldn't be able to hit with incorrect params value Given the user has logged in as Admin When the user input <incorrectType> for <paramField> And the user hit segmentation-setting endpoint Then show error message Examples: |paramField|incorrectType| |catalogueId|catalogue from other supplier| |warehouseId|warehouse from other supplier| ``` ###### tags: `Sprint 24` `Ecommerce 1` `SSC`