Bug #11453

"Chatting with some friend over XMPP" test is fragile

Added by intrigeri 2016-05-20 18:48:08 . Updated 2019-08-30 14:19:03 .

Status:
Resolved
Priority:
Normal
Assignee:
hefee
Category:
Test suite
Target version:
Start date:
2016-05-20
Due date:
% Done:

100%

Feature Branch:
https://salsa.debian.org/tails-team/tails/merge_requests/33
Type of work:
Code
Blueprint:

Starter:
Affected tool:
Instant Messaging
Deliverable for:

Description

  @check_tor_leaks
  Scenario: Chatting with some friend over XMPP                                    # features/pidgin.feature:11
calling as root: echo 'hello?'
call returned: [0, "hello?\n", ""]
[log] CLICK on (1024,384)
calling as root: /sbin/ifconfig eth0 | grep -q 'inet addr'
call returned: [0, "", ""]
calling as root: systemctl --quiet is-active tor@default.service
call returned: [0, "", ""]
calling as root: systemctl stop tor@default.service
call returned: [0, "", ""]
calling as root: rm -f /var/log/tor/log
call returned: [0, "", ""]
calling as root: systemctl --no-block restart tails-tor-has-bootstrapped.target
call returned: [0, "", ""]
calling as root: date -s '@1463661139'
call returned: [0, "Thu May 19 12:32:19 UTC 2016\n", ""]
spawning as root: restart-tor
calling as root: /usr/local/sbin/tor-has-bootstrapped
call returned: [1, "", ""]
calling as root: /usr/local/sbin/tor-has-bootstrapped
call returned: [3, "", ""]
calling as root: /usr/local/sbin/tor-has-bootstrapped
call returned: [3, "", ""]
calling as root: /usr/local/sbin/tor-has-bootstrapped
call returned: [0, "", ""]
calling as root: cat /proc/cmdline
call returned: [0, "BOOT_IMAGE=/live/vmlinuz2 initrd=/live/initrd2.img boot=live config live-media=removable apparmor=1 security=apparmor nopersistence noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 splash noautologin module=Tails slab_nomerge slub_debug=FZ mce=0 vsyscall=none  quiet autotest_never_use_this_option blacklist=psmouse \n", ""]
    Given I have started Tails from DVD and logged in and the network is connected # features/step_definitions/snapshots.rb:199
calling as amnesia: mktemp
call returned: [0, "/tmp/tmp.C6FPCQzyGp\n", ""]
calling as root: rm -f '/tmp/tmp.C6FPCQzyGp'
call returned: [0, "", ""]
calling as amnesia: echo '#!/usr/bin/python
from dogtail import tree
from dogtail.config import config
config.searchShowingOnly = True
application = tree.root.application('"'"'gnome-shell'"'"')
application.child('"'"'Applications'"'"', roleName='"'"'label'"'"').click()' >> '/tmp/tmp.C6FPCQzyGp'
call returned: [0, "", ""]
calling as amnesia: /usr/bin/python '/tmp/tmp.C6FPCQzyGp'
call returned: [0, "Creating logfile at /tmp/dogtail-amnesia/logs/tmp.C6FPCQzyGp_20160519-123224_debug ...\nClicking on [label | Applications]\nMouse button 1 click at (47,13)\n", ""]
calling as root: rm -f '/tmp/tmp.C6FPCQzyGp'
call returned: [0, "", ""]
calling as amnesia: mktemp
call returned: [0, "/tmp/tmp.abhkI1fDgM\n", ""]
calling as root: rm -f '/tmp/tmp.abhkI1fDgM'
call returned: [0, "", ""]
calling as amnesia: echo '#!/usr/bin/python
from dogtail import tree
from dogtail.config import config
config.searchShowingOnly = True
application = tree.root.application('"'"'gnome-shell'"'"')
application.child('"'"'Internet'"'"', roleName='"'"'label'"'"').click()' >> '/tmp/tmp.abhkI1fDgM'
call returned: [0, "", ""]
calling as amnesia: /usr/bin/python '/tmp/tmp.abhkI1fDgM'
call returned: [0, "Creating logfile at /tmp/dogtail-amnesia/logs/tmp.abhkI1fDgM_20160519-123228_debug ...\nClicking on [label | Internet]\nMouse button 1 click at (59,166)\n", ""]
calling as root: rm -f '/tmp/tmp.abhkI1fDgM'
call returned: [0, "", ""]
calling as amnesia: mktemp
call returned: [0, "/tmp/tmp.YCggbyT0NL\n", ""]
calling as root: rm -f '/tmp/tmp.YCggbyT0NL'
call returned: [0, "", ""]
calling as amnesia: echo '#!/usr/bin/python
from dogtail import tree
from dogtail.config import config
config.searchShowingOnly = True
application = tree.root.application('"'"'gnome-shell'"'"')
application.child('"'"'Pidgin Internet Messenger'"'"', roleName='"'"'label'"'"').click()' >> '/tmp/tmp.YCggbyT0NL'
call returned: [0, "", ""]
calling as amnesia: /usr/bin/python '/tmp/tmp.YCggbyT0NL'
call returned: [0, "Creating logfile at /tmp/dogtail-amnesia/logs/tmp.YCggbyT0NL_20160519-123232_debug ...\nClicking on [label | Pidgin Internet Messenger]\nMouse button 1 click at (343,292)\n", ""]
calling as root: rm -f '/tmp/tmp.YCggbyT0NL'
call returned: [0, "", ""]
    When I start Pidgin through the GNOME menu                                     # features/step_definitions/pidgin.rb:291
    Then I see Pidgin's account manager window                                     # features/step_definitions/pidgin.rb:301
