-
Notifications
You must be signed in to change notification settings - Fork 4
System Tests
François LaBerge edited this page Apr 12, 2021
·
7 revisions
The following features are tested with automated system tests.
- Log in
- Create an encoder device
- View a device's logs
- Create a decoder device
- Create a stream between two devices
- View a stream's logs
- Delete a stream
- Rename a device
- Create a new user
- User's can only view devices they own
Test steps:
- Open the login page
- Enter the user's credentials
- Press the login button
- Assert the user is on the dashboard
Test steps:
- Create a new device through the service API
- Create new encoder through the service API
- Open the devices page
- Filter by senders
- Assert that the encoder appears in the table
Test steps:
- Open the logs page
- Assert there is a log mentioning the creation of the encoder created in the previous step
Test steps:
- Create a new device through the service API
- Create new decoder through the service API
- Open the device table page
- Filter by receivers
- Assert that the decoder appears in the table
Test steps:
- Open the streams creation page
- Press "select a sender"
- Select the created sender
- Choose port 8080 from the list
- Press "confirm"
- Press "select a receiver"
- Select the created receiver
- Choose port 8080 from the list
- Press "confirm"
- Press "create stream"
- Navigate to the stream list page
- Assert that the stream appears in the list
Test steps:
- Open the logs page
- Assert there is a log mentioning the creation of the stream in the previous step
Test steps:
- Open the stream list page
- Press the actions button
- Press "delete"
- Navigate back to the stream list page
- Assert that the stream does not appear in the list
Test steps:
- Open the device list page
- Press the action button on the first device in the list
- Press the edit button of the "Name" text field
- Edit the "Name" text field from "Device #1" to "Renamed Device"
- Press the save button
- Navigate back to the device list page
- Assert the name of the device changed
Test steps:
- Open the "Create a User" page
- Enter the new user's credentials
- Press "Create"
- Logout from the current user
- Log in using the new user's credentials
- Assert that the new user is redirected on the dashboard
Test steps:
- Make sure your are logged in with the newly created user from the previous step
- Open the device list page
- Assert that no devices appear.