-
Notifications
You must be signed in to change notification settings - Fork 1
ScenarioAddingMessages
The following is supposed to establish some scenarios that might occur when a user tries to add a message. The scenarios are backed by android test inside the android test folder. They assume the user completed the set up by typing in a name on first start up.
Before adding messages some things need to be set up. In the case of adding messages, a user has to be in a channel. To create a new channel one has to:
- Click "Add Channel" in the channel list
- Fill in the necessary fields
- Click "Add" to add the channel
- Click on the channel to enter the channel view
Inside the channel view all added messages are displayed and additional ones can be created.
- Click "Add Message" in the channel view
- Inside the EditText type the message
- Click the button "To Anybody". The recipient should be displayed as "anybody"
- Click "Send" to add the message
- The message should now be displayed in the channel view
- Click "Add Message" in the channel view
- Inside the EditText type the message
- Click the button "To Anybody". The recipient should be displayed as "anybody"
- Click the checkbox "sign" to sign the message. The box should now be checked
- Click "Send" to add the message
- The message should now be displayed in the channel view
- Click "Add Message" in the channel view
- Inside the EditText type the message
- Click "Select" to select a contact
- Inside the contacts list, select a contact by clicking it
- Click "Abort" to return to adding the message
- The recipient should be unchanged
- Click "Send" to add the message
- The message should now be displayed in the channel view
- Click "Add Message" in the channel view
- Inside the EditText type the message
- Click "Select" to select a contact
- Inside the contacts list, select a contact by clicking it
- Press "Done Selection" to select the contact and return to adding the message
- The recipient should be the contacts name
- Click "Send" to add the message
- The message should now be displayed in the channel view
- Click "Add Message" in the channel view
- Inside the EditText type the message (note that encryption is not possible yet)
- Click "Select" to select a contact
- Inside the contacts list, select a contact by clicking it
- Press "Done Selection" to select the contact and return to adding the message
- The recipient should be the contacts name and a checkbox for encryption should be available
- Click the checkbox "encrypt" to encrypt the message. The box should now be checked
- Click "Send" to add the message
- The message should now be displayed in the channel view
- Click "Add Message" in the channel view
- Inside the EditText type the message
- Click "Select" to select a contact
- Inside the contacts list, select a contact by clicking it
- Press "Done Selection" to select the contact and return to adding the message
- The recipient should be the contacts name
- Click the checkbox "sign" to sign the message. The box should now be checked
- Click "Send" to add the message
- The message should now be displayed in the channel view
- Click "Add Message" in the channel view
- Inside the EditText type the message
- Click "Select" to select a contact
- Inside the contacts list, select a contact by clicking it
- Press "Done Selection" to select the contact and return to adding the message
- The recipient should be the contacts name
- Click the checkbox "encrypt" to encrypt the message. The box should now be checked
- Click the checkbox "sign" to sign the message. The box should now be checked
- Click "Send" to add the message
- The message should now be displayed in the channel view
Scenario 8: Abort sending a message
- Click "Add Message" in the channel view
- Inside the EditText type the message
- Click "Abort" to abort adding the message
- Back in the channel view, the message should not appear
- Click "Add Message" in the channel view
- The Button "Send" should be disabled so that an empty message can not be send
- Click "Add Message" in the channel view
- Inside the EditText type the message
- Click "Send" to add the message
- Repeat steps 1 to 3 two more times
- Three messages should now be displayed in the channel view