platform-update-home/doc/Test Scenarios/eclipse update 3.1.html

Parent Directory Parent Directory | Revision Log Revision Log


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

1 : kkolosow 1.2 <h2>Update/Install Test Scenarios for Eclipse 3.1</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.1 through simple end-to-end use cases. The
6 :     scenarios are divided into two parts. </p>
7 :     <ul>
8 :     <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 :     </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 : dejan 1.1
24 : kkolosow 1.2 <p>Unzip the file </p>
25 : dejan 1.1
26 : kkolosow 1.2 <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 : dejan 1.1
29 : kkolosow 1.2 <p>into folder <i> D:\eclipseTestSite2</i></p>
30 : dejan 1.1
31 : kkolosow 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 :     <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 :     3.2) From the menu, select Help -&gt; About -&gt; Plugin Details<br>
57 :     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 :     <p>3.3)
63 :     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 :     <h4>4. Update Policy</h4>
69 :     <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 :     into this directory. Do NOT unzip.<br>
79 :     If you use a different directory name, edit policy file and fill in the correct
80 :     path.<br>
81 :     (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 :     <br>
84 :     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 : kkolosow 1.7 -Make sure the top radio button is selected. Click Finish.<br>
92 : kkolosow 1.6 -drill down into patches and select only SDK patch1 version 1.0.0,<br>
93 :     -click next, accept license, click next, and finish.<br>
94 : kkolosow 1.2 -Accept unsigned jar.<br>
95 :     -After installation, confirm dialog to restart.<br>
96 :     &nbsp;</p>
97 :     <p>
98 :     4.1)&nbsp;
99 :     Verify Eclipse restarted.<br>
100 :     4.2)&nbsp;
101 :     In Help -&gt; Software Updates -&gt; Manage Configuration, verify SDK patch containing
102 :     Platform and PDE patches are installed.<br>
103 :     4.7)
104 : kkolosow 1.8 In Help -&gt; About -&gt; dialog, click Plugin Details.<br>
105 : kkolosow 1.2 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
106 :     Verify eclipse runs version 3.1.0.patch1 of org.eclipse.help, org.eclipse.osgi,
107 :     org.eclipse.pde.ui, and org.eclipse.update.configurator plug-in.</p>
108 :     <p>
109 :     Close all open dialogs. Exit eclipse.<br>
110 :     <br>
111 :     Change policy in D:/eclipseTestPolicy/zippedPatchesPolicy.xml to use<br>
112 :     <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>
113 :     for updates/install from http.</p>
114 :     <p>
115 :     -Start eclipse and launch the install wizard again:
116 :     Help -&gt; Software Updates -&gt; Find and Install.<br>
117 : kkolosow 1.8 -Make sure the top radio button is selected. Click Finish.<br>
118 : kkolosow 1.7 -drill down into patches and select only PDE patch2 version 1.0.0,<br>
119 :     -click next, accept license, click next, and finish.<br>
120 :     -Accept unsigned jar.<br>
121 :     -After installation, confirm dialog to restart.<br>
122 : kkolosow 1.2 <p>
123 :     4.8)&nbsp;
124 :     Check if D:\eclipseTest\eclipse\plugins\org.eclipse.pde.ui_3.1.0.patch2 contains
125 :     same number of files as<br>
126 :     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
127 : kkolosow 1.8 D:\eclipseTest\eclipse\plugins\org.eclipse.pde.ui_3.1.0.<br>
128 :     4.9) in Help -&gt; Software Updates -&gt; Manage Configuration, verify PDE patch2
129 : kkolosow 1.2 installed.<br>
130 : kkolosow 1.8 4.10)&nbsp; in Help -&gt; About -&gt; click Plugin Details.
131 : kkolosow 1.2 Verify eclipse runs version 3.1.0.patch2 of org.eclipse.pde.ui plug-in.</p>
132 : kkolosow 1.5 <p>(PDE-UI plugin is installed, but does not work - Bug 97094 Partial patch for jarred bundles not working easily )</p>
133 : kkolosow 1.2 <p>
134 :     Close all open dialogs. Exit eclipse.</p>
135 : dejan 1.1 <h4>
136 : kkolosow 1.2 <br>
137 :     5. Update Eclipse</h4>
138 :     <p>
139 :     This should be done after test 4 above (Update Policy).</p>
140 :     <p>
141 :     5.1 Search for updates to existing features. You should see SDK 3.1.1 update.
142 :     Select it and install it. Restart when prompted</p>
143 :     <p>
144 :     5.2 Eclipse should restart and you should see the new versions (3.1.1) for
145 :     plugins org.eclipse.help, org.eclipse.osgi, org.eclipse.pde.ui,
146 :     org.eclipse.update.configurator, and the updated features (SDK, Platform, and
147 :     PDE).</p>
148 :     <p>
149 :     5.3 All the patches installed in test 4 should be disabled.</p>
150 : dejan 1.1 <h4>
151 : kkolosow 1.2 6. Revert configuration</h4>
152 :     <p>
153 : dejan 1.1 <br>
154 : kkolosow 1.2 6.1)
155 :     In Help -&gt; Software Updates -&gt; Manage Configuration, right click Eclipse
156 :     product, choose Revert... from the popup menu.<br>
157 :     6.2)
158 :     Pick original configuration (before starting update tests), click finish,
159 :     confirm restart.<br>
160 :     6.3)
161 :     In Help -&gt; About -&gt; Feature Details, verify no patches are enabled.<br>
162 :     6.4)
163 :     Click OK to go back to About dialog, click Plugin Details.Verify eclipse runs original version of plugins (usually 3.1.0).<br>
164 : dejan 1.1 <br>
165 : kkolosow 1.2 </p>