Re: A philosophical question about ISO testing

2016-01-03 Thread Alberto Salvia Novella

Router:

Should there be a separate test case for flash drive installs? or EUFI
installs?


Since the result could be different, it should.


-- 
Ubuntu-quality mailing list
Ubuntu-quality@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-quality


Re: Question

2013-10-14 Thread Jackson Doak
I'm not 100% sure, since i've never done much autopilot (i don't know
any C and barely any python)

On Mon, Oct 14, 2013 at 5:05 PM, mss-devel mss.de...@gmail.com wrote:
 To run an autopilot test, zeitgeist must be installed on my computer? Thanks

-- 
Ubuntu-quality mailing list
Ubuntu-quality@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-quality


Noobie question

2013-07-08 Thread Cecil New
Hi, I'm learning how to use autopilot and wanted to interrogate a value.

This involves the calendar app. Here is the output, followed by what I
tried. Where did I go wrong?

  File
/home/cecil/Workspace/ubuntu-calendar-app/tests/autopilot/calendar_app/tests/test_calendar_current_day_of_month.py,
line 30, in test_day_of_month
print intern.today
AttributeError: 'NoneType' object has no attribute 'today'

In the emulator dir, I added this to main_window.py:

   def get_intern(self):

return self.app.select_single(intern)


In the tests dir, I created this new test:

... elided ...

class TestDayOfMonth(CalendarTestCase):

def setUp(self):

super(TestDayOfMonth, self).setUp()

self.assertThat(

self.main_window.get_qml_view().visible, Eventually(Equals(True)))

def tearDown(self):

super(TestDayOfMonth, self).tearDown()


def test_day_of_month(self):

intern = self.main_window.get_intern()

print intern.today


What I'm trying to see is in MonthView.qml starting around line 89:

QtObject {

id: intern


property int squareUnit: monthView.width / 8

property int verticalMargin: units.gu(1)

property int weekstartDay: Qt.locale().firstDayOfWeek

property int monthCount: 49 // months for +-2 years


property var today: (new Date()).midnight() // TODO: update at midnight

property var currentDayStart: today

property int monthIndex0: Math.floor(monthCount / 2)

property var monthStart0: today.monthStart()

}
-- 
Ubuntu-quality mailing list
Ubuntu-quality@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-quality


Re: Introduction and Noobie question

2013-07-05 Thread Nicholas Skaggs
Welcome Cecil! Sorry you ran into this trouble! I'll help get the proper 
instructions updated on the pages you've linked. Your correct autopilot 
should be installed from the ppa, else you'll end up with an older 
version that doesn't work for our needs :-)


Thanks!

Nicholas

On 07/03/2013 08:08 PM, Cecil New wrote:
Found the answer. I found another person with a similar problem asking 
at:

http://askubuntu.com/questions/315996/autopilot-importerror-no-module-named-input/316103#316103

The message sounded like an installation problem. So re-installed 
using the directions and steps in my answer.


Suggest an update to FAQ
http://unity.ubuntu.com/autopilot/faq/faq.html#q-how-do-i-install-autopilot

Cheers.


On Wed, Jul 3, 2013 at 6:34 PM, Cecil New cecil@gmail.com 
mailto:cecil@gmail.com wrote:


Hi all, I'm Cecil and have volunteered to write test cases for
Ubuntu Touch.

I'm going thru the tutorial and the example didn't quite work.
Since I'm new to python, I thought send out a quick note... I'm
sure it's something simple.

Below is the output, followed by the test itself for easy
reference (I just copied and pasted from the tutorial).

Thanks for the help,
Cecil

*$ autopilot list example*
Loading tests from: /home/cecil/Workspace/autopilot

example.tests.test_window.MainWindowTitleTests.test_main_window_title_string


 1 total tests.
*$ autopilot run -v example*
Loading tests from: /home/cecil/Workspace/autopilot

Tests running...
18:22:10.000 INFO testcase:86 -

18:22:10.001 INFO testcase:87 - Starting test
example.tests.test_window.MainWindowTitleTests.test_main_window_title_string
18:22:10.575 DEBUG _X11:311 - Moving mouse to position 640,512
without animation.
18:22:10.716 ERROR testresult:23 - ERROR:
example.tests.test_window.MainWindowTitleTests.test_main_window_title_string
18:22:10.717 ERROR testresult:23 - traceback: {{{
Traceback (most recent call last):
  File
/home/cecil/Workspace/autopilot/example/tests/test_window.py,
line 20, in test_main_window_title_string
app_root = self.launch_application()
  File
/home/cecil/Workspace/autopilot/example/tests/test_window.py,
line 16, in launch_application
return self.launch_test_application(full_path, app_type='qt')
AttributeError: 'MainWindowTitleTests' object has no attribute
'launch_test_application'
}}}
==
ERROR:
example.tests.test_window.MainWindowTitleTests.test_main_window_title_string
--
_StringException: test-log: {{{
18:22:10.000 INFO testcase:86 -

18:22:10.001 INFO testcase:87 - Starting test
example.tests.test_window.MainWindowTitleTests.test_main_window_title_string
18:22:10.575 DEBUG _X11:311 - Moving mouse to position 640,512
without animation.
}}}

