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.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
In the above example mouse click button is not worked worked code url link:
ReplyDeletehttp://www.tellingmachine.com/post/The-White-Windows-UI-automation-getting-started-tutorial-for-testers.aspx
-------------- Prasanna.Yelsangikar
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?
ReplyDeletethanks in Advance