Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integration testing with White [closed]

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.

like image 378
Dala Avatar asked Sep 16 '08 12:09

Dala


People also ask

Is integration testing black-box or white box testing?

Unit Testing is a kind of white box testing, whereas Integration Testing is a kind of black-box testing.

How is white box testing carried out in integration testing?

Integration testing. This type of white box testing involves combining individual units or components of the application's source code and testing them as a group. The purpose is to expose errors in the interactions of the different interfaces with one another. It takes place after unit testing.

Should integration tests be black-box?

The distinction between black box testing and white box testing is one of tester knowledge. Integration testing can be either black box or white box testing. Black box testing is testing where the person designing the test has no (or very little) internal knowledge of the system they are testing.


1 Answers

I recently used white to build a few (20+) UI tests for a fairly complex WinForms app with plenty of UserControls, dynamically created and 3rd-party controls.

Here are my impressions:

  • Very easy and intuitive to work with.
  • Little or no quality issues.
  • It's a young project so there are some missing features, but they've got the basics covered.
  • Occasionally, if a control didn't have a known AutomationID, I was forced to use keystrokes to navigate to and manipulate a control ("tab, tab, enter" for example) which was kind of a bummer, but still very easy to do in white. This usually only happened with 3rd-party or dynamically generated controls.
  • White's recorder is helpful (and will actually generate code for you) but does often get confused by complicated or unusual controls. For that reason I'd recommend that you...
  • ...keep UISpy nearby so you can see the AutomationID of the controls you're working with.
  • And finally, if you're like me, you're hoping to set up some automated tests. This can be tricky since an automated test will usually be run by a CI tool such as CruiseControl which runs as a Windows service, which therefore has no active graphical environment (Windows session)...which white requires. The suggested way around this is to use a virtual machine. This is where I lost steam, as my tool chain had just grown too large for my purposes: CruiseControl->NAnt->NUnit->white + virtual machine.

Anyway, hope that's useful.

like image 191
shaunmartin Avatar answered Oct 20 '22 19:10

shaunmartin