DotNetNuke.Tests.UI.WatiN.Utilities.WebConfigManager

UpdateConfig method accepts the path to the root of the site where the web.config file resides. The method will then update the web.config so that any email delivered is dropped into the TestEnvironment.TestEmailPath folder. This allows tests to be conducted on the resulting email file.
If the node already exists in the web.config it is not touched.

<configuration>
<nodes configfile="web.config">
<node path="/configuration/system.webServer" action="insertAfter">
<system.net>
<mailSettings>
<smtp deliveryMethod="specifiedPickupDirectory">
<specifiedPickupDirectory pickupDirectoryLocation="D:\Tests\TestEmails">
</specifiedPickupDirectory>
</smtp>
</mailSettings>
</system.net>
</node>
</nodes>
</configuration>

Last edited Mar 23, 2010 at 12:47 AM by philipbeadle, version 1

Comments

No comments yet.