Skip to content

Instantly share code, notes, and snippets.

@leviwilson
Last active March 30, 2018 21:03
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leviwilson/5196710 to your computer and use it in GitHub Desktop.
Save leviwilson/5196710 to your computer and use it in GitHub Desktop.
Abstract for Codemash 2014: Automating Windows Applications with Ruby.

Codemash 2014 Pre-Compiler

Automating Windows Applications with Ruby

Abstract

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.

Target Audience

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!

What We Will Cover

  • 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

Requirements

@1238tester
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment