~canonical-platform-qa/ubuntu-system-tests/trunk

« back to all changes in this revision

Viewing changes to ubuntu_system_tests/helpers/scopes/base.py

  • Committer: Tarmac
  • Author(s): Sergio Cazzolato
  • Date: 2016-02-10 14:20:31 UTC
  • mfrom: (277.4.26 base_test_refactor)
  • Revision ID: tarmac-20160210142031-j2py2zg1d6yi4tdg
Refactoring base test class and autopilot helpers. The idea is to reduce the tests/base and autopilot.py files length.

First step is implemented. For that different methods were move mainly to autopilot helper and this helper was split in different files.

The second part which is pushed and within it all the methods to launch and close apps are moved to the helpers.

Approved by PS Jenkins bot, Richard Huddie.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
from autopilot import exceptions
24
24
from collections import namedtuple
25
25
from unity8 import dash as unity8_dash
26
 
 
27
 
from ubuntu_system_tests.helpers.autopilot import order_by_y_coord
 
26
from ubuntu_system_tests.helpers.autopilot.list import order_by_y_coord
28
27
from ubuntu_system_tests.helpers.ubuntuuitoolkit.pageheader import (
29
 
    DashPageHeader
30
 
)
31
 
from ubuntu_system_tests.helpers import timer
 
28
    DashPageHeader)
32
29
from ubuntu_system_tests.helpers.unity8 import get_dash
33
30
from ubuntu_system_tests.helpers.url_dispatcher import go_to_url
34
31
 
75
72
        x, y, width, height = icon.globalRect
76
73
        self.pointing_device.move(x + 1, y + 1)
77
74
        self.pointing_device.click(press_duration=press_duration)
78
 
        timer.start(timer.LAUNCH_ID)
79
75
 
80
76
    def _get_data_from_object(self, object):
81
77
        """