Sunday, November 24, 2013

How we can get the installed voices using c#?

This sample code will get the installed voices using C# SpeechSynthesizer and will load in to a combo box.

using (SpeechSynthesizer synth = new SpeechSynthesizer())
    foreach (InstalledVoice voice in synth.GetInstalledVoices())
        VoiceInfo info = voice.VoiceInfo;
        cmbVoices.Items.Add(info.Description + ", " + info.Gender + ", " + info.Age);
    if (cmbVoices.Items.Count > 0)
        cmbVoices.SelectedIndex = 0;

Tuesday, November 12, 2013

What is White framework?

What is White framework?

White framework is an open-source framework which provides a handful of features to automate UI applications. By using White framework we can simulate a user effectively.  For example, if we want to perform some stereo type actions too many times like Launch an application, Click on a button, select a value, etc.. it might be awkward. If there is no decision making required then it has much worse situation. In these kinds of situations, we can avoid a human being from doing this. Instead we can have automation tool to simulate the human being.

White framework is basically a Test Automation tool, but we can use this to do the automation also. In simple words we can launch an application, can find buttons and other controls, can simulate mouse moves and clicks, activate controls, etc… That means everything which can be possible using Windows APIs.

White framework is developed using .NET 3 runtime. This uses windows UI automation library and Windows messages. If a developer uses white framework he does not worry about the PInvoke related activities. We can say White framework is a wrapper above the UI automation library and Windows messages.

White framework can be used to automate applications which are developed using Win32, WinForms, WPF, Silverlight and SWT (Java) platforms.

White framework Architecture 

Helpful Links

Source code can be found here:

Documentation can be found here:

landscape paintings nature art landscape art sky art illustration art artwork art human art beautiful art landscape prints nature prints sky prints illustration prints artwork prints human prints beautiful prints beautiful special promotions nature special promotions sky special promotions illustration special promotions artwork special promotions beautiful canvas prints beautiful painting canvas prints beautiful framed prints beautiful painting framed prints beautiful posters beautiful painting posters