Canonical Voices

Posts tagged with 'unity'

Nicholas Skaggs

A glance at Autopilot

So, as has been already mentioned, automated testing is going to come into focus this cycle. To that end, I'd like to talk about some of the tools and methods for automated testing that exist and are being utilized inside ubuntu.

I'm sure everyone has used unity at some point, and you will be happy to know that there is an automated testsuite for unity. Perhaps you've even heard the name autopilot. The unity team has built autopilot as a testing tool for unity. However, autopilot has broader applications beyond unity to help us do automated testing on a grander scale. So, to introduce you to the tool, let's check out a quick demo of autopilot in action shall we? Run the following command to install the packages needed (you'll need quantal or raring in order for this to work):

sudo apt-get install python-autopilot unity-autopilot

Excellent, let's check this out. A word of caution here, running autopilot tests on your default desktop will cause your computer to send mouse and keyboard commands all by itself ;-) So, before we go any further, let's hop over into a 'Guest Session'. You should be able to use the system indicator in the top right to select 'Guest Session'. Once you are there, you'll be in a new desktop session, so head back over to this page. Without further ado, open a terminal and type:

autopilot run unity.tests.test_showdesktop.ShowDesktopTests.test_showdesktop_hides_apps

This is a simple test to check and see if the "Show Desktop" button works. The test will spawn a couple of applications, click the show desktop button and verify clicking on it will hide your applications. It'll clean up after itself as well, so no worries. Neat eh?

You'll notice there's quite a few unity testcases, and you've installed them all on your machine now.

autopilot list unity

As of this writing, I get 461 tests returned. Feel free to try and run them. Pick one from the list and see what happens. For example,

autopilot run unity.tests.test_dash.DashRevealTests.test_alt_f4_close_dash

Just make sure you run them in a guest session -- I don't want anyone's default desktop to get hammered by the tests!

If you are feeling adventurous, you can actually run all the unity testcases like this (this will take a LONG TIME!).

autopilot run unity

As a sidenote, you are likely to find some of the testcases fail on your machine. The testsuite is run constantly by the unity developers, and the live results of commit by commit success or failure is actually available on jenkins. Check it out.

So in closing, this cycle we as a community have some goals surrounding easing the burden for ourselves in testing, freeing our resources and minds towards the deeper and more thorough testing that automation cannot handle. To help encourage this move of our basic testcases towards automation, the next series of blog posts will be a walkthrough on how to write Autopilot testcases. I hope to learn, explore and discover along with all of you. Autopilot tests themselves are written in python, but don't let that scare you off! If you are able to understand how to test, writing a testcase that autopilot can run is simply a matter of learning syntax -- non-programmers are welcome here!

Read more
Nicholas Skaggs

As you may have read about this week here or here unity is getting some late additions to it's feature set, with much of it landing in the form of new lenses. Here's what's landed in Unity 6.6:

  • Improved Window and workspace management
    • When switching between multiple application windows, the windows scale
  • The window decoration properly follows the selected theme
  • All launcher icons can be reordered
  • New shopping lens
  • Video lens enhancements
  • Improved lens previews
  • Improved home dash
In support of this late landing code, the Unity development team is asking for some extra testing on these specific features. To that end, I've updated the testcases for Unity, and posted the testcases specific to these changes for testing. Pay attention to the cases marked 'mandatory' and 'run-once'. These testcases contain the changes mentioned above, but it doesn't hurt to run through the optional cases if you have time. We don't like regressions either :-) By the time this post hits you, unity 6.6 should be landing in quantal, and you'll simply need to do a dist-upgrade -- instructions here. Here's a link to the testcases themselves:

Unity 6.6 Testing

Before I forget, here's a link to help you navigate the tracker, if you've never used it before: Guide on using the qatracker.

I'll keep the call for testing open through beta2 next week. If you participate in testing the beta2 images, consider also running through these testcases to make sure Unity is in good shape as well.

Thank you in advance for your help, and happy testing everyone!

Read more
Nicholas Skaggs

Sprinting in to the finish! Unity 5.8 saw the introduction of the sticky edge being able to be turned off, and the addition of being able to control where the launcher appeared on which monitors.  Unity 5.10 has been released into the team's ppa. This release has been about bugfixes and polish as the precise cycle winds down to a close. Still, there are some notables changes:

  • New version of compiz 0.9.7.4
    • Bugfixes
    • Keybindings changes
      • Ctrl + Super + D Minimises all windows
      • Ctrl + Super + Cursor up Maximizes the current window
      • Ctrl + Super + Cursor down Restores or minimises current window
      • Ctrl + Super + Cursor Left or Right Semi-maximises current window
  • Unity 2D and Unity 3D has right edge support for sticky edge detection
In addition to the instructions below, Alan Pope (aka popey) has put together an awesome video walkthrough of how to do unity testing. Check it out! http://www.youtube.com/watch?v=AgL957zo5QM

Installing
Prerequisites: Make sure you are running the latest version of precise, and all your packages are up to date. Unfortunately this cannot be installed on oneiric or any previous ubuntu release. 

