Simulating multi touch or multi taps on a View

42 views
Skip to first unread message

Iceman

unread,
Nov 26, 2015, 11:33:17 AM11/26/15
to Robotium Developers
Just wondering if it's possible for me to register a two finger tap i.e, simultaneous tap of two fingers on an android view. I have an app which responds to this gesture and I'm wondering how to test it. I also have an action that occurs on 3 finger tap, so wondering if there is an API to register the number of simultaneous taps like a clickOnView(.. , number of simultaneous taps). Does anyone have any ideas on how to achieve this?


Renas

unread,
Nov 27, 2015, 8:21:05 AM11/27/15
to robotium-...@googlegroups.com
You can use Illustrate. Example of its usage:

public void illustrate(Illustration illustration)
Simulate drawing an illustration on the screen. 

Example of usage:
 
        Illustration.Builder builder = solo.createIllustrationBuilder();
        builder.addPoint(200, 20000, MotionEvent.TOOL_TYPE_FINGER);
        builder.addPoint(1000, 1500, MotionEvent.TOOL_TYPE_FINGER);
        Illustration illustration = builder.build();
        solo.illustrate(illustration);

On Thu, Nov 26, 2015 at 8:25 AM, Iceman <rahul...@gmail.com> wrote:
Just wondering if it's possible for me to register a two finger tap i.e, simultaneous tap of two fingers on an android view. I have an app which responds to this gesture and I'm wondering how to test it. I also have an action that occurs on 3 finger tap, so wondering if there is an API to register the number of simultaneous taps like a clickOnView(.. , number of simultaneous taps). Does anyone have any ideas on how to achieve this?


--
You received this message because you are subscribed to the Google Groups "Robotium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotium-develo...@googlegroups.com.
To post to this group, send email to robotium-...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotium-developers.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages