Skip to content

ScenarioAddingMessages

blackpuschel edited this page Jul 19, 2023 · 7 revisions

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.

Set 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:

  1. Click "Add Channel" in the channel list
  2. Fill in the necessary fields
  3. Click "Add" to add the channel
  4. Click on the channel to enter the channel view

Inside the channel view all added messages are displayed and additional ones can be created.

Scenario 1: Send a message to anybody

  1. Click "Add Message" in the channel view
  2. Inside the EditText type the message
  3. Click the button "To Anybody". The recipient should be displayed as "anybody"
  4. Click "Send" to add the message
  5. The message should now be displayed in the channel view

Scenario 2: Send a signed message to anybody

  1. Click "Add Message" in the channel view
  2. Inside the EditText type the message
  3. Click the button "To Anybody". The recipient should be displayed as "anybody"
  4. Click the checkbox "sign" to sign the message. The box should now be checked
  5. Click "Send" to add the message
  6. The message should now be displayed in the channel view

Scenario 3: Abort the contact selection - send to anybody

  1. Click "Add Message" in the channel view
  2. Inside the EditText type the message
  3. Click "Select" to select a contact
  4. Inside the contacts list, select a contact by clicking it
  5. Click "Abort" to return to adding the message
  6. The recipient should be unchanged
  7. Click "Send" to add the message
  8. The message should now be displayed in the channel view

Scenario 4: Send a message to a contact

  1. Click "Add Message" in the channel view
  2. Inside the EditText type the message
  3. Click "Select" to select a contact
  4. Inside the contacts list, select a contact by clicking it
  5. Press "Done Selection" to select the contact and return to adding the message
  6. The recipient should be the contacts name
  7. Click "Send" to add the message
  8. The message should now be displayed in the channel view

Scenario 5: Send an encrypted message to a contact

  1. Click "Add Message" in the channel view
  2. Inside the EditText type the message (note that encryption is not possible yet)
  3. Click "Select" to select a contact
  4. Inside the contacts list, select a contact by clicking it
  5. Press "Done Selection" to select the contact and return to adding the message
  6. The recipient should be the contacts name and a checkbox for encryption should be available
  7. Click the checkbox "encrypt" to encrypt the message. The box should now be checked
  8. Click "Send" to add the message
  9. The message should now be displayed in the channel view

Scenario 6: Send a signed message to a contact

  1. Click "Add Message" in the channel view
  2. Inside the EditText type the message
  3. Click "Select" to select a contact
  4. Inside the contacts list, select a contact by clicking it
  5. Press "Done Selection" to select the contact and return to adding the message
  6. The recipient should be the contacts name
  7. Click the checkbox "sign" to sign the message. The box should now be checked
  8. Click "Send" to add the message
  9. The message should now be displayed in the channel view

Scenario 7: Send an encrypted and signed message to a contact

  1. Click "Add Message" in the channel view
  2. Inside the EditText type the message
  3. Click "Select" to select a contact
  4. Inside the contacts list, select a contact by clicking it
  5. Press "Done Selection" to select the contact and return to adding the message
  6. The recipient should be the contacts name
  7. Click the checkbox "encrypt" to encrypt the message. The box should now be checked
  8. Click the checkbox "sign" to sign the message. The box should now be checked
  9. Click "Send" to add the message
  10. The message should now be displayed in the channel view

Scenario 8: Abort sending a message

  1. Click "Add Message" in the channel view
  2. Inside the EditText type the message
  3. Click "Abort" to abort adding the message
  4. Back in the channel view, the message should not appear

Scenario 9: Sending an empty message is prohibited

  1. Click "Add Message" in the channel view
  2. The Button "Send" should be disabled so that an empty message can not be send

Scenario 10: Send multiple messages

  1. Click "Add Message" in the channel view
  2. Inside the EditText type the message
  3. Click "Send" to add the message
  4. Repeat steps 1 to 3 two more times
  5. Three messages should now be displayed in the channel view