1) Add the unity ppa (https://launchpad.net/~unity-team/+archive/ppa). You can do this by issuing the following command:

sudo add-apt-repository ppa:unity-team/ppa

2) Update apt and run a dist upgrade -- this should prompt you to upgrade unity and some indicators as well as install checkbox-unity.

sudo apt-get update && sudo apt-get dist-upgrade

3) Restart your unity session by logging out and logging back in again.

Ok, hopefully the upgrade went smooth for you, but if not, head over to freenode #ubuntu-unity channel and let folks know what went wrong.

Testing
So, now that your up and running you can run the through the manual tests the unity team has prepared. Open the dash and type 'unity testing'. The Checkbox Unity Tests should launch. Checkbox will gather some information on your system and then ask you which tests you wish to run. Once complete you will see a link containing your system report and an option to publish it to launchpad. Use the text box below the link to enter your launchpad email address and then hit submit. This will ensure your results and feedback go to the unity developers.

Please ensure you have finished and submitted your testing results by Sunday evening April 8th. Unity 5.10 should land into precise sometime in the middle of next week.

Filing Bugs
Apport should automatically allow you to file crashes for any issues you find during testing. Please mention any bug reports you file in the comments of the failed tests. If you need to report a bug that didn't cause a crash, simply type 'ubuntu-bug unity' into a terminal window and follow the normal process.

Giving Feedback
If you'd like to give feedback on design for unity, Check out the awesome http://unity.ubuntu.com/getinvolved/ site. If your wanting to contribute code or patches, visit the folks on the #ubuntu-unity on freenode.

Getting Help
Don't hesitate to reach out to the wonderful folks on freenode @ #ubuntu-unity, the unity web site, the ubuntu+1 forums, or myself if you have questions. Thanks for helping test ubuntu!

Read more
Nicholas Skaggs


We're getting closer! The unity design list has been ablaze with discussions on unity recently. It's been great to watch and read. With that in mind, the unity developers have pushed out another point release for us to preview and test. Here's what's new:

  • A lot of bug fixes, especially in areas surrounding the HUD!
  • Unity-2d now includes HUD.
  • Compiz fixes -- including this awesome performance increase by Daniel https://bugs.launchpad.net/compiz-core/+bug/940139
  • Keybinding shortcut changes -- there was noise about switching the keybindings for switching workspace ones and moving windows. This has been reverted to the previous values again


Installing
Prerequisites: Make sure you are running the latest version of precise, and all your packages are up to date. Unfortunately this cannot be installed on oneiric or any previous ubuntu release. 

1) Add the unity ppa (https://launchpad.net/~unity-team/+archive/ppa). You can do this by issuing the following command:

sudo add-apt-repository ppa:unity-team/ppa

2) Update apt and run a dist upgrade -- this should prompt you to upgrade unity and some indicators as well as install checkbox-unity.

sudo apt-get update && sudo apt-get dist-upgrade

3) Restart your unity session by logging out and logging back in again.

Ok, hopefully the upgrade went smooth for you, but if not, head over to freenode #ubuntu-unity channel and let folks know what went wrong.

Testing
So, now that your up and running you can run the through the manual tests the unity team has prepared. Open the dash and type 'unity testing'. The Checkbox Unity Tests should launch. Checkbox will gather some information on your system and then ask you which tests you wish to run. Once complete you will see a link containing your system report and an option to publish it to launchpad. Use the text box below the link to enter your launchpad email address and then hit submit. This will ensure your results and feedback go to the unity developers.

Please ensure you have finished and submitted your testing results ASAP. As usual, the testing window will be closed at the end of this week in order to give the unity developers time to finish fixing the bugs found. Then Unity 5.6 will be pushed to precise.

Filing Bugs
Apport should automatically allow you to file crashes for any issues you find during testing. Please mention any bug reports you file in the comments of the failed tests. If you need to report a bug that didn't cause a crash, simply type 'ubuntu-bug unity' into a terminal window and follow the normal process.

Giving Feedback
If you'd like to give feedback on design for unity, Check out the awesome http://unity.ubuntu.com/getinvolved/ site. If your wanting to contribute code or patches, visit the folks on the #ubuntu-unity on freenode.

Getting Help
Don't hesitate to reach out to the wonderful folks on freenode @ #ubuntu-unity, the unity web site, the ubuntu+1 forums, or myself if you have questions. Thanks for helping test ubuntu!

Read more
Nicholas Skaggs

How do I use Unity?

I know I use unity to launch applications and run a search thru an occasional lense, but I wasn't sure how else I might be using my ubuntu desktop. To solve my curiosity, I decided to watch my mouse movements and find out how I interact with the unity desktop. Does it help or hinder my workflow, etc. Check out the results below. The answer about which piece of unity I was using the most surprised me a bit. Looks like I <3 my indicators.  The first picture show both my desktops, with no background. In the second, I only show my left monitor with a background snapshot to show you where I was clicking and hovering in more detail in regards to unity itself :-)





