White.Core App.config

Mar 27, 2010 at 12:09 AM

All,

A question relating to the white.core app config.

current app config settings

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
      <sectionGroup name="NUnit">
        <section name="TestRunner" type="System.Configuration.NameValueSectionHandler"/>
        <section name="ProgramMode" type="Debug"/>
      </sectionGroup>
      <sectionGroup name="White">
        <section name="Core" type="System.Configuration.NameValueSectionHandler"/>
     </sectionGroup>
     <sectionGroup name="Bricks">
        <section name="Bricks" type="System.Configuration.NameValueSectionHandler"/>
      </sectionGroup>
  </configSections>

  <White>
      <Core>
        <add key="WorkSessionLocation" value="." />
        <add key="PopupTimeout" value="80000" />
        <add key="SuggestionListTimeout" value="80000" />
        <add key="BusyTimeout" value="80000" />
        <add key="WaitBasedOnHourGlass" value="true" />
        <add key="UIAutomationZeroWindowBugTimeout" value="80000" />
        <add key="TooltipWaitTime" value="80000" />
        <add key="DragStepCount" value="4" />
      </Core>
  </White>
  <Bricks>
      <Bricks>
        <add key="RecheckDurationInMilliseconds" value="101" />
      </Bricks>
  </Bricks>
</configuration>

This file resides in the same directory as the white.core.dll file

This is the standard out from FitNesse/FitSharp

[2010-03-26 16:50:01,070][INFO ] Using BusyTimeout=5000 for White/Core
[2010-03-26 16:50:01,082][INFO ] Using WaitBasedOnHourGlass=True for White/Core
[2010-03-26 16:50:01,082][INFO ] Using LogActions=False for White/Core
[2010-03-26 16:50:01,082][INFO ] Using WorkSessionLocation=. for White/Core
[2010-03-26 16:50:01,082][INFO ] Using UIAutomationZeroWindowBugTimeout=5000 for White/Core
[2010-03-26 16:50:01,082][INFO ] Using PopupTimeout=5000 for White/Core
[2010-03-26 16:50:01,082][INFO ] Using TooltipWaitTime=0 for White/Core
[2010-03-26 16:50:01,082][INFO ] Using SuggestionListTimeout=3000 for White/Core
[2010-03-26 16:50:01,082][INFO ] Using DefaultDateFormat=Month,Day,Year for White/Core
[2010-03-26 16:50:01,082][INFO ] Using DragStepCount=1 for White/Core
[2010-03-26 16:50:01,082][INFO ] Using InProc=False for White/Core

So as is evident by the log I'm evidently editing the wrong app config or it's using default values for a reason i haven't been able to identify as of yet.

Any help would be appreciated in figuring this one out.

Thanks :)

Mar 27, 2010 at 4:35 AM

As per my understanding the app.config needs to reside in the same directory as your Test application. When compiled, the app.config is renamed as <projectname.dll>.config and is made available under the release/debug directory.  For example if the project name is "testdll" the config name will be "test.dll..config". If you are using visual studio as your editor, you can add the config file by clicking the project node --> Add --> New Item and the selecting application configuration file from the available list. Other way is to create a text file ,name it as the <project>.dll.config copy the contents from existing config and save it in the debug/release directory.