Skip to content

Test Case Ending a conversation

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

Assumptions

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

Before running test (online version)

  • Make sure the XMPP server is running
  • Start Pidgin:
    • Enable alice@ and bob@

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

  • Start Pidgin

  • Double clic 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

  • 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"

Before running test (offline version)

  • Start Pidgin:
    • Make sure the XMPP server, otrng prekey server and XMPP prekey server are running
    • Enable alice@
    • Make sure bob@ is disabled
    • Enable listing of offline buddies on menu "Buddies->Show->Offline Buddies"
    • Remove all published values in prekey server.
    • Remove all files starting with otr4. in the Pidgin configuration directory (defaults to ~/.purple).

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

  • Start Pidgin

  • Ensure that you see (in the console output) (the order will vary)

    • "Prekey Server: we have 0 prekey messages stored." two times
    • "Prekey Server: Publishing prekey messages." two times
    • "Prekey Server: received success" two times
  • 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@

  • Enable 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 (offline version, responder ends the private conversation)

  • Start Pidgin

  • Ensure that you see (in the console output) (the order will vary)

    • "Prekey Server: we have 0 prekey messages stored." two times
    • "Prekey Server: Publishing prekey messages." two times
    • "Prekey Server: received success" two times
  • 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@

  • Enable 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 responder went offline)

  • Start Pidgin

  • Ensure that you see (in the console output) (the order will vary)

    • "Prekey Server: we have 0 prekey messages stored." two times
    • "Prekey Server: Publishing prekey messages." two times
    • "Prekey Server: received success" two times
  • 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@

  • Enable 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@

  • Disable bob@

  • 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"

  • Enable bob@

  • Double click on "alice@localhost" to open a conversation window with Alice

  • Ensure the OTR conversation status displays "Not Private"

Clone this wiki locally