Seleniumテストを実行するようにCCNETサーバを設定しています。私のテストコードでは、実行していない場合、次のようにSelenium RCサーバーを起動します。CCNETビルドサーバでC#から適切に起動していないSerenium Javaプロセス
var proc = new Process();
proc.StartInfo.WorkingDirectory = Path.Combine(Directory.GetParent(Assembly.GetExecutingAssembly().Location).FullName, @"..\..\..\..\..\lib\SeleniumRC\selenium-server-1.0-beta-2");
proc.StartInfo.FileName = "java"; //have also tried with "java.exe"
proc.StartInfo.Arguments = @"-jar selenium-server.jar -multiWindow -trustAllSSLCertificates -firefoxProfileTemplate ""..\Firefox Profiles\Relaxed Security""";
proc.StartInfo.UseShellExecute = true;
proc.Start();
これは私の開発マシンでうまくいきます。しかし、CCNET.exeから(ユーザーコンテキストで)CCNET.exeを実行すると、java.exeプロセスを実行する代わりに、 "c:\ windows \ java"のエクスプローラウィンドウがポップアップすることがわかります。私のパス設定はうんざりしていると思うけど、どうやってどうやっていいのか分かりません。手伝ってくれますか?