# EC1-284 - Add warehouse source on Export Order >PRD: https://docs.google.com/document/d/1noHyY1CuyiZ9DH8ewmShbcWwrGeu-k-YMqMMq7bujA8/edit#heading=h.ngnmibz3dgke >JIRA Ticket: https://sinbadkp.atlassian.net/browse/EC1-284?atlOrigin=eyJpIjoiMzc2OWQyNzZjN2YzNDg2MjliZjdhMzRhYTFlMzhiMDEiLCJwIjoiaiJ9 # API Testing ## Test Scenarios #### Test Scenario 1 ```gherkin Scenario: As an Admin, I should get failed response with blank 'warehouse' param Given the user has logged in as Admin to SSC When the user input blank on warehouse param And the user hit export-order endpoint Then failed to export order And show error message ``` #### Test Scenario 2 ```gherkin Scenario: As an Admin, I should get failed response with wrong 'warehouse' param Given the user has logged in as Admin to SSC When the user input wrong warehouseId on warehouse param And the user hit export-order endpoint Then failed to export order And show error message ``` #### Test Scenario 3 ```gherkin Scenario: As an Admin, I should get failed response with only 'warehouse' param Given the user has logged in as Admin to SSC When the user input warehouseId on warehouse param And the user input And the user hit export-order endpoint Then failed to export order And show error message ``` #### Test Scenario 4 ```gherkin Scenario: As an Admin, I should get success response using correct warehouse based params Given the user has logged in as Admin to SSC When the user input correct warehouseId on warehouse param And the user hit export-order endpoint Then successfully export order And show success response message ``` # Functional Testing ## Test Scenarios #### Test Scenario 1 ```gherkin Scenario: As an Admin, I should be able to see 'Warehouse' preference menu Given the user has logged in to SSC And the user is on OMS Page When the user clicks 'Export' button Then show Export Pop-up menu And show 'Warehouse Preference' option ``` #### Test Scenario 2 ```gherkin Scenario: As an Admin, I want to search for a Warehouse Given the user has logged in to SSC And the user is on Export Menu Pop-up Page When the user clicks the 'Warehouse Preference' field And the user input a warehouse name Then show search result for the inputted warehouse ``` #### Test Scenario 3 ```gherkin Scenario: As an Admin, I shouldn't be able to find a non-existent Warehouse Given the user has logged in to SSC And the user is on Export Menu Pop-up Page When the user clicks the 'Warehouse Preference' field And the user input a non-existent warehouse name Then show blank search result ``` #### Test Scenario 4 ```gherkin Scenario: As an Admin, I want to choose a Warehouse Given the user has logged in to SSC And the user is on Export Menu Pop-up Page When the user clicks the 'Warehouse Preference' field And the user input a warehouse name And the user clicks the warehouse search result Then show the warehouse as the chosen input in 'Warehouse Preference' field ``` #### Test Scenario 5 ```gherkin Scenario: As an Admin, I want to export OMS data Given the user has logged in to SSC And the user is on Export Menu Pop-up Page And the user has chosen a warehouse And the user has filled all other input fields When the user clicks 'Export' Then redirect user to Export History Page ``` #### Test Scenario 6 ```gherkin Scenario: As an Admin, I want to download the export file Given the user has logged in to SSC And the user is on Export History Page And the export file is ready to be downloaded When the user clicks 'Download' button Then automatically download the chosen export file ``` #### Test Scenario 7 ```gherkin Scenario: As an Admin, I should be able to see 'Warehouse' field in the exported file Given the user has exported OMS data And the user has downloaded the export data When the user open the export data Then show 'Warehouse' field in the export data ``` ###### tags: `Sprint 22` `Ecommerce 1` `SSC`