~ps-jenkins/cordova-ubuntu-tests/latestsnapshot-2.11+14.04.20140130.3-0ubuntu1

« back to all changes in this revision

Viewing changes to tests/autopilot/cordova_ubuntu/tests/__init__.py

  • Committer: Tarmac
  • Author(s): Robert Bruce Park
  • Date: 2013-11-07 21:46:35 UTC
  • mfrom: (28.1.4 keep-screen-on)
  • Revision ID: tarmac-20131107214635-2237v9iva1wuwdfu
Move the mouse around to keep the screen awake.

Approved by Robert Bruce Park, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
class CordovaUbuntuTestCase(AutopilotTestCase):
23
23
    """ Base class for Cordova Ubuntu Test Cases """
 
24
    pointer = Pointer(Touch.create())
24
25
    LOCAL_CORDOVA_CONTAINER_PATH = os.path.abspath("%s/%s" % (os.path.dirname(os.path.realpath(__file__)),
25
26
        '../../tools/qml/main-local.qml'))
26
27
    INSTALLED_CORDOVA_CONTAINER_PATH = '/usr/share/cordova-ubuntu-tests/autopilot-tests/qml/main.qml'
53
54
 
54
55
    def tearDown(self):
55
56
        super(CordovaUbuntuTestCase, self).tearDown()
 
57
        # Twiddle the mouse to keep the screen awake during testing.
 
58
        self.pointer.move(150,150)
 
59
        self.pointer.click()
56
60
 
57
61
    def pick_app_launcher(self, app_path):
58
62
        """ Force Qt app introspection """