<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Vasudevan, the autopilot folks have a
solution for us. Check this out:<br>
<br>
<a class="moz-txt-link-freetext" href="http://pastebin.ubuntu.com/5740039/">http://pastebin.ubuntu.com/5740039/</a><br>
<br>
Basically if we close down nautilus using the "nautilus -q"
command first, we can introspect nautilus. So this works for
example:<br>
<br>
nautilus -q<br>
autopilot launch nautilus<br>
autopilot vis<br>
<br>
See the paste for incorporating the idea into the test. Good luck!<br>
<br>
Nicholas<br>
<br>
On 05/31/2013 03:54 AM, Vasudevan Kottilil wrote:<br>
</div>
<blockquote
cite="mid:CACT9+udMU-3psEe-9_C_UV9_XUgk8DERVeT=MaDBXg2ZZnOVRA@mail.gmail.com"
type="cite">Hi Nicholas,<br>
Thanks - still getting errors within my dev env. Based on brief
conversation earlier on irc, I installed autopilot on vm from
ppa:autopilot/ppa. Is this the correct version for 1.3?<br>
Got the latest version of test_nautilus from trunk and tried to
run it 'as is'. This is what I am getting now <br>
<br>
Loading tests from: /home/test/autopilot<br>
<br>
Tests running...<br>
======================================================================<br>
ERROR: tests.test_nautilus.NautilusTests.test_create_a_folder<br>
----------------------------------------------------------------------<br>
_StringException: traceback-1: {{{<br>
Traceback (most recent call last):<br>
File "/home/test/autopilot/tests/test_nautilus.py", line 32, in
test_create_a_folder<br>
self.keyboard.press_and_release("Ctrl+l")<br>
File "/usr/lib/python2.7/dist-packages/autopilot/testcase.py",
line 158, in keyboard<br>
self.addCleanup(self._kb.cleanup)<br>
AttributeError: 'Keyboard' object has no attribute 'cleanup'<br>
}}}<br>
<br>
Traceback (most recent call last):<br>
File "/usr/lib/python2.7/dist-packages/autopilot/utilities.py",
line 242, in action_on_test_start<br>
obj.on_test_start(test_instance)<br>
File "/usr/lib/python2.7/dist-packages/autopilot/globals.py",
line 108, in on_test_start<br>
if _video_logger._enable_recording:<br>
AttributeError: '_VideoLogger' object has no attribute
'_enable_recording'<br>
<br>
Ran 1 test in 1.284s<br>
FAILED (failures=1)<br>
<br>
I still have issues with terminal display inside the vm and it is
not displaying cursor and commands typed with in it. Was able to
work around that by using a uxterm. Since some of you are able to
execute these scripts with 1.3, it looks like some environment
issues at my end...<br>
Vasudevan<br>
<br>
<br>
<div class="gmail_quote">On Thu, May 30, 2013 at 7:51 AM, Nicholas
Skaggs <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:nicholas.skaggs@canonical.com" target="_blank">nicholas.skaggs@canonical.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Vasudevan, there is a basic nautilus testcase (very
basic!) that is now in the production branch. Can't wait
to see you expand it to test more :-)<br>
<br>
Vasudevan, sounds like you want to use a tool called
testdrive:<br>
<br>
<a moz-do-not-send="true"
href="https://wiki.ubuntu.com/UsingDevelopmentReleases"
target="_blank">https://wiki.ubuntu.com/UsingDevelopmentReleases</a><br>
<a moz-do-not-send="true"
href="http://www.youtube.com/watch?v=JGZF6UHhl4I"
target="_blank">http://www.youtube.com/watch?v=JGZF6UHhl4I</a><br>
<br>
Your workflow is exactly what happens in the canonical QA
lab everyday. The autopilot tests we're writing will be a
part of that. So for your testing however, you don't need
to install from an image everyday (unless you want to test
installation, in which case use testdrive above to help!).
So setup your vm and simply update on a regular basis,
just like your stable version of ubuntu. Your installation
will track the development release. You can then use it to
develop autopilot testcases or do manual testing.<br>
<br>
Does that help / make sense?<span><font color="#888888"><br>
<br>
Nicholas</font></span>
<div>
<div><br>
<br>
On 05/29/2013 06:55 PM, Vasudevan Kottilil wrote:<br>
</div>
</div>
</div>
<div>
<div>
<blockquote type="cite">Hi Nicholas, Dan,<br>
I am working on the nautilus script and was hoping to
make some progress by now but running into many
issues(sorry, could not work during the long weekend).<br>
I had downloaded a daily build image for
saucy-desktop-amd64.iso on 05/23 and tried to create a
guest image using the following command: (host is
running 12.10 desktop)<br>
<br>
virt-install --connect qemu:///system --virt-type kvm
--name saucy-alpha-vm --ram 4096 --disk
path=/var/lib/libvirt/images/saucy-desktop-vm,size=30
--graphics vnc --location
/home/vkottilil/Downloads/saucy-desktop-amd64.iso and
it throws an error<br>
Starting install...<br>
ERROR Could not find an installable distribution at
'/home/vkottilil/Downloads/saucy-desktop-amd64.iso'<br>
The location must be the root directory of an install
tree.<br>
Domain installation does not appear to have been
successful.<br>
If it was, you can restart your domain by running:<br>
virsh --connect qemu:///system start saucy-alpha-vm<br>
otherwise, please restart your installation.<br>
<br>
What causes this error?<br>
<br>
After this, I burned the iso to dvd and from that
location it was able to create a vm using the same
tool with option --cdrom /dev/sr0 instead of
--location.<br>
After launching guest, I am unable to see anything
typed out in the vm's terminal - tried changing the
profile settings with different color etc and still
does not work.<br>
I can ssh from the host to the vm. Is it possible to
run autopliot on the vm from ssh terminal - are there
any x server/display options?<br>
<br>
I have heard of a totally different workflow this team
is using to test the daily image using testdrive - any
pointers to that would be great. Ideally it would be
great if we can run a predictable set of steps
similar to<br>
wget latestgood<br>
create vm<br>
spin it up<br>
install autopilot<br>
copy test scripts<br>
run tests<br>
tear down<br>
<br>
Thanks,<br>
Vasudevan Kottilil<br>
<br>
<div class="gmail_quote">On Tue, May 28, 2013 at 8:21
AM, Dan Chapman <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:daniel@chapman-mail.com"
target="_blank">daniel@chapman-mail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hi
everyone, <br>
<br>
just thought i would give a quick update on the
status of porting the autopilot test cases since
the last hackfest (check out the notes <a
moz-do-not-send="true"
href="http://pad.ubuntu.com/CFXkuLR7Lb"
target="_blank">http://pad.ubuntu.com/CFXkuLR7Lb</a>)
and what is working/needs reviewing and testing.<br>
<br>
<b>Firefox: </b>nskaggs completed this and is
now merged to the production branch. The test
was converted to using the ProcessManager class
as introspecting firefox was not possible.<br>
<b><br>
Evince: </b>has been ported to 1.3 using
introspection, the test is working good and has
been proposed for merge. Currently it could
still do with the open and print dialogs being
introspected, as it is still currently using
keyboard shortcuts to navigate. Also i think
this test case could be further expanded as it
still misses some features that can be
introspected<br>
Currently it tests<br>
<blockquote>
<ul>
<li>Display pdf</li>
<li>Enter & Exit fullscreen</li>
<li>Show & Hide sidebar</li>
<li>Rotate document</li>
</ul>
</blockquote>
Maybe we could add tests for zoom, bookmark and
presentation features? Whats your thoughts?<br>
<br>
<b>File-Roller: </b>ported to 1.3 using
introspection and has been proposed for merge.
It is currently using the archive created in the
first test across all the tests. So the tests
are unable to be called and run independently
from each other. Could do with modifying to make
each test self contained. <br>
<br>
I could not find a sane way to select/choose an
archive format so currently it works with
whatever your default archive is and collects
the name of the archive from the window title so
can be deleted successfully. <br>
Anyone have any ideas on accessing the items in
a GtkComboBoxText control and getting the
selected item? <br>
<br>
<b>Gedit: </b>Letozaf has been working on this
and has proposed a merge. <br>
<br>
<b>Nautilus: </b>Has been ported to 1.3 but
unable to introspect due to autopilot module not
loading, So currently using the ProcessManager.
This test is still very basic in that it just
creates and deletes a directory. As this is
probably the most used application on ubuntu it
should probably have an extensive test to match
the current manual-test-case as much as
possible. <br>
<br>
<b>Shotwell: </b>Still to be ported to
autopilot 1.3<br>
<br>
<b>Totem: </b>nskaggs is working on this.... I
think??<br>
<br>
<b>Screenshot:</b><span> when running autopilot
launch gnome-screenshot it automatically takes
a screenshot of the whole screen and loads on
to the save screenshot window. This is the
same when just running gnome-screenshot in the
terminal. Is this a bug i couldnt find a bug
like this. Or is this the default behaviour
when launching it from terminal?</span><span><br>
<br>
Also the same when lauching the application
with launch_test_application()</span><span></span><span></span><span><br>
<br>
screenshot can be introspected but cannot get
into the main window to test taking different
shots. This needs looking into further.<br>
</span>
<div>
<p><b>Terminal:</b><span> ported to 1.3 using
ProcessManager, it would be great to be
able to introspect terminal in the near
future, get some more assertions in there
then, and remove alot of the keyboard
calls. :) Like navigating the preferences
dialog etc.<br>
</span></p>
<p><span>It would be great if people could
test the current Production and Proposed
tests to get feedback. So if anyone has
the time please fell free to test them.<br>
</span></p>
<p><span>Regards<span><font color="#888888"><br>
</font></span></span></p>
<span><font color="#888888">
<p><span>Dan Chapman<br>
</span><b> </b></p>
</font></span></div>
<br>
</div>
<br>
--<br>
Ubuntu-quality mailing list<br>
<a moz-do-not-send="true"
href="mailto:Ubuntu-quality@lists.ubuntu.com"
target="_blank">Ubuntu-quality@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a
moz-do-not-send="true"
href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-quality"
target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-quality</a><br>
<br>
</blockquote>
</div>
<br>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</blockquote>
<br>
</body>
</html>