unity8-autopilot is missing an emulator for app management

Bug #1261720 reported by Ugo Riboni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity8 (Ubuntu)
Triaged
High
Unassigned

Bug Description

Currently there is no way in an autopilot test to request to the shell to close an application cleanly (i.e. in the same way that the user would close it).

It would be useful to add an emulator allowing to perform such an action that could be imported by other tests, in the same spirit as the emulator already existing in the UITK to do things like bringing up a toolbar.

Revision history for this message
Gerry Boland (gerboland) wrote :

The use-case for this particular requirement is for apps to test their state saving logic.

I would propose the idea that unity8 supplies a package with AP helpers, containing methods for an application's AP test to control the shell, so an app can be started from the launcher, focused/unfocused, closed etc. These would be most useful for application authors to write their own integration tests.

Revision history for this message
Olivier Tilloy (osomon) wrote :

> These would be most useful for application authors to write
> their own integration tests.

Seconded.

Changed in unity8:
status: New → Confirmed
Michał Sawicz (saviq)
summary: - add to unity8-autopilot emulator for closing apps
+ add to unity8-autopilot emulator for app management
Changed in unity8:
status: Confirmed → Triaged
importance: Undecided → High
summary: - add to unity8-autopilot emulator for app management
+ unity8-autopilot is missing an emulator for app management
Michał Sawicz (saviq)
Changed in unity8 (Ubuntu):
importance: Undecided → High
status: New → Triaged
Michał Sawicz (saviq)
no longer affects: unity8
kevin gunn (kgunn72)
Changed in unity8 (Ubuntu):
assignee: nobody → Ying-Chun Liu (paulliu)
kevin gunn (kgunn72)
Changed in unity8 (Ubuntu):
assignee: Ying-Chun Liu (paulliu) → nobody
Revision history for this message
Richard Huddie (rhuddie) wrote :

In the ubuntu-system-tests project we have recently added some autopilot helpers for doing exactly this using the right-edge task manager:
http://bazaar.launchpad.net/~canonical-platform-qa/ubuntu-system-tests/trunk/view/head:/ubuntu_system_tests/helpers/unity8/phone_stage.py

This helper allows tests to switch tasks and close them exactly as a user would do, example tests here:
http://bazaar.launchpad.net/~canonical-platform-qa/ubuntu-system-tests/trunk/view/head:/ubuntu_system_tests/tests/test_app_switcher.py

These helpers could be re-used for this task.

Changed in unity8 (Ubuntu):
assignee: nobody → Josh Arenson (josharenson)
Changed in unity8 (Ubuntu):
assignee: Josh Arenson (josharenson) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.