Traceback (most recent call last):
  File
/home/cecil/Workspace/autopilot/example/tests/test_window.py,
line 20, in test_main_window_title_string
app_root = self.launch_application()
  File
/home/cecil/Workspace/autopilot/example/tests/test_window.py,
line 16, in launch_application
return self.launch_test_application(full_path, app_type='qt')
AttributeError: 'MainWindowTitleTests' object has no attribute
'launch_test_application'


Ran 1 test in 0.720s
FAILED (failures=1)
$


*Here is the test code:*
*$ cat example/tests/test_window.py*
from autopilot.testcase import AutopilotTestCase
from os.path import abspath, dirname, join
from testtools.matchers import Equals

class MainWindowTitleTests(AutopilotTestCase):

def launch_application(self):
Work out the full path to the application and launch it.

This is necessary since our test application will not be
in $PATH.

:returns: The application proxy object.


full_path = abspath(join(dirname(__file__), '..', '..',
'testapp.py'))
return self.launch_test_application(full_path, app_type='qt')

def test_main_window_title_string(self):
The main window title must be 'Hello World'.
app_root = self.launch_application()
main_window = app_root.select_single('QMainWindow')

self.assertThat(main_window.windowTitle, Equals(Hello
World))
$






-- 
Ubuntu-quality mailing list
Ubuntu-quality@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-quality


Introduction and Noobie question

2013-07-03 Thread Cecil New
Hi all, I'm Cecil and have volunteered to write test cases for Ubuntu Touch.

I'm going thru the tutorial and the example didn't quite work. Since I'm
new to python, I thought send out a quick note... I'm sure it's something
simple.

Below is the output, followed by the test itself for easy reference (I just
copied and pasted from the tutorial).

Thanks for the help,
Cecil

*$ autopilot list example*
Loading tests from: /home/cecil/Workspace/autopilot


example.tests.test_window.MainWindowTitleTests.test_main_window_title_string


 1 total tests.
*$ autopilot run -v example*
Loading tests from: /home/cecil/Workspace/autopilot

Tests running...
18:22:10.000 INFO testcase:86 -

18:22:10.001 INFO testcase:87 - Starting test
example.tests.test_window.MainWindowTitleTests.test_main_window_title_string
18:22:10.575 DEBUG _X11:311 - Moving mouse to position 640,512 without
animation.
18:22:10.716 ERROR testresult:23 - ERROR:
example.tests.test_window.MainWindowTitleTests.test_main_window_title_string
18:22:10.717 ERROR testresult:23 - traceback: {{{
Traceback (most recent call last):
  File /home/cecil/Workspace/autopilot/example/tests/test_window.py, line
20, in test_main_window_title_string
app_root = self.launch_application()
  File /home/cecil/Workspace/autopilot/example/tests/test_window.py, line
16, in launch_application
return self.launch_test_application(full_path, app_type='qt')
AttributeError: 'MainWindowTitleTests' object has no attribute
'launch_test_application'
}}}
==
ERROR:
example.tests.test_window.MainWindowTitleTests.test_main_window_title_string
--
_StringException: test-log: {{{
18:22:10.000 INFO testcase:86 -

18:22:10.001 INFO testcase:87 - Starting test
example.tests.test_window.MainWindowTitleTests.test_main_window_title_string
18:22:10.575 DEBUG _X11:311 - Moving mouse to position 640,512 without
animation.
}}}

Traceback (most recent call last):
  File /home/cecil/Workspace/autopilot/example/tests/test_window.py, line
20, in test_main_window_title_string
app_root = self.launch_application()
  File /home/cecil/Workspace/autopilot/example/tests/test_window.py, line
16, in launch_application
return self.launch_test_application(full_path, app_type='qt')
AttributeError: 'MainWindowTitleTests' object has no attribute
'launch_test_application'


Ran 1 test in 0.720s
FAILED (failures=1)
$


*Here is the test code:*
*$ cat example/tests/test_window.py*
from autopilot.testcase import AutopilotTestCase
from os.path import abspath, dirname, join
from testtools.matchers import Equals

class MainWindowTitleTests(AutopilotTestCase):

def launch_application(self):
Work out the full path to the application and launch it.

This is necessary since our test application will not be in $PATH.

:returns: The application proxy object.


full_path = abspath(join(dirname(__file__), '..', '..',
'testapp.py'))
return self.launch_test_application(full_path, app_type='qt')

def test_main_window_title_string(self):
The main window title must be 'Hello World'.
app_root = self.launch_application()
main_window = app_root.select_single('QMainWindow')

self.assertThat(main_window.windowTitle, Equals(Hello World))
$
-- 
Ubuntu-quality mailing list
Ubuntu-quality@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-quality


Re: Introduction and Noobie question

2013-07-03 Thread Cecil New
Found the answer. I found another person with a similar problem asking at:
http://askubuntu.com/questions/315996/autopilot-importerror-no-module-named-input/316103#316103