[log] CLICK on (437,527)
[log] CLICK on (474,297)
[log] CLICK on (473,323)
[log] CLICK on (507,270)
[log] TYPE "testtailslizard1"
[log] CLICK on (508,309)
[log] TYPE "riseup.net"
[log] CLICK on (498,387)
[log] TYPE "h1zmDhugTewisbnIxxLPCXqjGvwESpMg"
[log] CLICK on (420,424)
[log] CLICK on (389,157)
[log] CLICK on (472,313)
[log] TYPE "xmpp.riseup.net"
[log] CLICK on (638,704)
    When I create my XMPP account                                                  # features/step_definitions/pidgin.rb:51
    And I close Pidgin's account manager window                                    # features/step_definitions/pidgin.rb:305
[log] CLICK on (710,528)
calling as amnesia: xdotool search --name 'Buddy List' windowactivate --sync
call returned: [1, "", "X Error of failed request:  BadWindow (invalid Window parameter)\n  Major opcode of failed request:  20 (X_GetProperty)\n  Resource id in failed request:  0x16000b9\n  Serial number of failed request:  58\n  Current serial number in output stream:  58\n"]
calling as amnesia: xdotool set_desktop '3'
call returned: [0, "", ""]
calling as amnesia: xdotool set_desktop '0'
call returned: [0, "", ""]
calling as amnesia: xdotool search --name 'Buddy List' windowactivate --sync
call returned: [0, "", ""]
    Then Pidgin automatically enables my XMPP account                              # features/step_definitions/pidgin.rb:76
calling as amnesia: xdotool search --name 'Buddy List' windowactivate --sync
call returned: [0, "", ""]
    Given my XMPP friend goes online                                               # features/step_definitions/pidgin.rb:81
INFO:jabberbot:bot connected. serving forever.
calling as amnesia: xdotool search --name 'Buddy List' windowactivate --sync
call returned: [0, "", ""]
    When I start a conversation with my friend                                     # features/step_definitions/pidgin.rb:96
calling as amnesia: xdotool search --name 'testtailslizard2' windowactivate --sync
call returned: [0, "", ""]
g
"
DEBUG:potr.context:'ping'
DEBUG:jabberbot:*** props = [u'http://jabber.org/protocol/chatstates', u'jabber:client']
DEBUG:jabberbot:*** jid = testtailslizard1@riseup.net/5f47cb2f-d54f-48ee-a13d-17b2e4655b9a
DEBUG:jabberbot:*** username = testtailslizard1
DEBUG:jabberbot:*** type = chat
DEBUG:jabberbot:*** text = ping
INFO:jabberbot:Ignoring message from unseen guest: testtailslizard1@riseup.net/5f47cb2f-d54f-48ee-a13d-17b2e4655b9a
DEBUG:jabberbot:I've seen: []
    And I say something to my friend                                               # features/step_definitions/pidgin.rb:112
calling as amnesia: xdotool search --name 'testtailslizard2' windowactivate --sync
call returned: [0, "", ""]
    Then I receive a response from my friend                                       # features/step_definitions/pidgin.rb:124
      FindFailed: can not find PidginFriendExpectedAnswer.png on the screen.
      Line ?, in File ? (RuntimeError)
      features/pidgin.feature:21:in `Then I receive a response from my friend'
      Scenario failed at time 01:38:37

      Screenshot: https://jenkins.tails.boum.org/job/test_Tails_ISO_test-10497-tor-bootstrap-is-fragile/12/artifact/build-artifacts/01:38:37_Chatting_with_some_friend_over_XMPP.png

      Video: https://jenkins.tails.boum.org/job/test_Tails_ISO_test-10497-tor-bootstrap-is-fragile/12/artifact/build-artifacts/01:38:37_Chatting_with_some_friend_over_XMPP.mkv

Video attached.


Files


Subtasks


History

#1 Updated by intrigeri 2016-05-20 18:49:07

  • Feature Branch set to test/11453-chatting-with-some-friend-over-xmpp-is-fragile

#2 Updated by intrigeri 2019-08-30 10:25:09

  • Affected tool set to Instant Messaging

#3 Updated by intrigeri 2019-08-30 13:18:15

  • Status changed from Confirmed to In Progress

Applied in changeset commit:tails|639900dd18368d7c34dd7fe4b3c0e52d9d06a5ef.

#4 Updated by intrigeri 2019-08-30 13:31:39

  • Status changed from In Progress to Needs Validation
  • Assignee set to hefee
  • Target version set to Tails_4.0
  • Feature Branch changed from test/11453-chatting-with-some-friend-over-xmpp-is-fragile to https://salsa.debian.org/tails-team/tails/merge_requests/33

#5 Updated by Anonymous 2019-08-30 14:19:03

  • Status changed from Needs Validation to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:tails|a7ca22afb536e8936727d1e681baa6140cc95f37.