Skip to content

System Tests

François LaBerge edited this page Apr 12, 2021 · 7 revisions

Switchboard System Tests

The following features are tested with automated system tests.

  1. Log in
  2. Create an encoder device
  3. View a device's logs
  4. Create a decoder device
  5. Create a stream between two devices
  6. View a stream's logs
  7. Delete a stream
  8. Rename a device
  9. Create a new user
  10. User's can only view devices they own

Log in

Test steps:

  1. Open the login page
  2. Enter the user's credentials
  3. Press the login button
  4. Assert the user is on the dashboard Login GIF

Create an encoder device

Test steps:

  1. Create a new device through the service API
  2. Create new encoder through the service API
  3. Open the devices page
  4. Filter by senders
  5. Assert that the encoder appears in the table Add encoder GIF

View a device's logs

Test steps:

  1. Open the logs page
  2. Assert there is a log mentioning the creation of the encoder created in the previous step Device creates log GIF

Create a decoder device

Test steps:

  1. Create a new device through the service API
  2. Create new decoder through the service API
  3. Open the device table page
  4. Filter by receivers
  5. Assert that the decoder appears in the table Add decoder GIF

Create a stream between two devices

Test steps:

  1. Open the streams creation page
  2. Press "select a sender"
  3. Select the created sender
  4. Choose port 8080 from the list
  5. Press "confirm"
  6. Press "select a receiver"
  7. Select the created receiver
  8. Choose port 8080 from the list
  9. Press "confirm"
  10. Press "create stream"
  11. Navigate to the stream list page
  12. Assert that the stream appears in the list Create stream GIF

View a stream's logs

Test steps:

  1. Open the logs page
  2. Assert there is a log mentioning the creation of the stream in the previous step Stream started log GIF

Delete a stream

Test steps:

  1. Open the stream list page
  2. Press the actions button
  3. Press "delete"
  4. Navigate back to the stream list page
  5. Assert that the stream does not appear in the list Delete stream GIF

Rename a device

Test steps:

  1. Open the device list page
  2. Press the action button on the first device in the list
  3. Press the edit button of the "Name" text field
  4. Edit the "Name" text field from "Device #1" to "Renamed Device"
  5. Press the save button
  6. Navigate back to the device list page
  7. Assert the name of the device changed Rename device GIF

Create a new user

Test steps:

  1. Open the "Create a User" page
  2. Enter the new user's credentials
  3. Press "Create"
  4. Logout from the current user
  5. Log in using the new user's credentials
  6. Assert that the new user is redirected on the dashboard Create user GIF

User's can only view devices they own

Test steps:

  1. Make sure your are logged in with the newly created user from the previous step
  2. Open the device list page
  3. Assert that no devices appear. Restrict access to device GIF