There might be ocassion where there's a need to run an IISReset as part of your Test. Here's how you do it. { // Run IIS reset to clear the chache Process iisResetProcess = System.Diagnostics.Process.Start("cmd.exe", ConfigurationManager.AppSettings["iisResetCommand"].ToString()); iisResetProcess.WaitForExit(); iisResetProcess.Close(); } In order to allow this to work, please ensure that your App.Config has the following within
|
Wednesday 10 September 2008
WatiN - Running IISReset
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment