
| Key: |
SRC-394
|
| Type: |
Bug
|
| Status: |
Open
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
dina
|
| Votes: |
3
|
| Watchers: |
3
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
Environment:
|
Windows 2003 Server
|
|
|
After upgrading to 0.9.2, our windows test environment could not launch InternetExplorer, and would just hang with no messages. I think this is being caused because our test environment has a perl script that does a Win32::Job spawn call (so we can kill the whole thing if need be) to launch a java session that in turn calls the InternetExplorerCustomProxyLauncher which then issues a killableprocess call and fails to return from that. It would be nice if killableprocess was an option or only used for Vista OS, since that is why it got added. Windows 2003 Server shouldn't need the killableprocess wrapper.
|
|
Description
|
After upgrading to 0.9.2, our windows test environment could not launch InternetExplorer, and would just hang with no messages. I think this is being caused because our test environment has a perl script that does a Win32::Job spawn call (so we can kill the whole thing if need be) to launch a java session that in turn calls the InternetExplorerCustomProxyLauncher which then issues a killableprocess call and fails to return from that. It would be nice if killableprocess was an option or only used for Vista OS, since that is why it got added. Windows 2003 Server shouldn't need the killableprocess wrapper. |
Show » |
|
Index: server-coreless/src/main/java/org/openqa/selenium/server/browserlaunchers/InternetExplorerCustomProxyLauncher.java
===================================================================
— server-coreless/src/main/java/org/openqa/selenium/server/browserlaunchers/InternetExplorerCustomProxyLauncher.java (revision 2116)
+++ server-coreless/src/main/java/org/openqa/selenium/server/browserlaunchers/InternetExplorerCustomProxyLauncher.java (working copy)
@@ -177,7 +177,17 @@
public void launch(String url) {
try {
+ log.info("launch(" + url + ")...");
+ log.info("WindowsUtils.thisIsWindows(): " + WindowsUtils.thisIsWindows() );
+ log.info("System.getProperty('os.name'): '" + System.getProperty("os.name") + "'" );
+ log.info("System.getProperty('os.name').equals('Windows 2000') == false: " + (System.getProperty("os.name").equals("Windows 2000") == false));
+ log.info("System.getProperty('noKillableProcess') == null: " + (System.getProperty("noKillableProcess") == null));
+ boolean useKillableProcess = WindowsUtils.thisIsWindows() &&
+ System.getProperty("os.name").equals("Windows 2000") == false &&
+ System.getProperty("noKillableProcess") == null;
+ log.info("useKillableProcess: "+ useKillableProcess );
+
+ if (useKillableProcess ) {
backupRegistrySettings();
changeRegistrySettings();
File killableProcessWrapper = new File(customProxyPACDir, "killableprocess.exe");
It checks for os.name == Windows 2000 (you can check for 2003 also) or the System property -DnoKillableProcess=anything. If either of these are true, then it does not call killableprocess.exe.
Feel free to include something like this in the next release.
tlj