语言

Menu
Sites
Language
Anything equivalent to Android's WindowManager.InjectKeyEvent available in Tizen?

Hi All,

I am looking to develop test tool similar to Android's monkey tool on Tizen. From my understanding of monkeytool, it uses several private interfaces to communicate with three essential system services:

  1. Package Manager: To get a list of Activities for a given Intent. This enables Monkey to randomly switch between Activities while testing an application.
  2. Activity Manager: To get complete control over the activity life-cycle for the duration of the test.
  3. Window Manager: Monkey calls a series of functions on the Window Manager to inject events into the application. This enables Monkey to simulate touches and key-presses.

I would like to know the equivalents of these services on Tizen? Do we have it on Tizen? If yes, please point me to the source code. Anything equivalent to InjectKeyEvent?

Any inputs or information is appreciated.

Thanks in advance.

响应

1 回复
Alex Ashirov

Hi,

You can use Tizen::Ui::SystemUtil class in order to generate key and touch events. But please note that this API requires Platform privileges.

https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.apireference%2FclassTizen_1_1Ui_1_1SystemUtil.html