Closed
Bug 892257
Opened 12 years ago
Closed 12 years ago
[marionette-js-client] Implement new action chain marionette apis
Categories
(Firefox OS Graveyard :: General, defect)
Firefox OS Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jlal, Assigned: evanxd)
References
Details
(Whiteboard: [FT: Productivity], [Sprint: 1])
Attachments
(2 files)
Should directly mirror the python api https://mxr.mozilla.org/mozilla-central/source/testing/marionette/client/marionette/marionette.py#104.
Reporter | ||
Comment 1•12 years ago
|
||
Hey Evan,
Here is more docs for the existing marionette js client functionality:
https://github.com/mozilla-b2g/marionette_js_client
Take a look let me know what you think.
Flags: needinfo?(evanxd)
Updated•12 years ago
|
Component: General → Gaia::Clock
Comment 2•12 years ago
|
||
A Pivotal Tracker story has been created for this Bug: http://www.pivotaltracker.com/story/show/53204465
Updated•12 years ago
|
Component: Gaia::Clock → General
Comment 3•12 years ago
|
||
Dylan Oliver deleted the linked story in Pivotal Tracker
Reporter | ||
Comment 4•12 years ago
|
||
Reporter | ||
Comment 5•12 years ago
|
||
To be clear we want to implement the functionality from Actions and MultiActions.
Quick code example:
var action = new Marionette.Action();
action.press(element).move(element).wait(3).release();
We should define the entire API first but it should be fairly clear as long as we follow the python examples.
Assignee | ||
Updated•12 years ago
|
Flags: needinfo?(evanxd)
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → evanxd
Assignee | ||
Comment 6•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Attachment #779203 -
Attachment mime type: text/x-log → text/plain
Assignee | ||
Comment 7•12 years ago
|
||
Hi James,
It is the WIP patch https://github.com/evanxd/marionette_js_client/commit/8bfba0b51f3539480c6436134dc16776ce88b50c. The implementation, testing, and documentation of Actions is done.
But I have problems with MultiActions implementations.
The MultiActions cannot work in B2G desktop build client.
It always showed the below errors:
https://bug892257.bugzilla.mozilla.org/attachment.cgi?id=779203
And we could use the below example for seeing the errors:
https://github.com/evanxd/marionette_js_client/blob/8bfba0b51f3539480c6436134dc16776ce88b50c/playground/multi-actions.js.
And I am working on this issue. If you know the clues for fixing it, please help me.
Thanks. :)
Flags: needinfo?(jlal)
Reporter | ||
Comment 8•12 years ago
|
||
Evan this looks awesome! I will try to figure out what the error is...
The only other thing I would like to see is an "integration" test (see test/integration) that actually starts a b2g-desktop instance and runs a set of actions.
Flags: needinfo?(jlal)
Reporter | ||
Comment 9•12 years ago
|
||
Interesting looks like marionette throws an error for me?
error:
{ message: 'doc.createTouch is not a function',
stacktrace: 'createATouch@chrome://marionette/content/marionette-listener.js:781\nsetDispatch@chrome://marionette/content/marionette-listener.js:966\nmultiAction@chrome://marionette/content/marionette-listener.js:1052\n' } }
Comment 10•12 years ago
|
||
See bug 890079, sounds like a similar issue.
Assignee | ||
Comment 11•12 years ago
|
||
Hi all,
The issue in Comment 8 is due to Marionette server side in B2G desktop client.
The MultiActions APIs could run correctly with using real device.
And the Marionette Python Client also has the issue when we use B2G desktop client.
We already filed a bug for that in https://github.com/mozilla/gaia-ui-tests/issues/1137.
Assignee | ||
Comment 12•12 years ago
|
||
Hi James,
I already the integration test for the Actions module.
Please help me review the patch.
Thanks. :)
Attachment #780410 -
Flags: review?(jlal)
Assignee | ||
Updated•12 years ago
|
Attachment #780410 -
Attachment description: pull-request.html → The pull request
Reporter | ||
Comment 13•12 years ago
|
||
Comment on attachment 780410 [details]
The pull request
r=me looks fantastic!
We might want some more docs on how to use these things in the future but that will probably define itself as we use the api to write real tests.
Attachment #780410 -
Flags: review?(jlal) → review+
Reporter | ||
Comment 14•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 15•12 years ago
|
||
Hi James,
OK, I got it.
Thanks. :)
Comment 16•12 years ago
|
||
Dylan Oliver changed story state to accepted in Pivotal Tracker
Updated•12 years ago
|
Whiteboard: [FT: Productivity], [Sprint: 1]
You need to log in
before you can comment on or make changes to this bug.
Description
•