Closed Bug 1004348 Opened 10 years ago Closed 6 years ago

Intermittent failing test, manipulate app permissions set geolocation of first app to Grant

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect)

x86
macOS
defect
Not set
normal

Tracking

(tracking-b2g:backlog)

RESOLVED WONTFIX
tracking-b2g backlog

People

(Reporter: kgrandon, Unassigned)

References

Details

(Keywords: leave-open)

Attachments

(1 file)

manipulate app permissions set geolocation of first app to Grant:

NoSuchElement: (7) Unable to locate element: .app-list a

Remote Stack:

<none>

at Error.MarionetteError (/home/travis/build/mozilla-b2g/gaia/node_modules/marionette-client/lib/marionette/error.js:67:13)

at Object.Client._handleCallback (/home/travis/build/mozilla-b2g/gaia/node_modules/marionette-client/lib/marionette/client.js:476:19)

at /home/travis/build/mozilla-b2g/gaia/node_modules/marionette-client/lib/marionette/client.js:510:21

at TcpSync.send (/home/travis/build/mozilla-b2g/gaia/node_modules/marionette-client/lib/marionette/drivers/tcp-sync.js:100:10)

at Object.send (/home/travis/build/mozilla-b2g/gaia/node_modules/marionette-client/lib/marionette/client.js:457:36)

at Object.Client._sendCommand (/home/travis/build/mozilla-b2g/gaia/node_modules/marionette-client/lib/marionette/client.js:503:19)

at Object._findElement (/home/travis/build/mozilla-b2g/gaia/node_modules/marionette-client/lib/marionette/client.js:1303:19)

at Object.findElement (/home/travis/build/mozilla-b2g/gaia/node_modules/marionette-client/lib/marionette/client.js:1352:32)

at Object.MarionetteHelper.waitForElement (/home/travis/build/mozilla-b2g/gaia/node_modules/marionette-helper/index.js:139:19)

at Object.Base.waitForElement (/home/travis/build/mozilla-b2g/gaia/apps/settings/test/marionette/app/base.js:47:31)

at Object.AppPermissionPanel.enterPermissionDetail (/home/travis/build/mozilla-b2g/gaia/apps/settings/test/marionette/app/regions/app_permission.js:40:22)

at Context.<anonymous> (/home/travis/build/mozilla-b2g/gaia/apps/settings/test/marionette/tests/app_permission_settings_test.js:17:24)

at callFn (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runnable.js:223:21)

at Test.Runnable.run (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runnable.js:216:7)

at Runner.runTest (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:374:10)

at /home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:452:12

at next (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:299:14)

at /home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:309:7

at next (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:247:23)

at /home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:271:7

at done (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runnable.js:185:5)

at callFn (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runnable.js:228:7)

at Hook.Runnable.run (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runnable.js:216:7)

at next (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:259:10)

at /home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:271:7

at done (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runnable.js:185:5)

at /home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runnable.js:199:9

at Object.executeHook (/home/travis/build/mozilla-b2g/gaia/node_modules/marionette-client/lib/marionette/client.js:369:18)

at process._tickCallback (node.js:415:13)
ni? so you are aware..
Flags: needinfo?(gduan)
Attached file PR to master
Hi Arthur,
I put my fix to github and run test for 100 times and pass.
Could you check again? Thanks.

https://travis-ci.org/mozilla-b2g/gaia/builds/25948364
Attachment #8428374 - Flags: review?(arthur.chen)
Flags: needinfo?(gduan)
Comment on attachment 8428374 [details] [review]
PR to master

The failure seems come from this line: https://github.com/mozilla-b2g/marionette-helper/blob/master/index.js#L142. If it does not get the element in the first time, it fails directly. This does not make sense as it should always wait for the element.

George, could you help open a bug for this issue and set the dependency? Thanks!
Attachment #8428374 - Flags: review?(arthur.chen)
Hi George,

I think we could try to set bigger search timeout, like 60 seconds. The issue might be fixed.
I tried to extend search timeout but we still have 4% failure.
see https://travis-ci.org/mozilla-b2g/gaia/builds/26110165

(In reply to Evan Tseng [:evanxd][:愛聞插低] from comment #5)
> Hi George,
> 
> I think we could try to set bigger search timeout, like 60 seconds. The
> issue might be fixed.
I also tried to print out log when 
1. before append dom
2. after append dom
3. before waitForElement
4. after waitForElement 
https://github.com/cctuan/gaia/commit/781f99fc09ce13e7fd5c73115a9d7b10f3e1ea7a


https://travis-ci.org/mozilla-b2g/gaia/builds/26191251

the only failure has lost log 1 and 2.
After https://github.com/mozilla-b2g/gaia/pull/19751 is landed, the issues might be fixed.
Assignee: nobody → scwwu
Assignee: scwwu → nobody
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: