Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
jwalseth
Posts: 16
Registered: ‎07-13-2011
My Device: BlackBerry Monaco
My Carrier: Verizon

Injecting touch events for test apps

Any suggestion for injecting screen\touch events under QNX/Playbook OS (for test automation)? We'd like to simulate swipe, pinch etc, as well as basic pointer up/down.  thanks.

Please use plain text.
Developer
superdirt
Posts: 541
Registered: ‎05-17-2009
My Device: Not Specified

Re: Injecting touch events for test apps

Check out:

screen_send_event()

 

Scott

Please use plain text.
Contributor
jwalseth
Posts: 16
Registered: ‎07-13-2011
My Device: BlackBerry Monaco
My Carrier: Verizon

Re: Injecting touch events for test apps

Thanks Scott, great suggestion.  Does anyone have experience with this?  Or, is there any documentation for screen API at this time?

 

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Injecting touch events for test apps

Look under Screen and Windowing API at left on this page: https://bdsc.webapps.blackberry.com/native/reference


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Contributor
bryanh99
Posts: 43
Registered: ‎06-30-2012
My Device: Bold 9900
My Carrier: T-Mobile

Re: Injecting touch events for test apps

Has anyone done this yet?

 

Please use plain text.