ladar
ladar

Reputation: 51

Automating GUI testing using C#

I am doing on a project to built automatic GUI testing for graphical application in .NET. I will use C# but i am trying to reading to get some ideas. But I don't have any idea on how to record and replay back. So can you give me your ideas.

Upvotes: 5

Views: 22953

Answers (7)

SUT
SUT

Reputation: 404

Have you updated your Visual Studio to 2010 version? It has a build-in coded-ui automated testing feature, which could be used to record and replay back the test for win form.

Upvotes: 1

Trevor Abell
Trevor Abell

Reputation: 752

Here's a blog from the visual studio team that goes over this exact topic. It's about how they tested pre-wpf and post-wpf.

This post covers an overview of techniques that we used to create and maintain automated user interface regression tests for Visual Studio. Regression tests are a type of software test that, collectively, aim to be an oracle of expected functionality for the target application, run often against new builds of product – they aim to uncover regressions in behavior introduced in a new build.

Visual Studio Blog

Upvotes: 2

Alex
Alex

Reputation: 13229

To test C# apps there are a few things we have had success with:

  1. PowerShell
  2. TestPlant

and possibly would be the new VSTS 2010 features, though we haven't tried them

Upvotes: 0

Lucero
Lucero

Reputation: 60190

A good (commercial) C#-based product is Ranorex, it may do what you need.

Upvotes: 1

Sunny
Sunny

Reputation: 6346

  • Selenium

  • Watin

    are some options that come to mind

Upvotes: 0

Jaxidian
Jaxidian

Reputation: 13511

Frankly, I don't think there is a good answer out there for this. There are two options, however, that work okay:

  1. Visual Studio Test Edition (as durilai suggested)
  2. Telerik's Web Testing (both a free version and a version with a cost but depending on your UI, this may or may not work)

Upvotes: 1

Dustin Laine
Dustin Laine

Reputation: 38503

Selenium RC!

There is also the TFS Test that has web tests, which tie into load test. Nice platform, but if you are not already using TFS then it is not worth it.

Upvotes: 1

Related Questions