The message sounded like an installation problem. So re-installed using the
directions and steps in my answer.

Suggest an update to FAQ
http://unity.ubuntu.com/autopilot/faq/faq.html#q-how-do-i-install-autopilot

Cheers.


On Wed, Jul 3, 2013 at 6:34 PM, Cecil New cecil@gmail.com wrote:

 Hi all, I'm Cecil and have volunteered to write test cases for Ubuntu
 Touch.

 I'm going thru the tutorial and the example didn't quite work. Since I'm
 new to python, I thought send out a quick note... I'm sure it's something
 simple.

 Below is the output, followed by the test itself for easy reference (I
 just copied and pasted from the tutorial).

 Thanks for the help,
 Cecil

 *$ autopilot list example*
 Loading tests from: /home/cecil/Workspace/autopilot


 example.tests.test_window.MainWindowTitleTests.test_main_window_title_string


  1 total tests.
 *$ autopilot run -v example*
 Loading tests from: /home/cecil/Workspace/autopilot

 Tests running...
 18:22:10.000 INFO testcase:86 -
 
 18:22:10.001 INFO testcase:87 - Starting test
 example.tests.test_window.MainWindowTitleTests.test_main_window_title_string
 18:22:10.575 DEBUG _X11:311 - Moving mouse to position 640,512 without
 animation.
 18:22:10.716 ERROR testresult:23 - ERROR:
 example.tests.test_window.MainWindowTitleTests.test_main_window_title_string
 18:22:10.717 ERROR testresult:23 - traceback: {{{
 Traceback (most recent call last):
   File /home/cecil/Workspace/autopilot/example/tests/test_window.py,
 line 20, in test_main_window_title_string
 app_root = self.launch_application()
   File /home/cecil/Workspace/autopilot/example/tests/test_window.py,
 line 16, in launch_application
 return self.launch_test_application(full_path, app_type='qt')
 AttributeError: 'MainWindowTitleTests' object has no attribute
 'launch_test_application'
 }}}
 ==
 ERROR:
 example.tests.test_window.MainWindowTitleTests.test_main_window_title_string
 --
 _StringException: test-log: {{{
 18:22:10.000 INFO testcase:86 -
 
 18:22:10.001 INFO testcase:87 - Starting test
 example.tests.test_window.MainWindowTitleTests.test_main_window_title_string
 18:22:10.575 DEBUG _X11:311 - Moving mouse to position 640,512 without
 animation.
 }}}

 Traceback (most recent call last):
   File /home/cecil/Workspace/autopilot/example/tests/test_window.py,
 line 20, in test_main_window_title_string
 app_root = self.launch_application()
   File /home/cecil/Workspace/autopilot/example/tests/test_window.py,
 line 16, in launch_application
 return self.launch_test_application(full_path, app_type='qt')
 AttributeError: 'MainWindowTitleTests' object has no attribute
 'launch_test_application'


 Ran 1 test in 0.720s
 FAILED (failures=1)
 $


 *Here is the test code:*
 *$ cat example/tests/test_window.py*
 from autopilot.testcase import AutopilotTestCase
 from os.path import abspath, dirname, join
 from testtools.matchers import Equals

 class MainWindowTitleTests(AutopilotTestCase):

 def launch_application(self):
 Work out the full path to the application and launch it.

 This is necessary since our test application will not be in $PATH.

 :returns: The application proxy object.

 
 full_path = abspath(join(dirname(__file__), '..', '..',
 'testapp.py'))
 return self.launch_test_application(full_path, app_type='qt')

 def test_main_window_title_string(self):
 The main window title must be 'Hello World'.
 app_root = self.launch_application()
 main_window = app_root.select_single('QMainWindow')

 self.assertThat(main_window.windowTitle, Equals(Hello World))
 $


-- 
Ubuntu-quality mailing list
Ubuntu-quality@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-quality


Re: Quick Question...

2013-03-14 Thread Sergio Meneses
I dont know if I get your point completely, but you're asking for a new
ubuntu-testcase about wine, right?

Sergio Meneses
Linux User: #478743
Ubuntu User: #24056


On Wed, Mar 13, 2013 at 7:43 PM, Thomas Corwin dog1...@hotmail.com wrote:

 Hello everyone! Now, I don't like to ask bad questions, especially when I
 don't have a voice in the matter, but, has anyone ever thought of adding a
 Wine section to the manual?

 Now, I know what some of you are thinking, Why would we need this? It's
 completely unrelated. I think it is relative, mainly because it is a very
 common application used in Linux.

 If somehow, this idea is approved, I will take this section, otherwise, I
 may not be able to help in anyway to the manual, due to the fact I know
 more about Wine, than any of the available sections for editing.

 Thought I'd ask!
 Thomas Corwin
 --
 Ubuntu-quality mailing list
 Ubuntu-quality@lists.ubuntu.com
 Modify settings or unsubscribe at:
 https://lists.ubuntu.com/mailman/listinfo/ubuntu-quality

-- 
Ubuntu-quality mailing list
Ubuntu-quality@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-quality