-
Notifications
You must be signed in to change notification settings - Fork 5
Test Case Ending a conversation
- This test will be run with alice@ and bob@ running with the localhost xmpp server
- Make sure the XMPP server is running
- Start Pidgin:
- Enable alice@ and bob@
-
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"
-
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"
- 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
).
-
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"
-
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"
- Make sure the XMPP server is running
- Start Pidgin:
- Enable alice@ and bob@
- Make sure alice and bob have each other's fingerprint verified
- Start Pidgin
- Open the plugins list in "Tools->Plugins"
- Find the "Off-the-Record Messaging nextgen" plugin and click the "Configure Plugin" button
- Click the "Known Fingerprints" tab
- Click the bob@ entry
- Ensure that "Start private conversation" is enabled, while "End private conversation" is not disabled
- Click on "Start private conversation"
- Ensure that it says "Private conversation started" on the conversation window
- 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 "Private 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 the "Known Fingerprints" window
- Click the bob@ entry
- Ensure that "End private conversation" is enabled, while "Start private conversation" is not disabled
- Click on "End private conversation"
- Switch to alice's conversation window with bob@
- 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"
- Start Pidgin
- Open the plugins list in "Tools->Plugins"
- Find the "Off-the-Record Messaging nextgen" plugin and click the "Configure Plugin" button
- Click the "Known Fingerprints" tab
- Click the bob@ entry
- Ensure that "Start private conversation" is enabled, while "End private conversation" is not disabled
- Click on "Start private conversation"
- Ensure that it says "Private conversation started" on the conversation window
- 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 "Private 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 the "Known Fingerprints" window
- Click the alice@ entry
- Ensure that "End private conversation" is enabled, while "Start private conversation" is not disabled
- Click on "End private conversation"
- Switch to bob's conversation window with alice@
- Ensure that it says "Private conversation lost."
- Ensure the OTR conversation status displays "Not Private" in the conversation window tab"
- Switch to alice's conversation window with bob@
- Ensure that it says "Private conversation lost."
- Ensure the OTR conversation status displays "Finished" in the conversation window
- Switch to the "Known Fingerprints" window
- Ensure the column status displays "Not Private" in alices's entry
- Ensure the column status displays "Finished" in bob's entry
- Ensure that "Start private conversation" is enabled, while "End private conversation" is not disabled