When we think of writing automated tests with ruby and cucumber, Windows desktop applications are not the first thing that come to mind. If you have looked into writing acceptance tests for Windows applications (native, WinForms or WPF), chances are you have come across solutions such as SpecFlow or Raconteur, but what are the options if we want to drive our tests from ruby using cucumber or RSpec?
This pre-compiler session will take you through building an acceptance test suite using some ruby gems (mohawk
, RAutomation
and cucumber
) that tap into the Microsoft UI Automation accessibility framework to automate native, WinForms and WPF applications.
This pre-compiler is open to all skill levels and competencies, no matter what languages you work with in your day to day jobs. Non-coders are welcome too!
- Creating a test suite skeleton using
testgen
- Working with basic Window controls
- Buttons, Checkboxes and Radio controls
- Comboboxes
- Tables
- Using the page object pattern with
mohawk
- Exposing custom controls to UI Automation using
UIA.Extensions
- .NET 4.0
- C++ Runtime Redistributable
- Windows OS with ruby 1.9.3 (32-bit)
- Also install the DevKit (for native ruby gems, like
json
)
- Also install the DevKit (for native ruby gems, like
- msysgit for Windows
Hi All,
I am going to automate windows based application using ruby cucumber along with accessing the .exe file, also perform with windows controls could please any one can help me out on this code.