Closed Bug 1170941 Opened 9 years ago Closed 9 years ago

[v2.2][Gaia::UI Tests]test_sms_with_picture_attached.py: "TimeoutException: TimeoutException: Timed out after 301.6 seconds"

Categories

(Firefox OS Graveyard :: Gaia::UI Tests, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v2.2 affected)

RESOLVED FIXED
Tracking Status
b2g-v2.2 --- affected

People

(Reporter: liuke, Assigned: cynthiatang)

References

()

Details

Attachments

(3 files, 1 obsolete file)

[Description]
test_sms_with_picture_attached.py fails

[Steps to Reproduce]
Run the test_sms_with_picture_attached.py

[Reproduction Frequency]
Always, 5/5

[Reproducible manually]
NO

Traceback (most recent call last):
  File "/var/lib/jenkins/workspace/B2G.v2.2.pvt.flame.gaiatest.smoketest/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/marionette_client_mozilla_b2g37_v2_2-0.1-py2.7.egg/marionette/marionette_test.py", line 268, in run
    testMethod()
  File "/var/lib/jenkins/workspace/B2G.v2.2.pvt.flame.gaiatest.smoketest/tests/python/gaia-ui-tests/gaiatest/tests/functional/messages/test_sms_with_picture_attached.py", line 69, in test_sms_cropped_picture
    self.message_thread.wait_for_received_messages(timeout=300)
  File "/var/lib/jenkins/workspace/B2G.v2.2.pvt.flame.gaiatest.smoketest/tests/python/gaia-ui-tests/gaiatest/apps/messages/regions/message_thread.py", line 27, in wait_for_received_messages
    *self._received_message_content_locator))))
  File "/var/lib/jenkins/workspace/B2G.v2.2.pvt.flame.gaiatest.smoketest/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/marionette_client_mozilla_b2g37_v2_2-0.1-py2.7.egg/marionette/wait.py", line 143, in until
    cause=last_exc)
TimeoutException: TimeoutException: Timed out after 301.6 seconds

[Build info]
Device firmware (base) 	L1TC100118D0
Device firmware (date) 	02 Jun 2015 15:42:50
Device firmware (incremental) 	eng.cltbld.20150602.034241
Device firmware (release) 	4.4.2
Device identifier 	flame
Gaia date 	01 Jun 2015 21:53:00
Gaia revision 	a675e5472944
Gecko build 	20150602002504
Gecko revision 	c163c2a5b921
Gecko version 	37.0

[Attachments]
http://mozilla-twqa.github.io/Gaiatest-Reports/2015/06/20150602002504-v2.2-flame/smoketest.html
This test was just fixed in bug 1166330, but this appears to be a problem with receiving an sms message after having sent one.
The screenshot makes it also look like nothing has been received. So I guess this was a Plivo malfunction?
Hi Martijn,
The result is passed if I keep attachment_options.tap_cancel() in test_sms_with_picture_attached.py.
Flags: needinfo?(martijn.martijn)
(In reply to Cynthia Tang [:cynthiatang] from comment #2)
> Hi Martijn,
> The result is passed if I keep attachment_options.tap_cancel() in
> test_sms_with_picture_attached.py.

Cynthia, what are you asking me? You want to add attachment_options.tap_cancel() to the test? Why would that pass the test and why would that be a good idea? The SMS would then not be sent, no?
So this test is still passing on master?
I wonder if there is a relation with bug 1169680 here.
Flags: needinfo?(martijn.martijn) → needinfo?(ctang)
Hi Martijn,
I think the behavior is different. 

The SMS would be sent. This test with tapping?
 >> Yes, the SMS would be sent.
So this test is still passing on master?
 >> No. Your patch is fine for master.   

1) Launch Messages app
2) Compose new message and tap paperclip to attach image from gallery
3) Crop image on image crop screen and press done
4) Tap attached image and select view 
5) Tap back button

After tapping back button, you can see that 
* Flame 2.2: User have to tap back button. Please refer the attachment[2.2] After tapping back button
* Flame Master: User don't need a cancel button. Please refer the attachment [Master] After tapping back button
Flags: needinfo?(ctang)
Hi Jenny,
Could you please help us to clarify the user story for SMS on v2.2? Thank you.
Flags: needinfo?(jelee)
(In reply to Martijn Wargers [:mwargers] (QA) from comment #3)
> (In reply to Cynthia Tang [:cynthiatang] from comment #2)
> > Hi Martijn,
> > The result is passed if I keep attachment_options.tap_cancel() in
> > test_sms_with_picture_attached.py.
> 
> Cynthia, what are you asking me? You want to add
> attachment_options.tap_cancel() to the test? Why would that pass the test
> and why would that be a good idea? The SMS would then not be sent, no?
> So this test is still passing on master?
> I wonder if there is a relation with bug 1169680 here.

Ah, never mind. You asked me to merge the v2.2 pull request for 
bug 1166330 , but that one included the deletion of attachment_options.tap_cancel(). You also have a pull request in bug 1166632. That didn't include the deletion of attachment_options.tap_cancel(). That one should have been merged.
In any case, you can easily fix this by re-adding attachment_options.tap_cancel() to the test.
(In reply to Cynthia Tang [:cynthiatang] from comment #6)
> Hi Jenny,
> Could you please help us to clarify the user story for SMS on v2.2? Thank
> you.

Hi Cynthia,

The behavior on master is correct. The reason is that SMS developer has made some code structure changes, so tapping on "back" will close the menu altogether, thanks!
Flags: needinfo?(jelee)
Hi Martijn,
Could you please review it again? Thank you.

Hi Jenny,
Thanks for your explain.
Attachment #8616539 - Flags: review?(martijn.martijn)
Assignee: nobody → ctang
Attachment #8616539 - Flags: review?(martijn.martijn) → review+
Hi Martijn,
Could you please review and merge it? Thank you.

Running tests
https://treeherder.mozilla.org/#/jobs?repo=gaia&revision=2ab397fa067b12f37f8bb5ab580ece4528b7604f
Attachment #8617077 - Flags: review?(martijn.martijn)
Attachment #8617077 - Flags: review?(martijn.martijn) → review+
Attachment #8616539 - Attachment is obsolete: true
Merged: https://github.com/mozilla-b2g/gaia/commit/1a4a3fd78e4cd628652685c4f56551ee307506b1
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: