platform-update-home/3.0/test_scenarios.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (view) (download) (as text)

1 : dbirsan 1.1 <h2>Update/Install Test Scenarios for Eclipse 3.0</h2>
2 :     <p>[ work in progress ]</p>
3 :     <h3>Objectives:</h3>
4 :     <p>The objective of these scenarios is to cover the main functionality of the
5 :     Update/Install component in Eclipse 3.0 through simple end-to-end use cases. The
6 :     scenarios are divided into two parts. </p>
7 :     <ul>
8 : dbirsan 1.3 <li>Part-1 exercises updating of Eclipse features, installing new features,
9 :     redirecting updates, etc.</li>
10 :     <li>Part-2 exercises various aspects of update/install.</li>
11 : dbirsan 1.1 </ul>
12 :     <h2>Part 1: Updating Eclipse</h2>
13 :     <h4>1. Install Eclipse</h4>
14 :    
15 :     <p>Download Eclipse SDK and install it to
16 :     <i>D:\eclipseTest</i>. </p>
17 :    
18 :     <h4><font color="#FF0000"><b>Note: If you install it to another directory
19 :     (including an OS other than Windows), please make sure that the path names that
20 :     appear in the text below are properly renamed, to reflect your particular setup.</b></font><br>
21 :     <br>
22 :     2.&nbsp; Create a product extension</h4>
23 :    
24 :     <p>Unzip the file </p>
25 :    
26 :     <p><i>
27 :     <a href="http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-update-home/3.0/org.eclipse.update.tests.jarred.site.ToLink.zip">http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-update-home/3.0/org.eclipse.update.tests.jarred.site.ToLink.zip</a></i></p>
28 :    
29 :     <p>into folder <i> D:\eclipseTestSite2</i></p>
30 :    
31 : dbirsan 1.2 <p>(FYI: URL for installing the same set of features, but from http site:<br>
32 :     <i>
33 :     <a href="http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-update-home/projects/org.eclipse.update.tests.jarred.site/">http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-update-home/projects/org.eclipse.update.tests.jarred.site/</a></i>)<br>
34 : dbirsan 1.1 <br>
35 :     Now, to register the extension with our eclipse install,&nbsp; create the links
36 :     subfolder in the eclipse installation directory: <i>
37 :     D:\eclipseTest\eclipse\links</i> and a new file
38 :     <i>D:\eclipseTest\eclipse\links\site2.link</i> with the following content:</p>
39 :    
40 :    
41 :     <p>path=D:\\eclipseTestSite2<br>
42 :     </p>
43 :    
44 :    
45 :     <h4>3. Launch Eclipse</h4>
46 :     Launch the Eclipse workbench<p>3.1)&nbsp; from the menu, select Help -&gt; Software Updates -&gt; Manage Configuration<br>
47 :     Expand the configuration and verify that both the installation and the extension
48 :     sites are listed:<br>
49 :     <i>-
50 :     file:/d:/eclipseTest/eclipse/</i>&nbsp;
51 :     with six eclipse features<br>
52 :     <i>-
53 :     file:/d:/eclipseTestSite2/eclipse</i>
54 :     with org.eclipse.update.tests.jarred.feature 1.0.0<br>
55 :     <br>
56 : dbirsan 1.6 3.2) From the menu, select Help -&gt; About -&gt; Plugin Details<br>
57 : dbirsan 1.1 Verify that following plugins are present:<br>
58 :     org.eclipse.update.tests.jarred.plugin 1.0.0<br>
59 :     org.eclipse.update.tests.jarred.fragment 1.0.0<br>
60 :     org.eclipse.update.tests.jarred.bundle 1.0.0<br>
61 :     &nbsp;</p>
62 : dbirsan 1.6 <p>3.3)
63 : dbirsan 1.1 From either a toolbar or &quot;Jarred Plugin Menu&quot; lunch three actions:<br>
64 :     Jarred Plug-in Action, Jarred Fragment Action, Jarred Bundle Action.<br>
65 :     Verify that all are present and work.<br>
66 :     <br>
67 :     </p>
68 : dbirsan 1.2 <h4>4. Update Policy</h4>
69 : dbirsan 1.1 <p>An update policy file allows features to be updated from a different update
70 :     site, particularly from a site hosted inside the local network.</p>
71 :     <p>
72 :     Create directory outside of eclipse directory, say D:\eclipseTestPolicy<br>
73 :     Download a policy file from <br>
74 :     <a href="http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-update-home/3.0/zippedPatchesPolicy.xml">http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-update-home/3.0/zippedPatchesPolicy.xml</a><br>
75 :     into this directory.<br>
76 :     Download zipped updated site from<br>
77 :     <a href="http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-update-home/3.0/org.eclipse.update.tests.patches.site.zip">http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-update-home/3.0/org.eclipse.update.tests.patches.site.zip</a><br>
78 : dbirsan 1.2 into this directory. Do NOT unzip.<br>
79 : dbirsan 1.1 If you use a different directory name, edit policy file and fill in the correct
80 :     path.<br>
81 : dbirsan 1.2 (FYI: URL for installing the same set of features, but from http site:<br>
82 :     <a href="http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-update-home/projects/org.eclipse.update.tests.patches.site/">http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-update-home/projects/org.eclipse.update.tests.patches.site/</a>)<br>
83 : dbirsan 1.1 <br>
84 : dbirsan 1.2 Start Eclipse, if not already started.<br>
85 :     From the menu, open Windows -&gt; Preferences -&gt; Install/Update, fill in Update Policy URL as:<br>
86 :     <a href="file:///D:/eclipseTestPolicy/zippedPatchesPolicy.xml">file:///D:/eclipseTestPolicy/zippedPatchesPolicy.xml</a></p>
87 :     <p>
88 :     From the menu, launch the install wizard:<br>
89 :     Help -&gt; Software Updates -&gt; Find and Install.</p>
90 :     <p>
91 :     -Click next, select SDK patch, accept license, click finish.<br>
92 :     -Accept unsigned jar.<br>
93 :     -After installation, confirm dialog to restart.<br>
94 :     &nbsp;</p>
95 :     <p>
96 :     4.1)&nbsp;
97 : dbirsan 1.1 Verify Eclipse restarted.<br>
98 : dbirsan 1.2 4.2)&nbsp;
99 : dbirsan 1.1 In Help -&gt; Software Updates -&gt; Manage Configuration, verify SDK patch containing
100 :     Platform and PDE patches are installed.<br>
101 : dbirsan 1.2 4.3)&nbsp;
102 : dbirsan 1.1 In Help -&gt; About -&gt; Feature Details, verify both original features (SDK,
103 :     Platform, PDE) and 3 patch features are listed.<br>
104 : dbirsan 1.2 4.4)&nbsp;
105 : dbirsan 1.1 Select SDK patch, click Plugin Details, verify feature does not contain any
106 :     plugins. Click OK<br>
107 : dbirsan 1.2 4.5)&nbsp;
108 : dbirsan 1.1 Select Platform patch, click Plugin Details, verify feature contains osgi, help,
109 :     update configurator plugins version 3.0.0.patch1. Click OK<br>
110 : dbirsan 1.2 4.6)&nbsp;
111 : dbirsan 1.1 Select PDE patch, click Plugin Details, verify feature contains PDE UI plugin
112 :     version 3.0.0.patch1. Click OK.<br>
113 : dbirsan 1.2 4.7)
114 : dbirsan 1.1 Click OK again to go back to About dialog, click Plugin Details.<br>
115 : dbirsan 1.2 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
116 : dbirsan 1.1 Verify eclipse runs version 3.0.0.patch1 of org.eclipse.help, org.eclipse.osgi,
117 : dbirsan 1.2 org.eclipse.pde.ui, and org.eclipse.update.configurator plug-in.</p>
118 :     <p>
119 : dbirsan 1.1 Close all open dialogs. Exit eclipse.<br>
120 :     <br>
121 :     Change policy in D:/eclipseTestPolicy/zippedPatchesPolicy.xml to use<br>
122 : dbirsan 1.2 <a href="http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-update-home/projects/org.eclipse.update.tests.patches.site/">http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-update-home/projects/org.eclipse.update.tests.patches.site/</a><br>
123 :     for updates/install from http.</p>
124 :     <p>
125 :     -Start eclipse and launch the install wizard again:
126 : dbirsan 1.1 Help -&gt; Software Updates -&gt; Find and Install.<br>
127 : dbirsan 1.2 -Click next, select PDE patch2, accept license, click finish, restart.</p>
128 :     <p>
129 :     4.8)&nbsp;
130 : dbirsan 1.1 Check if D:\eclipseTest\eclipse\plugins\org.eclipse.pde.ui_3.0.0.patch2 contains
131 :     same number of files as<br>
132 : dbirsan 1.2 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
133 : dbirsan 1.1 D:\eclipseTest\eclipse\plugins\org.eclipse.pde.ui_3.0.0.patch2.<br>
134 : dbirsan 1.2 4.9) i n Help -&gt; Software Updates -&gt; Manage Configuration, verify PDE patch2
135 : dbirsan 1.1 installed.<br>
136 : dbirsan 1.2 4.10)&nbsp; in Help -&gt; About -&gt; Feature Details, verify both original PDE feature and
137 : dbirsan 1.1 org.eclipse.pde.patch2 is installed.<br>
138 : dbirsan 1.2 4.11)&nbsp;
139 :     Click OK to go back to About dialog, click Plugin Details.
140 :     Verify eclipse runs version 3.0.0.patch2 of org.eclipse.pde.ui plug-in.</p>
141 :     <p>
142 : dbirsan 1.4 Close all open dialogs. Exit eclipse.</p>
143 :     <h4>
144 :     <br>
145 :     5. Update Eclipse</h4>
146 :     <p>
147 :     This should be done after test 4 above (Update Policy).</p>
148 :     <p>
149 :     5.1 Search for updates to existing features. You should see SDK 3.0.1 update.
150 :     Select it and install it. Restart when prompted</p>
151 :     <p>
152 :     5.2 Eclipse should restart and you should see the new versions (3.0.1) for
153 :     plugins org.eclipse.help, org.eclipse.osgi, org.eclipse.pde.ui,
154 :     org.eclipse.update.configurator, and the updated features (SDK, Platform, and
155 :     PDE).</p>
156 :     <p>
157 :     5.3 All the patches installed in test 4 should be disabled.</p>
158 : dbirsan 1.2 <h4>
159 : dbirsan 1.4 6. Revert configuration</h4>
160 : dbirsan 1.2 <p>
161 : dbirsan 1.1 <br>
162 : dbirsan 1.4 6.1)
163 : dbirsan 1.1 In Help -&gt; Software Updates -&gt; Manage Configuration, right click Eclipse
164 :     product, choose Revert... from the popup menu.<br>
165 : dbirsan 1.4 6.2)
166 : dbirsan 1.1 Pick original configuration (before starting update tests), click finish,
167 :     confirm restart.<br>
168 : dbirsan 1.4 6.3)
169 : dbirsan 1.1 In Help -&gt; About -&gt; Feature Details, verify no patches are enabled.<br>
170 : dbirsan 1.4 6.4)
171 : dbirsan 1.2 Click OK to go back to About dialog, click Plugin Details.Verify eclipse runs original version of plugins (usually 3.0.0).<br>
172 : dbirsan 1.1 <br>
173 : kkolosow 1.5 </p>