Skip to content

Test Scenarios

manrodrigues edited this page Aug 17, 2021 · 3 revisions

UI TESTS

Login scenarios

Happy paths:

  1. Go to Register an account page by pressing the button on login page

    • Given User is on the ORB login page
    • When Press register link
    • Then Register an account page should be displayed
  2. Register an account

    • Given User is on the register page
    • When Complete the form with "valid" full name, "valid" email address, "valid" password and "same" password on repeat
    • Then Register button "should" be enabled
    • And New account "should" be registered
    • And Login using referred email address and password "should" be enabled
  3. Login using registered email address and correct password

    • Given User is on the ORB login page
    • When Enter "registered" email address
    • And Enter "correct" password
    • And Press the ORB button Log In
    • Then Access to ORB "should" be enabled
  4. Change password from a existing account

    • Given user is on the ORB profile page
    • When insert new password
    • And insert the same new password on confirmation password
    • And insert the old password
    • And press save button on change password session
    • Then password should be changed
    • And login using the new password should be enabled
  5. Go to request password page

    • Given user is on the login ORB page
    • And already have an account registered
    • When click on "Forgot Password?" link
    • Then request password page should be opened
  6. Request password

    • Given user is on request password page
    • When enter the registered email address
    • And press "Request Password" button
    • Then an email should be send with a link to reset the password

Unhappy paths

Unhappy paths follow the same steps as the happy paths and just changes the data

  1. Login using unregistered email address and correct password
  2. Login using registered email address and incorrect password
  3. Login using unregistered email address and incorrect password
  4. Request a link to reset password with an invalid email address
  5. Register an account with different passwords
  6. Register an account with less than 8 characters
  7. Register an account with more than 50 characters

Sink management scenarios

Happy paths:

  1. Add a new sink with valid name, type and remote host and without other information.

    • Given there is on Sink Management page
    • When press "+NEW SINK" button
    • When insert valid name
    • when insert valid type
    • When press "NEXT" button
    • When insert valid remote host
    • When press "NEXT" button
    • When press "SAVE" button
    • Then sink should be successfully created
    • Then referred sink should be displayed on all sinks page
  2. Add a new sink with all information valid

    • Given there is on Sink Management page
    • When press "+NEW SINK" button
    • When insert valid name
    • When insert valid description
    • when insert valid type
    • When press "NEXT" button
    • When insert valid remote host
    • When insert valid Username
    • When insert valid Password
    • When press "NEXT" button
    • When press "SAVE" button
    • Then sink should be successfully created
    • Then referred sink should be displayed on all sinks page
  3. Edit existing sink by the edit button on “all sinks” page

    • Given there is on Sink Management-all sinks page
    • Given there is a sink already created
    • When press "edit" button
    • Then editing the details must be enabled
    • Then edited information must be overwritten
  4. Navigate into creation sink form pages

    • Given there is on Sink Creation
    • When Required Fields was inserted
    • Then navigation into pages using "NEXT" and "BACK" buttons should be enabled
  5. Cancel creation sink

    • Given there is on Sink Creation
    • When press "CANCEL"
    • Then sink creation should be closed
    • Then no sink should be added
  6. Visualize existing sink

    • Given there is on Sink Management-all sinks page
    • Given there is a sink already created
    • When press "visualize" button
    • Then sink details visualization should be opened
    • Then name, description, service type, remote host, date created and status should be displayed
  7. Close visualization

    • Given there is on sink details page
    • When press "xCLOSE" button
    • Then Sink Details should be closed
    • Then no modifications should be done on sink page
  8. Edit existing sink by the edit button on visualize existing sink page

    • Given there is on Sink Management-all sinks page
    • Given there is a sink already created
    • When press "visualize" button
    • When press "edit" button
    • Then visualization should be closed
    • Then editing the details must be enabled
    • Then edited information must be overwritten
  9. Remove existing sink writing sink’s name correctly

    • Given there is on Sink Management-all sinks page
    • Given there is a sink already created
    • When press "Remove" button
    • When type the sink name label correctly on Delete Sink Confirmation
    • When press "I UNDERSTAND, DELETE THIS SINK" button
    • Then referred sink should be deleted
  10. Close Delete sink page without type name label

    • Given there is on Delete Sink Confirmation page
    • When press "xCLOSE" button
    • Then Delete Sink Confirmation page should be closed
    • Then no modifications should be done on sink page
  11. Close Delete sink page with type name label

    • Given there is on Delete Sink Confirmation page
    • Given there is typed name label correctly
    • When press "xCLOSE" button
    • Then Delete Sink Confirmation page should be closed
    • Then no modifications should be done on sink page
  12. Filter sinks by Name

  13. Filter sinks by Description

  14. Filter sinks by Type

  15. Filter sinks by Status

  16. Filter sinks by Tags

Unhappy paths:

  1. Add a new sink without any information

    • Given there is on Sink Management page
    • When press "+NEW SINK" button
    • When insert no name
    • When insert no description
    • when insert no type
    • Then "NEXT" button shouldn't be enabled
  2. Add a new sink without Name

    • Given there is on Sink Management page
    • When press "+NEW SINK" button
    • When insert no name
    • When insert valid description
    • when insert valid type
    • Then "NEXT" button shouldn't be enabled
  3. Add a new sink with invalid Name

    • Given there is on Sink Management page
    • When press "+NEW SINK" button
    • When insert invalid name
    • When insert valid description
    • when insert valid type
    • Then "NEXT" button shouldn't be enabled
  4. Add a new sink without Type

    • Given there is on Sink Management page
    • When press "+NEW SINK" button
    • When insert valid name
    • When insert valid description
    • when insert no type
    • Then "NEXT" button shouldn't be enabled
  5. Add a new sink with invalid Type

    • Given there is on Sink Management page
    • When press "+NEW SINK" button
    • When insert valid name
    • When insert valid description
    • when insert invalid type
    • Then "NEXT" button shouldn't be enabled
  6. Add a new sink without Remote Host

    • Given there is on Sink Management page
    • When press "+NEW SINK" button
    • When insert valid name
    • When insert valid description
    • when insert valid type
    • When press "NEXT" button
    • When insert no remote host
    • When insert valid Username
    • When insert valid Password
    • Then "NEXT" button shouldn't be enabled
  7. Add a new sink with invalid Remote Host

    • Given there is on Sink Management page
    • When press "+NEW SINK" button
    • When insert valid name
    • When insert valid description
    • when insert valid type
    • When press "NEXT" button
    • When insert invalid remote host
    • When insert valid Username
    • When insert valid Password
    • Then "NEXT" button shouldn't be enabled
  8. Remove existing sink writing sink’s name incorrectly

    • Given there is on Sink Management-all sinks page
    • Given there is a sink already created
    • When press "Remove" button
    • When type the sink name label incorrectly
    • When press "I UNDERSTAND, DELETE THIS SINK" button
    • Then referred sink should be deleted