Merge lp:~gary-lasker/unity/software-center-launcher-integration-tests into lp:unity

Proposed by Gary Lasker
Status: Merged
Approved by: Brandon Schaefer
Approved revision: no longer in the source branch.
Merged at revision: 2518
Proposed branch: lp:~gary-lasker/unity/software-center-launcher-integration-tests
Merge into: lp:unity
Diff against target: 124 lines (+104/-16)
1 file modified
manual-tests/SoftwareCenter.txt (+104/-16)
To merge this branch: bzr merge lp:~gary-lasker/unity/software-center-launcher-integration-tests
Reviewer Review Type Date Requested Status
Brandon Schaefer (community) Approve
jenkins (community) continuous-integration Approve
Review via email: mp+116137@code.launchpad.net

Commit message

manual-tests/SoftwareCenter.txt: added tests for Ubuntu Software Center/Unity launcher integration feature

Description of the change

This branch provides a set of manual tests for the Ubuntu Software Center/Unity launcher integration feature. Note that this is simply the identical set of test cases that have already been merged into the Unity 5.0 branch and released into precise-proposed. This branch targets these test cases for trunk.

Please refer to that 5.0 branch review for this change for details in that merge:

  https://code.launchpad.net/~gary-lasker/unity/software-center-launcher-integration-tests-for-5.0/+merge/114241

There are *no* code changes here. All changes are limited to the file manual-tests/SoftwareCenter.txt.

Please note that this kind of manual testing is very useful for this feature as it spans two applications and so all pf the details of the interactions can be tested directly by these. Of course, these manual tests are *not* to be considered in lieu of complete automatic unit tests! Rather, they are simply intended to augment the automatic unit tests that are already in place for this integration feature on the Unity and Software Center sides. The advantage of having manual tests for this feature is that a person can more easily observe in detail the overall interaction between the two applications.

The added tests will thoroughly verify all of the pieces of the integration functionality for the various cases (install/remove/cancel of archive applications, purchased items, installing items from the "Independent" repository) , and cover all of the bug fixes for Unity branch https://code.launchpad.net/~bilalakhtar/unity/5.0series-sru-software-center-integration-fixes/+merge/110214 and the corresponding Software Center branch https://code.launchpad.net/~gary-lasker/software-center/unity-launcher-integration-fixes

Many thanks for your review!

To post a comment you must log in.
Revision history for this message
jenkins (martin-mrazik+qa) wrote :
review: Approve (continuous-integration)
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

