# PAYM-814 - Post Finance Status ## Test Scenarios #### Test Scenario 1 ```gherkin Scenario Outline: As an Admin, I should get error response for wrong sinbadId field Given the user has logged in When the user input <wrongType> for sinbadId field And the user hit endpoint post finance status Then show response error message Examples: | wrongType | | ------------ | | non-existent | | blank | | number | ``` #### Test Scenario 2 ```gherkin Scenario Outline: As an Admin, I should get error response for wrong signStatus field Given the user has logged in When the user input <wrongType> for signStatus field And the user hit endpoint post finance status Then show response error message Examples: | wrongType | | --------- | | number | | string | ``` #### Test Scenario 3 ```gherkin Scenario: As an Admin, I should get error response for wrong format signDate field Given the user has logged in When the user input wrong format for signDate field And the user hit endpoint post finance status Then show response error message ``` #### Test Scenario 4 ```gherkin Scenario Outline: As an Admin, I should get error response for wrong approvalStatus field Given the user has logged in When the user input <wrongType> for approvalStatus field And the user hit endpoint post finance status Then show response error message Examples: | wrongType | | ----------- | | wrongFormat | | number | ``` #### Test Scenario 5 ```gherkin Scenario: As an Admin, I should get error response for wrong format approvalDate field Given the user has logged in When the user input wrong format for approvalDate field And the user hit endpoint post finance status Then show response error message ``` #### Test Scenario 6 ```gherkin Scenario: As an Admin, I should get error response for wrong format reference field Given the user has logged in When the user input wrong format for reference field And the user hit endpoint post finance status Then show response error message ``` #### Test Scenario 7 ```gherkin Scenario: As an Admin, I want to hit endpoint update a store data Given the user has logged in When the user correctly input all fields And the user hit endpoint post finance status Then show response RC 200 OK ``` #### Test Scenario 8 ```gherkin Scenario: As an Admin, I should be able to see encrypted data in response message Given the user has logged in When the user has successfully hit endpoint post finance status Then show response data as encrypted message ``` #### Test Scenario 9 ```gherkin Scenario: As an Admin, I want to decrypt the response data Given the user has logged in And the user has successfully hit endpoint post finance status When the user decrypt the response data Then show decrypted response data ``` ###### tags: `Sprint 15` `Dinar`