This project is read-only.

Wait handling in White

Dec 1, 2009 at 10:09 AM

I am new to WHITE and gone through wait handling

I have 3 Question related to wait handling

1. I have gone through White.Core.dll.config, in that file all the keys are not mentioned like UIAutomationZeroWindowBugTimeout,DragStepCount. Do i have to mention these keys with default value in it?( or i have to create my App.config file with default values and put it in white directory?)

  Below is the text of White.Core.dll.config

<?xml version="1.0" encoding="utf-8" ?>
    <sectionGroup name="NUnit">
      <section name="TestRunner" type="System.Configuration.NameValueSectionHandler"/>
    <sectionGroup name="White">
      <section name="Core" type="System.Configuration.NameValueSectionHandler"/>
      <section name="UIItemId" type="System.Configuration.NameValueSectionHandler"/>
    <add key="SaveWindowItemsMap" value="true"/>
    <add key="TestMode" value="@TestMode@"/>
      <add key="ApartmentState" value="STA" />
      <add key="ThreadPriority" value="Normal" />
      <add key="TooltipWaitTime" value="3000" />
      <add key="BusyTimeout" value="15000" />



2.  I have tried to use wait handling in my code like this

White.Core.Configuration.CoreAppXmlConfiguration.Instance.PopupTimeout = 100000;    // use this code in constructor to wait for a POPUP error msg  window

but it has no effect on my code.



3. Do these configuration takes time to get loaded in the WHITE tool

Dec 2, 2009 at 12:40 PM

From the configuration page that you linked to: "White configuration is done in App.config file." So I would say, give the app.config file a try and see if it works better.