Selenium テストを実行するために CCNET サーバーをセットアップしています。テスト コードでは、次のコマンドを使用して、Selenium RC サーバーが実行されていない場合に起動します。
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 から (ユーザー コンテキストで) 実行すると、java.exe プロセスを実行する代わりに、"c:\windows\java" のエクスプローラ ウィンドウが表示されます。パスの設定が間違っていると思いますが、方法がわかりません。手伝ってくれますか?