Oh, and the latest API for Marionette is available here: https://marionette_client.readthedocs.org/en/latest/, and all these methods are usable within the gaiatest framework

On 2013-11-08 10:57 AM, Malini Das wrote:
Orangutan will dispatch hardware events but at a particular coordinate, so you'll need to update your orangutan script with new coordinates if the UI changes.

Marionette is a more robust automation tool, allowing you to find particular DOM elements and dispatching events against them. So, for instance, you can find a particular DOM element on the screen and tap it, without having to know its coordinates. Since you're testing Gaia applications, I recommend using the 'gaiatest' framework (which uses Marionette as the driver for actions): https://github.com/mozilla-b2g/gaia/tree/master/tests/python/gaia-ui-tests/gaiatest. The gaiatest framework adds Gaia specific functionality and helper methods to Marionette, such as the ability to launch an application.

Here's an example browser test written using the gaiatest framework: https://github.com/mozilla-b2g/gaia/blob/master/tests/python/gaia-ui-tests/gaiatest/tests/functional/browser/test_browser_navigation.py

You can look around https://github.com/mozilla-b2g/gaia/blob/master/tests/python/gaia-ui-tests/gaiatest/tests/ to see the full repository of tests using gaiatest.

FYI, the use case of Orangutan is when you need to dispatch *hardware* level events. Marionette does not send hardware level events, it instead bypasses this and sends touch events (DOM level events). Chances are, you don't really need to dispatch hardware level events, so Marionette should be fine. You only need to dispatch hardware level events if you're testing the hardware to DOM event dispatching, or for performance measuring.

On 2013-11-08 5:43 AM, Gary Kwong wrote:
Hi Sami,

Orangutan can help you to launch Firefox at the requested coordinates by using the "TAP" syntax. To do so, you'll have to run a script that has this TAP command with the required coordinates on the phone after pushing the orangutan binary to it.

An alternative may possibly be to use Marionette instead, but Malini (cc'ed) may be a better person to help you out here.

Regards,
-Gary


On 11/8/13 2:40 AM, Alan Huang wrote:
Copy Gary.

Hi Sami,

There's a tool, orangutan can help you on the "/using the 'input keyevent' functionality/" question. You can find the tool and its README in below:
https://github.com/mozilla-b2g/orangutan

For the second question, we cannot use "am" command in FxOS. But I know we have some automation tools to do thing like what you want. Maybe Gary can provide you some information here.
>> /Also How to run the Firefox Application from ADB command prompt?./
>> /In Android 'am' to launch the Application./


Alan Huang
Mozilla Taiwan

Tel: +886-2-87861100 # 355
mail: [email protected]

------------------------------------------------------------------------
*From: *"s x veerapandian" <[email protected]>
*To: *[email protected]
*Sent: *Friday, November 8, 2013 3:03:57 PM
*Subject: *[b2g] Automated Script for Launch Application in Firefox

Hi

I need to develop the Automated test script to run the Firefox Applications continuously.

Like {Make Call -> Launch Camera -> Open Gallery -> Stop Voice Call}.

In Android, I could do using the 'input keyevent' functionality.

I am expecting similar kind feature available in the Firefox.



Also How to run the Firefox Application from ADB command prompt?.

In Android 'am' to launch the Application.




Thanks.
Sami.

________________________________

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy. .
______________________________________________________________________________________

www.accenture.com
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g




--
- Malini Das


--
- Malini Das

_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to