Problems while doing automated testing on AJAX with C#
Tuesday, October 17, 2006
I’m working on a project where I’m trying to build an automated regression testing tool for my AJAX library. I’m using the HttpWebRequest object to automate the HTTP calls to the web server.
I started encountering a problem where I was getting HTTP 417 (expectation failed) error messages, which I couldn’t seem to resolve, until I found this fix over on the MSDN forums.
All you have to do is add the following into your application configuration file:
<configuration>
<system.net>
<settings>
<servicePointManager expect100Continue=”false” />
</settings>
</system.net>
</configuration>
That resolved the errors for me… now to figure out what is wrong with cookies…
October 20th, 2006 at 10:28 am
AJAX has been but most problematic for me, too….
My word! A most interesting article about the problematics of developing with AJAX and C# I have been a reader of. Myself, I have not been a programmer of AJAX yet, but as a user I have been most not impressed. For it is a technology that I am thinki…
March 8th, 2007 at 7:08 am
You can try SWExplorerAutomation (SWEA) from webiussoft.com. SWEA was specially designed to unit test complex DHTML/AJAX applications.