# EC1-408 - Get API Detail Catalogue Segmentation
## Test Scenarios
#### Test Scenario 1
```gherkin
Scenario: As an Admin, I shouldn't be able to hit get detail segmentation with blank param
Given the user has logged in as Admin
When the user input blank param
And the user hit get detail segmentation
Then show error message
```
#### Test Scenario 2
```gherkin
Scenario: As an Admin, I shouldn't be able to get detail segmentation ID from other supplier
Given the user has logged in as Admin
And segmentation <A> is from supplier <B>
And the user account is from supplier <A>
When the user input segmentationId <A>
And the user hit get detail segmentation
Then show error message
```
#### Test Scenario 3
```gherkin
Scenario: As an Admin, I want to hit get detail segmentation endpoint for segmentation with no catalogue affiliated
Given the user has logged in as Admin
And segmentation <A> has no catalogue affiliated
When the user input segmentationId <A>
And the user hit get detail segmented catalogue
Then show blank catalogue object
```
#### Test Scenario 4
```gherkin
Scenario: As an Admin, I should be able to see response data showing segmentation info
Given the user has logged in as Admin
When the user hit get detail segmentation <A>
Then show segmentation <A> info data
```
#### Test Scenario 5
```gherkin
Scenario: As an Admin, I want to hit detail segmentation endpoint for segmentation with affiliated SKU
Given the user has logged in as Admin
And segmentation <A> has affiliated SKU
When the user hit get segmented catalogue
Then show affiliated SKU data info
```
#### Test Scenario 6
```gherkin
Scenario: As an Admin, I should be able to see response data showing segmented catalogue segmentation
Given the user has logged in as Admin
When the user hit get segmented catalogue endpoint
Then show response data for segmented catalogue endpoint
```
#### Test Scenario 7
```gherkin
Scenario: As an Admin, I shouldn't be able to hit detail segmentation with blank type param
Given the user has logged in as Admin
When the user input blank for type param
And the user hit get segmented catalogue endpoint
Then show error message
```
#### Test Scenario 8
```gherkin
Scenario: As an Admin, I shouldn't be able to hit detail segmentation with wrong type param
Given the user has logged in as Admin
When the user input wrong value for type param
And the user hit get segmented catalogue endpoint
Then show error message
```
###### tags: `Sprint 24` `Ecommerce 1` `SSC`