~carla-sella/reminders-app/new-reminders-app-tests

« back to all changes in this revision

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

  • Committer: Carla Sella
  • Date: 2014-03-17 20:14:02 UTC
  • Revision ID: carla.sella@gmail.com-20140317201402-wlvwa1i8lyv93oxh
Pushing changes for Ballons.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
            #disabling for now
70
70
            #self.addCleanup(os.system("start maliit-server"))
71
71
 
72
 
        #if os.path.exists(self.local_location):
73
 
            #self.launch_test_local()
74
 
        #elif os.path.exists(self.installed_location):
75
 
            #self.launch_test_installed()
76
 
        #else:
77
 
            #self.launch_test_click()
78
 
 
79
72
        if os.path.exists(self.installed_location):
80
73
            self.launch_test_installed()
81
74
        else:
82
 
            self.launch_test_click()
 
75
            self.launch_test_local()
 
76
            #self.launch_test_click()
83
77
 
84
78
    def launch_test_local(self):
85
79
        self.app = self.launch_test_application(
86
 
            base.get_qmlscene_launch_command(),
87
 
            "-I", get_module_include_path(),
 
80
#            base.get_qmlscene_launch_command(),
 
81
            "../../builddir/src/app/reminders",
 
82
            "-I", "../../builddir/src/plugin/",
88
83
            self.local_location,
89
84
            "--desktop_file_hint=/home/phablet/reminders/"
90
85
            "reminders-app.desktop",
93
88
 
94
89
    def launch_test_installed(self):
95
90
        self.app = self.launch_test_application(
96
 
            base.get_qmlscene_launch_command(),
97
 
            self.installed_location,
 
91
            "reminders",
98
92
            "--desktop_file_hint=/usr/share/applications/"
99
93
            "reminders.desktop",
100
94
            app_type='qt',