Questions tagged [white-framework]

White is a framework for automating rich client applications based on Win32, Windows Forms, WPF, Silverlight, and SWT (Java) platforms.

White is a framework for automating rich client applications based on Win32, Windows Forms, WPF, Silverlight, and SWT (Java) platforms.

It is .NET based and does not require the use of any proprietary scripting languages. Tests/automation programs using White can be written with whatever .NET language, IDE and tools you are already using. White provides a consistent object-oriented API, hiding the complexity of Microsoft's UIAutomation library (on which White is based) and windows messages.

Only stable versions of White are released, so all releases are production-ready.

More information is available here: White on GitHub

250 questions
23
votes
10 answers

Built tests are not added to the Visual Studio Test Explorer window

I set up the SpecFlow plug-in for the Visual Studio 2013. I created new Feature Item and build it. Result: built test is not shown in the Test Explorer. Why? I do it according to this video
Vlad Kostyukevich
  • 463
  • 1
  • 3
  • 12
19
votes
4 answers

Jenkins on Windows and GUI Tests without RDC

We have a master-slave configuration for Jenkins. Our .NET project is built by a slave Jenkins instance running on Windows. There are a bunch of GUI tests, however they only seem to run if there's a remote desktop connection (RDC) session open. When…
Mike Borozdin
  • 1,138
  • 3
  • 14
  • 32
18
votes
1 answer

Application.GetWindow() *very* slow

I have the following two methods that I call in sequence (with appropriate class level field in sequence) public const string ProcessName = "This is" public const string WindowTitle = "somewhat proprietary." public Application App { get; set;…
Erik Dietrich
  • 6,080
  • 6
  • 26
  • 37
18
votes
2 answers

Test execution inside Backgroundworker apruptly ends on elements with many childelements

my general setup: we've written a little excel importer with a small gui, that allows non programmers to write and execute gui-tests with commands like "Button.Click". The underlying framework is TestStack.White. After importing the excel file and…
CAA
  • 968
  • 10
  • 27
11
votes
7 answers

Is there Anyone who Successfully Implement UI Test Automation Regime using Microsoft UI Automation?

I am looking for an Automated UI test framework/ software tool. In the past I have been using TestComplete, and although it's a good piece of software, but the concept of GUI test automation was deemed to be sufficiently difficult that I wrote a few…
Graviton
  • 81,782
  • 146
  • 424
  • 602
10
votes
1 answer

Calculate new ScrollPercent - after ViewSize changed

First of all, basically I believe I just need help in figuring out how to calculate it, math isnt really my strong side. FYI, the MS-Word is most likely not relevant to solve my problem, I basically just mention it so you know the context I am in,…
Rand Random
  • 7,300
  • 10
  • 40
  • 88
9
votes
2 answers

Integration testing with White

Has anyone got experience with the white framework? www.codeplex.com/white ? I'm thinking about using it for the next project for basic smoke tests of our windows client. I'd like some advice on articles or your own experiences. Thanks.
Dala
  • 1,869
  • 2
  • 20
  • 22
9
votes
1 answer

How to send ENTER from keyboard using TestStack.White Framework

I am writing a c# code to test UI in my application. I want to send ENTER from Keyboard. I already checked TestStack.White.WindowsAPI.KeyboardInput.SpecialKeys. It doesnt contain any method send ENTER. Thanks.
mayu789
  • 103
  • 1
  • 5
9
votes
3 answers

Finding all windows on desktop using UIAutomation .NET

I am trying to find all desktop windows using .NET UIAutomation OR White framework. I tried : 1.) AutomationElement rootElement = AutomationElement.RootElement; var winCollection = rootElement.FindAll(TreeScope.Subtree,…
Varun S
  • 587
  • 4
  • 12
  • 25
8
votes
2 answers

UI Automation events is raised twice

I'm having trouble listening to automation events from the inside a process. I've written a sample below where I have a simple WPF application with a single button. An automation handler is added for the Invoke event on the window with TreeScope:…
jan
  • 865
  • 7
  • 19
8
votes
2 answers

White - File Open Dialog Box

This is my problem. I have an application where it opens a file open dialog box and I'm trying to enter in the file path and file name into the "File name:" combo box section. The application loads with a form where you log in. This opens another…
Shane
  • 81
  • 1
  • 3
8
votes
0 answers

How to use Teststack.white with multiple monitors

I have a 3 monitor setup, but white says: [Warn - 10:59:24 AM] 'TestStack.White.UIItems.UIItem' Window with title: MYWINDOW whose dimensions are: 0,0,4492,1080, is not contained completely on the desktop 0,0,1920,1080. UI actions on window…
user2282496
  • 235
  • 4
  • 13
7
votes
2 answers

System.Windows.Automation is very slow at enumerating table rows vs. UIAutomationCore

I am trying to do automated testing of my application via UI Automation (mainly using TestStack.White to provide a friendly interface; it uses System.Windows.Automation as a back-end). I have a table with ~200 rows that I need to test the values of…
7
votes
2 answers

UI Automation White framework "NonComVisibleBaseClass was detected" exception

I am testing an application which loads a powerpoint (.ppt or .pptx) file insert it. Application gives same look an feel like powerpoint with some extra setting when the file is loaded inside the application. When I try to automate the application,…
S.Roshanth
  • 1,499
  • 3
  • 25
  • 36
7
votes
1 answer

Accessing DataGridView Cells via White

So I'm doing some C# automation/UI testing with White and am having trouble with something. I have a DataGridView in the app and I set the background cell colors differently depending on application state. I want to check these colors during tests…
sshannin
  • 2,767
  • 1
  • 22
  • 25
1
2 3
16 17