Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing Automation Tools For .NET [closed]

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.

like image 960
Onion-Knight Avatar asked Sep 23 '09 11:09

Onion-Knight


People also ask

Can automation be done without framework?

Joking aside, although we can do automation testing without a framework, it's not recommended. Don't bring a knife to a gunfight. Clicking a button is easy. It's just a few lines of code with Selenium WebDriver.


4 Answers

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.

like image 88
Vadim Avatar answered Oct 07 '22 03:10

Vadim


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.

like image 41
Graviton Avatar answered Oct 07 '22 03:10

Graviton


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

like image 43
AutomatedTester Avatar answered Oct 07 '22 02:10

AutomatedTester


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

like image 24
Dinis Cruz Avatar answered Oct 07 '22 01:10

Dinis Cruz