blob: 8810c8bed3a136d6746d394e5037241580347d27 [file] [log] [blame]
adminbae64d82013-08-01 10:50:15 -07001/*
2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
4 */
5package tai_ofa;
6import java.util.*;
7
8/**
9 *
10 * @author Raghav Kashyap (raghavkashyap@paxterrasolutions.com)
11
12 * TestON is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 2 of the License, or
15 * (at your option) any later version.
16
17 * TestON is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21
22 * You should have received a copy of the GNU General Public License
23 * along with TestON. If not, see <http://www.gnu.org/licenses/>.
24
25 */
26public class TAIProperties extends ResourceBundle {
27
28 public Object handleObject(String key){
29 //Set TestON Hierarchy path here
30 if (key.equals("hierarchyTestON")){
31 return "/home/paxterra/Desktop/TestON/";
32 }
33
34
35 if (key.equals("OFAHarnessPath")){
36 return "/home/paxterra/Music/TAI_OFA/src/";
37 }
38
39 if (key.equals("File")){
40 return "File";
41 }
42
43 if (key.equals("View")) {
44 return "View";
45 }
46
47 if (key.equals("Run")){
48 return "Run";
49 }
50
51 if (key.equals("Edit")){
52 return "Edit";
53 }
54
55 if (key.equals("Help")){
56 return "Help";
57 }
58
59 if (key.equals("New")){
60 return "New";
61 }
62
63 if (key.equals("Open")){
64 return "Open";
65 }
66
67 if(key.equals("Pause")) {
68 return "Pause";
69 }
70 if(key.equals("Resume")) {
71 return "Resume";
72 }
73 if(key.equals("Stop")) {
74 return "Stop";
75 }
76 if(key.equals("About")) {
77 return "About";
78 }
79
80 if(key.equals("DriverExplorer")) {
81 return "Driver Explorer";
82 }
83
84 if(key.equals("ProjectExplorer")) {
85 return "Project Explorer";
86 }
87
88 if(key.equals("LogExplorer")) {
89 return "Log Explorer";
90 }
91
92 if(key.equals("Cut")) {
93 return "Cut";
94 }
95 if(key.equals("Copy")) {
96 return "Copy";
97 }
98
99 if(key.equals("Paste")) {
100 return "Paste";
101 }
102
103 if(key.equals("Select")) {
104 return "Select";
105 }
106 if(key.equals("Select All")) {
107 return "Select All";
108 }
109 if(key.equals("Save")) {
110 return "Save";
111 }
112 if(key.equals("SaveAs")) {
113 return "Save As";
114 }
115
116 if(key.equals("Save All")) {
117 return "SaveAll";
118 }
119
120 if(key.equals("Close")) {
121 return "Close";
122 }
123 if(key.equals("CloseAll")) {
124 return "CloseAll";
125 }
126 if(key.equals("Exit")) {
127 return "Exit";
128 }
129
130 if(key.equals("Exit")) {
131 return "Exit";
132 }
133
134 if(key.equals("Driver")) {
135 return "Component Driver";
136 }
137 if(key.equals("Params")) {
138 return "Params";
139 }
140 if(key.equals("Topology")) {
141 return "Topology";
142 }
143 if(key.equals("newTestScript")) {
144 return "Test Script";
145 }
146
147 //Context Menu
148 if (key.equals("New")) {
149 return "New";
150 }
151
152 if (key.equals("Test")) {
153 return "Test";
154 }
155 if (key.equals("Param")) {
156 return "Params";
157 }
158 if (key.equals("Tpl")) {
159 return "TPL";
160 }
161
162 if (key.equals("Open")) {
163 return "Open";
164 }
165
166 if (key.equals("Cut")) {
167 return "Cut";
168 }
169
170 if (key.equals("Copy")) {
171 return "Copy";
172 }
173
174 if (key.equals("Paste")) {
175 return "Paste";
176 }
177 if (key.equals("Refresh")) {
178 return "Refresh";
179 }
180
181 if (key.equals("Delete")) {
182 return "Delete";
183 }
184
185 //OFA WIZARDS
186 if (key.equals("wizTitle")) {
187 return "AutoMate";
188 }
189 if (key.equals("wiz_Previous")) {
190 return "_Previous";
191 }
192
193 if (key.equals("wizN_ext")) {
194 return "N_ext";
195 }
196 if (key.equals("wizCancel")) {
197 return "Cancel";
198 }
199
200 if (key.equals("wiz_Finish")) {
201 return "_Finish";
202 }
203 if (key.equals("wizTestName")) {
204 return "Test Name";
205 }
206
207 if (key.equals("wizTestParams")) {
208 return "TEST PARAMS:";
209 }
210 if (key.equals("wizEmailId")) {
211 return "Email Id";
212 }
213
214 if (key.equals("wizNumberofTestCases")) {
215 return "Number of TestCases";
216 }
217 if (key.equals("wizEstimatedTime")) {
218 return "Estimated Time";
219 }
220
221 if (key.equals("wizProject")) {
222 return "Project";
223 }
224 if (key.equals("wizParamName")) {
225 return "Param Name";
226 }
227
228 if (key.equals("wizTopologyName")) {
229 return "Topology Name";
230 }
231 if (key.equals("wizProjectWizardId")) {
232 return "projectWizard";
233 }
234
235 if (key.equals("wizTestWizardId")) {
236 return "testWizard";
237 }
238 if (key.equals("wizTopologyWizardId")) {
239 return "topologyWizard";
240 }
241
242 if (key.equals("wiz")) {
243 return "Attribue";
244 }
245 if (key.equals("wiz")) {
246 return "Values";
247 }
248
249 // OFA Topology
250
251 if (key.equals("topoTitle")) {
252 return "Topology";
253 }
254 if (key.equals("topoProperties")) {
255 return "Properties";
256 }
257
258 if (key.equals("topoInterfaces")) {
259 return "Interfaces";
260 }
261 if (key.equals("topoAttribute")) {
262 return "Attribute";
263 }
264
265 if (key.equals("topoValue")) {
266 return "Value";
267 }
268
269 if (key.equals("topoHost")) {
270 return "Host";
271 }
272 if (key.equals("topoUserName")) {
273 return "User Name";
274 }
275 if (key.equals("topoPassword")) {
276 return "Password";
277 }
278 if (key.equals("topoTransport")) {
279 return "Transport";
280 }
281
282 if (key.equals("topoSSH")) {
283 return "SSH";
284 }
285
286 if (key.equals("topoTELNET")) {
287 return "TELNET";
288 }
289 if (key.equals("topoFTP")) {
290 return "FTP";
291 }
292 if (key.equals("topoRLOGIN")) {
293 return "RLOGIN";
294 }
295
296
297
298 if (key.equals("topoPrompt")) {
299 return "Prompt";
300 }
301
302 if (key.equals("topoSave")) {
303 return "Save";
304 }
305 if (key.equals("topoDefault")) {
306 return "Default";
307 }
308 if (key.equals("topoCancel")) {
309 return "Cancel";
310 }
311
312
313 if (key.equals("topoInterfaces")) {
314 return "Interfaces";
315 }
316 if (key.equals("topoAttribue")) {
317 return "Attribue";
318 }
319 if (key.equals("topoValues")) {
320 return "Values";
321 }
322
323
324
325
326
327 // OFA TestSummary
328
329
330 if (key.equals("testSummaryViewLog")) {
331 return "View Logs";
332 }
333 if (key.equals("testSummaryExecutionStatus")) {
334 return "Execution Status";
335 }
336
337 if (key.equals("testSummaryTestCaseId")) {
338 return "ID";
339 }
340 if (key.equals("testSummaryTestCaseName")) {
341 return "Name";
342 }
343
344 if (key.equals("testSummaryTestCaseStatus")) {
345 return "Status";
346 }
347
348 if (key.equals("testSummaryStartTest")) {
349 return "Start Test";
350 }
351 if (key.equals("testSummaryEndTest")) {
352 return "End Test";
353 }
354 if (key.equals("summary")) {
355 return "Summary";
356 }
357 if (key.equals("information")) {
358 return "Information";
359 }
360
361 if (key.equals("testSummaryTestSummary")) {
362 return "Test Summary";
363 }
364
365 if (key.equals("testSummaryEnterComment")) {
366 return "Test Summary Console";
367 }
368 if (key.equals("testSummaryConsoleOutput")) {
369 return "Console output";
370 }
371
372 return null;
373 }
374
375 @Override
376 protected Set<String> handleGetObject(String key) {
377
378 return new HashSet<String>(Arrays.asList("okKey", "cancelKey"));
379 }
380
381 @Override
382 public Enumeration<String> getKeys() {
383 return Collections.enumeration(keySet());
384 }
385
386}