Skip to content

Test Case Ending a conversation

Giovane Liberato edited this page Oct 2, 2018 · 11 revisions

Assumptions

  • This test will be run with alice@ and bob@ running with the localhost xmpp server

Before running test

  • Start Pidgin:
    • Enable alice@ and bob@
  • Ensure that you see (in the console output) (the order will vary)
    • FILL HERE

Running the test (online version, initiator ends the private conversation)

  • Start Pidgin as alice@

  • Double click on "bob@localhost" to open a conversation window with Bob

  • Click the "OTR" menu

  • Ensure that "Start private conversation" is enabled, while "End private conversation" and "Authenticate buddy" are not enabled

  • Click on "Start private conversation"

  • Ensure that it says "Verified conversation started" or "Unverified conversation started." in the conversation window with bob@ (Message depends on context but it's not relevant)

  • Type "Hello, Bob" and press enter.

  • Ensure that the message shows up in the conversation window with bob@

  • Switch to bob's conversation window with alice@

  • Ensure that it says "Verified conversation started" or "Unverified conversation started."

  • Ensure that the "Hello, Bob" message shows up in that window

  • Type "Oh, hi Alice" and press enter.

  • Ensure that the message shows up in the conversation window with alice@

  • Switch to alice's conversation window with bob@

  • Ensure that the "Oh, hi Alice" message shows up in that window

  • Press the "OTR" menu, and then "End private conversation"

  • Ensure that it says "Private conversation lost."

  • Ensure the OTR conversation status displays "Not Private"

  • Switch to bob's conversation window with alice@

  • Ensure that it says "Private conversation lost."

  • Ensure the OTR conversation status displays "Finished"

Running the test (online version, responder ends the private conversation)

  • Start Pidgin as alice@

  • Double click on "bob@localhost" to open a conversation window with Bob

  • Click the "OTR" menu

  • Ensure that "Start private conversation" is enabled, while "End private conversation" and "Authenticate buddy" are not enabled

  • Click on "Start private conversation"

  • Ensure that it says "Verified conversation started" or "Unverified conversation started." in the conversation window with bob@ (Message depends on context but it's not relevant)

  • Type "Hello, Bob" and press enter.

  • Ensure that the message shows up in the conversation window with bob@

  • Switch to bob's conversation window with alice@

  • Ensure that it says "Verified conversation started" or "Unverified conversation started."

  • Ensure that the "Hello, Bob" message shows up in that window

  • Type "Oh, hi Alice" and press enter.

  • Ensure that the message shows up in the conversation window with alice@

  • Switch to alice's conversation window with bob@

  • Ensure that the "Oh, hi Alice" message shows up in that window

  • Switch to bob's conversation window with alice@

  • Press the "OTR" menu, and then "End private conversation"

  • Ensure that it says "Private conversation lost."

  • Ensure the OTR conversation status displays "Not Private"

  • Switch to alice's conversation window with bob@

  • Ensure that it says "Private conversation lost."

  • Ensure the OTR conversation status displays "Finished"

Running the test (offline version, initiator ends the private conversation)

  • When I log in, either prekey messages get published or a messages says that we have enough prekey messages
  • When I click on the OTR button and the other participant is offline or online, an OTR conversation is started
  • I am able to send encrypted messages
  • The other participant is able to receive my message and send messages as well
  • When either participant wants to end the OTR conversation, they are able to click the 'End private conversation' button
  • The OTR conversation ends
Clone this wiki locally