Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 208110 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/hyades/test/core/util/ArtifactUtil.java (-4 / +4 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2005, 2007 IBM Corporation and others.
2
 * Copyright (c) 2005, 2008 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials 
3
 * All rights reserved. This program and the accompanying materials 
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 49-56 Link Here
49
 * @author  Bianca Xue Jiang
49
 * @author  Bianca Xue Jiang
50
 * @author  Julien Canches
50
 * @author  Julien Canches
51
 * @author  Paul E. Slauenwhite
51
 * @author  Paul E. Slauenwhite
52
 * @version January 10, 2007
52
 * @version March 11, 2008
53
 * @since  3.0
53
 * @since   February 8, 2005
54
 */
54
 */
55
public class ArtifactUtil 
55
public class ArtifactUtil 
56
{
56
{
Lines 183-189 Link Here
183
	        "hl14.jar",
183
	        "hl14.jar",
184
	        "hlcommons.jar",
184
	        "hlcommons.jar",
185
	        "hlcore.jar",
185
	        "hlcore.jar",
186
	        "http.hexrecr.jar",
186
	        "urlRecorder.runner.jar",
187
	        "http.runner.jar",
187
	        "http.runner.jar",
188
	        "java.runner.jar",
188
	        "java.runner.jar",
189
		};
189
		};
(-)src/org/eclipse/hyades/execution/recorder/local/appadapters/MozillaAdapter.java (-4 / +9 lines)
Lines 1-5 Link Here
1
/**********************************************************************
1
/**********************************************************************
2
 * Copyright (c) 2005, 2007 IBM Corporation and others.
2
 * Copyright (c) 2005, 2008 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 26-34 Link Here
26
 * (point org.eclipse.hyades.execution.recorder.RecorderApplication) it contains
26
 * (point org.eclipse.hyades.execution.recorder.RecorderApplication) it contains
27
 * logic for initializing, starting, and stopping Mozilla. In particular, this
27
 * logic for initializing, starting, and stopping Mozilla. In particular, this
28
 * object is able to modify user preference settings to cause Mozilla to use a
28
 * object is able to modify user preference settings to cause Mozilla to use a
29
 * particular host and port for proxy recording. .
29
 * particular host and port for proxy recording.
30
 * <p/>
30
 * 
31
 * 
31
 * @author Mark D Dunn
32
 * 
33
 * @author  Mark D Dunn
34
 * @author  Paul E. Slauenwhite
35
 * @version March 11, 2008
36
 * @since   May 25, 2005
32
 * @deprecated  This is not public API.  It will be moved to internal in TPTP 5
37
 * @deprecated  This is not public API.  It will be moved to internal in TPTP 5
33
 */
38
 */
34
public class MozillaAdapter implements IRecorderApplicationAdapter {
39
public class MozillaAdapter implements IRecorderApplicationAdapter {
Lines 66-72 Link Here
66
	public String recorderPathFileName = "recorderPathFile";
71
	public String recorderPathFileName = "recorderPathFile";
67
	
72
	
68
	public static final String PREFERENCE_PATH = "RECORDER_MOZILLA_PATH";
73
	public static final String PREFERENCE_PATH = "RECORDER_MOZILLA_PATH";
69
	public static final String extensionID = "org.eclipse.hyades.test.core.RecorderApplication.Mozilla";
74
70
	/**
75
	/**
71
	 * init routine called by the recorder to have mozilla prepared for
76
	 * init routine called by the recorder to have mozilla prepared for
72
	 * recording
77
	 * recording
(-)src/org/eclipse/hyades/execution/recorder/local/appadapters/FirefoxPrefs.java (-5 / +8 lines)
Lines 1-5 Link Here
1
/**********************************************************************
1
/**********************************************************************
2
 * Copyright (c) 2005, 2007 IBM Corporation and others.
2
 * Copyright (c) 2005, 2008 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 28-36 Link Here
28
/**
28
/**
29
 * This object is the support methods for the FireFoxAdapter.  In particular, this
29
 * This object is the support methods for the FireFoxAdapter.  In particular, this
30
 * object is able to read and modify user preference settings to cause Firefox to use a
30
 * object is able to read and modify user preference settings to cause Firefox to use a
31
 * particular host and port for proxy recording. .
31
 * particular host and port for proxy recording.
32
 * <p/>
32
 * 
33
 * 
33
 * @author Mark D Dunn
34
 * 
35
 * @author  Mark D Dunn
36
 * @author  Paul E. Slauenwhite
37
 * @version March 11, 2008
38
 * @since   May 25, 2005
34
 * @deprecated  This is not public API.  It will be moved to internal in TPTP 5
39
 * @deprecated  This is not public API.  It will be moved to internal in TPTP 5
35
 */
40
 */
36
41
Lines 1280-1287 Link Here
1280
				strKeyFile = initInfo.substring(iStartPos);
1285
				strKeyFile = initInfo.substring(iStartPos);
1281
			}
1286
			}
1282
			// Now have a sslkeyfile, pull path out
1287
			// Now have a sslkeyfile, pull path out
1283
			// d:\\tptpWorkspaces\i4WithMozillaMay27\org.eclipse.hyades.test.tools.ui\testkeys
1284
1285
			int lastSlash = strKeyFile.lastIndexOf(separatorChar);
1288
			int lastSlash = strKeyFile.lastIndexOf(separatorChar);
1286
			String tmp = strKeyFile.substring(0,lastSlash);
1289
			String tmp = strKeyFile.substring(0,lastSlash);
1287
			RecorderPathFileStr = tmp + separatorChar + recorderPathFileName;
1290
			RecorderPathFileStr = tmp + separatorChar + recorderPathFileName;
(-)src/org/eclipse/hyades/execution/recorder/local/appadapters/MozillaPrefs.java (-4 / +7 lines)
Lines 27-35 Link Here
27
/**
27
/**
28
 * This object is the support methods for the MozillaAdapter.  In particular, this
28
 * This object is the support methods for the MozillaAdapter.  In particular, this
29
 * object is able to read and modify user preference settings to cause Firefox to use a
29
 * object is able to read and modify user preference settings to cause Firefox to use a
30
 * particular host and port for proxy recording. .
30
 * particular host and port for proxy recording.
31
 * <p/>
31
 * 
32
 * 
32
 * @author Mark D Dunn
33
 * 
34
 * @author  Mark D Dunn
35
 * @author  Paul E. Slauenwhite
36
 * @version March 11, 2008
37
 * @since   May 25, 2005
33
 * @deprecated  This is not public API.  It will be moved to internal in TPTP 5
38
 * @deprecated  This is not public API.  It will be moved to internal in TPTP 5
34
 */
39
 */
35
40
Lines 1232-1239 Link Here
1232
				strKeyFile = initInfo.substring(iStartPos);
1237
				strKeyFile = initInfo.substring(iStartPos);
1233
			}
1238
			}
1234
			// Now have a sslkeyfile, pull path out
1239
			// Now have a sslkeyfile, pull path out
1235
			// d:\\tptpWorkspaces\i4WithMozillaMay27\org.eclipse.hyades.test.tools.ui\testkeys
1236
1237
			int lastSlash = strKeyFile.lastIndexOf(separatorChar);
1240
			int lastSlash = strKeyFile.lastIndexOf(separatorChar);
1238
			String tmp = strKeyFile.substring(0,lastSlash);
1241
			String tmp = strKeyFile.substring(0,lastSlash);
1239
			RecorderPathFileStr = tmp + separatorChar + recorderPathFileName;
1242
			RecorderPathFileStr = tmp + separatorChar + recorderPathFileName;
(-)src/org/eclipse/hyades/execution/recorder/local/appadapters/JNIWrapper.java (-12 / +13 lines)
Lines 1-5 Link Here
1
/**********************************************************************
1
/**********************************************************************
2
 * Copyright (c) 2007 IBM Corporation and others.
2
 * Copyright (c) 2007, 2008 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 12-37 Link Here
12
12
13
package org.eclipse.hyades.execution.recorder.local.appadapters;
13
package org.eclipse.hyades.execution.recorder.local.appadapters;
14
14
15
15
import java.io.File;
16
import java.io.FileOutputStream;
17
import java.io.IOException;
18
import java.io.OutputStreamWriter;
16
import java.net.URL;
19
import java.net.URL;
17
20
18
import org.eclipse.core.runtime.FileLocator;
21
import org.eclipse.core.runtime.FileLocator;
19
import org.eclipse.core.runtime.Platform;
22
import org.eclipse.core.runtime.Platform;
20
import org.osgi.framework.Bundle;
23
import org.osgi.framework.Bundle;
21
24
22
import java.io.FileOutputStream;
25
/**
23
import java.io.IOException;
26
 * JNI wrapper.
24
import java.io.File;
27
 * <p/>
25
import java.io.OutputStreamWriter;
26
27
28
// added this file for bugzilla 168597
29
/*
30
 * @deprecated  This is not public API.  It will be moved to internal in TPTP 5
31
 * 
28
 * 
32
 * 
29
 * 
30
 * @author  Paul E. Slauenwhite
31
 * @author  Duwayne Morris
32
 * @version March 11, 2008
33
 * @since   October 23, 2007
34
 * @deprecated  This is not public API.  It will be moved to internal in TPTP 5.
33
 */
35
 */
34
 