To explain the picture a bit, the circles represent where my cursor stopped or rested, while the lines are my movements. You can see I am using the indicators often over the course of this hour. What I was actually doing (besides playing with this tool) was having a video meeting, writing some emails, browsing the web and a hacking around in a terminal session. This is pretty typical hour for me. If you want to make your own graph of your mouse usage habits, check out IOGraphica and share your own discovery about your unity habits.

Read more
Nicholas Skaggs

Unity 5.2: What's new, and a call for testing

It's been a few weeks since the last drop of unity, and now the unity team has readied the new version of unity 5.2. Let's walk through how to preview the new features unity 5.2 is bringing, and help test those features using checkbox! Checkbox allows you to get your feedback straight into the hands of the unity developers and report any problems your system may have with the new version of unity. First let's talk a little bit about what's new. Note that these features only exist for right now in Unity 3D.

  • Multi-monitor support
    • You will now see launchers on each of your monitor, and when you scroll across a monitor, you should feel some resistance in order to allow for you to use the launcher on that screen.
  • New screen edge detection
    • To invoke the launcher, you now need to push (or "scroll into") against the left of the screen, rather than hover for X seconds. No more hitting the back button in firefox and having the launcher pop up in your way!
Feedback is appreciated on these features especially. Utilize #ubuntu-unity on freenode and checkbox feedback form to let the developers know how they work for you.
      Installing

      Prerequisites: Make sure you are running the latest version of precise, and all your packages are up to date. Unfortunately this cannot be installed on oneiric or any previous ubuntu release. 

      Also, unity 5.2 did not ship with "the HUD" sadly. So if you have been testing the HUD you will need to use ppa-purge to remove and downgrade your packages. See this post for information on using ppa-purge if you need help doing so.

      1) Add the unity ppa (https://launchpad.net/~unity-team/+archive/ppa). You can do this by issuing the following command:

      sudo add-apt-repository ppa:unity-team/ppa

      2) Update apt and run a dist upgrade -- this should prompt you to upgrade unity and some indicators as well as install checkbox-unity.

      sudo apt-get update && sudo apt-get dist-upgrade

      3) Restart your unity session by logging out and logging back in again.

      Ok, hopefully the upgrade went smooth for you, but if not, head over to freenode #ubuntu-unity channel and let folks know what went wrong.

      Testing
      So, now that your up and running you can run the through the manual tests the unity team has prepared. Open the dash and type 'unity testing'. The Checkbox Unity Tests should launch. Checkbox will gather some information on your system and then ask you which tests you wish to run. Once complete you will see a link containing your system report and an option to publish it to launchpad. Use the text box below the link to enter your launchpad email address and then hit submit. This will ensure your results and feedback go to the unity developers.

      Please ensure you have finished and submitted your testing results ASAP. The testing window will be closed this Thursday at 8am UTC, in order to give the unity developers time to finish fixing the bugs found. Then unity 5.2 will be pushed to precise and coding on Unity 5.4 will begin.

      Filing Bugs
      Please file bugs against unity package in launchpad (https://bugs.launchpad.net/unity/+filebug). When filing, please make sure to tag your bug '5.2-rc1' and mention your running Unity 5.2-rc1 in your description.

      Final Thoughts
      Don't hesitate to reach out to the unity team on IRC #ubuntu-unity on freenode at any time or to follow the latest in unity development. Thanks for helping test ubuntu and unity!

      Read more
      Nicholas Skaggs

      Testing the HUD! (Heads up display)

      I hope everyone has seen the announcement about the upcoming Heads Up Display feature hopefully landing in 12.04. If not, go read about it here: http://www.markshuttleworth.com/archives/939 I'll wait.

      Great, now in order for this feature to show up in precise it needs some more work and refinement. Our focus on quality continues and this feature is not excluded -- in order to ensure its of release quality for precise, we're asking the community to help test and evaluate the feature. Here's everything you need to know to get started:

      Prerequisites: Make sure you are running the latest version of precise, and all your packages are up to date. Unfortunately this cannot be installed on oneiric or any previous ubuntu release.

      1) Add the HUD ppa (https://launchpad.net/~unity-team/+archive/hud). You can do this by issuing the following command:

      sudo add-apt-repository ppa:unity-team/hud
      2) Update apt and run a dist upgrade -- this should prompt you to upgrade unity and some indicators
      sudo apt-get update && sudo apt-get dist-upgrade
      3) Restart your unity session by logging out and logging back in again.

      Now you should be up and running. Invoke the HUD using the 'alt' key. Go and try out your favorite apps and see how things work. When you find a bug, at this point please do not use the ubuntu-bug command or apport -- these tools are not setup to handle working within a ppa. Instead file a bug using launchpad against one of the following projects depending on the nature of the bug:

      For anything related to the user interface, ie directly unity related, file a bug against unity: http://bugs.launchpad.net/unityWhen filing, tagging the bug with 'HUD' would be helpful to streamline visibility to the unity developers.

      For any issues with matching or other issues core to the tool itself, file them against the appmenu indicator. http://bugs.launchpad.net/indicator-appmenu

      Still stuck or have more questions? Visit the wonderful folks on #ubuntu-unity on Freenode. And remember, HUD will also land with unity 5.2 coming soon!

      Read more