"Chatting with some friend over XMPP" test is fragile
Originally created by @intrigeri on #11453 (Redmine)
@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.
Feature Branch: https://salsa.debian.org/tails-team/tails/merge_requests/33
Attachments
Parent Task: #10288 (closed)
Edited by intrigeri