35
public class JNIWrapper {
36
public class JNIWrapper {
36
	
37
	
37
	private static final native String getLastError();
38
	private static final native String getLastError();
(-)src/org/eclipse/hyades/execution/recorder/local/appadapters/FirefoxAdapter.java (-4 / +8 lines)
Lines 1-5 Link Here
1
/**********************************************************************
1
/**********************************************************************
2
 * Copyright (c) 2005, 2007 IBM Corporation and others.
2
 * Copyright (c) 2005, 2008 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 26-34 Link Here
26
 * (point org.eclipse.hyades.execution.recorder.RecorderApplication) it contains
26
 * (point org.eclipse.hyades.execution.recorder.RecorderApplication) it contains
27
 * logic for initializing, starting, and stopping Firefox. In particular, this
27
 * logic for initializing, starting, and stopping Firefox. In particular, this
28
 * object is able to modify user preference settings to cause Firefox to use a
28
 * object is able to modify user preference settings to cause Firefox to use a
29
 * particular host and port for proxy recording. .
29
 * particular host and port for proxy recording.
30
 * <p/>
30
 * 
31
 * 
31
 * @author Mark D Dunn
32
 * 
33
 * @author  Mark D Dunn
34
 * @author  Paul E. Slauenwhite
35
 * @version March 11, 2008
36
 * @since   May 25, 2005
32
 * @deprecated  This is not public API.  It will be moved to internal in TPTP 5
37
 * @deprecated  This is not public API.  It will be moved to internal in TPTP 5
33
 */
38
 */
34
public class FirefoxAdapter implements IRecorderApplicationAdapter {
39
public class FirefoxAdapter implements IRecorderApplicationAdapter {
Lines 64-70 Link Here
64
	public String recorderPathFileName = "recorderPathFile";
69
	public String recorderPathFileName = "recorderPathFile";
65
		
70
		
66
	public static final String PREFERENCE_PATH = "RECORDER_FIREFOX_PATH";
71
	public static final String PREFERENCE_PATH = "RECORDER_FIREFOX_PATH";
67
	public static final String extensionID = "org.eclipse.hyades.test.core.RecorderApplication.Firefox";
68
72
69
	/**
73
	/**
70
	 * init routine called by the recorder to have firefox prepared for
74
	 * init routine called by the recorder to have firefox prepared for
(-)src/org/eclipse/hyades/test/tools/core/internal/resources/CorePluginResourceBundle.java (-50 lines)
Removed Link Here
1
/**********************************************************************
2
 * Copyright (c) 2007 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * $Id: CorePluginResourceBundle.java,v 1.2 2007/12/05 20:01:33 paules Exp $
8
 * 
9
 * Contributors: 
10
 * IBM - Initial API and implementation
11
 **********************************************************************/
12
package org.eclipse.hyades.test.tools.core.internal.resources;
13
14
import org.eclipse.osgi.util.NLS;
15
16
/**
17
 * Plug-in level resource bundle.
18
 * <p>
19
 * 
20
 * 
21
 * @author      Paul E. Slauenwhite
22
 * @version     March 21, 2007
23
 * @since       March 21, 2007
24
 */
25
public final class CorePluginResourceBundle extends NLS {
26
27
	private static final String BUNDLE_NAME = "org.eclipse.hyades.test.tools.core.internal.resources.messages";//$NON-NLS-1$
28
29
	private CorePluginResourceBundle() {
30
		// Do not instantiate
31
	}
32
33
	public static String W_LOOP;
34
	public static String W_LWR_INV;
35
	public static String Page;
36
	public static String E_INVALID_REC_FILE;
37
	public static String E_SAX_DRIVER_FAILURE;
38
	public static String E_SAX_IOEXCEPTION;
39
	public static String E_SAX_SAXEXCEPTION;
40
	public static String E_LOAD_NODE_HANDLER;
41
	public static String E_PACKET_NO_DATA;
42
	public static String E_DATA_NO_TYPE_ATT;
43
	public static String E_DATA_NO_CONTENT;
44
	public static String E_DATA_NO_ENCODING_ATT;
45
	public static String I_PROCESSING;
46
47
	static {
48
		NLS.initializeMessages(BUNDLE_NAME, CorePluginResourceBundle.class);
49
	}
50
}
(-)src/org/eclipse/hyades/test/tools/core/internal/resources/messages.properties (-32 lines)
Removed Link Here
1
###############################################################################
2
# Copyright (c) 2007 IBM Corporation and others.
3
# All rights reserved. This program and the accompanying materials
4
# are made available under the terms of the Eclipse Public License v1.0
5
# which accompanies this distribution, and is available at
6
# http://www.eclipse.org/legal/epl-v10.html
7
# $Id: messages.properties,v 1.3 2007/12/05 20:01:33 paules Exp $
8
#
9
# Contributors:
10
# IBM Corporation - initial API and implementation
11
###############################################################################
12
#
13
# messages.properties
14
#
15
# NOTE:  When using substitution parameters, all single quote characters (e.g. ') must be escaped with a preceding single quote character (e.g. ''text in single quotes'').
16
#
17
# NLS_MESSAGEFORMAT_VAR
18
# NLS_ENCODING=UTF-8
19
20
W_LOOP                             = Loop
21
W_LWR_INV                          = invocation
22
Page						       = Page
23
E_INVALID_REC_FILE=IWAT3018E invalid .rec file
24
E_SAX_DRIVER_FAILURE=IWAT3019E failed to create XML driver
25
E_SAX_IOEXCEPTION=IWAT3020E IOException parsing input source
26
E_SAX_SAXEXCEPTION=IWAT3021E SAXException parsing input source
27
E_LOAD_NODE_HANDLER=IWAT3022E cannot load node handler
28
E_PACKET_NO_DATA=IWAT3024E data element not found in packet element
29
E_DATA_NO_TYPE_ATT=IWAT3025E type attribute not found in data element
30
E_DATA_NO_CONTENT=IWAT3026E content not found in data element
31
E_DATA_NO_ENCODING_ATT=IWAT3027E encoding attribute not found in data element
32
I_PROCESSING=Processing
(-)build.properties (-10 / +1 lines)
Lines 3-10 Link Here
3
bin.includes = about.html,\
3
bin.includes = about.html,\
4
               plugin.xml,\
4
               plugin.xml,\
5
               tools-core.jar,\
5
               tools-core.jar,\
6
               http.hexrecr.jar,\
7
               http.hextgen.jar,\
8
               common.runner.jar,\
6
               common.runner.jar,\
9
               http.runner.jar,\
7
               http.runner.jar,\
10
               java.runner.jar,\
8
               java.runner.jar,\
Lines 12-31 Link Here
12
               config.jar,\
10
               config.jar,\
13
               config/,\
11
               config/,\
14
               plugin.properties,\
12
               plugin.properties,\
15
               META-INF/,\
13
               META-INF/
16
               testkeys
17
14
18
jars.compile.order = common.runner.jar,\
15
jars.compile.order = common.runner.jar,\
19
                     tools-core.jar,\
16
                     tools-core.jar,\
20
                     java.runner.jar,\
17
                     java.runner.jar,\
21
                     http.runner.jar,\
18
                     http.runner.jar,\
22
                     http.hexrecr.jar,\
23
                     http.hextgen.jar,\
24
                     config.jar
19
                     config.jar
25
source.http.hexrecr.jar = src-recorder-http-runner/
26
output.http.hexrecr.jar = bin/
27
source.http.hextgen.jar = src-testgen-http/
28
output.http.hextgen.jar = bin/
29
source.common.runner.jar = src-common-runner/
20
source.common.runner.jar = src-common-runner/
30
output.common.runner.jar = bin/
21
output.common.runner.jar = bin/
31
source.http.runner.jar = src-http-runner/
22
source.http.runner.jar = src-http-runner/
(-).classpath (-2 lines)
Lines 4-11 Link Here
4
	<classpathentry kind="src" path="src-common-runner"/>
4
	<classpathentry kind="src" path="src-common-runner"/>
5
	<classpathentry kind="src" path="src-http-runner"/>
5
	<classpathentry kind="src" path="src-http-runner"/>
6
	<classpathentry kind="src" path="src-java-runner"/>
6
	<classpathentry kind="src" path="src-java-runner"/>
7
	<classpathentry kind="src" path="src-recorder-http-runner"/>
8
	<classpathentry kind="src" path="src-testgen-http"/>
9
	<classpathentry kind="src" path="src-config"/>
7
	<classpathentry kind="src" path="src-config"/>
10
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
8
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
11
	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
9
	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
(-)plugin.xml (-10 lines)
Lines 80-95 Link Here
80
      </loader>
80
      </loader>
81
   </extension>
81
   </extension>
82
82
83
	<extension
84
			point="org.eclipse.hyades.test.core.TestGenerator">
85
		<Generator
86
        class="org.eclipse.hyades.execution.testgen.http.Testgen"
87
        id="org.eclipse.hyades.test.tools.core.TestGenerator.HTTPGenerator"
88
        name="%HTTP_Test_Generator_Name"
89
        priority="-1"
90
        recorderID="org.eclipse.hyades.test.tools.recorder.http">
91
		</Generator>
92
	</extension>
93
 <extension
83
 <extension
94
       id="java.junit.builder"
84
       id="java.junit.builder"
95
       name="%TPTP_JUNIT_BUILDER"
85
       name="%TPTP_JUNIT_BUILDER"
(-)plugin.properties (-2 / +1 lines)
Lines 1-5 Link Here
1
###############################################################################
1
###############################################################################
2
# Copyright (c) 2005, 2007 IBM Corporation and others.
2
# Copyright (c) 2005, 2008 IBM Corporation and others.
3
# All rights reserved. This program and the accompanying materials 
3
# All rights reserved. This program and the accompanying materials 
4
# are made available under the terms of the Eclipse Public License v1.0
4
# are made available under the terms of the Eclipse Public License v1.0
5
# which accompanies this distribution, and is available at
5
# which accompanies this distribution, and is available at
Lines 23-29 Link Here
23
providerName                     					= Eclipse.org
23
providerName                     					= Eclipse.org
24
24
25
TPTP_JUNIT_BUILDER                					= TPTP JUnit Builder
25
TPTP_JUNIT_BUILDER                					= TPTP JUnit Builder
26
HTTP_Test_Generator_Name           					= TPTP URL Test Generator
27
26
28
TPTP_JUNIT_TYPE_NAME_VARIABLE_DESCRIPTION			= Returns the name of the type implementing a JUnit test. The target JUnit test is the selected regular JUnit test in a TPTP view.
27
TPTP_JUNIT_TYPE_NAME_VARIABLE_DESCRIPTION			= Returns the name of the type implementing a JUnit test. The target JUnit test is the selected regular JUnit test in a TPTP view.
29
TPTP_JUNIT_PROJECT_VARIABLE_DESCRIPTION				= Returns the project name of a JUnit test. The target JUnit test is the selected regular JUnit test in a TPTP view.
28
TPTP_JUNIT_PROJECT_VARIABLE_DESCRIPTION				= Returns the project name of a JUnit test. The target JUnit test is the selected regular JUnit test in a TPTP view.
(-)META-INF/MANIFEST.MF (-6 / +2 lines)
Lines 6-20 Link Here
6
Bundle-ClassPath: tools-core.jar,
6
Bundle-ClassPath: tools-core.jar,
7
 common.runner.jar,
7
 common.runner.jar,
8
 java.runner.jar,
8
 java.runner.jar,
9
 http.runner.jar,
9
 http.runner.jar
10
 http.hexrecr.jar,
11
 http.hextgen.jar
12
Bundle-Activator: org.eclipse.hyades.test.tools.core.CorePlugin
10
Bundle-Activator: org.eclipse.hyades.test.tools.core.CorePlugin
13
Bundle-Vendor: %providerName
11
Bundle-Vendor: %providerName
14
Bundle-Localization: plugin
12
Bundle-Localization: plugin
15
Export-Package: .,
13
Export-Package: .,
16
 org.eclipse.hyades.execution.recorder.http.remote,
17
 org.eclipse.hyades.execution.testgen.http,
18
 org.eclipse.hyades.test.common.agent,
14
 org.eclipse.hyades.test.common.agent,
19
 org.eclipse.hyades.test.common.event,
15
 org.eclipse.hyades.test.common.event,
20
 org.eclipse.hyades.test.common.junit,
16
 org.eclipse.hyades.test.common.junit,
Lines 55-59 Link Here
55
 org.junit;bundle-version="[3.8.1,4.0.0)",
51
 org.junit;bundle-version="[3.8.1,4.0.0)",
56
 org.eclipse.core.variables;bundle-version="[3.1.100,4.0.0)",
52
 org.eclipse.core.variables;bundle-version="[3.1.100,4.0.0)",
57
 org.eclipse.xsd;bundle-version="[2.2.0,3.0.0)"
53
 org.eclipse.xsd;bundle-version="[2.2.0,3.0.0)"
58
Eclipse-LazyStart: true
54
Bundle-ActivationPolicy: lazy
59
Bundle-RequiredExecutionEnvironment: J2SE-1.4
55
Bundle-RequiredExecutionEnvironment: J2SE-1.4
(-)tasks/trecordtest.html (-116 lines)
Removed Link Here
1
<!DOCTYPE html
2
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
<html lang="en-us" xml:lang="en-us">
4
<!-- 
5
/**********************************************************************
6
 * Copyright (c) 2006, 2008 IBM Corporation.
7
 * All rights reserved.   This content
8
 * is made available under the terms of the Eclipse Public License v1.0
9
 * which accompanies this distribution, and is available at
10
 * http://www.eclipse.org/legal/epl-v10.html        
11
 * $Id: trecordtest.html,v 1.6 2008/03/07 15:09:34 paules Exp $
12
 *
13
 * Contributors:
14
 * IBM - Initial contribution
15
 **********************************************************************/  
16
 -->
17
<head>
18
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
19
<meta name="security" content="public" />
20
<meta name="Robots" content="index,follow" />
21
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
22
<meta name="DC.Type" content="task" />
23
<meta name="DC.Title" content="Recording a test" />
24
<meta name="abstract" content="The test creation wizard starts when you record a test. This wizard combines these actions: recording a session with a Web application, generating a test from the recording, and opening the test in the test editor. You can record a test from Internet Explorer (the default on Windows) or from another browser." />
25
<meta name="description" content="The test creation wizard starts when you record a test. This wizard combines these actions: recording a session with a Web application, generating a test from the recording, and opening the test in the test editor. You can record a test from Internet Explorer (the default on Windows) or from another browser." />
26
<meta name="DC.Format" content="XHTML" />
27
<meta name="DC.Identifier" content="recordingatest" />
28
<meta name="DC.Language" content="en-us" />
29
<link rel="stylesheet" type="text/css" href="../css/ibmdita.css" />
30
<link rel="stylesheet" type="text/css" href="../css/book.css" />
31
<title>Recording a test</title>
32
</head>
33
<body><a name="recordingatest"><!-- --></a>
34
<h1 class="topictitle1">Recording a test</h1>
35
<div><p>The test creation wizard starts when you record a test. This wizard
36
combines these actions: recording a session with a Web application, generating
37
a test from the recording, and opening the test in the test editor. You can
38
record a test from Internet Explorer (the default on Windows) or from another
39
browser.</p>
40
<div class="p">Before recording, verify that the Agent Controller is running on the
41
local computer.<p>If you will record with Internet Explorer, you do not need
42
to set your browser preferences. However, this procedure assumes that the
43
defaults are set, so you might want to click <span class="menucascade"><span class="uicontrol">Window</span> &gt; <span class="uicontrol">Preferences</span></span>, expand Test, select <span class="uicontrol">HTTP
44
Recording</span>, and click <span class="uicontrol">Restore Defaults</span>. </p>
45
<div class="p">If
46
you will record with Mozilla or Firefox, set your browser preferences as follows: <ol><li>Click <span class="menucascade"><span class="uicontrol">Window</span> &gt; <span class="uicontrol">Preferences</span></span>, and expand <span class="uicontrol">Test</span>.</li>
47
<li> Select <span class="uicontrol">URL Recorder</span>, and set <span class="uicontrol">Application
48
to Record</span> to <span class="uicontrol">Mozilla</span> or <span class="uicontrol">Firefox</span>.</li>
49
<li>Enter the path to, or browse to, the browser executable. </li>
50
</ol>
51
 </div>
52
<div class="p">If you will record with another browser:<ol><li>Click <span class="menucascade"><span class="uicontrol">Window</span> &gt; <span class="uicontrol">Preferences</span></span>, and expand <span class="uicontrol">Test</span>.</li>
53
<li> Select <span class="uicontrol">URL Recorder</span>, and set <span class="uicontrol">Application
54
to Record</span> to <span class="uicontrol">None</span>.</li>
55
<li>You will have to manually configure and load your browser; consult the
56
browser's proxy configuration documentation on how to do this.</li>
57
</ol>
58
 </div>
59
</div>
60
<div class="section">To record a test: </div>
61
<ol><li class="stepexpand"><span>Click <span class="menucascade"><span class="uicontrol">File</span> &gt; <span class="uicontrol">New</span> &gt; <span class="uicontrol">Other</span></span>.</span></li>
62
<li class="stepexpand"><span>In the New window, expand <span class="uicontrol">Test</span>, click <span class="uicontrol">Test
63
From Recording</span>, and then click <span class="uicontrol">Next</span>. </span></li>
64
<li class="stepexpand"><span>In the Create New Test from Recording window, select <span class="uicontrol">Create
65
Test from New Recording</span>, and then click <span class="uicontrol">Next</span>. </span></li>
66
<li class="stepexpand"><span> In the list of projects, click the one in which to store this
67
test and related files. The <img src="../images/javaicon.gif" alt="Java icon" /> icon identifies projects that are suitable for containing tests.
68
Tests stored in other projects will not run. </span> <div class="note"><span class="notetitle">Note:</span> If you have
69
not yet created a project, the <span class="uicontrol">Project Name</span> field displays
70
a default name of <tt class="sysout">testproj</tt>, which you can change.</div>
71
</li>
72
<li class="stepexpand"><span>In the <span class="uicontrol">Test file name</span> field, type a
73
name for the test, and click <span class="uicontrol">Finish</span>. The standard Navigator
74
and the Java Package Explorer use this name, with extensions. You will also
75
see this name in the Test Navigator.  A progress window opens while your browser
76
starts. </span></li>
77
<li class="stepexpand"><span>To make sure your recording accurately captures HTTP traffic, clear
78
your browser's cache.</span> <div class="p">To clear the Internet Explorer cache: <ol type="a"><li>Click <span class="menucascade"><span class="uicontrol">Tools</span> &gt; <span class="uicontrol">Internet Options</span></span>.</li>
79
<li>In the Internet Options window, in the Temporary Internet files area,
80
click <span class="uicontrol">Delete Files</span>.</li>
81
<li>In the Delete Files window, select <span class="uicontrol">Delete all offline content</span> and
82
click <span class="uicontrol">OK</span>. </li>
83
<li>Click <span class="uicontrol">OK</span> to close the Internet Options window. </li>
84
</ol>
85
</div>
86
<div class="p">To clear the Mozilla cache:<ol type="a"><li>Click <span class="menucascade"><span class="uicontrol">Edit</span> &gt; <span class="uicontrol">Preferences</span></span>.</li>
87
<li>In the Preferences window, expand <span class="uicontrol">Advanced</span> and
88
click <span class="uicontrol">Cache</span>.</li>
89
<li>In the Set Cache Options area, click <span class="uicontrol">Clear Cache</span>.</li>
90
<li>Click <span class="uicontrol">OK</span> to close the Preferences window.</li>
91
</ol>
92
</div>
93
<div class="p">To clear the Firefox cache<ol type="a"><li>Click <span class="menucascade"><span class="uicontrol">Tools</span> &gt; <span class="uicontrol">Options</span> &gt; <span class="uicontrol">Privacy</span> &gt; <span class="uicontrol">Clear Cache</span></span>.</li>
94
<li>Click <span class="uicontrol">OK</span> to close the Options window.</li>
95
</ol>
96
</div>
97
</li>
98
<li class="stepexpand"><span>In the address box for your browser, type the address of the Web-based
99
application to test and activate the link. </span> <div class="note"><span class="notetitle">Note:</span> If you enter
100
the address of a secure Web site (one that starts with <kbd class="userinput">https:</kbd>),
101
your browser might display a security alert. Depending on the security certificate
102
for the site, you might be required to accept a security risk to proceed with
103
the recording.</div>
104
</li>
105
<li class="stepexpand"><span> Perform the user tasks that you want to test. </span></li>
106
<li class="stepexpand"><span>After you finish performing the tasks, stop recording. To stop
107
recording, close your browser or click on the <span class="uicontrol">Stop Recording</span>
108
button on the right side of the Recorder Control
109
view bar. </span> A progress window opens while the test is generated. </li>
110
</ol>
111
<div class="section">On completion, the Recorder Control view displays the message <tt class="sysout">Test
112
generation completed</tt>, the Test Navigator lists your test, and
113
the test opens for you to inspect or edit.</div>
114
</div>
115
</body>
116
</html>
(-)toc/url_toc.xml (-2 / +6 lines)
Lines 1-7 Link Here
1
<?xml version="1.0" encoding="utf-8"?>
1
<?xml version="1.0" encoding="utf-8"?>
2
<!-- 
2
<!-- 
3
/**********************************************************************
3
/**********************************************************************
4
 * Copyright (c) 2007 IBM Corporation.
4
 * Copyright (c) 2007, 2008 IBM Corporation.
5
 * All rights reserved.   This content
5
 * All rights reserved.   This content
6
 * is made available under the terms of the Eclipse Public License v1.0
6
 * is made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
7
 * which accompanies this distribution, and is available at
Lines 15-21 Link Here
15
<?NLS TYPE="org.eclipse.help.toc"?>
15
<?NLS TYPE="org.eclipse.help.toc"?>
16
<toc label="Testing performance"> 
16
<toc label="Testing performance"> 
17
	<topic label="Testing performance" href="concepts/ctestwithhyades.htm">
17
	<topic label="Testing performance" href="concepts/ctestwithhyades.htm">
18
      <topic label="Recording a test" href="tasks/trecordtest.html"/>
18
           
19
      <topic label="Creating a test" href="tasks/tcreatingaperformancetest.htm">
20
            <anchor id="test_suite_generators"/>
21
      </topic>
22
      
19
      <topic label="Editing a test" href="concepts/cedittest.htm"/>
23
      <topic label="Editing a test" href="concepts/cedittest.htm"/>
20
      <topic label="Generating an executable test" href="tasks/tgenerateexecutabletest.htm"/>
24
      <topic label="Generating an executable test" href="tasks/tgenerateexecutabletest.htm"/>
21
      <topic label="Running a test" href="tasks/trun.htm"/>
25
      <topic label="Running a test" href="tasks/trun.htm"/>
(-)concepts/cedittest.htm (-17 / +6 lines)
Lines 36-54 Link Here
36
<h1 class="topictitle1">Editing a test</h1>
36
<h1 class="topictitle1">Editing a test</h1>
37
<div><p>You can inspect and modify a test prior to compiling and running
37
<div><p>You can inspect and modify a test prior to compiling and running
38
it.</p>
38
it.</p>
39
<p>By default, when you have finished recording an interaction with a browser-based
39
<p>Note, the test is not yet executable. You can immediately make the test executable
40
application, the <b>URL Recorder</b> automatically starts the <b>URL
41
Test Generator</b>, which produces a test from the recording. (You can modify
42
this behavior - specify that a different test generator be started, or that
43
none be started - by editing the <b>URL Recorder</b> preferences.)
44
The test is not yet executable. You can immediately make the test executable
45
by right-clicking it in the Test Navigator and selecting <span class="uicontrol">Generate</span>.
40
by right-clicking it in the Test Navigator and selecting <span class="uicontrol">Generate</span>.
46
Or you can first edit the test by right-clicking it and selecting <span class="uicontrol">Open</span>. </p>
41
Or you can first edit the test by right-clicking it and selecting <span class="uicontrol">Open</span>. </p>
47
<p> </p>
42
<p> </p>
48
<p>From TPTP, three types of test suite can be created and edited. The type
43
<p>Open the performance test in the TPTP URL Test editor:</p>
49
created by the <b>URL Test Generator</b> is named <b>URL Test</b>.
50
The following figure illustrates what you see when you open an <span class="uicontrol">URL Test</span>. You see a slightly different organization when you
51
open other types of tests.</p>
52
<img src="../images/editOverview.jpg" alt=""/><p>The test opens in the <span class="uicontrol">Overview</span> tab (see the bottom
44
<img src="../images/editOverview.jpg" alt=""/><p>The test opens in the <span class="uicontrol">Overview</span> tab (see the bottom
53
border) with the four edit areas (<span class="uicontrol">General Information</span> and <span class="uicontrol">Source
45
border) with the four edit areas (<span class="uicontrol">General Information</span> and <span class="uicontrol">Source
54
Information</span> on the left and <span class="uicontrol">Deployment</span> and <span class="uicontrol">HTTP Requests</span> on
46
Information</span> on the left and <span class="uicontrol">Deployment</span> and <span class="uicontrol">HTTP Requests</span> on
Lines 58-75 Link Here
58
name, an optional description, the test's type, and the name of the file containing
50
name, an optional description, the test's type, and the name of the file containing
59
the test. Information appearing in boxes can be edited. The <span class="uicontrol">Name</span> box
51
the test. Information appearing in boxes can be edited. The <span class="uicontrol">Name</span> box
60
under <span class="uicontrol">General Information</span> displays the name of the
52
under <span class="uicontrol">General Information</span> displays the name of the
61
test. Initially, this is the same as the <span class="uicontrol">Test file name</span> that
53
test. You can change the name. If you do, the
62
you specified during recording, but you can change the name. If you do, the
63
name displayed in the Test Navigator changes also but the filename containing
54
name displayed in the Test Navigator changes also but the filename containing
64
the test does not change. In this example, the test's name, as listed in the
55
the test does not change. In this example, the test's name, as listed in the
65
Test Navigator and displayed in the <span class="uicontrol">Name</span> box, was originally <span class="uicontrol">b</span> -
56
Test Navigator and displayed in the <span class="uicontrol">Name</span> box. The tester has decided
66
same as the recording file name, without the suffix. The tester has decided
67
to change the name to something more descriptive of the task that the test
57
to change the name to something more descriptive of the task that the test
68
emulates, <span class="uicontrol">searchEmployeeDB</span>.</p>
58
emulates, <span class="uicontrol">searchEmployeeDB</span>.</p>
69
<p>The <span class="uicontrol">Source Information</span> area displays the Java package
59
<p>The <span class="uicontrol">Source Information</span> area displays the Java package
70
name that will contain the test's executable Java code when it is generated,
60
name that will contain the test's executable Java code when it is generated,
71
and the Java class implementing the test - same as the recording file name,
61
and the Java class implementing the test. You can relocate
72
without the suffix, with the initial character upper-cased. You can relocate
73
the code to a different package by clicking the <span class="uicontrol">Browse</span> button
62
the code to a different package by clicking the <span class="uicontrol">Browse</span> button
74
under the <span class="uicontrol">Package Name:</span> box.</p>
63
under the <span class="uicontrol">Package Name:</span> box.</p>
75
<p>The <span class="uicontrol">HTTP Requests</span> area on the right lists all HTTP
64
<p>The <span class="uicontrol">HTTP Requests</span> area on the right lists all HTTP
Lines 89-95 Link Here
89
</p>
78
</p>
90
<p>Clicking the <span class="uicontrol">Behavior</span> tab opens the behavior edit
79
<p>Clicking the <span class="uicontrol">Behavior</span> tab opens the behavior edit
91
pane, shown below.</p>
80
pane, shown below.</p>
92
<img src="../images/editBehavior.jpg"  alt=""/><p>The HTTP requests initially recorded by the test are listed by page, as
81
<img src="../images/editBehavior.jpg"  alt=""/><p>The HTTP requests are listed by page, as
93
invocations, inside a loop construct initially named <span class="uicontrol">Loop 1</span>.
82
invocations, inside a loop construct initially named <span class="uicontrol">Loop 1</span>.
94
With this loop selected, you can rename the loop, describe what it does, or
83
With this loop selected, you can rename the loop, describe what it does, or
95
change the <span class="uicontrol">Number of Iterations</span>. With <span class="uicontrol">Synchronous</span> checked
84
change the <span class="uicontrol">Number of Iterations</span>. With <span class="uicontrol">Synchronous</span> checked
(-)concepts/ctestwithhyades.htm (-4 / +3 lines)
Lines 3-9 Link Here
3
<html lang="en-us" xml:lang="en-us">
3
<html lang="en-us" xml:lang="en-us">
4
<!-- 
4
<!-- 
5
/**********************************************************************
5
/**********************************************************************
6
 * Copyright (c) 2004, 2007 IBM Corporation.
6
 * Copyright (c) 2004, 2008 IBM Corporation.
7
 * All rights reserved.   This content
7
 * All rights reserved.   This content
8
 * is made available under the terms of the Eclipse Public License v1.0
8
 * is made available under the terms of the Eclipse Public License v1.0
9
 * which accompanies this distribution, and is available at
9
 * which accompanies this distribution, and is available at
Lines 24-30 Link Here
24
<meta name="DC.Title" content="Testing performance" />
24
<meta name="DC.Title" content="Testing performance" />
25
<meta name="abstract" content="The Eclipse test and performance tools platform (TPTP) supports automated performance testing of HTTP applications." />
25
<meta name="abstract" content="The Eclipse test and performance tools platform (TPTP) supports automated performance testing of HTTP applications." />
26
<meta name="description" content="The Eclipse test and performance tools platform (TPTP) supports automated performance testing of HTTP applications." />
26
<meta name="description" content="The Eclipse test and performance tools platform (TPTP) supports automated performance testing of HTTP applications." />
27
<meta name="DC.Relation" scheme="URI" content="../tasks/trecordtop.dita" />
28
<meta name="DC.Relation" scheme="URI" content="../concepts/cedittest.dita" />
27
<meta name="DC.Relation" scheme="URI" content="../concepts/cedittest.dita" />
29
<meta name="DC.Relation" scheme="URI" content="../tasks/tgenerateexecutabletest.dita" />
28
<meta name="DC.Relation" scheme="URI" content="../tasks/tgenerateexecutabletest.dita" />
30
<meta name="DC.Relation" scheme="URI" content="../tasks/truntest.dita" />
29
<meta name="DC.Relation" scheme="URI" content="../tasks/truntest.dita" />
Lines 45-52 Link Here
45
44
46
<div>
45
<div>
47
<blockquote>
46
<blockquote>
48
<div class="ulchildlink"><b><a href="../tasks/trecordtest.html">Recording a test</a></b><br />
47
<div class="ulchildlink"><b><a href="../tasks/tcreatingaperformancetest.htm">Creating a test</a></b><br />
49
The test creation wizard starts when you start the test recorder. This wizard combines into a single flow these actions: the recording of a session with a Web application, the generation of a test from the recording, and the opening of the test in the test editor. You can record tests from Internet Explorer (the default on Windows) or from another browser.</div>
48
You can create a performance test.</div>
50
<div class="ulchildlink"><b><a href="../concepts/cedittest.htm">Editing a test</a></b><br />
49
<div class="ulchildlink"><b><a href="../concepts/cedittest.htm">Editing a test</a></b><br />
51
You can inspect and modify a test prior to compiling and running it.</div>
50
You can inspect and modify a test prior to compiling and running it.</div>
52
<div class="ulchildlink"><b><a href="../tasks/tgenerateexecutabletest.htm">Generating an executable test</a></b><br />
51
<div class="ulchildlink"><b><a href="../tasks/tgenerateexecutabletest.htm">Generating an executable test</a></b><br />
(-)ref/rdeploymentGroundRules.htm (-2 / +2 lines)
Lines 2-8 Link Here
2
<html lang="en-us" xml:lang="en-us">
2
<html lang="en-us" xml:lang="en-us">
3
<!-- 
3
<!-- 
4
/**********************************************************************
4
/**********************************************************************
5
 * Copyright (c) 2006, 2007 Scapa Technologies and others.
5
 * Copyright (c) 2006, 2008 Scapa Technologies and others.
6
 * All rights reserved. This content is made available under 
6
 * All rights reserved. This content is made available under 
7
 * the terms of the Eclipse Public License v1.0
7
 * the terms of the Eclipse Public License v1.0
8
 * which accompanies this distribution, and is available at
8
 * which accompanies this distribution, and is available at
Lines 123-129 Link Here
123
	<li>hlcore.jar</li>
123
	<li>hlcore.jar</li>
124
	<li>hlevents.jar</li>
124
	<li>hlevents.jar</li>
125
	<li>hlcbe101.jar</li>
125
	<li>hlcbe101.jar</li>
126
	<li>http.hexrecr.jar</li>
126
	<li>urlRecorder.runner.jar</li>
127
	<li>http.runner.jar</li>
127
	<li>http.runner.jar</li>
128
	<li>java.runner.jar</li>
128
	<li>java.runner.jar</li>
129
	<li>jmxagent.jar</li>
129
	<li>jmxagent.jar</li>
(-)tasks/tcreatingaperformancetest.htm (+54 lines)
Added Link Here
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
2
<html lang="en-us" xml:lang="en-us">
3
4
<!-- 
5
/**********************************************************************
6
 * Copyright (c) 2008 IBM Corporation.
7
 * All rights reserved.   This content
8
 * is made available under the terms of the Eclipse Public License v1.0
9
 * which accompanies this distribution, and is available at
10
 * http://www.eclipse.org/legal/epl-v10.html        
11
 * $Id$
12
 *
13
 * Contributors:
14
 * IBM - Initial contribution
15
 **********************************************************************/  
16
 -->
17
18
<head>
19
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1"/>
20
<link rel=StyleSheet href="../css/book.css" type="text/css"/>
21
22
<title>Creating a test</title>
23
24
</head>
25
26
<body>
27
28
<div>
29
30
<h2>Creating a test</h2>
31
<p>
32
This topic describes how to create a performance test suite.
33
</p>
34
35
<ol>
36
	<li>Create a Java project.</li>
37
	<li>Open the Test perspective <b>Window &gt; Open Perspective &gt; Other... &gt; Test</b>.</li>
38
	<li>Click <b>File &gt; New &gt; Other</b>. The <b>New</b> dialog appears.</li>
39
	<li>Expand the <b>Test</b> folder, then select <b>TPTP URL Test</b>.</li>
40
	<li>Click <b>Next</b>, select the location (the project created in step 1), and name the performance test suite, for example, <i>examplePerformanceTest</i>.</li>
41
	<li>Click <b>Next</b> and optionally provide a description for the performance test suite. Click <b>Finish</b>.</li>
42
	<li>A performance test suite file (examplePerformanceTest.testsuite) will be created, becomes visible in the Test Navigator and opens in the URL Test editor.</li>
43
</ol>
44
</div>
45
46
<div>
47
<p>
48
<b class="parentlink">Parent topic:</b> <a href="../concepts/ctestwithhyades.htm" shape="rect" title="The Eclipse test and performance tools platform (TPTP) supports automated performance testing of HTTP applications.">Performance Testing with TPTP</a><br clear="none" />
49
</p>
50
</div>
51
52
</body>
53
54
</html>
(-)META-INF/MANIFEST.MF (-1 lines)
Lines 8-14 Link Here
8
Bundle-Localization: plugin
8
Bundle-Localization: plugin
9
Export-Package: org.eclipse.hyades.execution.recorder,
9
Export-Package: org.eclipse.hyades.execution.recorder,
10
 org.eclipse.hyades.execution.recorder.ui.preferences,
10
 org.eclipse.hyades.execution.recorder.ui.preferences,
11
 org.eclipse.hyades.execution.testgen,
12
 org.eclipse.hyades.internal.execution.recorder.ui,
11
 org.eclipse.hyades.internal.execution.recorder.ui,
13
 org.eclipse.hyades.internal.execution.recorder.ui.actions,
12
 org.eclipse.hyades.internal.execution.recorder.ui.actions,
14
 org.eclipse.hyades.internal.execution.recorder.ui.views,
13
 org.eclipse.hyades.internal.execution.recorder.ui.views,
(-)src-recorder/org/eclipse/hyades/internal/execution/recorder/ui/wizards/RecorderRegistryInfo.java (-615 lines)
Removed Link Here
1
/**********************************************************************
2
 * Copyright (c) 2005, 2007 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * $Id: RecorderRegistryInfo.java,v 1.13 2007/10/23 14:14:41 dmorris Exp $
8
 * 
9
 * Contributors: 
10
 * IBM Corporation - initial API and implementation
11
 **********************************************************************/
12
13
/*
14
 * Created on Mar 4, 2004
15
 *
16
 * To change the template for this generated file go to
17
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
18
 */
19
package org.eclipse.hyades.internal.execution.recorder.ui.wizards;
20
21
import java.io.File;
22
import java.io.FileInputStream;
23
24
import java.io.IOException;
25
import java.io.InputStreamReader;
26
import java.net.URL;
27
import java.util.StringTokenizer;
28
29
import org.eclipse.core.runtime.FileLocator;
30
import org.eclipse.core.runtime.IPath;
31
import org.eclipse.core.runtime.Platform;
32
import org.eclipse.hyades.execution.recorder.local.appadapters.JNIWrapper;
33
import org.osgi.framework.Bundle;
34
35
/**
36
 * @author mdunn
37
 *
38
 * To change the template for this generated type comment go to
39
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
40
 */
41
public class RecorderRegistryInfo {
42
	
43
	private String proxyType = "";
44
	private String proxyAddr = "";
45
	private String proxyPort = "";
46
	private boolean isProxyEnabled = false;
47
	private boolean badProxySettings = false;
48
	private int proxyError = 0;
49
	// defect 82974 1/18/2005
50
	private boolean isAutoConfigURLEnabled = false;
51
	private boolean isProxyOverrideEnabled = false;
52
53
	public final int PROXY_SETTINGS_OK = 0;
54
	public final int SOCKS_SET = -1;
55
	public final int HTTP_PROXY_ONLY_SET = -2;
56
	public final int SECURE_PROXY_ONLY_SET = -3;
57
	public final int HTTP_SECURE_MISMATCH = -4;
58
	public final int HTTP_SECURE_LOCALHOST = -5;
59
	public final int HTTP_PROXY_OVERRIDE = -6;
60
	public final int AUTO_CONFIG_URL = -7;
61
	// below is for bugzilla 177396 mdd
62
	public final int VISTA_ADMIN_ERROR = -8;
63
	public final int WINDOWS_ADMIN_ERROR = -8;
64
	public final int BROWSER_IN_USE_ERROR = -9;
65
	public final int RECORDING_TPTPRECUTIL_DLL_MISSING = -10;
66
	// bugzilla 79219 mdd
67
	private String sslProxyAddr = "";
68
	private String sslProxyPort = "";
69
	private String secureStringGlobal = "";
70
	private boolean isSSLProxyEnabled = false;
71
	// new stuff bugzilla 89968 mdd
72
	private String proxyOverrideString = "";
73
	private String autoConfigURLString = "";
74
	
75
	private boolean bUseNativeRegistryInterface = false;
76
	private JNIWrapper jniWrapper = null;	
77
	
78
	public RecorderRegistryInfo() {
79
		StringBuffer inputFileContents = new StringBuffer();
80
		// return of false indicates fatal error
81
		checkOSVersion(inputFileContents);		
82
		if (bUseNativeRegistryInterface)
83
				getRegistryInfoUsingNativeAPI(inputFileContents);
84
			else
85
				getRegistryInfo(inputFileContents);
86
		
87
		// below is for bugzilla 177396 mdd
88
		String checkVistaError=inputFileContents.toString();
89
		if (checkVistaError.equalsIgnoreCase("VISTA_ADMIN_ERROR")) {
90
			setBadProxySettings(true);
91
			setProxyError(VISTA_ADMIN_ERROR);
92
		}
93
		else if (checkVistaError.equalsIgnoreCase("WINDOWS_ADMIN_ERROR")) {
94
			setBadProxySettings(true);
95
			setProxyError(WINDOWS_ADMIN_ERROR);
96
		}
97
		else if (checkVistaError.equalsIgnoreCase("BROWSER_IN_USE_ERROR")) {
98
			setBadProxySettings(true);
99
			setProxyError(BROWSER_IN_USE_ERROR);
100
		}		
101
		if (checkVistaError.equalsIgnoreCase("RECORDING_TPTPRECUTIL_DLL_MISSING")) {
102
			setBadProxySettings(true);
103
			setProxyError(RECORDING_TPTPRECUTIL_DLL_MISSING);
104
		}
105
		else {
106
			boolean isEnabled = checkProxyEnabled(inputFileContents);
107
			setProxyEnabled(isEnabled);
108
			if (! isEnabled ) {
109
				setProxyType("socks");
110
			}
111
			else {	
112
				// must do it new way for hyades 1.3 mdd
113
				// make sure it is http proxy, grab the address and port
114
				// then set ProxyServer http=localhost:1080
115
				String proxyInfo = getProxyInfo(inputFileContents);
116
				if (isProxyEnabled && isProxyOverrideEnabled) {
117
					setBadProxySettings(true);
118
					setProxyError(HTTP_PROXY_OVERRIDE);
119
				}
120
				if (proxyInfo.length()!= 0) {
121
					String[] proxySplit = proxyInfo.split(":");
122
					String myProxyAddr = proxySplit[0];
123
					String myProxyPort = proxySplit[1];
124
					setProxyAddr(myProxyAddr);	
125
					setProxyPort(myProxyPort);
126
					setProxyType("http");
127
					// defect 79219
128
					if (secureStringGlobal.length()!= 0) {
129
						String[] sslSplit = secureStringGlobal.split(":");
130
						String mysslProxyAddr = sslSplit[0];
131
						String mysslProxyPort = sslSplit[1];
132
						setSslProxyAddr(mysslProxyAddr);	
133
						setSslProxyPort(mysslProxyPort);
134
					}
135
				}
136
				else {
137
					setProxyType("socks");
138
				}
139
			}
140
		}
141
	}
142
	
143
	private boolean checkOSVersion(StringBuffer inputFileContents){
144
		String currentOS = Platform.getOS();
145
		if (currentOS.equals("win32")) {
146
			String myVersion = System.getProperty("os.version");
147
			if (myVersion.startsWith("6")) {
148
				try{
149
					// Bugilla 168597, use native registry calls 
150
					// instead of displaying an error message
151
					Bundle b = Platform.getBundle("org.eclipse.hyades.test.core");
152
					URL u = FileLocator.resolve(b.getEntry("/"));
153
					String path = u.getPath();
154
					path = path.substring(1);
155
					String finalPath = path + "TPTPRecUtil.dll";
156
					File dllFile = new File(finalPath);
157
					if (dllFile.exists() == false){
158
						return false;
159
					}
160
						
161
					
162
					jniWrapper = new JNIWrapper();
163
					if (jniWrapper.isProcessRunningElevated() == false){
164
						bUseNativeRegistryInterface = true;
165
						if (jniWrapper.isBrowserRunning() == true){
166
							inputFileContents.append("BROWSER_IN_USE_ERROR");
167
							return false;
168
						}
169
					}
170
				}
171
				catch (IOException ioe){
172
					
173
				}
174
				
175
				// so, if we can't load our DLL, we will throw the old
176
				// error message out so the user can perform a recording by
177
				// running eclipse using "Run as Adminstrator
178
				// this should never happen 
179
				catch (UnsatisfiedLinkError e2){
180
					inputFileContents.append("VISTA_ADMIN_ERROR");
181
					return false;
182
				}
183
			}
184
		}
185
		return true;
186
	}
187
	
188
	private void getRegistryInfo(StringBuffer inputFileContents)
189
	{
190
		String originalSettingsFileName = "newSettingsFile.tmp";
191
		String originalSettingsFilePath = "";
192
		// bugzilla 126592 mdd change location of temp file 
193
		originalSettingsFilePath = getTempPath();
194
		originalSettingsFilePath += "\\" + originalSettingsFileName;
195
		// bugzilla 127536 mdd put quotes around file path due to spaces in workspace path
196
		String getOriginalInfoCommandLine = "regedit /e "+"\"" + originalSettingsFilePath+"\"" + " \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\"";//$NON-NLS-1$//$NON-NLS-2$
197
		InputStreamReader inputReader=null;
198
		File file = null;
199
		try
200
		{
201
			try {
202
			Process registryChange = Runtime.getRuntime().exec(getOriginalInfoCommandLine,null);
203
			registryChange.waitFor();
204
			}
205
			catch (InterruptedException e) {}
206
			// bugzilla 126592 mdd use originalSettingsFilePath rather than ...FileName
207
			file = new File(originalSettingsFilePath);
208
			inputReader= new InputStreamReader(new FileInputStream(file),"UTF-16");//$NON-NLS-1$
209
			inputFileContents = new StringBuffer();
210
			char[] inputBuf = new char[1000];
211
			int bytesRead = inputReader.read(inputBuf);
212
								
213
			while(bytesRead!=-1)
214
			{				
215
				inputFileContents.append(inputBuf,0,bytesRead);
216
				bytesRead = inputReader.read(inputBuf);
217
			}			
218
		}
219
		catch (IOException e)
220
		{
221
			String currentOS = Platform.getOS();
222
			if (currentOS.equals("win32")) {
223
				String myVersion = System.getProperty("os.version");
224
				if (myVersion.startsWith("6")) {
225
						inputFileContents.append("RECORDING_TPTPRECUTIL_DLL_MISSING");
226
				}else {
227
					inputFileContents.append("WINDOWS_ADMIN_ERROR");
228
					e.printStackTrace();					
229
				}
230
			}
231
						
232
		} 
233
234
		finally
235
		{
236
			if(inputReader!=null)
237
				try
238
				{
239
					inputReader.close();
240
				}
241
				catch (IOException e1)
242
				{
243
					e1.printStackTrace();
244
				}
245
		}
246
		// Clean up
247
		if (file != null) {
248
			if (file.exists())
249
				file.delete();
250
		}
251
		return;
252
	}
253
	
254
	// added for Bugilla 168597
255
	private void getRegistryInfoUsingNativeAPI(StringBuffer inputFileContents){
256
		// fire up an instance of the JNI layer to start using native code
257
		AddSettingToBuffer(jniWrapper, inputFileContents, "ProxyEnable");
258
		AddSettingToBuffer(jniWrapper, inputFileContents, "AutoConfigURL");
259
		AddSettingToBuffer(jniWrapper, inputFileContents, "ProxyServer");
260
		AddSettingToBuffer(jniWrapper, inputFileContents, "ProxyOverride");
261
262
		return;
263
	}
264
	
265
	private void AddSettingToBuffer(JNIWrapper jniWrapper, StringBuffer inputFileContents, String name){
266
		String setting = jniWrapper.getInternetSetting(name);
267
		if (setting != null  && setting.length() > 0){
268
			inputFileContents.append("\"" + name + "\"=" + setting + "\r\n");
269
		}
270
		return;
271
	}
272
			
273
	
274
	private boolean checkProxyEnabled(StringBuffer inputBuffer) 
275
	{
276
			boolean comparesOK = false;
277
			StringTokenizer fileTokenizer = new StringTokenizer(inputBuffer.toString(),"\r\n");//$NON-NLS-1$
278
			while(fileTokenizer.hasMoreTokens())
279
			{
280
				String line=fileTokenizer.nextToken();
281
				String newLine = line;
282
				// example ProxyServer is key, "http=markdunn:1000;socks=localhost:450"
283
				if(line.startsWith("\"ProxyEnable"))//$NON-NLS-1$
284
				{
285
					StringTokenizer lineTokenizer = new StringTokenizer(line,":");//$NON-NLS-1$
286
					newLine=lineTokenizer.nextToken();  // get ProxyEnable
287
					newLine=lineTokenizer.nextToken();
288
					if (newLine.equalsIgnoreCase("00000001"))
289
						comparesOK = true;
290
	
291
				}  //defect 82974 below - also check AutoConfigURL
292
				else if (line.startsWith("\"AutoConfigURL")) {
293
					setBadProxySettings(true);
294
					setProxyError(AUTO_CONFIG_URL);
295
					setAutoConfigURLEnabled(true);
296
					String autoConfigStr = "";
297
					autoConfigStr = findAutoConfigURLString(line);
298
					setAutoConfigURLString(autoConfigStr);
299
					break;				
300
				}
301
			}
302
		return comparesOK;
303
	}
304
	
305
	private String getProxyInfo(StringBuffer inputBuffer) 
306
	{
307
		String proxyString = "";
308
		String httpString = "http=";
309
		String secureString = "https=";
310
		String socksString = "socks=";
311
		String equalsString = "=";
312
		String HTTPString = "";
313
		String SECUREString = "";
314
		int findSOCKS = -1;
315
		int findHTTP = -1;
316
		int findSECURE = -1;
317
		StringTokenizer fileTokenizer = new StringTokenizer(inputBuffer.toString(),"\r\n");//$NON-NLS-1$
318
		while(fileTokenizer.hasMoreTokens())
319
		{
320
			String line=fileTokenizer.nextToken();
321
			// example ProxyServer is key, "http=markdunn:1000;https=mdunnlinux:3128;socks=localhost:450"
322
			// or "mdunnlinux:3128 - which means use this proxy for all protocols
323
			
324
			if(line.startsWith("\"ProxyServer"))//$NON-NLS-1$
325
			{
326
				String tmp = "\"ProxyServer\"=";
327
				String modifiedLine = line.substring(tmp.length());
328
				String [] entireString = modifiedLine.split(";");
329
				int numVars = entireString.length;
330
				for (int i =0; i < numVars; i++){
331
					String tmpEntireString = entireString[i].replaceAll("\"","");
332
					int findEqualsString = tmpEntireString.indexOf(equalsString);
333
					if (findEqualsString == -1) {
334
						proxyString = tmpEntireString;
335
					} 
336
					else {
337
						if (findSOCKS == -1){
338
							findSOCKS = tmpEntireString.indexOf(socksString);
339
							if (findSOCKS >= 0)
340
								break;
341
						} 
342
						if (findHTTP == -1) {
343
							findHTTP = tmpEntireString.indexOf(httpString);
344
							if (findHTTP >= 0)
345
								HTTPString = tmpEntireString;
346
						}
347
						if (findSECURE == -1) {
348
							findSECURE = tmpEntireString.indexOf(secureString);
349
							if (findSECURE >= 0)
350
								SECUREString = tmpEntireString;
351
						}
352
					}
353
				}
354
				if (findSOCKS >= 0) {
355
					setBadProxySettings(true);
356
					setProxyError(SOCKS_SET);
357
				}
358
				else {
359
					if ((findHTTP >= 0) && (findSECURE == -1)) {
360
						setBadProxySettings(true);
361
						setProxyError(HTTP_PROXY_ONLY_SET);
362
					}
363
					else if ((findHTTP == -1) && (findSECURE >= 0 )) {
364
						setBadProxySettings(true);
365
						setProxyError(SECURE_PROXY_ONLY_SET);
366
					}
367
					else if ((findHTTP >= 0) && (findSECURE >= 0)) {
368
						// if two string equal - it is OK
369
						// if different - then ERROR
370
						// HTTPString=http=mdunnlinux:3128 
371
						// SECUREString=https=mdunnlinux:3128
372
						// must first strip off up to '=' and then compare
373
						int httpEQUALS = HTTPString.indexOf("=");
374
						int secureEQUALS = SECUREString.indexOf("=");
375
						String tmpHTTP = HTTPString.substring(httpEQUALS+1);
376
						String tmpSECURE = SECUREString.substring(secureEQUALS+1);
377
						//if (HTTPString.equalsIgnoreCase(SECUREString)){
378
						if (tmpHTTP.equalsIgnoreCase(tmpSECURE)){
379
							if (tmpHTTP.startsWith("localhost")) {
380
								setBadProxySettings(true);
381
								setProxyError(HTTP_SECURE_LOCALHOST);
382
							}
383
							else {
384
								setBadProxySettings(false);
385
								setProxyError(PROXY_SETTINGS_OK);
386
								String tmpVal = "";
387
								tmpVal = HTTPString.substring(findHTTP+httpString.length());
388
								proxyString = tmpVal;
389
							}
390
						}
391
						else {
392
							//setBadProxySettings(true);
393
							//setProxyError(HTTP_SECURE_MISMATCH);
394
							// bugzilla 79219 mdd
395
							// https proxy different from http proxy 
396
							setBadProxySettings(false);
397
							secureStringGlobal = tmpSECURE;
398
							setSSLProxyEnabled(true);
399
							setProxyError(PROXY_SETTINGS_OK);
400
							String tmpVal = "";
401
							tmpVal = HTTPString.substring(findHTTP+httpString.length());
402
							proxyString = tmpVal;
403
						}
404
					}
405
				}
406
			}
407
			// defect 82974 1/18/2005
408
			else if (line.startsWith("\"ProxyOverride")) {
409
				setProxyOverrideEnabled(true);
410
				proxyOverrideString = findOverrideString(line);
411
			}
412
			else if (line.startsWith("\"AutoConfigURL")) {
413
				setAutoConfigURLEnabled(true);
414
				autoConfigURLString = findAutoConfigURLString(line);
415
			}
416
		}
417
		return proxyString;
418
	}
419
420
	/**
421
	 * @param string
422
	 */
423
	private String findOverrideString(String line) {
424
		// TODO Auto-generated method stub
425
		String returnStr = "";
426
		String tmp="\"ProxyOverride";
427
		String tmp2 = line.replaceAll("\"","");
428
		String tmp3= tmp2.replaceAll("<","");
429
		tmp3= tmp3.replaceAll(">","");
430
				
431
		returnStr = tmp3.substring(tmp.length());
432
		return returnStr;
433
	}
434
	
435
	private String findAutoConfigURLString(String line) {
436
		// TODO Auto-generated method stub
437
		String returnStr = "";
438
		String tmp="\"AutoConfigURL";
439
		String tmp2 = line.replaceAll("\"","");
440
		String tmp3= tmp2.replaceAll("<","");
441
		tmp3= tmp3.replaceAll(">","");
442
				
443
		returnStr = tmp3.substring(tmp.length());
444
		return returnStr;
445
	}
446
	public void setProxyType(String string) {
447
		proxyType = string;
448
	}
449
	/**
450
	 * @return
451
	 */
452
	public String getProxyType() {
453
		return proxyType;
454
	}
455
456
	/**
457
	 * @param string
458
	 */
459
	public void setProxyPort(String string) {
460
		proxyPort = string;
461
	}
462
	/**
463
	 * @return
464
	 */
465
	public String getProxyPort() {
466
		return proxyPort;
467
	}
468
469
	/**
470
	 * @return
471
	 */
472
	public boolean isProxyEnabled() {
473
		return isProxyEnabled;
474
	}
475
476
	/**
477
	 * @param b
478
	 */
479
	public void setProxyEnabled(boolean b) {
480
		isProxyEnabled = b;
481
	}
482
483
	/**
484
	 * @return
485
	 */
486
	public String getProxyAddr() {
487
		return proxyAddr;
488
	}
489
490
	/**
491
	 * @param string
492
	 */
493
	public void setProxyAddr(String string) {
494
		proxyAddr = string;
495
	}
496
497
	/**
498
	 * @return Returns the badProxySettings.
499
	 */
500
	public boolean isBadProxySettings() {
501
		return badProxySettings;
502
	}
503
	/**
504
	 * @param badProxySettings The badProxySettings to set.
505
	 */
506
	public void setBadProxySettings(boolean badProxySettings) {
507
		this.badProxySettings = badProxySettings;
508
	}
509
	/**
510
	 * @return Returns the proxyError.
511
	 */
512
	public int getProxyError() {
513
		return proxyError;
514
	}
515
	/**
516
	 * @param proxyError The proxyError to set.
517
	 */
518
	public void setProxyError(int proxyError) {
519
		this.proxyError = proxyError;
520
	}
521
	/**
522
	 * @return Returns the sslProxyPort.
523
	 */
524
	public String getSslProxyPort() {
525
		return sslProxyPort;
526
	}
527
	/**
528
	 * @param sslProxyPort The sslProxyPort to set.
529
	 */
530
	public void setSslProxyPort(String sslProxyPort) {
531
		this.sslProxyPort = sslProxyPort;
532
	}
533
	/**
534
	 * @return Returns the sslProxy.
535
	 */
536
	public String getSslProxyAddr() {
537
		return sslProxyAddr;
538
	}
539
	/**
540
	 * @param sslProxy The sslProxy to set.
541
	 */
542
	public void setSslProxyAddr(String sslProxy) {
543
		this.sslProxyAddr = sslProxy;
544
	}
545
	/**
546
	 * @return Returns the isSSLProxyEnabled.
547
	 */
548
	public boolean isSSLProxyEnabled() {
549
		return isSSLProxyEnabled;
550
	}
551
	/**
552
	 * @param isSSLProxyEnabled The isSSLProxyEnabled to set.
553
	 */
554
	public void setSSLProxyEnabled(boolean isSSLProxyEnabled) {
555
		this.isSSLProxyEnabled = isSSLProxyEnabled;
556
	}
557
	/**
558
	 * @return Returns the isAutoConfigURLEnabled.
559
	 */
560
	public boolean isAutoConfigURLEnabled() {
561
		return isAutoConfigURLEnabled;
562
	}
563
	/**
564
	 * @param isAutoConfigURLEnabled The isAutoConfigURLEnabled to set.
565
	 */
566
	public void setAutoConfigURLEnabled(boolean isAutoConfigURLEnabled) {
567
		this.isAutoConfigURLEnabled = isAutoConfigURLEnabled;
568
	}
569
	
570
	/**
571
	 * @return Returns the isProxyOverrideEnabled.
572
	 */
573
	public boolean isProxyOverrideEnabled() {
574
		return isProxyOverrideEnabled;
575
	}
576
	/**
577
	 * @param isProxyOverrideEnabled The isProxyOverrideEnabled to set.
578
	 */
579
	public void setProxyOverrideEnabled(boolean isProxyOverrideEnabled) {
580
		this.isProxyOverrideEnabled = isProxyOverrideEnabled;
581
	}
582
	/**
583
	 * @return Returns the autoConfigURLString.
584
	 */
585
	public String getAutoConfigURLString() {
586
		return autoConfigURLString;
587
	}
588
	/**
589
	 * @param autoConfigURLString The autoConfigURLString to set.
590
	 */
591
	public void setAutoConfigURLString(String autoConfigURLString) {
592
		this.autoConfigURLString = autoConfigURLString;
593
	}
594
	/**
595
	 * @return Returns the proxyOverrideString.
596
	 */
597
	public String getProxyOverrideString() {
598
		return proxyOverrideString;
599
	}
600
	/**
601
	 * @param proxyOverrideString The proxyOverrideString to set.
602
	 */
603
	public void setProxyOverrideString(String proxyOverrideString) {
604
		this.proxyOverrideString = proxyOverrideString;
605
	}
606
	public String getTempPath()
607
	{
608
		String theTmpPath = "";
609
		IPath baseLoc = Platform.getLocation();
610
		String newtpath = baseLoc.toOSString();
611
				
612
		theTmpPath = newtpath;
613
		return theTmpPath;
614
	}
615
}
(-)plugin.properties (-3 / +1 lines)
Lines 28-36 Link Here
28
EP_GEN_WIZS                = Generate Wizards
28
EP_GEN_WIZS                = Generate Wizards
29
EP_RUN_WIZS                = Run Wizards
29
EP_RUN_WIZS                = Run Wizards
30
ConfigurableObjectExtensionPage	= Configurable Object Extension Page
30
ConfigurableObjectExtensionPage	= Configurable Object Extension Page
31
Internet_Explorer=Internet Explorer
31
32
Mozilla=Mozilla
33
Firefox=Firefox
34
ExecutionVerdictDecoratorDescription = Adds an icon decoration in the Test Navigator to display the verdict of the execution result elements.
32
ExecutionVerdictDecoratorDescription = Adds an icon decoration in the Test Navigator to display the verdict of the execution result elements.
35
GENERATE_TEST_MENUITEM_LABEL = Generate Test...
33
GENERATE_TEST_MENUITEM_LABEL = Generate Test...
36
W_TEST_ASSETS				= Test Assets
34
W_TEST_ASSETS				= Test Assets
(-)plugin.xml (-24 lines)
Lines 40-46 Link Here
40
	    <contexts file="infopop\testJava.xml" plugin ="org.eclipse.hyades.test.java"/>	
40
	    <contexts file="infopop\testJava.xml" plugin ="org.eclipse.hyades.test.java"/>	
41
	    <contexts file="infopop\testCommon.xml" plugin ="org.eclipse.hyades.test.common"/>  
41
	    <contexts file="infopop\testCommon.xml" plugin ="org.eclipse.hyades.test.common"/>  
42
	    <contexts file="infopop\recorderUI.xml" plugin ="org.eclipse.hyades.execution.testgen"/>		
42
	    <contexts file="infopop\recorderUI.xml" plugin ="org.eclipse.hyades.execution.testgen"/>		
43
	    <contexts file="infopop\recorderUI.xml" plugin ="org.eclipse.hyades.execution.recorder.http"/>
44
        <contexts file="infopop\recorderUI.xml" plugin ="org.eclipse.hyades.execution.recorder.harness"/>	
43
        <contexts file="infopop\recorderUI.xml" plugin ="org.eclipse.hyades.execution.recorder.harness"/>	
45
   </extension>
44
   </extension>
46
    
45
    
Lines 712-740 Link Here
712
      <attribute name="lastSaveStamp"/>      
711
      <attribute name="lastSaveStamp"/>      
713
      <persistent value="true"/>
712
      <persistent value="true"/>
714
   </extension>
713
   </extension>
715
   
716
   <extension
717
   		 point="org.eclipse.hyades.test.core.RecorderApplication">
718
      <RecorderAppAdapter
719
            supportedOS="win32"
720
            name="%Internet_Explorer"
721
            id="org.eclipse.hyades.test.core.RecorderApplication.InternetExplorer"
722
            class="org.eclipse.hyades.execution.recorder.local.appadapters.InternetExplorerAdapter"
723
            isPathEditable="false">
724
      </RecorderAppAdapter>
725
	    <RecorderAppAdapter
726
	    supportedOS="linux,win32"
727
	    name="%Mozilla"
728
	    id="org.eclipse.hyades.test.core.RecorderApplication.Mozilla"
729
	    class="org.eclipse.hyades.execution.recorder.local.appadapters.MozillaAdapter">
730
	  </RecorderAppAdapter>
731
	  <RecorderAppAdapter
732
	    supportedOS="linux,win32"
733
	    name="%Firefox"
734
	    id="org.eclipse.hyades.test.core.RecorderApplication.Firefox"
735
	    class="org.eclipse.hyades.execution.recorder.local.appadapters.FirefoxAdapter">
736
	  </RecorderAppAdapter>
737
   </extension>
738
	
714
	
739
   <extension
715
   <extension
740
         point="org.eclipse.ui.popupMenus">
716
         point="org.eclipse.ui.popupMenus">
(-)src/org/eclipse/hyades/test/ui/UiPlugin.java (-27 / +17 lines)
Lines 26-39 Link Here
26
import org.eclipse.core.runtime.Platform;
26
import org.eclipse.core.runtime.Platform;
27
import org.eclipse.core.runtime.Status;
27
import org.eclipse.core.runtime.Status;
28
import org.eclipse.emf.ecore.resource.Resource;
28
import org.eclipse.emf.ecore.resource.Resource;
29
import org.eclipse.hyades.execution.recorder.local.appadapters.FirefoxAdapter;
30
import org.eclipse.hyades.execution.recorder.local.appadapters.MozillaAdapter;
31
import org.eclipse.hyades.models.common.common.CMNNamedElement;
29
import org.eclipse.hyades.models.common.common.CMNNamedElement;
32
import org.eclipse.hyades.models.common.testprofile.TPFExecutionEvent;
30
import org.eclipse.hyades.models.common.testprofile.TPFExecutionEvent;
33
import org.eclipse.hyades.models.common.util.ICommonConstants;
31
import org.eclipse.hyades.models.common.util.ICommonConstants;
34
import org.eclipse.hyades.test.core.TestCorePlugin;
32
import org.eclipse.hyades.test.core.TestCorePlugin;
35
import org.eclipse.hyades.test.core.TestCorePreferences;
33
import org.eclipse.hyades.test.core.TestCorePreferences;
36
import org.eclipse.hyades.test.core.testgen.TestGeneratorFactory;
37
import org.eclipse.hyades.test.ui.adapter.IResourceSetFileAdaptable;
34
import org.eclipse.hyades.test.ui.adapter.IResourceSetFileAdaptable;
38
import org.eclipse.hyades.test.ui.adapter.TestAdapterFactory;
35
import org.eclipse.hyades.test.ui.adapter.TestAdapterFactory;
39
import org.eclipse.hyades.test.ui.internal.navigator.proxy.IExtendedProxyNode;
36
import org.eclipse.hyades.test.ui.internal.navigator.proxy.IExtendedProxyNode;
Lines 57-63 Link Here
57
 * 
54
 * 
58
 * 
55
 * 
59
 * @author      Paul E. Slauenwhite
56
 * @author      Paul E. Slauenwhite
60
 * @version     February 28, 2008
57
 * @version     March 11, 2008
61
 * @since       January 27, 2005
58
 * @since       January 27, 2005
62
 */
59
 */
63
public class UiPlugin extends AbstractUIPlugin {
60
public class UiPlugin extends AbstractUIPlugin {
Lines 82-89 Link Here
82
	 * Extension point id used to register the generate wizards.
79
	 * Extension point id used to register the generate wizards.
83
	 */
80
	 */
84
	public static final String EP_GENERATE_WIZARDS = "generateWizards"; //$NON-NLS-1$
81
	public static final String EP_GENERATE_WIZARDS = "generateWizards"; //$NON-NLS-1$
85
	// TestGen info
82
86
	public static final String TEST_GENERATOR="default_test_generator"; //$NON-NLS-1$
83
	/**
84
	 * @deprecated As of TPTP 4.5.0, internalized in the <code>org.eclipse.tptp.test.recorders.url</code> plug-in.  
85
	 */
86
	public static final String TEST_GENERATOR = "default_test_generator"; //$NON-NLS-1$
87
	
87
	
88
	/**
88
	/**
89
	 * The constructor.
89
	 * The constructor.
Lines 392-398 Link Here
392
	 */
392
	 */
393
	protected void initializeDefaultPreferences(IPreferenceStore store)
393
	protected void initializeDefaultPreferences(IPreferenceStore store)
394
	{		
394
	{		
395
		store.setDefault(UiPlugin.TEST_GENERATOR,getDefaultGeneratorID()); //$NON-NLS-1$
396
		store.setDefault(TestUI.REPORT_OPEN_EDITOR, true);
395
		store.setDefault(TestUI.REPORT_OPEN_EDITOR, true);
397
		store.setDefault(TestUI.OPEN_EDITOR, MessageDialogWithToggle.PROMPT);
396
		store.setDefault(TestUI.OPEN_EDITOR, MessageDialogWithToggle.PROMPT);
398
		store.setDefault(TestUI.OPEN_TEST_PERSPECTIVE, MessageDialogWithToggle.PROMPT);
397
		store.setDefault(TestUI.OPEN_TEST_PERSPECTIVE, MessageDialogWithToggle.PROMPT);
Lines 411-438 Link Here
411
				store.getString(TestCorePreferences.LOCALHOST_PORT));
410
				store.getString(TestCorePreferences.LOCALHOST_PORT));
412
		TestCorePlugin.getDefault().getPluginPreferences().setValue(TestCorePreferences.SAVE_INTERVAL,
411
		TestCorePlugin.getDefault().getPluginPreferences().setValue(TestCorePreferences.SAVE_INTERVAL,
413
				store.getInt(TestCorePreferences.SAVE_INTERVAL));
412
				store.getInt(TestCorePreferences.SAVE_INTERVAL));
414
415
		TestCorePlugin.getDefault().getPluginPreferences().setValue(MozillaAdapter.PREFERENCE_PATH,
416
				store.getString(MozillaAdapter.PREFERENCE_PATH));
417
		
418
		TestCorePlugin.getDefault().getPluginPreferences().setValue(FirefoxAdapter.PREFERENCE_PATH,
419
				store.getString(FirefoxAdapter.PREFERENCE_PATH));
420
		
421
		
422
	}
413
	}
423
414
424
	public String getDefaultGeneratorID()
415
	/**
425
	{
416
	 * This method always returns <code>null</code> for API compatability.
426
		//find all registered generators, select the highest priority
417
	 * <p/>
427
		String[] ids = TestGeneratorFactory.getInstance().getGeneratorIDs();
418
	 * 
428
		String defaultID = "org.eclipse.hyades.test.tools.core.TestGenerator.HTTPGenerator"; //$NON-NLS-1$
419
	 * @return Always returns <code>null</code>.
429
		int nMax = -1;
420
	 * @deprecated As of TPTP 4.5.0, internalized in the <code>org.eclipse.tptp.test.recorders.url</code> plug-in.
430
		for (int i = 0; i < ids.length; i++)
421
	 */
431
		{
422
	public String getDefaultGeneratorID(){
432
			if (TestGeneratorFactory.getInstance().getGeneratorPriority(ids[i]) > nMax)
423
433
				defaultID = ids[i];
424
		//Return null since only for API compatability.
434
		}
425
		return null;
435
		return defaultID;	
436
	}
426
	}
437
427
438
	/**
428
	/**
(-)infopop/recorderUI.xml (-8 lines)
Lines 11-24 Link Here
11
<?NLS TYPE="org.eclipse.help.contexts"?>
11
<?NLS TYPE="org.eclipse.help.contexts"?>
12
<contexts>
12
<contexts>
13
13
14
15
16
<!--HTTP proxy recorder preferences-->
17
<context id="HttpRecorderPreferencePage">
18
<description>Set HTTP proxy recorder preferences</description>
19
<topic href="../org.eclipse.hyades.test.doc.user/ref/httpRecorderPref.htm" label="HTTP proxy recorder preferences dialog box"/>
20
</context>
21
22
<!--Specify the pathname of the test suite container file-->
14
<!--Specify the pathname of the test suite container file-->
23
<context id="TestSuitePathSelector">
15
<context id="TestSuitePathSelector">
24
<description>Specify the pathname of the generated test suite</description>
16
<description>Specify the pathname of the generated test suite</description>
(-)org.eclipse.tptp.test.recorders.url/sourceTemplateFeature/feature.properties (-4 / +4 lines)
Lines 1-10 Link Here
1
###############################################################################
1
###############################################################################
2
# Copyright (c) 2007, 2008 IBM Corporation and others.
2
# Copyright (c) 2008 IBM Corporation and others.
3
# All rights reserved. This program and the accompanying materials 
3
# All rights reserved. This program and the accompanying materials 
4
# are made available under the terms of the Eclipse Public License v1.0
4
# are made available under the terms of the Eclipse Public License v1.0
5
# which accompanies this distribution, and is available at
5
# which accompanies this distribution, and is available at
6
# http://www.eclipse.org/legal/epl-v10.html
6
# http://www.eclipse.org/legal/epl-v10.html
7
# $Id: feature.properties,v 1.3 2008/02/28 21:39:18 jkubasta Exp $
7
# $Id$
8
# 
8
# 
9
# Contributors:
9
# Contributors:
10
#     IBM Corporation - initial API and implementation
10
#     IBM Corporation - initial API and implementation
Lines 20-33 Link Here
20
# NLS_ENCODING=UTF-8
20
# NLS_ENCODING=UTF-8
21
21
22
# "featureName" property - name of the feature
22
# "featureName" property - name of the feature
23
featureName=TPTP Test Tools JUnit Source
23
featureName=TPTP URL Recorder Source
24
24
25
# "licenseURL" property - URL of the "Feature License"
25
# "licenseURL" property - URL of the "Feature License"
26
# do not translate value - just change to point to a locale-specific HTML page
26
# do not translate value - just change to point to a locale-specific HTML page
27
licenseURL=license.html
27
licenseURL=license.html
28
28
29
# "description" property - description of the feature
29
# "description" property - description of the feature
30
description=TPTP Test Tools JUnit Source Feature
30
description=Source for the TPTP URL Recorder for creating a recording of the HTTP protocol from URLs entered in a Web browser used to generate a TPTP URL Test suite.
31
31
32
# "providerName" property - name of the company that provides the feature
32
# "providerName" property - name of the company that provides the feature
33
providerName=Eclipse.org
33
providerName=Eclipse.org
(-)org.eclipse.tptp.test.tools/feature.xml (+5 lines)
Lines 40-45 Link Here
40
         version="0.0.0"
40
         version="0.0.0"
41
         optional="true"/>
41
         optional="true"/>
42
42
43
   <includes
44
         id="org.eclipse.tptp.test.recorders.url"
45
         version="0.0.0"
46
         optional="true"/>
47
43
   <requires>
48
   <requires>
44
      <import feature="org.eclipse.tptp.test"/>
49
      <import feature="org.eclipse.tptp.test"/>
45
   </requires>
50
   </requires>
(-)org.eclipse.tptp.test.recorders.url/sourceTemplatePlugin/about.properties (-8 / +7 lines)
Lines 1-10 Link Here
1
###############################################################################
1
###############################################################################
2
# Copyright (c) 2007, 2008 IBM Corporation and others.
2
# Copyright (c) 2008 IBM Corporation and others.
3
# All rights reserved. This program and the accompanying materials 
3
# All rights reserved. This program and the accompanying materials 
4
# are made available under the terms of the Eclipse Public License v1.0
4
# are made available under the terms of the Eclipse Public License v1.0
5
# which accompanies this distribution, and is available at
5
# which accompanies this distribution, and is available at
6
# http://www.eclipse.org/legal/epl-v10.html
6
# http://www.eclipse.org/legal/epl-v10.html
7
# $Id: about.properties,v 1.3 2008/01/18 16:10:32 paules Exp $
7
# $Id$
8
# 
8
# 
9
# Contributors:
9
# Contributors:
10
#     IBM Corporation - initial API and implementation
10
#     IBM Corporation - initial API and implementation
Lines 25-41 Link Here
25
# fill-ins are supplied by about.mappings
25
# fill-ins are supplied by about.mappings
26
# This file should be translated.
26
# This file should be translated.
27
27
28
featureName=TPTP Test Tools JUnit
28
featureName=TPTP URL Recorder Source
29
29
30
featureText=TPTP Test Tools JUnit\n\
30
featureText=TPTP URL Recorder Source\n\
31
Version: {featureVersion}\n\
31
Version: {featureVersion}\n\
32
Build id: {0}\n\
32
Build id: {0}\n\
33
\n\
33
\n\
34
Copyright (c) 2007 IBM Corporation and others. All rights reserved.\n\
34
Copyright (c) 2008 IBM Corporation and others. All rights reserved.\n\
35
\n\
35
\n\
36
The TPTP Test feature provides frameworks and services for building testing tools.\n\
36
Source for the TPTP URL Recorder for creating a recording of the HTTP protocol \n\
37
The feature also includes reference implementations of tools that build on these\n\
37
from URLs entered in a Web browser used to generate a TPTP URL Test suite.\n\
38
frameworks and services.\n\
39
Visit http://www.eclipse.org/tptp/test/
38
Visit http://www.eclipse.org/tptp/test/
40
39
41
# ==============================================================================
40
# ==============================================================================
(-)org.eclipse.tptp.test.recorders.url/sourceTemplatePlugin/plugin.properties (-17 / +3 lines)
Lines 1-10 Link Here
1
###############################################################################
1
###############################################################################
2
# Copyright (c) 2007 IBM Corporation and others.
2
# Copyright (c) 2008 IBM Corporation and others.
3
# All rights reserved. This program and the accompanying materials
3
# All rights reserved. This program and the accompanying materials
4
# are made available under the terms of the Eclipse Public License v1.0
4
# are made available under the terms of the Eclipse Public License v1.0
5
# which accompanies this distribution, and is available at
5
# which accompanies this distribution, and is available at
6
# http://www.eclipse.org/legal/epl-v10.html
6
# http://www.eclipse.org/legal/epl-v10.html
7
# $Id: plugin.properties,v 1.1 2007/04/24 18:47:38 hleung Exp $
7
# $Id$
8
#
8
#
9
# Contributors:
9
# Contributors:
10
# IBM Corporation - initial API and implementation
10
# IBM Corporation - initial API and implementation
Lines 19-37 Link Here
19
# NLS_MESSAGEFORMAT_VAR
19
# NLS_MESSAGEFORMAT_VAR
20
# NLS_ENCODING=UTF-8
20
# NLS_ENCODING=UTF-8
21
21
22
pluginName   = TPTP JUnit Plugin Test Tools
22
pluginName   = TPTP URL Recorder Source
23
providerName = Eclipse.org
23
providerName = Eclipse.org
24
25
26
# plugin.xml message(s):
27
WORKBENCH_PROPERTY_GROUP_TTL          = Eclipse Workbench Properties
28
WORKBENCH_PROPERTY_GROUP_DSC          = This location defines the following workbench properties:
29
TST_SUITE_PLUGIN_JUNIT_NAME           = TPTP JUnit Plug-in Test
30
WIZ_NEW_PLUGIN_JUNIT_TST_SUITE_DSC    = Creates a new TPTP JUnit Test for an Eclipse plug-in
31
W_WORKBENCH_LOCATION                  = Workbench Location
32
WIZ_NEW_WORKBENCH_LOCATION_DSC        = Creates a new location for an Eclipse workbench. A workbench location is used to specify where a TPTP JUnit Plug-in test will run.
33
TST_SUITE_PLUGIN_JUNIT_DSC            = A Plug-in Test is a JUnit test designed to run in an Eclipse worbench. 
34
EDT_PLUGIN_JUNIT_TST_SUITE_DSC        = A specialized editor for defining JUnit plug-in tests
35
EDT_PLUGIN_JUNIT_TST_SUITE_TTL        = JUnit Plug-in Test Editor
36
37
(-)src/org/eclipse/hyades/test/tools/ui/ToolsUiPlugin.java (-60 / +54 lines)
Lines 1-5 Link Here
1
/**********************************************************************
1
/**********************************************************************
2
 * Copyright (c) 2005, 2007 IBM Corporation and others.
2
 * Copyright (c) 2005, 2008 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 9-15 Link Here
9
 * Contributors:
9
 * Contributors:
10
 * IBM - Initial API and implementation
10
 * IBM - Initial API and implementation
11
 **********************************************************************/
11
 **********************************************************************/
12
13
package org.eclipse.hyades.test.tools.ui;
12
package org.eclipse.hyades.test.tools.ui;
14
13
15
import java.net.URL;
14
import java.net.URL;
Lines 19-63 Link Here
19
import org.eclipse.core.runtime.Platform;
18
import org.eclipse.core.runtime.Platform;
20
import org.eclipse.core.runtime.Status;
19
import org.eclipse.core.runtime.Status;
21
import org.eclipse.hyades.execution.recorder.Recorder;
20
import org.eclipse.hyades.execution.recorder.Recorder;
22
import org.eclipse.hyades.execution.recorder.RecorderException;
23
import org.eclipse.hyades.execution.recorder.http.local.HttpRecorderAgentEnvironmentAdapter;
24
import org.eclipse.hyades.execution.recorder.http.local.HttpRecorderDataProcessor;
25
import org.eclipse.hyades.execution.recorder.http.local.HttpRecorderExecutableObjectAdapter;
26
import org.eclipse.hyades.test.core.TestCorePlugin;
21
import org.eclipse.hyades.test.core.TestCorePlugin;
27
import org.eclipse.hyades.test.tools.ui.common.TestCommonImages;
22
import org.eclipse.hyades.test.tools.ui.common.TestCommonImages;
28
import org.eclipse.hyades.test.tools.ui.http.TestHttpImages;
23
import org.eclipse.hyades.test.tools.ui.http.TestHttpImages;
29
import org.eclipse.hyades.test.tools.ui.java.TestJavaImages;
24
import org.eclipse.hyades.test.tools.ui.java.TestJavaImages;
30
import org.eclipse.hyades.test.ui.UiPlugin;
31
import org.eclipse.jface.preference.IPreferenceStore;
32
import org.eclipse.osgi.util.NLS;
25
import org.eclipse.osgi.util.NLS;
33
import org.eclipse.swt.widgets.Display;
26
import org.eclipse.swt.widgets.Display;
34
import org.eclipse.ui.plugin.AbstractUIPlugin;
27
import org.eclipse.ui.plugin.AbstractUIPlugin;
35
import org.osgi.framework.BundleContext;
28
import org.osgi.framework.BundleContext;
36
29
37
38
/**
30
/**
39
 * The main plugin class to be used in the desktop.
31
 * Tools UI activator.  The activator class controls the 
32
 * plug-in life cycle.
33
 * <p>
34
 * <p/>
35
 * 
36
 * 
37
 * @author  Paul E. Slauenwhite
38
 * @version March 11, 2008
39
 * @since   February 1, 2005
40
 */
40
 */
41
public class ToolsUiPlugin extends AbstractUIPlugin {
41
public class ToolsUiPlugin extends AbstractUIPlugin {
42
	
42
	
43
	//Plug-in ID:
43
	public static final String PLUGIN_ID = "org.eclipse.hyades.test.tools.ui"; //$NON-NLS-1$
44
	public static final String PLUGIN_ID = "org.eclipse.hyades.test.tools.ui"; //$NON-NLS-1$
44
	//The shared instance.
45
46
	//Shared instance of the activator class for this plug-in:
45
	private static ToolsUiPlugin plugin;
47
	private static ToolsUiPlugin plugin;
46
48
47
	//Resource bundle.
49
	//Resource bundle:
48
	private ResourceBundle resourceBundle;
50
	private ResourceBundle resourceBundle;
49
51
	
50
	//Recorder Info below
52
	/**
53
	 * @deprecated As of TPTP 4.5.0, internalized in the <code>org.eclipse.tptp.test.recorders.url</code> plug-in.  
54
	 */
51
	public static final String RECORDING_PATH = "recording_path"; //$NON-NLS-1$
55
	public static final String RECORDING_PATH = "recording_path"; //$NON-NLS-1$
52
	public static final String RECORDER_APP_ADAPTER="application_under_test"; //$NON-NLS-1$
53
	
56
	
54
	public static final String PROXY_PORT="default_proxy_port"; //$NON-NLS-1$
57
	/**
55
58
	 * @deprecated As of TPTP 4.5.0, internalized in the <code>org.eclipse.tptp.test.recorders.url</code> plug-in.  
56
	public static final String DEFAULT_PORT="1080";		
59
	 */
60
	public static final String RECORDER_APP_ADAPTER = "application_under_test"; //$NON-NLS-1$
57
	
61
	
58
	private Recorder recorder;
62
	/**
63
	 * @deprecated As of TPTP 4.5.0, internalized in the <code>org.eclipse.tptp.test.recorders.url</code> plug-in.  
64
	 */
65
	public static final String PROXY_PORT = "default_proxy_port"; //$NON-NLS-1$
59
	
66
	
60
	/**
67
	/**
68
	 * @deprecated As of TPTP 4.5.0, internalized in the <code>org.eclipse.tptp.test.recorders.url</code> plug-in.  
69
	 */
70
	public static final String DEFAULT_PORT = "1080";		
71
		
72
	/**
61
	 * The constructor.
73
	 * The constructor.
62
	 */
74
	 */
63
	public ToolsUiPlugin() {
75
	public ToolsUiPlugin() {
Lines 219-224 Link Here
219
		return PLUGIN_ID;
231
		return PLUGIN_ID;
220
	}
232
	}
221
233
234
	public static void storePreference(String key, String value){
235
		getDefault().getPreferenceStore().setValue(key,value);
236
	}
237
238
	public static String getPreference(String key){
239
		return getDefault().getPreferenceStore().getString(key);
240
	}
241
222
	/**
242
	/**
223
	 * Logs an error described by a throwable.
243
	 * Logs an error described by a throwable.
224
	 * 
244
	 * 
Lines 249-297 Link Here
249
	}
269
	}
250
	
270
	
251
	// Recorder Stuff
271
	// Recorder Stuff
272
	/**
273
	 * @deprecated As of TPTP 4.5.0, internalized in the <code>org.eclipse.tptp.test.recorders.url</code> plug-in.  
274
	 */
252
	public void getRecorderInfo() {
275
	public void getRecorderInfo() {
253
		try
276
		//No-operation since only for API compatability.
254
		{
255
			recorder = new Recorder("org.eclipse.hyades.execution.recorder.http", //$NON-NLS-1$
256
									new HttpRecorderDataProcessor(),
257
									new HttpRecorderAgentEnvironmentAdapter(),
258
									new HttpRecorderExecutableObjectAdapter());
259
		}
260
		catch (RecorderException e1)
261
		{
262
			e1.printStackTrace();
263
		}
264
				
265
		
266
	}
277
	}
267
	
278
	
268
	public Recorder getRecorder()
279
	/**
269
	{
280
	 * This method always returns <code>null</code> for API compatability.
270
		if(recorder == null)
281
	 * <p/>
271
			getRecorderInfo();
282
	 * 
272
		return recorder;
283
	 * @return Always returns <code>null</code>.
273
	}
284
	 * @deprecated As of TPTP 4.5.0, internalized in the <code>org.eclipse.tptp.test.recorders.url</code> plug-in.
274
	
285
	 */
275
	public static void storePreference(String key, String value)
286
	public Recorder getRecorder(){
276
	{
277
		getDefault().getPreferenceStore().setValue(key,value);
278
	}
279
280
	protected void initializeDefaultPreferences(IPreferenceStore store)
281
	{	
282
		if (Platform.getOS().equals("win32"))
283
			store.setDefault(ToolsUiPlugin.RECORDER_APP_ADAPTER,"org.eclipse.hyades.test.core.RecorderApplication.InternetExplorer");//$NON-NLS-1$
284
		else 
285
			// below for bugzilla 171812 mdd 04/17/2007
286
			store.setDefault(ToolsUiPlugin.RECORDER_APP_ADAPTER,"org.eclipse.hyades.test.core.RecorderApplication.Firefox");
287
		
288
		ToolsUiPlugin.getDefault().getPreferenceStore().setDefault(UiPlugin.TEST_GENERATOR,UiPlugin.getDefault().getDefaultGeneratorID());		
289
		store.setDefault(ToolsUiPlugin.PROXY_PORT,DEFAULT_PORT);		 //$NON-NLS-1$
290
		
291
	}
292
	public static String getPreference(String key)
293
	{
294
		return getDefault().getPreferenceStore().getString(key);
295
	}
296
287
288
		//Return null since only for API compatability.
289
		return null;
290
	}	
297
}
291
}
(-)src/org/eclipse/hyades/test/tools/ui/HTTPRecorderPreferences.java (-27 / +21 lines)
Lines 1-5 Link Here
1
/**********************************************************************
1
/**********************************************************************
2
 * Copyright (c) 2006, 2007 IBM Corporation and others.
2
 * Copyright (c) 2006, 2008 IBM Corporation and others.
3
 * All rights reserved.   This program and the accompanying materials
3
 * All rights reserved.   This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 11-47 Link Here
11
 **********************************************************************/
11
 **********************************************************************/
12
package org.eclipse.hyades.test.tools.ui;
12
package org.eclipse.hyades.test.tools.ui;
13
13
14
15
import org.eclipse.core.runtime.Platform;
16
import org.eclipse.core.runtime.Preferences;
17
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
14
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
18
import org.eclipse.hyades.test.ui.UiPlugin;
19
15
16
/**
17
 * HTTP recorder preferences.
18
 * <p/>
19
 * 
20
 * 
21
 * @author  Paul E. Slauenwhite
22
 * @version March 11, 2008
23
 * @since   September 21, 2006
24
 * @deprecated As of TPTP 4.5.0, internalized in the <code>org.eclipse.tptp.test.recorders.url</code> plug-in.  
25
 */
20
public class HTTPRecorderPreferences extends AbstractPreferenceInitializer {
26
public class HTTPRecorderPreferences extends AbstractPreferenceInitializer {
21
	public static final String PLUGIN_ID = "org.eclipse.hyades.test.tools.ui"; //$NON-NLS-1$
22
23
	//Recorder Info below
24
	public static final String RECORDING_PATH = "recording_path"; //$NON-NLS-1$
25
	public static final String RECORDER_APP_ADAPTER="application_under_test"; //$NON-NLS-1$
26
	
27
	public static final String PROXY_PORT="default_proxy_port"; //$NON-NLS-1$
28
27
29
	public static final String DEFAULT_PORT="1080";		
28
	public static final String PLUGIN_ID = ToolsUiPlugin.PLUGIN_ID;
29
	public static final String RECORDING_PATH = ToolsUiPlugin.RECORDING_PATH;
30
	public static final String RECORDER_APP_ADAPTER = ToolsUiPlugin.RECORDER_APP_ADAPTER;
31
	public static final String PROXY_PORT = ToolsUiPlugin.PROXY_PORT;
32
	public static final String DEFAULT_PORT = ToolsUiPlugin.DEFAULT_PORT;
30
	
33
	
31
	//private Recorder recorder;
34
	/**
32
35
	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
36
	 * @deprecated As of TPTP 4.5.0, internalized in the <code>org.eclipse.tptp.test.recorders.url</code> plug-in.  
37
	 */
33
	public void initializeDefaultPreferences() {
38
	public void initializeDefaultPreferences() {
34
		// prefs.setDefault(DEFAULT_JUNIT_TEST_SUITE_FACTORY, DEFAULT_DEFAULT_JUNIT_TEST_SUITE_FACTORY);
39
		//No-operation since only for API compatability.
35
		Preferences prefs = ToolsUiPlugin.getDefault().getPluginPreferences();
36
		// TODO Auto-generated method stub
37
		if (Platform.getOS().equals("win32"))
38
			prefs.setDefault(ToolsUiPlugin.RECORDER_APP_ADAPTER,"org.eclipse.hyades.test.core.RecorderApplication.InternetExplorer");//$NON-NLS-1$
39
		else  // below for bugzilla 171812 mdd 04/17/2007
40
			prefs.setDefault(ToolsUiPlugin.RECORDER_APP_ADAPTER,"org.eclipse.hyades.test.core.RecorderApplication.Firefox");		  //$NON-NLS-1$
41
		
42
		ToolsUiPlugin.getDefault().getPreferenceStore().setDefault(UiPlugin.TEST_GENERATOR,UiPlugin.getDefault().getDefaultGeneratorID());		
43
		prefs.setDefault(ToolsUiPlugin.PROXY_PORT,DEFAULT_PORT);		 //$NON-NLS-1$
44
		
45
	}
40
	}
46
47
}
41
}
(-)plugin.xml (-28 lines)
Lines 316-347 Link Here
316
      </objectContribution>
316
      </objectContribution>
317
   </extension>   
317
   </extension>   
318
   
318
   
319
   <extension
320
         point="org.eclipse.ui.preferencePages">
321
      <page
322
            name="%URL_RECORDER_NAME"
323
            category="org.eclipse.hyades.test.http.internal.preferences.HttpPreferencePage"
324
            class="org.eclipse.hyades.execution.recorder.http.ui.preferences.HttpRecorderPreferencePage"
325
            id="org.eclipse.hyades.execution.recorder.http.ui.preferences.HttpRecorderPreferencePage">
326
      </page>
327
   </extension>
328
   
319
   
329
   <extension
320
   <extension
330
         point="org.eclipse.hyades.test.core.Recorder">
331
      <Recorder
332
            description="%URL_RECORDER_DESCRIPTION"
333
            execOptionsProvider="org.eclipse.tptp.test.tools.internal.recorder.http.providers.HttpRecorderExecOptions"
334
            fileExtension="rec"
335
            icon="icons/full/obj16/http.gif"
336
            id="org.eclipse.hyades.test.tools.recorder.http"
337
            name="%URL_RECORDER_NAME"
338
            protocol="HTTP"
339
            recorderAgent="org.eclipse.hyades.execution.recorder.http.remote.SSLProxyRecorder"
340
            recorderClientHelper="org.eclipse.tptp.test.provisional.recorder.ui.framework.DefaultRecorderClientHelper"
341
            recorderMessageHandlers="org.eclipse.hyades.execution.recorder.http.local.HttpRecorderDataProcessor"
342
            wizardPageProvider="org.eclipse.tptp.test.tools.internal.recorder.http.providers.HttpRecorderWizardProvider"/>
343
   </extension>
344
   <extension
345
         point="org.eclipse.hyades.ui.typeDescriptions">
321
         point="org.eclipse.hyades.ui.typeDescriptions">
346
      <typeDescription
322
      <typeDescription
347
            name="%REGULAR_JUNIT_TYPE"
323
            name="%REGULAR_JUNIT_TYPE"
Lines 378-387 Link Here
378
         <initializer class="org.eclipse.hyades.test.tools.ui.java.internal.junit.preferences.JUnitUIPreferences"/>
354
         <initializer class="org.eclipse.hyades.test.tools.ui.java.internal.junit.preferences.JUnitUIPreferences"/>
379
      </extension>
355
      </extension>
380
      <extension
356
      <extension
381
            point="org.eclipse.core.runtime.preferences">
382
         <initializer class="org.eclipse.hyades.test.tools.ui.HTTPRecorderPreferences"/>
383
      </extension>
384
      <extension
385
            point="org.eclipse.hyades.test.ui.testNavigatorFileProxyFactory">
357
            point="org.eclipse.hyades.test.ui.testNavigatorFileProxyFactory">
386
         <factory
358
         <factory
387
               class="org.eclipse.hyades.test.tools.ui.java.internal.junit.navigator.RegularJUnitFileProxyFactory"
359
               class="org.eclipse.hyades.test.tools.ui.java.internal.junit.navigator.RegularJUnitFileProxyFactory"
(-)plugin.properties (-4 lines)
Lines 73-83 Link Here
73
GEN_WTITLE			               = TPTP URL (JUnit) Test Definition Code Generation
73
GEN_WTITLE			               = TPTP URL (JUnit) Test Definition Code Generation
74
GEN_WDESC			               = Generates a JUnit skeleton for a test definition.
74
GEN_WDESC			               = Generates a JUnit skeleton for a test definition.
75
75
76
77
URL_RECORDER_STARTUP_PAGE 		= URL Recorder Startup Page
76
URL_RECORDER_STARTUP_PAGE 		= URL Recorder Startup Page
78
URL_RECORDER_NAME				= URL Recorder
79
URL_RECORDER_DESCRIPTION		= Creates a recording of the HTTP protocol from URLs entered in a Web browser application used to generate a TPTP URL Test suite.
80
81
77
82
# Regular JUnit types
78
# Regular JUnit types
83
REGULAR_JUNIT_PROPERTY_PAGE_TITLE=TPTP JUnit Test
79
REGULAR_JUNIT_PROPERTY_PAGE_TITLE=TPTP JUnit Test
(-).classpath (-1 lines)
Lines 1-7 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
1
<?xml version="1.0" encoding="UTF-8"?>
2
<classpath>
2
<classpath>
3
	<classpathentry kind="src" path="src"/>
3
	<classpathentry kind="src" path="src"/>
4
	<classpathentry kind="src" path="src-recorder-http"/>
5
	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
4
	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
6
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
5
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
7
	<classpathentry kind="output" path="bin"/>
6
	<classpathentry kind="output" path="bin"/>
(-)build.properties (-3 / +1 lines)
Lines 1-12 Link Here
1
source.. = src-recorder-http/,\
1
source.. = src/
2
           src/
3
output.. = bin/
2
output.. = bin/
4
bin.includes = about.html, plugin.xml,\
3
bin.includes = about.html, plugin.xml,\
5
               .,\
4
               .,\
6
               plugin.properties,\
5
               plugin.properties,\
7
               icons/,\
6
               icons/,\
8
               messages/,\
7
               messages/,\
9
               testkeys,\
10
               schema/,\
8
               schema/,\
11
               META-INF/
9
               META-INF/
12
jars.compile.order = .
10
jars.compile.order = .
(-)src/org/eclipse/hyades/test/tools/ui/internal/resources/ToolsUiPluginResourceBundle.java (-46 / +1 lines)
Lines 19-25 Link Here
19
 * 
19
 * 
20
 * 
20
 * 
21
 * @author      Paul E. Slauenwhite
21
 * @author      Paul E. Slauenwhite
22
 * @version     March 10, 2008
22
 * @version     March 11, 2008
23
 * @since       March 15, 2007
23
 * @since       March 15, 2007
24
 */
24
 */
25
public final class ToolsUiPluginResourceBundle extends NLS {
25
public final class ToolsUiPluginResourceBundle extends NLS {
Lines 157-207 Link Here
157
	
157
	
158
	public static String WIZ_TST_SUITE_GEN_PG_LOC_DSC;
158
	public static String WIZ_TST_SUITE_GEN_PG_LOC_DSC;
159
	public static String WIZ_TST_SUITE_GEN_PG_ATT_DSC;
159
	public static String WIZ_TST_SUITE_GEN_PG_ATT_DSC;
160
	public static String HttpRecorderPreferencePage_PROXY_RECORDER_LOCAL_PORT_LABEL;
161
	public static String HttpRecorderPreferencePage_APPLICATION_GROUP;
162
	public static String HttpRecorderPreferencePage_GENERATOR_GROUP;
163
	public static String HttpRecorderPreferencePage_PROXY_GROUP;
164
	public static String HttpRecorderPreferencePage_APPLICATION_ADAPTER_SELECTOR_LABEL;
165
	public static String HttpRecorderPreferencePage_TEST_GENERATOR_LABEL;
166
	public static String HttpRecorderPreferencePage_NONE_SELECTED_TEXT;
167
	public static String HttpRecorderPreferencePage_APPLICATION_PATH_LABEL;
168
	public static String HttpRecorderLaunchWizard_UNABLE_TO_START_RECORDER_MESSAGE;
169
	public static String HttpRecorderLaunchWizard_DEFAULT_PROJECT_NAME;
170
	public static String HttpRecorderDataProcessor_SSL_RECORDER_ATTEMPTED_ERR_MESSAGE;
171
	public static String HttpRecorderDataProcessor_PLAYBACK_MAY_BE_AFFECTED_WARNING;
172
	public static String HttpRecorderDataProcessor_SSL_PACKET_IN_RECORDING_AND_NOT_SUPPORTED_WARNING;
173
	public static String HttpRecorderDataProcessor_WARNING;
174
	public static String HttpRecorderDataProcessor_TESTKEYS_NOT_FOUND;
175
	public static String HttpRecorderNoProjectsPage_DESCRIPTION;
176
	public static String HttpRecorderNoProjectsPage_TITLE;
177
	public static String HttpRecorderNoProjectsPage_INVALID_REC_FILE;
178
	public static String HttpRecorderPreferencePage_PORT_TOO_BIG;
179
	public static String HttpRecorderPreferencePage_PORT_TOO_SMALL;
180
	public static String HttpRecorderPreferencePage_PORT_NOT_A_NUMBER;
181
	public static String HttpRecorderLaunchWizard_SOCKS_ONLY_ERROR;
182
	public static String HttpRecorderLaunchWizard_HTTP_PROXY_ONLY_ERROR;
183
	public static String HttpRecorderLaunchWizard_SECURE_PROXY_ONLY_ERROR;
184
	public static String HttpRecorderLaunchWizard_HTTP_SECURE_MISMATCH_ERROR;
185
	public static String HttpRecorderLaunchWizard_RECORDER_REGISTRY_ERROR;
186
	public static String HttpRecorderLaunchWizard_LOCALHOST_ERROR;
187
	public static String HttpRecorderDataProcessor_PROBLEM_CREATING_CLIENTSIDEREADER;
188
	public static String HttpRecorderDataProcessor_SOCKET_BIND_ERROR;
189
	public static String HttpRecorderLaunchWizard_RECORDING_CHANGE_PORT_MESSAGE;
190
	public static String HttpRecorderLaunchWizard_RECORDING_AUTO_CONFIG_MESSAGE;
191
	public static String HttpRecorderLaunchWizard_RECORDING_PROXY_OVERRIDE_MESSAGE;
192
	public static String HttpRecorderLaunchWizard_RECORDING_SUPPORTED_CONFIG_MESSAGE;
193
	public static String HttpRecorderLaunchWizard_RECORDING_BROWSER_NOT_FOUND;
194
	public static String HttpRecorderLaunchWizard_RECORDING_BROWSER_CONFIG_ERROR;
195
	public static String HttpRecorderLaunchWizard_RECORDING_PREFS_NOT_FOUND_ERROR;
196
	public static String HttpRecorderLaunchWizard_RECORDING_SELECT_DIFFERENT_BROWSER;
197
	public static String HttpRecorderLaunchWizard_BROWSER_PREFS_FILE_ERROR;
198
	public static String HttpRecorderLaunchWizard_VISTA_ADMIN_ERROR;
199
	public static String HttpRecorderLaunchWizard_WINDOWS_ADMIN_ERROR;
200
	public static String HttpRecorderLaunchWizard_WINDOWS_GENERAL_ERROR;
201
	public static String HttpRecorderLaunchWizard_RECORDING_BROWSER_IN_USE;
202
	public static String HttpRecorderLaunchWizard_RECORDING_BROWSER_IN_USE_VISTA;
203
	public static String HttpRecorderLaunchWizard_RECORDING_TPTPRECUTIL_DLL_MISSING;	
204
	public static String WizardNewProjectCreationPage_nameLabel;
205
	public static String error_NullTestSuite;
160
	public static String error_NullTestSuite;
206
	public static String word_Error;
161
	public static String word_Error;
207
	
162
	
(-)src/org/eclipse/hyades/test/tools/ui/internal/resources/messages.properties (-48 lines)
Lines 200-253 Link Here
200
200
201
###############################################################################
201
###############################################################################
202
202
203
#moved from httpRecorderPlugin.properties
204
HttpRecorderPreferencePage_PROXY_RECORDER_LOCAL_PORT_LABEL=&Port:
205
HttpRecorderPreferencePage_APPLICATION_GROUP=Application to record
206
HttpRecorderPreferencePage_GENERATOR_GROUP=Test suite generator
207
HttpRecorderPreferencePage_PROXY_GROUP=Proxy recorder
208
HttpRecorderPreferencePage_APPLICATION_ADAPTER_SELECTOR_LABEL=Appli&cation:
209
HttpRecorderPreferencePage_TEST_GENERATOR_LABEL=&Generator:
210
HttpRecorderPreferencePage_NONE_SELECTED_TEXT=None
211
HttpRecorderPreferencePage_APPLICATION_PATH_LABEL=&Location:
212
HttpRecorderLaunchWizard_UNABLE_TO_START_RECORDER_MESSAGE=IWAT3040E unable to start recorder
213
HttpRecorderLaunchWizard_DEFAULT_PROJECT_NAME=testproj
214
HttpRecorderDataProcessor_SSL_RECORDER_ATTEMPTED_ERR_MESSAGE=SSL Recording attempted
215
HttpRecorderDataProcessor_PLAYBACK_MAY_BE_AFFECTED_WARNING=Playback may be affected
216
HttpRecorderDataProcessor_SSL_PACKET_IN_RECORDING_AND_NOT_SUPPORTED_WARNING=IWAT3044W SSL packet detected in recording.\nSSL not supported in this release.
217
HttpRecorderDataProcessor_WARNING=Warning
218
HttpRecorderDataProcessor_TESTKEYS_NOT_FOUND=IWAT3046E SSL Certificate File Not Found C:\\testkeys
219
HttpRecorderNoProjectsPage_DESCRIPTION=A test suite must be contained within a project.
220
HttpRecorderNoProjectsPage_TITLE=Create Project
221
HttpRecorderNoProjectsPage_INVALID_REC_FILE=Enter a valid filename.
222
HttpRecorderPreferencePage_PORT_TOO_BIG=Port must be smaller than 64000.
223
HttpRecorderPreferencePage_PORT_TOO_SMALL=Port must be a positive number.
224
HttpRecorderPreferencePage_PORT_NOT_A_NUMBER=Port must be an integer.
225
HttpRecorderLaunchWizard_SOCKS_ONLY_ERROR=Your browser is set in to use a SOCKS proxy.\n Please de-select it if you wish to record.
226
HttpRecorderLaunchWizard_HTTP_PROXY_ONLY_ERROR=IWAT3049E HTTP Proxy set and Secure Proxy not set.\n Please fix Registry settings and try again.
227
HttpRecorderLaunchWizard_SECURE_PROXY_ONLY_ERROR=IWAT3050E Secure Proxy set and HTTP Proxy not set.\n Please fix Registry settings and try again.
228
HttpRecorderLaunchWizard_HTTP_SECURE_MISMATCH_ERROR=IWAT3051E HTTP Proxy and Secure Proxy settings different.\n Please fix Registry settings and try again.
229
HttpRecorderLaunchWizard_RECORDER_REGISTRY_ERROR=IWAT3052E Registry Settings Error
230
HttpRecorderLaunchWizard_LOCALHOST_ERROR=IWAT3053E Proxy Set to localhost is not supported. \n Please fix Registry settings and try again.
231
HttpRecorderDataProcessor_PROBLEM_CREATING_CLIENTSIDEREADER=IWAT3054E Recording Stopped.\n Socket already in use.
232
HttpRecorderDataProcessor_SOCKET_BIND_ERROR=IWAT3055E Problem Binding to Socket
233
HttpRecorderLaunchWizard_RECORDING_CHANGE_PORT_MESSAGE=Warning: Port {0} already in use.  Using port {1} for recording.
234
HttpRecorderLaunchWizard_RECORDING_AUTO_CONFIG_MESSAGE=Your browser configuration setting for Automatic Configuration Script is not supported.
235
HttpRecorderLaunchWizard_RECORDING_PROXY_OVERRIDE_MESSAGE=Your browser configuration setting for Proxy Server Exceptions is not supported.
236
HttpRecorderLaunchWizard_RECORDING_SUPPORTED_CONFIG_MESSAGE=The Recorder only supports either no Proxy or both HTTP and Secure Proxy.
237
HttpRecorderLaunchWizard_RECORDING_BROWSER_NOT_FOUND=Your browser executable was not found.\n You must correct the browser path or select another browser from Application to Record in Preferences.
238
HttpRecorderLaunchWizard_RECORDING_BROWSER_CONFIG_ERROR=Browser Configuration Error
239
HttpRecorderLaunchWizard_RECORDING_PREFS_NOT_FOUND_ERROR=Browser Preferences File Not Found.
240
HttpRecorderLaunchWizard_RECORDING_SELECT_DIFFERENT_BROWSER=Please select a different browser application to record in the URL Recorder preferences.  Alternatively, select ''None'' as the application to record in the URL Recorder preferences and manually configure and start a browser.
241
HttpRecorderLaunchWizard_BROWSER_PREFS_FILE_ERROR=IWAT3055E Browser Preferences File Error
242
HttpRecorderLaunchWizard_VISTA_ADMIN_ERROR=Unable to configure Internet Explorer for URL recording.\nPlease run the Eclipse executable with administrator privileges.                                          
243
HttpRecorderLaunchWizard_WINDOWS_ADMIN_ERROR=Unable to configure Internet Explorer for URL recording.\nPlease reset the Internet Explorer proxy settings before starting a new URL recording. 
244
HttpRecorderLaunchWizard_WINDOWS_GENERAL_ERROR=File Permissions Error
245
HttpRecorderLaunchWizard_RECORDING_BROWSER_IN_USE=Your browser profile is already in use.\nYou must close the browser or select another browser from Application to Record in Preferences.
246
HttpRecorderLaunchWizard_RECORDING_BROWSER_IN_USE_VISTA=Your Internet Explorer browser is in use.\nYou must close the browser or select another browser from Application to Record in Preferences.
247
HttpRecorderLaunchWizard_RECORDING_TPTPRECUTIL_DLL_MISSING=Unable to locate TPTPRecUtil.dll.\nPlease run the Eclipse executable with administrator privileges. 
248
249
WizardNewProjectCreationPage_nameLabel=&Project name:
250
251
error_NullTestSuite = The test suite is null.
203
error_NullTestSuite = The test suite is null.
252
204
253
word_Error = Error
205
word_Error = Error
(-)META-INF/MANIFEST.MF (-9 / +3 lines)
Lines 6-17 Link Here
6
Bundle-Activator: org.eclipse.hyades.test.tools.ui.ToolsUiPlugin
6
Bundle-Activator: org.eclipse.hyades.test.tools.ui.ToolsUiPlugin
7
Bundle-Vendor: %PROVIDER_NAME
7
Bundle-Vendor: %PROVIDER_NAME
8
Bundle-Localization: plugin
8
Bundle-Localization: plugin
9
Export-Package: org.eclipse.hyades.execution.recorder.http,
9
Export-Package: org.eclipse.hyades.test.tools.ui,
10
 org.eclipse.hyades.execution.recorder.http.local,
11
 org.eclipse.hyades.execution.recorder.http.ui.preferences,
12
 org.eclipse.hyades.execution.recorder.http.ui.wizards,
13
 org.eclipse.hyades.internal.recorder.http.util,
14
 org.eclipse.hyades.test.tools.ui,
15
 org.eclipse.hyades.test.tools.ui.common,
10
 org.eclipse.hyades.test.tools.ui.common,
16
 org.eclipse.hyades.test.tools.ui.common.internal.dialog,
11
 org.eclipse.hyades.test.tools.ui.common.internal.dialog,
17
 org.eclipse.hyades.test.tools.ui.common.internal.editor,
12
 org.eclipse.hyades.test.tools.ui.common.internal.editor,
Lines 36-43 Link Here
36
 org.eclipse.hyades.test.tools.ui.java.internal.junit.navigator,
31
 org.eclipse.hyades.test.tools.ui.java.internal.junit.navigator,
37
 org.eclipse.hyades.test.tools.ui.java.internal.junit.wizard,
32
 org.eclipse.hyades.test.tools.ui.java.internal.junit.wizard,
38
 org.eclipse.hyades.test.tools.ui.java.internal.util,
33
 org.eclipse.hyades.test.tools.ui.java.internal.util,
39
 org.eclipse.hyades.test.tools.ui.java.junit,
34
 org.eclipse.hyades.test.tools.ui.java.junit
40
 org.eclipse.tptp.test.tools.internal.recorder.http.providers
41
Require-Bundle: org.eclipse.ui;bundle-version="[3.2.0,4.0.0)",
35
Require-Bundle: org.eclipse.ui;bundle-version="[3.2.0,4.0.0)",
42
 org.eclipse.jdt.core;bundle-version="[3.2.0,4.0.0)",
36
 org.eclipse.jdt.core;bundle-version="[3.2.0,4.0.0)",
43
 org.eclipse.tptp.platform.models;bundle-version="[4.2.0,5.0.0)",
37
 org.eclipse.tptp.platform.models;bundle-version="[4.2.0,5.0.0)",
Lines 54-58 Link Here
54
 org.eclipse.ui.forms;bundle-version="[3.2.0,4.0.0)",
48
 org.eclipse.ui.forms;bundle-version="[3.2.0,4.0.0)",
55
 org.eclipse.ltk.ui.refactoring;bundle-version="[3.2.0,4.0.0)",
49
 org.eclipse.ltk.ui.refactoring;bundle-version="[3.2.0,4.0.0)",
56
 org.eclipse.core.variables;bundle-version="[3.1.100,4.0.0)"
50
 org.eclipse.core.variables;bundle-version="[3.1.100,4.0.0)"
57
Eclipse-LazyStart: true
51
Bundle-ActivationPolicy: lazy
58
Bundle-RequiredExecutionEnvironment: J2SE-1.4
52
Bundle-RequiredExecutionEnvironment: J2SE-1.4

Return to bug 208110