Testing Automation Tools For .NET

53,517

Solution 1

You can test your service with any unit test framework like NUnit, MbUnit, MSTest, ... .

Your web application like you probably know there many different applications like Watir, Watin, Selenium, SWAT, Telerik WebUITest Studio.

I'm not familiar with Windows form testing tool; however, I know that Telerik is comming up with one.

Solution 2

TestComplete.

You can definitely use capture-replay to capture and run the test script. But I would suggest that you must at least manually edit your scripts to make them

  1. more readable
  2. easier to maintain.

The good thing about TestComplete is that it is able to look into your form's properties, capture those properties so that you can refer to those properties by their name, not by just screen coordinates.

Here's a similar question.

Solution 3

There are a number of good tools for testing.

Business Objects - test with NUnit,mbUnit,MSTest

Web testing - Selenium and NUnit or WatiN

Desktop GUI - not sure but you could try pyWinAuto - its a python application but you could use IronPython which is the .NET implementation

Solution 4

Using the Apis I developed for https://github.com/o2platform/FluentSharp I was able to write tests that cover the 3 scenarios that you mention

See these tests https://github.com/TeamMentor/Dev/tree/master/Source_Code/TM_UnitTests/TeamMentor.UnitTests.QA for a significant number of real-world tests written that way

See also disable IE visibility while using WatiN for an example of an Web Automation test

Share:
53,517

Related videos on Youtube

Onion-Knight
Author by

Onion-Knight

Work as a Software Developer for a small IT Company.

Updated on May 23, 2020

Comments

  • Onion-Knight
    Onion-Knight almost 4 years

    I'm trying to find some useful Open Source Testing Automation Tools for use with the .NET framework. I've done a fair bit of research, but unfortunately, most of the tools I have found focus on testing web applications only.

    There are 3 types of programs that we run in order to make our software do what it needs to do: We program a service in VB.NET to collect data, we have an AJAX/JavaScript + VB/ASP.NET web application to view the data, and a VB.NET Form-based GUI to edit the data.

    I understand that the chances finding a tool that would test all three is slim to nil, but I was not expecting a single tool to cover all of them.

    Since the service we run is the most important, I was hoping the Stack Overflow community might have some insight as to what testing automation tools would be particularly useful for VB.NET services. Any information with respect to the GUI or Web Application sides would be a great help as well.

  • Alexandre Dupriez
    Alexandre Dupriez over 14 years
    pyWinAuto does not support .NET forms. Wasn't able to get it to work reliably.
  • Daniel Mann
    Daniel Mann almost 11 years
    For UI testing (web, WPF, Silverlight, Windows Modern UI/Metro, and WinForms), Microsoft has Coded UI, which is part of Visual Studio.
  • abarisone
    abarisone almost 9 years
    Could you please add more details about the solution you provide and not only a link?
  • Safa
    Safa almost 9 years
    @abarisone Parasoft for a .net testing But not open source. Of course you can use it for a limited time. Try this program can be used to test the quality of programs that can compare. > * Static code analysis, data flow analysis, and metrics analysis * Unit test creation, execution, optimization, and maintenance * Peer code review process automation, preparation, notification, and tracking * Use independently or in conjunction with Parasoft Development Testing Platform
  • Sam Makin
    Sam Makin over 8 years
    Windows forms fuzzer/exerciser - which is super easy to use - github.com/SJMakin/FuzzWinForms