How to get started with White

Once again I find myself faced with the giant that is Visual Studio. I’ve used it before, but in short burst. Long enough to get me familiar with it and then summer was over/baby was born/or similar and I’ve gone back to the Open Source world of the university.  Each time it takes me a while to get back on track.

At this job, I’ve been asked to use White for some ui testing. White is a tool that allows you to search and refence ui components by code instead of recording a sequence of clicks. It’s designed for Windows applications and is open source.

As I felt like a noob, I hoped for a newbie guide which I didn’t find. So here is mine.

Download and unzip White. Place does not matter.

Open Visual Studio, create a new project with some sort of form you would like to test. Add a Test Project to that solution. In the project tree for the Test Project, right click References and select “Add reference”.  There you can add references to the White dlls, the ones you need are “White.Core”, “White.NUnit” and “nunit.framework”.

That should be enought to get you started and follow Ben Halls guide. Remember if you find yourself with words underlined in red and the mouse over complaint about reference missing, right hand click and select “Resolve” the correct reference will be added to the “using” list.

There, this might help some other summer job tester out there.

2 thoughts on “How to get started with White

  1. HI

    I am Naveen.I had learnt ,how to run selenium IDE & selenium RC.The main thing is how to generate a Test Report after the running the test Succesfully.I am using the Selenium RC and NUNIT for the testing .How to get the Test actions and descriptions in a Report.And another thing is How to run Selenium Core and when it is useful .And suggest some more open source tools for testing .Net and Java Projects ………………………..

    Try to help me…..


  2. I’m sorry Naveen, I’m affraid I don’t have any experience with Selenium.

    As for other open source tools, FitNesse can be fun of course. And then there a lot of BDD style tools, if you want to create plain text test reports (NBehave, BehaveN, Cucumber, etc…)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s