I am writing C# Coded UI Tests in Visual Studio 2010. To enhance the testing, I need to access all the responses coming back from the server. For instance, I am testing the Add New Member use case, if user's attempt to add a new member fails, and the UI doesn't show neither the success or failure massage, I want to be able to get more detail from the http response and show the appropriate respond to the tester.
My code first open an instance of :
SHDocVw.ShellWindows allBrowsers = new SHDocVw.ShellWindows();
if (allBrowsers.Count > 1)
{
MessageBox.Show("Number active browsers = " + allBrowsers.Count + "." + " Please close all windows and try again...");
throw new Exception("Multiple IE Instances not allow ");
}
p = Process.Start("iexplore.exe", "http://bing/");
BrowserWindow win = new BrowserWindow();
current.SearchProperties[Bro ...
Go to the complete details ...