About Me

My photo
Have an overall 13 + yrs of experience Currently working as an Senior Architect.Expertise in design,implementation of Automation frameworks for Opensource automation tools like Selenium,Jmeter, Webdriver,Appium, Robotium Expertise in integrating Test & ALM Management tools like Rally,Qmetry,JIRA-Zephyr with Automation frameworks Expertise in design and developmenet Mobile Automation frameworks for tools like Appium, Robotium Remote Control,Cucumber BDD,Manual Testing

Sunday, March 6, 2011

Setting up WHITE with Visual C# Express edition and Nunit assembly with Sample Example - Calculator Launch

1.Download the Visual C# Express edition
2.Download the White from http://white.codeplex.com/
3.Install the Visual C# Express edition and open it
4.Extract the contents of the White (zip file)
5.Create a Project as shown in below snapshot
6.Provide Project Name and click on OK button
7.From the Solution Explorer(Typically you find it towards your left of the screen) right click and Add the ITEM as shown in below snapshots
8. Select the ITEM as class and click on Add Button
9. Now that the class file should be created as shown in below snapshot
10.Now is the time to add some stuff. Before that we need to configure the White API assembly to the project
11.Right Click on the references folder , select add reference and browser for the dll file White.Core.dll in the White bin directory(remember this is the api we had downloaded initially)

12.Ensure the below hightlighted assemblies are added as references to the project.
13. Now add the below code to your Main Method and run the program using the debug button as highlighted in the below snapshot


14.Next you should see the calculator application being opened automatically and performing some addition



2 comments:

  1. In the above example mouse click button is not worked worked code url link:
    http://www.tellingmachine.com/post/The-White-Windows-UI-automation-getting-started-tutorial-for-testers.aspx
    -------------- Prasanna.Yelsangikar

    ReplyDelete
  2. Hi Kiran, thanks for the nice article.. Have you ever tried SpecFlow + White automation combination, I am looking for configuration settings values - how to mention that White Automation is my Nunit replacement?
    thanks in Advance

    ReplyDelete