Looks good +1.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'manual-tests/SoftwareCenter.txt'
--- manual-tests/SoftwareCenter.txt 2012-04-26 08:07:45 +0000
+++ manual-tests/SoftwareCenter.txt 2012-07-22 17:30:25 +0000
@@ -1,16 +1,104 @@
1The SoftwareCenter Launcher Integration cancel1
2----------------------------------------------2Ubuntu Software Center Launcher Integration, installing an application from the Ubuntu archives
33-----------------------------------------------------------------------------------------------
4Setup: 4
5#. Open software-center5Setup:
66#. Launch Ubuntu Software Center
7Actions: 7
8#. Click on install on a big application like wesnoth8Actions:
9#. Verify that the icon "flies" into the launcher9#. In Software Center, click on the "Games" category in the left panel to view the display of game genre icons, "Top Rated Games", etc.
10#. Wait until the "In Progress" appears in the toplevel toolbar of s-c10#. Select the "Card Games" icon and then select any uninstalled game in the displayed list.
11#. Click on the "In Progress" button in the toolbar11#. Click the "More Info" button.
12#. Click on the "cancel" button of the install of the application12#. In the details view for the game, click the "Install" button.
1313#. Enter the password for the install when prompted.
14Expected Result:14
15 The icon is removed from the launcher again after the download was15Expected Result:
16 canceled.16 The game begins to install and the progress bar moves in Software Center.
17 At the very *end* of the installation process (when the progress bar has completed), the icon for the game "flies" into the Unity Launcher.
18 Verify that the icon has been added to the launcher and that:
19 - If the Unity launcher was set to auto-hide, it correctly autohides at the end of the installation and is not "stuck" in a displayed state.
20 - The launcher icon has the correct icon for the game that was installed.
21 - Hovering the mouse cursor over the icon displays the name of the application for its tooltip (and that it does *not* display the text "Waiting to install").
22 - Clicking the icon launches the newly installed game.
23
24
25Ubuntu Software Center Launcher Integration, cancelling an installation
26-----------------------------------------------------------------------
27
28Setup:
29#. Launch Ubuntu Software Center
30
31Actions:
32#. In Software Center, click on the "Games" category in the left panel to view the display of game genre icons, "Top Rated Games", etc.
33#. Select the "Card Games" icon and then select any uninstalled game in the displayed list.
34#. Click the "More Info" button.
35#. In the details view for the game, click the "Install" button.
36#. In the dialog that prompts you to enter your password for the install, click the "Cancel" button.
37
38Expected Result:
39 The installation is cancelled. Verify that no icon has been added to the Unity launcher integration.
40
41
42Ubuntu Software Center Launcher Integration, installing a purchased application
43-------------------------------------------------------------------------------
44
45Setup:
46#. Launch Ubuntu Software Center
47
48Actions:
49#. In Software Center, click the down arrow in the toolbar next to the "All Software" button, and choose the "For Purchase" item.
50#. In the list of displayed items for purchase, choose an application (not a magazine or book) that is free (that is, marked as $0 -- unless you wish to purchase something).
51#. Click the "More Info" button.
52#. In the details view for the application, click the "Buy" button.
53#. Follow the purchase process. For a $0 item, you will not be prompted for payment information.
54#. Enter the password for the install when prompted.
55
56Expected Result:
57 The the progress bar activates in Software Center. Note that for purchased items, it can take a bit of time before the progress bar transitions from intdeterminate to determinate.
58 At the very *end* of the installation process (when the progress bar has completed), the icon for the purchased item "flies" into the Unity Launcher.
59 Verify that the icon has been added to the launcher and that:
60 - If the Unity launcher was set to auto-hide, it correctly autohides at the end of the installation and is not "stuck" in a displayed state.
61 - The launcher icon has the correct icon for the application that was installed.
62 - Hovering the mouse cursor over the icon displays the name of the application for its tooltip (and that it does *not* display the text "Waiting to install").
63 - Clicking the icon launches the newly installed application.
64
65
66Ubuntu Software Center Launcher Integration, installing from the "Independent" archives
67---------------------------------------------------------------------------------------
68
69Setup:
70#. Launch Ubuntu Software Center
71
72Actions:
73#. In Software Center, click the down arrow in the toolbar next to the "All Software" button, and choose the "Independent" item.
74#. In the list of displayed items, choose an application that is not yet installed.
75#. Click the "More Info" button.
76#. In the details view for the application, click the "Install" button.
77#. Enter the password for the install when prompted.
78
79xpected Result:
80 The application begins to install and the progress bar moves in Software Center.
81 At the very *end* of the installation process (when the progress bar has completed), the icon for the application "flies" into the Unity Launcher.
82 Verify that the icon has been added to the launcher and that:
83 - If the Unity launcher was set to auto-hide, it correctly autohides at the end of the installation and is not "stuck" in a displayed state.
84 - The launcher icon has the correct icon for the application that was installed.
85 - Hovering the mouse cursor over the icon displays the name of the application for its tooltip (and that it does *not* display the text "Waiting to install").
86 - Clicking the icon launches the newly installed game.
87
88
89Ubuntu Software Center Launcher Integration, uninstalling an application
90------------------------------------------------------------------------
91
92Setup:
93#. Launch Ubuntu Software Center
94
95Actions:
96#. In Software Center, click the "Installed" toolbar button to access the list of installed applications.
97#. Choose an installed application to remove (choose one for which there is a corresponding icon in the Unity launcher).
98#. Click the "More Info" button.
99#. In the details view for the application, click the "Remove" button.
100#. Enter the password for the remove when prompted.
101
102Expected Result:
103 The uninstall process begins and the progress bar moves in Software Center.
104 At the very *end* of the installation process, verify that the corresponding icon in the Unity launcher is *removed*.